Enable QI/HImode vector moves
[gcc.git] / gcc / ChangeLog
1 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
2
3 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
4 (VEC_1REG_ALT): Likewise.
5 (VEC_ALL1REG_MODE): New mode iterator.
6 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
7 (VEC_1REG_INT_ALT): Likewise.
8 (VEC_ALL1REG_INT_MODE): New mode interator.
9 (VEC_ALL1REG_INT_ALT): Likewise.
10 (VEC_REG_MODE): Remove V64QI and V64HI.
11 (VEC_ALLREG_MODE): New mode interator.
12 (vec_merge): Change to VEC_ALLREG_MODE.
13 (vec_merge_with_clobber): Likewise.
14 (vec_merge_with_vcc): Likewise.
15 (mov<mode>): Likewise.
16 (mov<mode>_unspec): Likewise.
17 (*mov<mode>): Change to VEC_ALL1REG_MODE.
18 (mov<mode>_exec): Likewise.
19 (*mov<mode>_exec_match): Likewise.
20 (mov<mode>_sgprbase): Likewise.
21 (reload_in<mode>): Change to VEC_ALLREG_MODE.
22 (reload_out<mode>): Likewise.
23 (scalar address splits): Likewise.
24 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
25 (vec_set<mode>): Change to VEC_ALLREG_MODE.
26 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
27 (vec_duplicate<mode><exec>): Likewise.
28 (vec_extract<mode><scalar_mode>): Likewise.
29 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
30 (gather_load<mode>): Likewise.
31 (gather<mode>_exec): Likewise.
32 (gather<mode>_expr<exec>): Likewise.
33 (gather<mode>_insn_1offset<exec>): Likewise.
34 (gather<mode>_insn_1offset_ds<exec>): Likewise.
35 (gather<mode>_insn_2offsets<exec>): Likewise.
36 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
37 (VEC_INT_MODE): Remove V64QI and V64HI.
38 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
39 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
40 VEC_ALL1REG_MODE.
41 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
42 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
43 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
44 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
45 (maskstore<mode>di): Likewise.
46 (mask_gather_load<mode>): Likewise.
47 (mov_from_lane63_<mode>): Likewise.
48 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
49 and V64HImode vectorization.
50 (gcn_related_vector_mode): New function.
51 (TARGET_VECTORIZE_RELATED_MODE): New define.
52
53 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
54 Kwok Cheung Yeung <kcy@codesourcery.com>
55
56 * omp-low.c (lower_omp_target): For optional arguments, deref once
57 more to obtain the type.
58
59 2019-12-06 Richard Biener <rguenther@suse.de>
60
61 * match.pd (nop_convert): Remove empty match. Use nop_convert?
62 everywhere.
63
64 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
65
66 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
67 for empty vectors. Avoid using ordered_remove and instead
68 shuffle the vector as we go.
69
70 2019-12-06 Richard Biener <rguenther@suse.de>
71
72 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
73 VIEW_CONVERT{0,1,2}.
74 (expr::opt_grp): Add and initialize.
75 (lower_opt_convert): Rename to ...
76 (lower_opt): ... and work on opt_grp, simply switching operations
77 from being optional to being present or not.
78 (has_opt_convert): Rename to ...
79 (has_opt): ... and adjust.
80 (parser::parse_operation): Return the optional opt_grp,
81 remove special-casing of conditional operations and more generally
82 parse [digit]'?'.
83 (parser::parse_expr): Stick on the parsed opt_grp and perform
84 rough verification.
85 (parser::parse_for): Remove now unnecessary code.
86 (main): Likewise.
87 * doc/match-and-simplify.texi: Mention ? now works on all
88 unary operations and also match predicates.
89
90 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
91
92 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
93 functions, not inline clones.
94
95 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
96
97 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
98
99 2019-12-06 Richard Biener <rguenther@suse.de>
100
101 * genmatch.c (c_expr::gen_transform): Emit newlines from line
102 number changes rather than after every semicolon.
103
104 2019-12-06 Richard Biener <rguenther@suse.de>
105
106 PR tree-optimization/92819
107 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
108 into the last lane. For two-element vectors try inserting
109 into the last lane when inserting into the first fails.
110
111 2019-12-06 Jakub Jelinek <jakub@redhat.com>
112
113 * common.opt (fprofile-partial-training): Terminate description with
114 full stop.
115
116 2019-12-05 Martin Sebor <msebor@redhat.com>
117
118 PR middle-end/92622
119 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
120 left uninitialized by get_addr_base_and_unit_offset on failure.
121
122 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
123
124 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
125 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
126 (detect_type_change): Likewise.
127 (detect_type_change_ssa): Likewise.
128 (ipa_analyze_virtual_call_uses): Update.
129
130 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
131
132 * config/nios2/linux.h (LINK_EH_SPEC): Define.
133
134 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
135
136 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
137
138 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
139
140 * cgraphclones.c (localize_profile): New function.
141 (cgraph_node::create_clone): Use it for partial profiles.
142 * common.opt (fprofile-partial-training): New flag.
143 * doc/invoke.texi (-fprofile-partial-training): Document.
144 * ipa-cp.c (update_profiling_info): For partial profiles do not
145 set function profile to zero.
146 * profile.c (compute_branch_probabilities): With partial profile
147 watch if edge count is zero and turn all probabilities to guessed.
148 (compute_branch_probabilities): For partial profiles do not apply
149 profile when entry count is zero.
150 * tree-profile.c (tree_profiling): Only do value_profile_transformations
151 when profile is read.
152
153 2019-12-05 Sudakshina Das <sudi.das@arm.com>
154
155 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
156 check from if condition.
157
158 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
159
160 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
161 and Fortran's optional arguments, unconditionally add the is-present
162 condition before the libgomp call.
163
164 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
165
166 PR middle-end/92768
167 * tree-core.h (OEP_BITWISE): New flag.
168 * fold-const.c (operand_compare::operand_equal_p): Handle it.
169 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
170
171 2019-12-05 Richard Biener <rguenther@suse.de>
172
173 PR middle-end/92818
174 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
175 heuristics on what don't care element to choose.
176 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
177
178 2019-12-05 Martin Liska <mliska@suse.cz>
179
180 PR gcov-profile/92817
181 * coverage.c (build_gcov_exit_decl): Remove superfluous
182 void_type_node.
183
184 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
185
186 * config/msp430/msp430.md (cbranch<mode>4): Use
187 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
188 dest operand of CMP instruction.
189 (cbranchpsi4_real): Likewise.
190 (cbranchqi4_real): Likewise.
191 (cbranchhi4_real): Likewise.
192 (cbranchpsi4_reversed): Likewise.
193 (cbranchqi4_reversed): Likewise.
194 (cbranchhi4_reversed): Likewise.
195
196 2019-12-05 Richard Biener <rguenther@suse.de>
197
198 PR tree-optimization/92803
199 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
200 invariant vector construction.
201
202 2019-12-05 Martin Liska <mliska@suse.cz>
203
204 PR gcov-profile/91971
205 * coverage.c (coverage_init): Mangle full path
206 only when -fprofile-dir is used.
207
208 2019-12-05 Jakub Jelinek <jakub@redhat.com>
209
210 PR target/92791
211 * config/i386/i386.md (movstrict<mode>): Move test for
212 TARGET_PARTIAL_REG_STALL and not optimizing for size from
213 expander's condition to the body - FAIL; in that case.
214
215 2019-12-03 Martin Sebor <msebor@redhat.com>
216
217 PR middle-end/91582
218 * builtins.c (gimple_call_alloc_size): New function.
219 (compute_objsize): Add argument. Call gimple_call_alloc_size.
220 Handle variable offsets and indices.
221 * builtins.h (gimple_call_alloc_size): Declare.
222 (compute_objsize): Add argument.
223 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
224 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
225
226 2019-12-04 Julian Brown <julian@codesourcery.com>
227
228 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
229
230 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
231
232 PR bootstrap/92661
233 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
234 rs6000.h.
235 (altivec_overloaded_builtins): Move to rs6000-call.c.
236 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
237 rs6000-c.c.
238 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
239 (altivec_overloaded_builtins): Moved from rs6000-c.c.
240 (rs6000_common_init_builtins): Do no define builtins that overload
241 builtins that have been disabled.
242
243 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
244
245 * config/arm/arm.c (arm_option_override_internal):
246 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
247
248 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
249
250 * config/aarch64/aarch64.c
251 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
252 (thunderx_tunings): Likewise.
253 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
254 (thunderx2t99_tunings): Likewise.
255 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
256 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
257
258 2019-12-04 Richard Biener <rguenther@suse.de>
259
260 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
261 empty CTOR and memset partial-def registering. Take advantage
262 of fancy offset analysis in memset handling.
263
264 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
265
266 * fold-const.c (native_encode_vector_part): Handle
267 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
268 (native_decode_vector_tree): Delete, moving the bulk of the code to...
269 (native_interpret_vector_part): ...this new function. Use a pointer
270 and length instead of a vec<> and start index.
271 (native_interpret_vector): Use native_interpret_vector_part.
272 (fold_view_convert_vector_encoding): Likewise.
273
274 2019-12-04 Richard Biener <rguenther@suse.de>
275
276 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
277 non-constant defs in the most trivial way.
278 (vn_reference_lookup_3): Also push down SSA partial defs.
279
280 2019-12-04 Martin Liska <mliska@suse.cz>
281
282 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
283 Initialize count of newly created BB.
284
285 2019-12-04 Jakub Jelinek <jakub@redhat.com>
286
287 PR tree-optimization/92734
288 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
289 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
290
291 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
292
293 PR target/92760
294 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
295 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
296
297 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
298
299 * ipa-fnsummary.c: Include tree-into-ssa.h.
300 (compute_fn_summary): Call update_ssa.
301
302 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
303
304 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
305 is set only for symbol in comdat group.
306 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
307
308 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
309
310 * cgraph.c: Include tree-into-ssa.h
311 (cgraph_node::get_body): Call update_ssa.
312 * cgraphunit.c (cgraph_node::expand): Likewise.
313 * lto-streamer-in.c (input_function): Do not call update_ssa.
314
315 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
316
317 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
318 an array element size if array_element_size is already an invariant.
319 Similarly don't gimplify and install a field offset if
320 component_ref_field_offset is already an invariant.
321
322 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
323
324 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
325 with POLY_INT_CST size is made to a fixed-size object, force the
326 object to live in memory.
327
328 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
329
330 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
331 for the data mode.
332
333 2019-12-03 Richard Biener <rguenther@suse.de>
334
335 PR tree-optimization/92758
336 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
337 operation on uniform vectors.
338
339 2019-12-03 Richard Biener <rguenther@suse.de>
340
341 PR tree-optimization/92645
342 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
343 from or to a properly aligned register variable.
344
345 2019-12-03 Matthias Klose <doko@ubuntu.com>
346
347 * Makefile.in (SOURCES): Add doc/lto-dump.1.
348 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
349 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
350
351 2019-12-03 Richard Biener <rguenther@suse.de>
352
353 PR tree-optimization/92751
354 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
355 when a clobber ends up in the partial-def vector.
356 (vn_reference_lookup_3): Let clobbers be handled by the
357 assignment from CTOR handling.
358
359 2019-12-03 Jakub Jelinek <jakub@redhat.com>
360
361 PR tree-optimization/92734
362 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
363 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
364 inner subtraction.
365
366 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
367 Jakub Jelinek <jakub@redhat.com>
368
369 PR target/92744
370 * config/i386/i386.md (peephole2 for *swap<mode>): Use
371 general_reg_operand predicates instead of register_operand.
372
373 2019-12-03 Richard Biener <rguenther@suse.de>
374
375 PR tree-optimization/92645
376 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
377 a full def of a vector via a BIT_INSERT_EXPR.
378
379 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
380
381 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
382 static.
383 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
384 decl.
385
386 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
387
388 PR middle-end/92741
389 * fold-const.c (fold_convertible_p): Check vector types more
390 thoroughly.
391
392 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
393
394 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
395 (aarch64_expand_mov_immediate): Use it when attempting to measure
396 the length of an SVE vector.
397 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
398 SVE is enabled.
399
400 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
401
402 * config/aarch64/aarch64-sve-builtins.h
403 (gimple_folder::force_vector): Declare.
404 * config/aarch64/aarch64-sve-builtins.cc
405 (gimple_folder::force_vector): New function.
406 * config/aarch64/aarch64-sve-builtins-base.cc
407 (svcmp_impl::fold): Likewise.
408 (svdup_impl::fold): Handle svdup_z too.
409
410 2019-12-02 Martin Liska <mliska@suse.cz>
411
412 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
413 function.
414 (debug_tree_odr_name): New.
415 * ipa-utils.h (get_odr_name_for_type): New.
416
417 2019-12-02 Richard Biener <rguenther@suse.de>
418
419 PR tree-optimization/92742
420 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
421 touch the def-type but verify it is consistent with the
422 original stmts.
423
424 2019-12-02 Jakub Jelinek <jakub@redhat.com>
425
426 PR tree-optimization/92712
427 * match.pd ((A * B) +- A -> (B +- 1) * A,
428 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
429 even when we don't know anything about range of A, but do know
430 something about range of B and the simplification won't introduce
431 new UB.
432
433 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
434
435 PR ipa/92133
436 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
437 (ipa-cp-min-recursive-probability): Likewise.
438 * params.opt (ipa-cp-max-recursive-depth): New.
439 (ipa-cp-min-recursive-probability): Likewise.
440 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
441 val_p and unlimited.
442 (self_recursively_generated_p): New function.
443 (get_val_across_arith_op): Likewise.
444 (propagate_vals_across_arith_jfunc): Add constant propagation for
445 self-recursive function.
446 (incorporate_penalties): Do not penalize pure self-recursive function.
447 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
448 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
449 (get_info_about_necessary_edges): Relax hotness check for edge to
450 self-recursive function.
451 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
452
453 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
454
455 PR target/92499
456
457 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
458 objects of flexible types to be small if they have internal linkage
459 or are declared extern.
460 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
461 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
462 instead of the size of the object initializer.
463 * tree.c (flexible_array_type_p): Move from C front end, and
464 generalize to handle fields in non-C structures.
465 * tree.h (flexible_array_type_p): Declare.
466
467 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
468
469 * profile-count.h (profile_count::operator<): Use IPA value for
470 comparsion.
471 (profile_count::operator>): Likewise.
472 (profile_count::operator<=): Likewise.
473 (profile_count::operator>=): Likewise.
474 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
475
476 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
477
478 * ipa-inline.c (compute_max_insns): Return int64_t.
479 (inline_small_functions): Simplify.
480
481 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
482
483 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
484 scaling happen.
485
486 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
487
488 * cgraph.h (symtab_node): Add symver flag.
489 * cgraphunit.c (process_symver_attribute): New.
490 (process_common_attributes): Use process_symver_attribute.
491 * lto-cgraph.c (lto_output_node): Stream symver.
492 (lto_output_varpool_node): Stream symver.
493 (input_overwrite_node): Stream symver.
494 (input_varpool_node): Stream symver.
495 * output.h (do_assemble_symver): Decalre.
496 * symtab.c (symtab_node::dump_base): Dump symver.
497 (symtab_node::verify_base): Verify symver.
498 (symtab_node::resolve_alias): Handle symver.
499 * varasm.c (do_assemble_symver): New function.
500 * varpool.c (varpool_node::assemble_aliases): Use it.
501 * doc/extend.texi: (symver attribute): Document.
502 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
503
504 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
505
506 * target.h (type_context_kind): New enum.
507 (verify_type_context): Declare.
508 * target.def (verify_type_context): New target hook.
509 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
510 * doc/tm.texi: Regenerate.
511 * tree.c (verify_type_context): New function.
512 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
513 Declare.
514 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
515 New function.
516 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
517 (TARGET_VERIFY_TYPE_CONTEXT): Define.
518
519 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
520
521 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
522 * cgraph.h (cgraph_node): Add unit_id and
523 merged_extern_inline.
524 (symbol_table): Add max_unit.
525 (symbol_table::symbol_table): Initialize it.
526 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
527 merged_comdat, merged_extern_inline.
528 (cgraph_node::create_clone): Likewise.
529 (cgraph_node::create_version_clone): Likewise.
530 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
531 calls.
532 * ipa-fnsummary.h (cross_module_call_p): New inline function.
533 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
534 * ipa-inline.c (inline_small_functions): Likewise.
535 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
536 copy merged_comdat and merged_extern_inline.
537 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
538 merged_extern_inline and unit_id.
539 (input_overwrite_node): Stream in these.
540 (input_cgraph_1): Set unit_base.
541 * lto-streamer.h (lto_file_decl_data): Add unit_base.
542 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
543
544 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
545
546 * gcc.c (process_command): Only warn about an ineffective `-x'
547 option if any input files have actually been supplied.
548
549 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
550
551 * doc/install.texi (Options specification): Remove the list of
552 target library subdirectories supporting
553 `--enable-version-specific-runtime-libs'. Document defaults for
554 the option.
555
556 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
557
558 PR rtl-optimization/92283
559 * lra.c (lra): Update reg notes after inheritance sub-pass and
560 before constraint sub-pass.
561
562 2019-11-29 Richard Biener <rguenther@suse.de>
563
564 PR tree-optimization/91003
565 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
566 operand number, avoid handling the non-condition operands of
567 COND_EXPRs as comparisons.
568 (vect_get_constant_vectors): Pass down the operand number.
569 (vect_get_slp_defs): Likewise.
570
571 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
572
573 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
574 generic_expr_could_trap_p to check if the condition of COND_EXPR or
575 VEC_COND_EXPR can trap.
576
577 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
578
579 PR tree-optimization/92677
580 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
581 to zero when dissolving a group of strided accesses.
582
583 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
584
585 PR tree-optimization/92596
586 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
587 operations.
588 (vectorizable_operation): Likewise, instead of relying on
589 vect_get_mask_type_for_stmt to do this.
590 (vect_get_vector_types_for_stmt): Always return a vector type
591 immediately, rather than deferring the choice for boolean results.
592 Use a vector mask type instead of a normal vector if
593 vect_use_mask_type_p.
594 (vect_get_mask_type_for_stmt): Delete.
595 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
596 mask_producers argument and special boolean_type_node handling.
597 (vect_determine_vf_for_stmt): Remove mask_producers argument and
598 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
599 (vect_determine_vectorization_factor): Update call accordingly.
600 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
601 boolean_type_node handling.
602 (vect_slp_analyze_node_operations_1): Likewise.
603
604 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
605
606 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
607 (vect_use_mask_type_p): New function.
608 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
609 mask precision to the pattern statement.
610 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
611 and use it to initialize the new stmt's mask precision.
612 (search_type_for_mask_1): Delete.
613 (search_type_for_mask): Replace with...
614 (integer_type_for_mask): ...this new function. Use the information
615 cached in the stmt_vec_info.
616 (vect_recog_bool_pattern): Update accordingly.
617 (build_mask_conversion): Pass the scalar type associated with the
618 mask type to append_pattern_def_seq.
619 (vect_recog_mask_conversion_pattern): Likewise. Call
620 integer_type_for_mask instead of search_type_for_mask.
621 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
622 of search_type_for_mask.
623 (possible_vector_mask_operation_p): New function.
624 (vect_determine_mask_precision): Likewise.
625 (vect_determine_stmt_precisions): Call it.
626
627 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
628
629 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
630 the slp_tree parameter with a group size parameter.
631 (vect_get_mask_type_for_stmt): Likewise.
632 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
633 (vect_get_mask_type_for_stmt): Likewise.
634 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
635 call accordingly.
636
637 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
638
639 * tree-vect-stmts.c (vectorizable_operation): Punt early
640 on codes that are handled elsewhere.
641
642 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
643
644 * doc/sourcebuild.texi (vect_bool_cmp): Document.
645 * tree-vect-patterns.c (search_type_for_mask_1): If neither
646 operand to a boolean comparison is a natural vector mask,
647 handle both operands like normal integers instead.
648
649 2019-11-29 Richard Biener <rguenther@suse.de>
650
651 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
652 out early for too large objects.
653
654 2019-11-29 Martin Jambor <mjambor@suse.cz>
655
656 PR ipa/92476
657 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
658 the summary only if the summary exists.
659 (find_more_scalar_values_for_callers_subset): Check node_dead in
660 the summary only if the summary exists.
661 (ipcp_store_bits_results): Ignore nodes without lattices.
662 (ipcp_store_vr_results): Likewise.
663 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
664 header files required by them.
665 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
666
667 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
668
669 PR tree-optimization/92710
670 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
671 vector mask arguments.
672
673 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
674
675 * profile-count.c (profile_count::to_cgraph_frequency,
676 profile_count::to_sreal_scale): Check for compaibility of counts.
677 * profile-count.h (compatible_p): Make public; add checking for
678 global0 versus global types.
679 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
680
681 2019-11-29 Richard Biener <rguenther@suse.de>
682
683 PR tree-optimization/92715
684 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
685 out for uniform vectors and source vectors with less elements
686 than the destination.
687
688 2019-11-29 Martin Liska <mliska@suse.cz>
689
690 PR lto/91574
691 * ipa-devirt.c (types_same_for_odr): Check for existence
692 of TYPE_NAMEs first.
693
694 2019-11-29 Richard Biener <rguenther@suse.de>
695
696 PR tree-optimization/92704
697 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
698 in loops performing only loads.
699
700 2019-11-29 Julian Brown <julian@codesourcery.com>
701
702 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
703 BT_DFLOAT128_PTR) Remove.
704 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
705 TI_DFLOAT128_PTR_TYPE): Remove.
706 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
707 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
708 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
709 dfloat128_ptr_type_node): Remove macros.
710
711 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
712
713 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
714 formatting.
715 (*movdi_internal64): Ditto.
716
717 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
718
719 PR target/92602
720 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
721 indexed_or_indirect_operand to be memory_operand.
722 (bswap<mode>2_store for HSI): Ditto.
723 (bswapdi2_load): Ditto.
724 (bswapdi2_store): Ditto.
725
726 2019-11-28 Martin Liska <mliska@suse.cz>
727
728 PR debug/46558
729 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
730 headers for translation.
731
732 2019-11-28 Martin Liska <mliska@suse.cz>
733
734 PR lto/92609
735 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
736 consistently.
737
738 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
739
740 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
741 checks.
742
743 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
744
745 * profile-count.c (profile_count::combine_with_ipa_count): Return
746 uninitialized count if called on ininitialized count.
747
748 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
749
750 * ipa-inline-transform.c (inline_transform): Scale profile before
751 redirecting.
752
753 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
754
755 * profile-count.h (profile_count::max): Work on profiles of different
756 type.
757 (profile_count::apply_scale): Be sure that ret is not local or global0
758 type if num is global.
759
760 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
761
762 * profile-count.h (profile_count::max): Work on profiles of different
763 type.
764 (profile_count::apply_scale): Be sure that ret is not local or global0
765 type if num is global.
766
767 2019-11-28 Martin Jambor <mjambor@suse.cz>
768
769 PR ipa/92697
770 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
771 ifunc_resolvers.
772 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
773 Removed trailig whitespace.
774
775 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
776
777 * profile-count.h (profile_count::combine_with_ipa_count_within):
778 Declare.
779 * profile-count.c (profile_count::combine_with_ipa_count_within):
780 New.
781 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
782 it.
783
784 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
785
786 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
787 of counters are done same way.
788
789 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
790
791 * ipa-cp.c (update_profiling_info): Fix scaling.
792
793 2019-11-28 Richard Biener <rguenther@suse.de>
794
795 PR tree-optimization/92645
796 * tree-inline.c (remap_gimple_stmt): When the return value
797 is not wanted, elide GIMPLE_RETURN.
798
799 2019-11-28 Richard Biener <rguenther@suse.de>
800
801 PR tree-optimization/92645
802 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
803 conversions inside a mode class. Remove restriction on
804 preserving the element size.
805 (simplify_vector_constructor): Deal with the above and for
806 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
807 and VEC_PACK_TRUNC_EXPR.
808
809 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
810
811 Must use push insn to pass varargs arguments of DFmode because
812 otherwise the middle-end generates wrong code.
813
814 PR target/92055
815 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
816
817 2019-11-28 Jakub Jelinek <jakub@redhat.com>
818
819 PR tree-optimization/92691
820 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
821 in function comment.
822 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
823 calls, return !handle_printf_call rather than always returning true.
824 (check_and_optimize_stmt): Describe return value meaning in function
825 comment. Formatting fix.
826
827 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
828
829 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
830 combination of globa0 and global counters..
831
832 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
833
834 PR target/92566
835 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
836 by VECTOR_UNIT_NONE_P instead.
837
838 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
839
840 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
841 Refine VF to VF_AVX512VL.
842
843 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
844
845 * config/rs6000/rs6000.md (movsi_internal): Reformat.
846 (movdi_internal64): Reformat.
847
848 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
849
850 PR bootstrap/92661
851 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
852 builtin if we don't have an actual type.
853 (builtin_function_type): If the builtin function uses a DFP type
854 and decimal float has been disabled, then return NULL_TREE.
855
856 2019-11-27 Jakub Jelinek <jakub@redhat.com>
857
858 PR rtl-optimization/92510
859 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
860 of comparison into a comparison with different mode if both imode and
861 omode are scalar integral modes.
862
863 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
864
865 PR rtl-optimization/90007
866 * recog.c (constrain_operands): Permit hard registers too for
867 memory when LRA is used.
868
869 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
870
871 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
872 between Coldfire and regular m68k.
873 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
874
875 2019-11-27 Richard Biener <rguenther@suse.de>
876
877 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
878 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
879 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
880 * optabs-tree.c (supportable_convert_operation): Do not call
881 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
882 * optabs-tree.h (supportable_convert_operation): Adjust.
883 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
884 * doc/tm.texi: Regenerate.
885 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
886 * tree-vect-generic.c (expand_vector_conversion): Likewise.
887 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
888 unused decl parameter and adjust.
889 (vect_create_vectorized_promotion_stmts): Likewise.
890 (vectorizable_conversion): Adjust.
891
892 2019-11-27 Richard Biener <rguenther@suse.de>
893
894 PR tree-optimization/92690
895 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
896 converting elements not originally converted.
897
898 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
899
900 PR middle-end/92463
901 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
902 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
903 mpfr_rnd_t instead of mp_rnd_t.
904 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
905 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
906 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
907 Use mpfr_exp_t instead of mp_exp_t.
908 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
909 MPFR_RNDx instead of GMP_RNDx.
910 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
911 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
912 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
913 of mp_rnd_t and remove MPFR_RNDx poisoning.
914 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
915
916 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
917
918 PR tree-optimization/91790
919 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
920 DR for vect_setup_realignment when first_stmt_info is different
921 from first_stmt_info_for_drptr.
922
923 2019-11-27 Richard Biener <rguenther@suse.de>
924
925 PR tree-optimization/92645
926 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
927 CTORs with just a subset of the original vectors.
928
929 2019-11-27 Richard Biener <rguenther@suse.de>
930
931 PR middle-end/92674
932 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
933 edges and instead record blocks in bitmap.
934 (gimple_expand_calls_inline): Adjust.
935 (fold_marked_statements): Delay EH cleanup until all folding is
936 done.
937 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
938 inlining finished.
939
940 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
941
942 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
943 LRA is enabled.
944 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
945 disabled.
946
947 2019-11-27 Jakub Jelinek <jakub@redhat.com>
948
949 PR debug/92664
950 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
951
952 2019-11-26 Martin Sebor <msebor@redhat.com>
953
954 PR tree-optimization/92683
955 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
956 inadvertently removed in a previous change. Rename local variable
957 for clarity.
958
959 2019-11-26 Richard Biener <rguenther@suse.de>
960
961 PR middle-end/92669
962 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
963 NULL pre_order.
964
965 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
966
967 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
968
969 2019-11-26 Jakub Jelinek <jakub@redhat.com>
970
971 PR tree-optimization/92644
972 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
973 next to INTEGER_CST checks.
974
975 2019-11-26 Richard Biener <rguenther@suse.de>
976
977 PR tree-optimization/92645
978 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
979 do not build the operation from scalars if the operand is.
980
981 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
982
983 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
984 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
985 definitions.
986
987 2019-11-25 Martin Liska <mliska@suse.cz>
988
989 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
990 up used dump message.
991
992 2019-11-25 Martin Liska <mliska@suse.cz>
993
994 PR bootstrap/92653
995 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
996 too strict checking assert.
997
998 2019-11-25 Joseph Myers <joseph@codesourcery.com>
999
1000 PR c/91985
1001 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1002 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1003 error_mark_node if corresponding global tree node is NULL.
1004 * tree.c (build_common_tree_nodes): Do not initialize
1005 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1006 decimal floating-point not supported.
1007
1008 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1009
1010 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1011 types.
1012
1013 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1014
1015 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1016 Replace code for non-CONST_INT constants with gcc_unreachable.
1017 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1018 compare and test.
1019 (CMPMODE): New mode_iterator.
1020 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1021 cbranch<mode>4.
1022 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1023 cstore<mode>4.
1024 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1025 operand.
1026 (bit test insns patterns): Use nonimmediate_operand, not
1027 register_operand, for source operands that allow memory in
1028 their constraints.
1029 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1030 Use register_operand, not nonimmediate_operand, for the
1031 destinations.
1032 (DBCC): New mode_iterator.
1033 (dbcc peepholes): Use it to reduce duplication.
1034 (trap): Use const_true_rtx, not const1_rtx.
1035 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1036 from m68k_subword_comparison_operand and changed to handle
1037 SImode.
1038
1039 PR target/91851
1040 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1041 declaration.
1042 (m68k_init_cc): New declaration.
1043 (m68k_output_compare_di, m68k_output_compare_si)
1044 (m68k_output_compare_hi, m68k_output_compare_qi)
1045 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1046 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1047 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1048 m68k_output_branch_float, m68k_output_branch_float_rev):
1049 Likewise.
1050 (valid_dbcc_comparison_p_2, flags_in_68881)
1051 (output_btst): Remove declaration.
1052 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1053 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1054 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1055 (flags_compare_op0, flags_compare_op1, flags_operand1,
1056 flags_operand2, flags_valid): New static variables.
1057 (m68k_find_flags_value, m68k_init_cc): New functions.
1058 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1059 remember_compare_flags): New static functions.
1060 (output_dbcc_and_branch): New argument CODE. Use it, and add
1061 PLUS and MINUS to the possible codes. All callers changed.
1062 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1063 and INSN arguments, add CODE arg. Return the comparison code
1064 to use. All callers changed. Use CODE instead of
1065 next_insn_tests_no_inequality, and replace cc_status management
1066 with changing the return code.
1067 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1068 RTX_COMPARE or RTX_COMM_COMPARE.
1069 (output_move_simode, output_move_qimode): Call
1070 handle_flags_for_move.
1071 (notice_update_cc): Delete function.
1072 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1073 m68k_output_compare_hi, m68k_output_compare_qi,
1074 m68k_output_compare_fp, m68k_output_branch_integer,
1075 m68k_output_branch_integer_rev, m68k_output_scc,
1076 m68k_output_branch_float, m68k_output_branch_float_rev,
1077 m68k_output_scc_float): New functions.
1078 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1079 once at the start, and set flags_valid and flags_operand1 if the
1080 flags are usable.
1081 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1082 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1083 definitions.
1084 (CC_STATUS_INIT): Define.
1085 * config/m68k/m68k.md (flags_valid): New define_attr.
1086 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1087 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1088 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1089 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1090 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1091 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1092 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1093 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1094 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1095 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1096 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1097 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1098 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1099 ctrapqi4, conditional_trap): Delete patterns.
1100 (cbranchdi4_insn): New pattern.
1101 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1102 test high part only. When testing EQ or NE, generate beq0_di
1103 and bne0_di patterns directly.
1104 (cstoredi4): When testing LT or GE, test high part only.
1105 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1106 patterns.
1107 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1108 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1109 cmp2_cf_predicate): New define_mode_attrs.
1110 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1111 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1112 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1113 New patterns.
1114 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1115 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1116 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1117 New patterns.
1118 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1119 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1120 Likewise.
1121 (BTST): New define_mode_iterator.
1122 (btst_predicate, btst_constraint, btst_range): New
1123 define_mode_attrs.
1124 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1125 patterns.
1126 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1127 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1128 patterns): Set attr "flags_valid".
1129 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1130 management. Set attr "flags_valid".
1131 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1132 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1133 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1134 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1135 manual CC_STATUS management.
1136 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1137 unnamed strict_lowpart subhi and subqi patterns): Set attr
1138 "flags_valid".
1139 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1140 Remove code to operate on address regs and assert the case
1141 does not occur.
1142 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1143 manual CC_STATUS_INIT.
1144 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1145 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1146 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1147 one_cmplqi2, unnamed strict_lowpart patterns
1148 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1149 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1150 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1151 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1152 CC_STATUS_INIT.
1153 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1154 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1155 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1156 unnamed strict_low_part patterns for HI and
1157 QI versions): Set attr "flags_valid".
1158 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1159 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1160 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1161 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1162 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1163 (various unnamed peepholes): Adjust compare/branch sequences
1164 for new cbranch patterns.
1165 (dbcc peepholes): Likewise, and output the comparison here
1166 as well.
1167 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1168 (fp_src_operand): Allow constant zero.
1169 (address_reg_operand): New predicate.
1170
1171 * rtl.h (inequality_comparisons_p): Remove declaration.
1172 * recog.h (next_insn_tests_no_inequality): Likewise.
1173 * rtlanal.c (inequality_comparisons_p): Delete function.
1174 * recog.c (next_insn_tests_no_inequality): Likewise.
1175
1176 2019-11-25 Richard Biener <rguenther@suse.de>
1177
1178 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1179 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1180 properly re-building the visited hash-map for each lane.
1181
1182 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1183
1184 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1185 gcn_md_reorg): Remove unused variables.
1186 (gcn_emutls_var_init): Add missing (but unreachable) return
1187 to silence warning.
1188 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1189 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1190 an uninitialized variable.
1191
1192 2019-11-25 Martin Jambor <mjambor@suse.cz>
1193
1194 PR ipa/92109
1195 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1196 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1197 (cgraph_materialize_clone): Move removel from clone tree to the
1198 the new method and use it instead.
1199 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1200 bodies of clones, also remove it from the clone tree.
1201
1202 2019-11-25 Martin Jambor <mjambor@suse.cz>
1203
1204 PR ipa/91956
1205 * ipa-sra.c (process_isra_node_results): Put the new node to the
1206 same comdat group as the original node.
1207
1208 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1209
1210 Build double32 / long-double32 multilibs if needed.
1211
1212 PR target/92055
1213 * config/avr/t-avr:
1214 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1215 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1216 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1217 tm_defines and pass to genmultilib.awk.
1218 * config/avr/genmultilib.awk: Use these variables to add double32
1219 and / or long-double32 multilib(s) as needed.
1220 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1221
1222 2019-11-25 Richard Biener <rguenther@suse.de>
1223
1224 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1225 loop body, defaulted to NULL.
1226 (single_likely_exit): Add exit vector argument
1227 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1228 (number_of_iterations_exit): Likewise.
1229 (number_of_iterations_exit_assumptions): Likewise.
1230 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1231 if not NULL.
1232 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1233 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1234 Compute exit vector around call to single_likely_exit.
1235 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1236 loop body to loop_only_exit_p.
1237 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1238 caller.
1239 (number_of_iterations_exit_assumptions): Get loop body from caller
1240 if not NULL.
1241 (number_of_iterations_exit): Pass through new loop body arg.
1242 (infer_loop_bounds_from_undefined): Get loop body from caller.
1243 (estimate_numbers_of_iterations): Compute loop body once.
1244
1245 2019-11-25 Richard Biener <rguenther@suse.de>
1246
1247 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1248 auto_bb_flag instead of an sbitmap for visited handling.
1249
1250 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1251
1252 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1253 iterator.
1254 (vector_fp_comparison_complex): Likewise.
1255 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1256 define_and_split.
1257 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1258 Likewise.
1259 (vector_lt<mode> for VEC_F): Refactor with
1260 vector_fp_comparison_simple.
1261 (vector_le<mode> for VEC_F): Likewise.
1262 (vector_unge<mode> for VEC_F): Likewise.
1263 (vector_unle<mode> for VEC_F): Likewise.
1264 (vector_ne<mode> for VEC_F): Likewise.
1265 (vector_ungt<mode> for VEC_F): Likewise.
1266 (vector_unlt<mode> for VEC_F): Likewise.
1267 (vector_ltgt<mode> for VEC_F): Refactor with
1268 vector_fp_comparison_complex.
1269 (vector_ordered<mode> for VEC_F): Likewise.
1270 (vector_uneq<mode> for VEC_F): Likewise.
1271 (vector_unordered<mode> for VEC_F): Likewise.
1272
1273 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1274
1275 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1276 COMPARE, representing an overflow detection.
1277
1278 * combine.c (combine_instructions): Record costs for jumps.
1279
1280 * combine.c (can_combine_p): Allow autoinc in jumps.
1281
1282 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1283
1284 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1285 * doc/invoke.texi (max-inline-insns-single-O2,
1286 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1287 early-inlining-insns-O2): Remove documentation.
1288 * ipa-fnsummary.c (analyze_function_body,
1289 compute_fn_summary): Use opt_for_fn when accessing parameters.
1290 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1291 inline_insns_auto, can_inline_edge_by_limits_p,
1292 want_early_inline_function_p, big_speedup_p,
1293 want_inline_small_function_p, want_inline_self_recursive_call_p,
1294 recursive_inlining, compute_max_insns, inline_small_functions):
1295 Likewise.
1296 * opts.c (default_options): Add -O3 defaults for
1297 OPT__param_early_inlining_insns_,
1298 OPT__param_inline_heuristics_hint_percent_,
1299 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1300 * params.opt (-param=early-inlining-insns-O2=,
1301 -param=inline-heuristics-hint-percent-O2=,
1302 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1303 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1304 -param=inline-min-speedup=, -param=inline-unit-growth=,
1305 -param=large-function-growth=, -param=large-stack-frame=,
1306 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1307 -param=max-inline-insns-recursive=,
1308 -param=max-inline-insns-recursive-auto=,
1309 -param=max-inline-insns-single=,
1310 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1311 -param=max-inline-recursive-depth=,
1312 -param=max-inline-recursive-depth-auto=,
1313 -param=min-inline-recursive-probability=,
1314 -param=partial-inlining-entry-probability=,
1315 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1316 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1317 Optimization.
1318
1319 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1320
1321 * ipa-fnsummary.c: Fix comment typos.
1322 * ipa-ref.h: Likewise.
1323 * ipa-predicate.h: Likewise.
1324 * ipa-split.c: Likewise.
1325 * ipa-inline-analysis.c: Likewise.
1326 * ipa-predicate.c: Likewise.
1327 * ipa-devirt.c: Likewise.
1328 * ipa-icf.h: Likewise.
1329 * profile-count.c: Likewise.
1330 * ipa-icf.c: Likewise.
1331 (sem_function::equals_wpa): Fix typos in dump messages.
1332 * ipa-icf-gimple.h: Fix comment typos.
1333 * ipa-inline-transform.c: Likewise.
1334 * ipa-polymorphic-call.c: Likewise.
1335 * ipa-fnsummary.h: Likewise.
1336 * ipa-inline.c: Likewise.
1337 (dump_inline_stats): Fix typo in debug dump message.
1338 * profile-count.h: Fix comment typos.
1339
1340 PR target/92615
1341 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1342 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1343 register_operand, force x into register before storing it into dest.
1344 Formatting fix.
1345
1346 PR middle-end/83859
1347 * doc/extend.texi (attribute access): Fix a typo.
1348
1349 PR rtl-optimization/92610
1350 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1351 cse_cfg_altered is set, even when tem is 0.
1352 (rest_of_handle_cse_after_global_opts): Likewise.
1353
1354 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1355
1356 PR c++/92458
1357 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1358 tree_hash): Move to ...
1359 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1360 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1361 types.
1362 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1363
1364 PR tree-optimization/92618
1365 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1366 containing the auto_vec and a tree.
1367 (undistribute_bitref_for_vector): Handle the case when element type
1368 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1369 fixes.
1370
1371 2019-11-22 Martin Sebor <msebor@redhat.com>
1372
1373 PR middle-end/83859
1374 * attribs.h (struct attr_access): New.
1375 * attribs.c (decl_attributes): Add an informational note.
1376 * builtins.c (check_access): Make extern. Consistently set no-warning
1377 after issuing a warning. Handle calls through function pointers. Set
1378 no-warning.
1379 * builtins.h (check_access): Declare.
1380 * calls.c (rdwr_access_hash): New type.
1381 (rdwr_map): Same.
1382 (init_attr_rdwr_indices): New function.
1383 (maybe_warn_rdwr_sizes): Same.
1384 (initialize_argument_information): Call init_attr_rdwr_indices.
1385 Call maybe_warn_rdwr_sizes.
1386 (get_size_range): Avoid null argument.
1387 * doc/extend.texi (attribute access): Document new attribute.
1388
1389 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1390
1391 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1392 (ACC_LDS_SIZE): Define.
1393 (OTHER_LDS_SIZE): Define.
1394 (LDS_SIZE): Redefine using above.
1395 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1396
1397 2019-11-22 Martin Sebor <msebor@redhat.com>
1398
1399 PR middle-end/88226
1400 * builtins.c (check_nul_terminated_array): New function.
1401 (fold_builtin_0): Remove declaration.
1402 (fold_builtin_1): Same.
1403 (fold_builtin_2): Same.
1404 (fold_builtin_3): Same.
1405 (fold_builtin_strpbrk): Add argument.
1406 (fold_builtin_strspn): Same.
1407 (fold_builtin_strcspn): Same.
1408 (expand_builtin_strcat): Call it. Remove unused argument.
1409 (expand_builtin_stpncpy): Same.
1410 (expand_builtin_strncat): Same.
1411 (expand_builtin_strncpy): Same. Adjust indentation.
1412 (expand_builtin_strcmp): Same.
1413 (expand_builtin_strncmp): Same.
1414 (expand_builtin_fork_or_exec): Same.
1415 (expand_builtin): Handle more built-ins.
1416 (fold_builtin_2): Add argument.
1417 (fold_builtin_n): Make static. Add argument.
1418 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1419 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1420 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1421 (fold_call_stmt): Pass new argument to fold_builtin_n.
1422 * builtins.h: Correct a comment.
1423 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1424 check_nul_terminated_array.
1425 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1426 check_nul_terminated_array.
1427 (handle_builtin_strchr): Same.
1428 (handle_builtin_string_cmp): Same.
1429
1430 2019-11-22 Martin Sebor <msebor@redhat.com>
1431
1432 PR tree-optimization/92501
1433 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1434 handle unterminated arrays. Rename local variables for clarity.
1435
1436 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1437
1438 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1439 granulated_sgprs according to architecture.
1440
1441 2019-11-22 Jan Hubicka <jh@suse.cz>
1442
1443 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1444 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1445 (memory_block_pool::reduce_free_list): ... this one.
1446 (memory_block_pool::trim): New static function.
1447 * memory-block.h (memory_block_pool::freelist_size): New constant
1448 (memory_block_pool::clear_free_list): Rename to ...
1449 (memory_block_pool::reduce_free_list): ... this one.
1450 (memory_block_pool::trim): Declare.
1451
1452 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1453
1454 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1455 vect_cost_for_stmt.
1456 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1457 here rather than...
1458 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1459
1460 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1461
1462 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1463 (bic_cmp0_noout): New pattern.
1464 (bic_cmp0): Likewise.
1465 (neg_scc_insn): Remove pattern.
1466 (not_scc_insn): Likewise.
1467
1468 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1469
1470 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1471
1472 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1473
1474 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1475 pedwarn instead of warning_at for fallthrough not preceding a case
1476 or default label.
1477
1478 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1479
1480 PR tree-optimization/92608
1481 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1482 of dyn_cast.
1483
1484 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1485
1486 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1487 New predicate.
1488 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1489 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1490 special for FP comparisons that need a cror instruction eventually.
1491 (rs6000_emit_fp_cror): New function.
1492 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1493 instruction, for normal FP modes, with HONOR_NANS.
1494 (rs6000_emit_cbranch): Reformat.
1495 * config/rs6000/rs6000.md (fp_rev): New iterator.
1496 (fp_two): New iterator.
1497 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1498 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1499 *cbranch_2insn: New define_insn_and_split.
1500
1501 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1502
1503 PR tree-optimization/92526
1504 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1505 versioning for alignment if the accesses do not have a consistent
1506 mask, rather than asserting that the masks are consistent.
1507
1508 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1509
1510 PR tree-optimization/92595
1511 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1512 check.
1513 (vectorizable_store, vectorizable_load): Likewise.
1514
1515 2019-11-21 Jan Hubicka <jh@suse.cz>
1516
1517 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1518 (resolve_noninline_speculation, inline_small_functions): Avoid
1519 redundant updates.
1520
1521 2019-11-21 Richard Biener <rguenther@suse.de>
1522
1523 * lra.c (lra_insn_recog_data_pool): New.
1524 (free_insn_recog_data): Adjust.
1525 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1526 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1527
1528 2019-11-21 Richard Biener <rguenther@suse.de>
1529
1530 PR tree-optimization/92596
1531 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1532
1533 2019-11-21 Jan Hubicka <jh@suse.cz>
1534
1535 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1536 ready for some vectors to not be allocated.
1537 (evaluate_properties_for_edge): Document better; make
1538 known_vals and known_aggs caller allocated; avoid determining
1539 values of parameters which are not used.
1540 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1541 known_aggs.
1542 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1543 (do_estimate_edge_size): Likewise.
1544 (do_estimate_edge_hints): Likewise.
1545 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1546 values are not known.
1547 (ipa_release_agg_values): Add option to not release vector itself.
1548 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1549
1550 2019-11-21 Richard Biener <rguenther@suse.de>
1551
1552 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1553 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1554 (loop_iterator::loop_iterator): Adjust.
1555 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1556 (compute_dominance_frontiers): ... this. Hoist invariant
1557 get_immediate_dominator call.
1558 (compute_idf): Use a work-set instead of a work-list for more
1559 optimal iteration order and duplicate avoidance.
1560 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1561 the vector all the time, instead pre-allocate the vector only
1562 once.
1563 (delete_update_ssa): Simplify.
1564 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1565
1566 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1567
1568 PR tree-optimization/91355
1569 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1570 for early_bb scaled count with best_bb count comparison.
1571
1572 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1573 preffer -> prefer.
1574 * ipa-inline.c (edge_badness): Likewise.
1575 * lto-streamer.h (class lto_location_cache): Likewise.
1576 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1577 gratutious -> gratuitous.
1578
1579 2019-11-21 Richard Biener <rguenther@suse.de>
1580
1581 Revert
1582 2019-09-17 Richard Biener <rguenther@suse.de>
1583
1584 PR tree-optimization/91790
1585 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1586 use the correct DR for setting up realignment.
1587
1588 2019-11-21 Richard Biener <rguenther@suse.de>
1589
1590 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1591 (equiv_class_obstack): New.
1592 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1593 (perform_var_substitution): Initialize equiv_class_obstack.
1594 (free_var_substitution_info): Free equiv_class_obstack.
1595
1596 2019-11-20 Jan Hubicka <jh@suse.cz>
1597
1598 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1599 edge growth when callee function is very large.
1600 * ipa-inline.h (estimate_min_edge_growth): New.
1601
1602 2019-11-20 Jan Hubicka <jh@suse.cz>
1603
1604 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1605 negative time in calls summary; correct roundoff errors
1606 leading to negative times.
1607 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1608 if present.
1609 (ipa_update_overall_fn_summary): Add RESET parameter.
1610 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1611 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1612
1613 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1614
1615 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1616 def types for two-operation SLP.
1617
1618 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1619
1620 PR testsuite/92366
1621 * doc/sourcebuild.texi (vect_char_add): Document.
1622
1623 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1624
1625 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1626 * function.c (record_final_call): Record even calls that might
1627 have been in the cgraph.
1628 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1629 callees.
1630
1631 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1632
1633 * configure.ac: Use https for gcc.gnu.org
1634 * configure: Regenerated.
1635 * doc/install.texi: Use https for gcc.gnu.org.
1636 * doc/sourcebuild.texi: Likewise.
1637
1638 2019-11-20 Julian Brown <julian@codesourcery.com>
1639
1640 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1641
1642 2019-11-20 Jan Hubicka <jh@suse.cz>
1643
1644 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1645 parameter and update call_size_time_table.
1646 (ipa_fn_summary::max_size_time_table_size): New constant.
1647 (estimate_calls_size_and_time_1): Break out from ...
1648 (estimate_calls_size_and_time): ... here; implement summary production.
1649 (summarize_calls_size_and_time): New function.
1650 (ipa_call_context::estimate_size_and_time): Bypass
1651 estimate_calls_size_and_time for leaf functions.
1652 (ipa_update_overall_fn_summary): Likewise.
1653 * ipa-fnsummary.h (call_size_time_table): New.
1654 (ipa_fn_summary::account_size_time): Update prototype.
1655
1656 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1657
1658 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1659
1660 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1661
1662 PR85678
1663 * common.opt (fcommon): Change init to 1.
1664 * doc/invoke.texi (-fcommon): Update documentation.
1665
1666 2019-11-20 Jan Hubicka <jh@suse.cz>
1667
1668 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1669 to ordinary array.
1670
1671 2019-11-20 Jan Hubicka <jh@suse.cz>
1672
1673 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1674 Add allocator parameter.
1675 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1676 (fibonacci_heap<K,V>::m_allocator): New.
1677 (fibonacci_heap<K,V>::m_own_allocator): New.
1678 (fibonacci_heap<K,V>::insert): Use allocator.
1679 (fibonacci_heap<K,V>::extract_min): Likewise.
1680 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1681 allocator.
1682 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1683 on stack.
1684 * fibonacci_heap.c: Include alloc-pool
1685 (test_empty_heap): Initialize allocator.
1686 (test_union): Likewise.
1687 * bb-reorder.c: Include alloc-pool.h.
1688 * tracer.c: Inlclude alloc-pool.h.
1689
1690 2019-11-20 Jan Hubicka <jh@suse.cz>
1691
1692 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1693 Preallocate for 32 entries.
1694 (DFS::worklist): Likewise.
1695 (DFS::DFS): Do not initialize sccstack and worklist.
1696 (DFS::~DFS): Do not release sccstack.
1697
1698 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1699
1700 PR target/92573
1701 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1702 Handle UNORDERED if !HONOR_NANS.
1703
1704 2019-11-20 Jan Hubicka <jh@suse.cz>
1705
1706 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1707 (edge_badness): ... here.
1708 (inline_small_functions): Use monotonicity of badness calculation
1709 to avoid redundant updates.
1710
1711 2019-11-20 Richard Biener <rguenther@suse.de>
1712
1713 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1714 constructors we are actually analyzing.
1715 (vect_slp_check_for_constructors): Do not vectorize uniform
1716 constuctors, do not dump here.
1717
1718 2019-11-20 Richard Biener <rguenther@suse.de>
1719
1720 PR tree-optimization/92537
1721 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1722 vectorization validity check...
1723 (vect_slp_analyze_operations): ... here.
1724
1725 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1726
1727 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1728 (make_pass_arc_predicate_delay_insns): Likewise.
1729 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1730 method, remove clone.
1731 (class pass_arc_predicate_delay_insns): Likewise.
1732 (arc_init): Remove registering of ARC specific passes.
1733 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1734 * config/arc/arc-passes.def: New file.
1735
1736 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR middle-end/90840
1739 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1740 and has a mode that doesn't have corresponding integral type.
1741
1742 PR target/90867
1743 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1744 clear opts->x_ix86_isa_flags{,2} here...
1745 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1746 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1747
1748 PR c/90898
1749 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1750 assertion.
1751 (insert_clobbers_for_var): Fix a typo in function comment.
1752
1753 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1754 Jakub Jelinek <jakub@redhat.com>
1755
1756 PR middle-end/91195
1757 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1758 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1759 load.
1760
1761 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1762
1763 Make 0-series device specs work with older versions of avr-gcc.
1764
1765 PR target/92545
1766 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1767 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1768 <*link_pm_base_address>: Don't write spec.
1769 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1770
1771 2019-11-20 Richard Biener <rguenther@suse.de>
1772
1773 PR c/92088
1774 * builtins.c (compute_objsize): Deal with VLAs.
1775
1776 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1777
1778 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1779 from common code.
1780 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1781 call new function.
1782 (power9_sched_reorder2): Call new function.
1783 (rs6000_sched_reorder2): Likewise.
1784
1785 2019-11-18 Jan Hubicka <jh@suse.cz>
1786
1787 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1788 (estimate_calls_size_and_time): Update.
1789
1790 2019-11-18 Jan Hubicka <jh@suse.cz>
1791
1792 * ipa-inline.c (inlining_speedup): New function.
1793 (edge_badness): Use it.
1794
1795 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1796 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1797
1798 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1799 Mark as not having "likely" version.
1800 * config/mips/mips.md (insn_count): The simd_div instruction with
1801 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1802 (can_delay): Exclude simd_branch.
1803 (defile_delay *): Add simd_branch instructions.
1804 They have one regular delay slot.
1805
1806 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1807
1808 Revert:
1809 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1810
1811 * cse.c (cse_insn): Delete no-op register moves too.
1812 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1813 Take a second comparison to control the value for NE.
1814 (mask_to_comparison): Handle unsigned comparisons.
1815 (simplify_logical_relational_operation): Likewise. Update call
1816 to comparison_to_mask. Handle AND if !HONOR_NANs.
1817 (simplify_binary_operation_1): Call the above for AND too.
1818
1819 2019-11-19 Martin Liska <mliska@suse.cz>
1820
1821 * toplev.c (general_init): Move the call...
1822 (toplev::main): ... here as we need init_options_struct
1823 being called.
1824
1825 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1826
1827 PR target/79262
1828 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1829 vec_to_scalar_cost.
1830
1831 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1832
1833 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1834 (armv7-a): Likewise.
1835 (armv7ve): Likewise.
1836
1837 2019-11-19 Richard Biener <rguenther@suse.de>
1838
1839 PR tree-optimization/92581
1840 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1841 condition reduction chains gather all conditions involved
1842 for computing the index reduction vector.
1843
1844 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1845
1846 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1847 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1848 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1849 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1850 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1851 (aarch64_init_memtag_builtins): New.
1852 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1853 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1854 (aarch64_expand_builtin_memtag): New.
1855 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1856 (AARCH64_BUILTIN_SUBCODE): New macro.
1857 (aarch64_resolve_overloaded_memtag): New.
1858 (aarch64_resolve_overloaded_builtin_general): New. Call
1859 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1860 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1861 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1862 (aarch64_resolve_overloaded_builtin): Call
1863 aarch64_resolve_overloaded_builtin_general.
1864 * config/aarch64/aarch64-protos.h
1865 (aarch64_resolve_overloaded_builtin_general): New declaration.
1866 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1867 (TARGET_MEMTAG): Likewise.
1868 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1869 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1870 (irg, gmi, subp, addg, ldg, stg): New instructions.
1871 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1872 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1873 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1874 (__arm_mte_get_tag): Likewise.
1875 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1876 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1877 * config/arm/types.md (memtag): New.
1878 * doc/invoke.texi (-memtag): Update description.
1879
1880 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1881
1882 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1883 to define __GCC_ASM_FLAG_OUTPUTS__.
1884 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1885 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1886 depending on TARGET_THUMB1.
1887 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1888
1889 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1890
1891 PR target/92549
1892 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1893
1894 PR middle-end/91450
1895 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1896 operand is negative and one non-negative, compare the non-negative
1897 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1898 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1899 and s2 == 0, unless one of them is known to be negative. Remove
1900 tem2 variable, use tem where tem2 has been used before.
1901
1902 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1903
1904 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1905
1906 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1907
1908 PR tree-optimization/92557
1909 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1910 vmode rather than asserting it always is.
1911
1912 2019-11-19 Richard Biener <rguenther@suse.de>
1913
1914 PR tree-optimization/92554
1915 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1916 for the actual condition stmt and deal with sign-changes.
1917
1918 2019-11-19 Richard Biener <rguenther@suse.de>
1919
1920 PR tree-optimization/92555
1921 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1922 for non-SLP stmts.
1923
1924 2019-11-19 Martin Liska <mliska@suse.cz>
1925
1926 PR bootstrap/92540
1927 * config/riscv/riscv.c (riscv_address_insns): Initialize
1928 addr in order to remove boostrap -Wmaybe-uninitialized
1929 error.
1930
1931 2019-11-18 Martin Sebor <msebor@redhat.com>
1932
1933 PR tree-optimization/92493
1934 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1935 assignment.
1936
1937 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1938
1939 * cfgloop.c (get_loop_body_in_custom_order): New.
1940 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1941 * tree-loop-distribution.c (class loop_distribution): New.
1942 (bb_top_order_cmp): Remove.
1943 (bb_top_order_cmp_r): New.
1944 (create_rdg_vertices): Move into class loop_distribution.
1945 (stmts_from_loop): Same as above.
1946 (update_for_merge): Same as above.
1947 (partition_merge_into): Same as above.
1948 (get_data_dependence): Same as above.
1949 (data_dep_in_cycle_p): Same as above.
1950 (update_type_for_merge): Same as above.
1951 (build_rdg_partition_for-vertex): Same as above.
1952 (classify_builtin_ldst): Same as above.
1953 (classify_partition): Same as above.
1954 (share_memory_accesses): Same as above.
1955 (rdg_build_partitions): Same as above.
1956 (pg_add_dependence_edges): Same as above.
1957 (build_partition_graph): Same as above.
1958 (merge_dep_scc_partitions): Same as above.
1959 (break_alias_scc_partitions): Same as above.
1960 (finalize_partitions): Same as above.
1961 (distribute_loop): Same as above.
1962 (bb_top_order_init): New method
1963 (bb_top_order_destroy): New method.
1964 (get_bb_top_order_index_size): New method.
1965 (get_bb_top_order_index_index): New method.
1966 (get_bb_top_order_index_index): New method.
1967 (loop_distribution::execute): New method.
1968 (pass_loop_distribution::execute): Instantiate loop_distribution.
1969
1970 2019-11-18 Jan Hubicka <jh@suse.cz>
1971
1972 PR ipa/92508
1973 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1974 caches.
1975 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1976
1977 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1978
1979 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1980 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1981 * doc/md.texi: Document them.
1982 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1983 internal functions.
1984 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1985 * internal-fn.c (check_ptrs_direct): New macro.
1986 (expand_check_ptrs_optab_fn): Likewise.
1987 (direct_check_ptrs_optab_supported_p): Likewise.
1988 (internal_check_ptrs_fn_supported_p): New fuction.
1989 * tree-data-ref.c: Include internal-fn.h.
1990 (create_ifn_alias_checks): New function.
1991 (create_intersect_range_checks): Use it.
1992 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1993 (optab, cmp_op): Handle it.
1994 (raw_war, unspec): New int attributes.
1995 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1996 constants.
1997 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1998 New predicate.
1999 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2000 expander.
2001 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2002 pattern.
2003
2004 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2005
2006 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2007 empty constructors.
2008
2009 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2010
2011 * cse.c (cse_insn): Delete no-op register moves too.
2012 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2013 Take a second comparison to control the value for NE.
2014 (mask_to_comparison): Handle unsigned comparisons.
2015 (simplify_logical_relational_operation): Likewise. Update call
2016 to comparison_to_mask. Handle AND if !HONOR_NANs.
2017 (simplify_binary_operation_1): Call the above for AND too.
2018
2019 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2020
2021 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2022 splitting the main code out into...
2023 (native_encode_vector_part): ...this new function.
2024 (native_decode_vector_tree): New function.
2025 (fold_view_convert_vector_encoding): Likewise.
2026 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2027 to VECTOR_TYPEs.
2028
2029 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * tree-data-ref.c (create_intersect_range_checks_index): If the
2032 alias pair describes simple WAW and WAR dependencies, just check
2033 whether the first B access overlaps later A accesses.
2034 (create_waw_or_war_checks): New function that performs the same
2035 optimization on addresses.
2036 (create_intersect_range_checks): Call it.
2037
2038 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2039
2040 * lra-constraints.c (valid_address_p): Take the operand and a
2041 constraint as argument. If the operand is a MEM and the constraint
2042 is a memory constraint, check whether the eliminated form of the
2043 MEM already satisfies the constraint.
2044 (process_address_1): Update calls accordingly.
2045
2046 2019-11-18 Tom Tromey <tromey@adacore.com>
2047
2048 * doc/tm.texi: Rebuild.
2049 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2050 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2051
2052 2019-11-18 Richard Biener <rguenther@suse.de>
2053
2054 PR tree-optimization/92516
2055 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2056 argument, hoist bst_map creation/destruction to ...
2057 (vect_analyze_slp): ... here, forming a true graph with
2058 SLP instances being the entries.
2059 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2060 (vect_detect_hybrid_slp): Use one visited set for all
2061 graph entries.
2062 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2063 to hash-sets of slp_tree.
2064 (vect_slp_analyze_operations): Likewise.
2065 (vect_bb_slp_scalar_cost): Remove wrapper.
2066 (vect_bb_vectorization_profitable_p): Use one visited set for
2067 all graph entries.
2068 (vect_schedule_slp_instance): Elide bst_map use.
2069 (vect_schedule_slp): Likewise.
2070
2071 2019-11-18 Richard Biener <rguenther@suse.de>
2072
2073 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2074 was vectorized with just external refs fail.
2075
2076 2019-11-18 Martin Liska <mliska@suse.cz>
2077
2078 PR ipa/92525
2079 * ipa-icf.c (sem_function::init): Unset m_checker
2080 at the end of the function.
2081
2082 2019-11-18 Richard Biener <rguenther@suse.de>
2083
2084 PR tree-optimization/92558
2085 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2086 reducting the width of a reduction vector def update new_phis.
2087
2088 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2089
2090 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2091 and s390*-*-linux-musl* targets.
2092 * configure: Regenerate.
2093
2094 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2095
2096 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2097 (MUSL_DYNAMIC_LINKER64): Define.
2098
2099 2019-11-18 Martin Liska <mliska@suse.cz>
2100
2101 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2102 message for an unknown counter.
2103 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2104 (dbg_cnt_process_opt): Remove unreachable code.
2105
2106 2019-11-18 Martin Liska <mliska@suse.cz>
2107
2108 PR ipa/92529
2109 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2110 Compare LHS types of NOP_EXPR.
2111
2112 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2113
2114 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2115 "initial_pass_name" argument -- by running "*clean_state" pass.
2116 Also free the "initial_pass_name" when done.
2117
2118 2019-11-18 Richard Biener <rguenther@suse.de>
2119
2120 PR rtl-optimization/92462
2121 * alias.c (find_base_term): Restrict the look through ANDs.
2122 (find_base_value): Likewise.
2123
2124 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2125
2126 Add support for AVR devices from the 0-series.
2127
2128 PR target/92545
2129 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2130 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2131 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2132 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2133 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2134 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2135 for spec definitions.
2136 * doc/avr-mmcu.texi: Regenerate.
2137
2138 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2139
2140 PR target/92448
2141 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2142 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2143 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2144 (ix86_reassociation_width): Ditto.
2145 * config/i386/i386-options.c (ix86_option_override_internal):
2146 Replace TARGET_AVX128_OPTIAML with
2147 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2148 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2149 (TARGET_AVX128_OPTIMAL): Deleted.
2150 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2151 DEF_TUNE.
2152
2153 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2154
2155 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2156 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2157 just SI.
2158 (cceq_rev_compare): Rename to...
2159 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2160 just SI.
2161 (define_split for <bd>tf_<mode>): Add SImode first argument to
2162 gen_cceq_ior_compare.
2163
2164 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2165
2166 * common/config/powerpcspe: Delete.
2167
2168 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2169
2170 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2171 output in UNSPEC_WRFFR.
2172
2173 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2174
2175 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2176 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2177
2178 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2179
2180 * tree-data-ref.c (create_intersect_range_checks_index)
2181 (create_intersect_range_checks): Print dump messages.
2182
2183 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2184
2185 * tree-data-ref.c (dump_alias_pair): New function.
2186 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2187
2188 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2189
2190 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2191 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2192 merging data references with different steps.
2193 (create_intersect_range_checks_index): Take a
2194 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2195 Bail out if DR_ALIAS_MIXED_STEPS is set.
2196 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2197 instead of two dr_with_seg_lens. Update call to
2198 create_intersect_range_checks_index.
2199 (create_runtime_alias_checks): Update call accordingly.
2200
2201 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2202
2203 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2204 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2205 (dr_with_seg_len_pair_t::sequencing): New enum.
2206 (dr_with_seg_len_pair_t::flags): New member variable.
2207 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2208 parameter and initialize the flags member variable.
2209 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2210 call accordingly.
2211 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2212 Ensure the two data references in an alias pair are in statement
2213 order, if there is a defined order.
2214 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2215 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2216 swapped the references in a dr_with_seg_len_pair_t. OR together
2217 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2218 try to restore the original dr_with_seg_len order, updating the
2219 flags if that fails.
2220
2221 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2224 swapping the dr_as based on init values until we've decided
2225 whether to merge them.
2226
2227 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2228
2229 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2230 two accesses in each dr_with_seg_len_pair_t before trying to
2231 combine separate dr_with_seg_len_pair_ts.
2232 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2233 that here.
2234 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2235
2236 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2237
2238 * config/aarch64/aarch64-sve.md
2239 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2240 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2241 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2242 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2243 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2244 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2245 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2246 pattern.
2247 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2248 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2249 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2250 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2251
2252 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2253
2254 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2255 (SVE_4HSI): New mode iterators.
2256 (ANY_EXTEND2): New code iterator.
2257 * config/aarch64/aarch64-sve.md
2258 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2259 Extend to...
2260 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2261 ...this, handling extension to partial modes as well as full modes.
2262 Describe the extension as a predicated rather than unpredicated
2263 extension.
2264 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2265 Likewise extend to...
2266 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2267 ...this, making the same adjustments.
2268 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2269 Likewise extend to...
2270 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2271 ...this, making the same adjustments.
2272 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2273 Likewise extend to...
2274 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2275 ...this, making the same adjustments.
2276 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2277 New pattern.
2278 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2279 extension predicate.
2280 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2281 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2282 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2283 Describe the extension as a predicated rather than unpredicated
2284 extension.
2285 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2286 Likewise. Canonicalize to a constant extension predicate.
2287 * config/aarch64/aarch64-sve-builtins-base.cc
2288 (svld1_gather_extend_impl::expand): Add an extra predicate for
2289 the extension.
2290 (svldff1_gather_extend_impl::expand): Likewise.
2291
2292 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2293
2294 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2295 iterators.
2296 * config/aarch64/aarch64-sve.md
2297 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2298 (gather_load<SVE_24:mode><v_int_container>): ...this.
2299 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2300 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2301 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2302 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2303 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2304 New pattern.
2305 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2306 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2307 Allow the nominal extension predicate to be different from the
2308 load predicate.
2309 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2310 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2311
2312 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2313
2314 * config/aarch64/aarch64-sve.md
2315 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2316 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2317 function.
2318 (aarch64_sve_adjust_stmt_cost): Call it.
2319
2320 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2321
2322 * config/aarch64/aarch64-sve.md
2323 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2324 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2325 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2326 Combine into...
2327 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2328 ...this new pattern, handling extension to partial modes as well
2329 as full modes. Describe the extension as a predicated rather than
2330 unpredicated extension.
2331 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2332 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2333 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2334 Combine into...
2335 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2336 ...this new pattern, handling extension to partial modes as well
2337 as full modes. Describe the extension as a predicated rather than
2338 unpredicated extension.
2339 * config/aarch64/aarch64-sve-builtins.cc
2340 (function_expander::use_contiguous_load_insn): Add an extra
2341 predicate for extending loads.
2342 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2343 (aarch64_sve_adjust_stmt_cost): Likewise.
2344 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2345 the cost of SVE vector stmts.
2346
2347 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2348
2349 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2350 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2351 * config/aarch64/aarch64-sve.md
2352 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2353 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2354 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2355 comment. Avoid new narrower_mask ambiguity.
2356 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2357 (*cond_uxt<mode>_2): Update comment.
2358 (*cond_uxt<mode>_any): Likewise.
2359
2360 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2361
2362 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2363 float modes.
2364 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2365 function.
2366 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2367 new vector float modes.
2368 (aarch64_sve_container_bits): New function.
2369 (aarch64_sve_pred_mode): Likewise.
2370 (aarch64_get_mask_mode): Use it.
2371 (aarch64_sve_element_int_mode): Handle structure modes and partial
2372 modes.
2373 (aarch64_sve_container_int_mode): New function.
2374 (aarch64_vectorize_related_mode): Return SVE modes when given
2375 SVE modes. Handle partial modes, taking the preferred number
2376 of units from the size of the given mode.
2377 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2378 in registers.
2379 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2380 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2381 (aarch64_split_sve_subreg_move): Use the mode form of
2382 aarch64_sve_pred_mode.
2383 (aarch64_secondary_reload): Handle partial modes in the same way
2384 as full big-endian vectors.
2385 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2386 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2387 merging with the Advanced SIMD modes. If two modes have the
2388 same size, try the Advanced SIMD mode first.
2389 (aarch64_simd_valid_immediate): Use the container rather than
2390 the element mode for INDEX constants.
2391 (aarch64_simd_vector_alignment): Make the alignment of partial
2392 SVE vector modes the same as their minimum size.
2393 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2394 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2395 (mov<SVE_ALL:mode>): ...this.
2396 (movmisalign<SVE_FULL:mode>): Extend to...
2397 (movmisalign<SVE_ALL:mode>): ...this.
2398 (*aarch64_sve_mov<mode>_le): Rename to...
2399 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2400 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2401 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2402 partial modes regardless of endianness.
2403 (aarch64_sve_reload_be): Rename to...
2404 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2405 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2406 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2407 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2408 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2409 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2410 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2411 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2412 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2413 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2414 (maskload<SVE_FULL:mode><vpred>): Extend to...
2415 (maskload<SVE_ALL:mode><vpred>): ...this.
2416 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2417 (maskstore<SVE_ALL:mode><vpred>): ...this.
2418 (vec_duplicate<SVE_FULL:mode>): Extend to...
2419 (vec_duplicate<SVE_ALL:mode>): ...this.
2420 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2421 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2422 (sve_ld1r<SVE_FULL:mode>): Extend to...
2423 (sve_ld1r<SVE_ALL:mode>): ...this.
2424 (vec_series<SVE_FULL_I:mode>): Extend to...
2425 (vec_series<SVE_I:mode>): ...this.
2426 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2427 (*vec_series<SVE_I:mode>_plus): ...this.
2428 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2429 new VPRED ambiguity.
2430 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2431 (add<SVE_FULL_I:mode>3): Extend to...
2432 (add<SVE_I:mode>3): ...this.
2433 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2434 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2435 (VPRED, vpred): Likewise.
2436 (Vctype): New iterator.
2437 (vw): Remove SVE modes.
2438
2439 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2440
2441 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2442 (SVE_PARTIAL_I): ...this.
2443 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2444
2445 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2446
2447 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2448 (SVE_FULL): ...this.
2449 (SVE_I): Rename to...
2450 (SVE_FULL_I): ...this.
2451 (SVE_F): Rename to...
2452 (SVE_FULL_F): ...this.
2453 (SVE_BHSI): Rename to...
2454 (SVE_FULL_BHSI): ...this.
2455 (SVE_HSD): Rename to...
2456 (SVE_FULL_HSD): ...this.
2457 (SVE_HSDI): Rename to...
2458 (SVE_FULL_HSDI): ...this.
2459 (SVE_HSF): Rename to...
2460 (SVE_FULL_HSF): ...this.
2461 (SVE_SD): Rename to...
2462 (SVE_FULL_SD): ...this.
2463 (SVE_SDI): Rename to...
2464 (SVE_FULL_SDI): ...this.
2465 (SVE_SDF): Rename to...
2466 (SVE_FULL_SDF): ...this.
2467 (SVE_S): Rename to...
2468 (SVE_FULL_S): ...this.
2469 (SVE_D): Rename to...
2470 (SVE_FULL_D): ...this.
2471 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2472 * config/aarch64/aarch64-sve2.md: Likewise.
2473
2474 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2475
2476 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2477 New option.
2478 * doc/invoke.texi: Document it.
2479 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2480 By default, return VECT_COMPARE_COSTS for SVE.
2481
2482 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2483
2484 * target.h (VECT_COMPARE_COSTS): New constant.
2485 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2486 * doc/tm.texi: Regenerate.
2487 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2488 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2489 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2490 Likewise.
2491 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2492 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2493 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2494 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2495 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2496 (_loop_vec_info::vec_inside_cost): New member variables.
2497 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2498 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2499 (vect_analyze_loop): When autovectorize_vector_modes returns
2500 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2501 vector mode and picking the one with the lowest cost.
2502 (vect_estimate_min_profitable_iters): Record the computed costs
2503 in the loop_vec_info.
2504
2505 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2506
2507 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2508 element type rather than an element mode.
2509 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2510 Use get_vectype_for_scalar_type to query the natural types
2511 for a given element type rather than basing everything on
2512 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2513 query to MAX_FIXED_MODE_SIZE.
2514 (duplicate_and_interleave): Update call accordingly.
2515 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2516
2517 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2518
2519 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2520 optional maximum nunits.
2521 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2522 takes an slp_tree.
2523 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2524 (vect_get_mask_type_for_stmt): Likewise.
2525 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2526 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2527 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2528 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2529 to get an assumed vector type for data references.
2530 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2531 (vect_update_all_shared_vectypes): Likewise.
2532 (vect_build_slp_tree_1): Pass the group size to
2533 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2534 for BB vectorization.
2535 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2536 before building the vectof from scalars.
2537 (vect_analyze_slp_instance): Pass the group size to
2538 get_vectype_for_scalar_type.
2539 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2540 types for BB vectorization here; just handle the case in which
2541 we deferred the choice for booleans.
2542 (vect_get_constant_vectors): Pass the slp_tree to
2543 get_vectype_for_scalar_type.
2544 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2545 (vectorizable_call): Likewise.
2546 (vectorizable_simd_clone_call): Likewise.
2547 (vectorizable_conversion): Likewise.
2548 (vectorizable_shift): Likewise.
2549 (vectorizable_operation): Likewise.
2550 (vectorizable_comparison): Likewise.
2551 (vect_is_simple_cond): Take the slp_tree as argument and
2552 pass it to get_vectype_for_scalar_type.
2553 (vectorizable_condition): Update call accordingly.
2554 (get_vectype_for_scalar_type): Take a group_size argument.
2555 For BB vectorization, limit the the vector to that number
2556 of elements. Also define an overload that takes an slp_tree.
2557 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2558 pass it to get_vectype_for_scalar_type.
2559 (vect_get_vector_types_for_stmt): Add a group_size argument
2560 and pass it to get_vectype_for_scalar_type. Don't use the
2561 cached vector type for BB vectorization if a group size is given.
2562 Handle data references in that case.
2563 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2564 pass it to get_mask_type_for_scalar_type.
2565
2566 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2567
2568 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2569 parameter.
2570 (estimate_edge_time): Use it.
2571 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2572 ret_nonspec_time parameter.
2573
2574 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2575
2576 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2577
2578 2019-11-15 Nick Clifton <nickc@redhat.com>
2579 Szabolcs Nagy <szabolcs.nagy@arm.com>
2580
2581 PR target/65649
2582 * config/microblaze/microblaze.c (print_operand): Print value as long.
2583
2584 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2585
2586 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2587 accidental commit.
2588
2589 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2590
2591 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2592 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2593
2594 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2595
2596 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2597 (gcn_conditional_register_usage): Use constants in place of hard-coded
2598 values.
2599 (gcn_hsa_declare_function_name): Set lower bound for number of
2600 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2601 MAX_NORMAL_VGPR_COUNT.
2602
2603 2019-11-15 Martin Jambor <mjambor@suse.cz>
2604
2605 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2606 declaration.
2607
2608 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2609
2610 * config/gcn/gcn.c (default_requested_args): New.
2611 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2612 set with default_requested_args.
2613 (gcn_conditional_register_usage): Limit register usage of non-kernel
2614 functions. Reassign fixed registers if a non-standard set of args is
2615 requested.
2616 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2617
2618 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2619
2620 PR ipa/92528
2621 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2622 aggregate jump function when inlined-to caller has no edge summary.
2623
2624 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2625
2626 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2627
2628 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2629
2630 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2631 prologue use of v0.
2632 (print_operand_address): Use v1 for zero vector offset.
2633
2634 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2635
2636 PR tree-optimization/92515
2637 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2638 types when converting a vector/scalar shift into a vector/vector one,
2639 using tree_nop_conversion_p instead of useless_type_conversion_p.
2640 Move the conversion code to the transform block.
2641
2642 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2643
2644 * read-rtl-function.c
2645 (function_reader::add_fixup_source_location): Take additional
2646 parameter of a column.
2647 (function_reader::maybe_read_location): Optionally parse column
2648 information and pass to add_fixup_source_location.
2649
2650 2019-11-15 Richard Biener <rguenther@suse.de>
2651
2652 PR tree-optimization/92512
2653 * tree-vect-loop.c (check_reduction_path): Fix operand index
2654 computability check. Add check for second use in COND_EXPRs.
2655
2656 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2657
2658 PR target/92515
2659 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2660 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2661
2662 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2663
2664 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2665 register class for VCC_LO and VCC_HI.
2666 (gcn_spill_class): Use SGPR_REGS to spill registers in
2667 VCC_CONDITIONAL_REG.
2668
2669 2019-11-15 Richard Biener <rguenther@suse.de>
2670
2671 PR tree-optimization/92324
2672 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2673 singedness of SLP reduction epilouge operations. Also reduce
2674 the vector width for SLP reductions before doing elementwise
2675 operations if possible.
2676
2677 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2678
2679 * passes.c (skip_pass): Set epilogue_completed if skipping the
2680 pro_and_epilogue pass.
2681
2682 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2683
2684 * passes.c (should_skip_pass_p): Always run "dfinish".
2685
2686 2019-11-15 Richard Biener <rguenther@suse.de>
2687
2688 * ipa-inline.c (inline_small_functions): Move assignment
2689 to next before call destroying edge.
2690
2691 2019-11-15 Richard Biener <rguenther@suse.de>
2692
2693 PR tree-optimization/92039
2694 PR tree-optimization/91975
2695 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2696 previous change, treat invariants consistently as non-constant.
2697 (tree_estimate_loop_size): Ternary ops with just the first op
2698 constant are not optimized away.
2699
2700 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2701
2702 * gimplify.c (gimplify_call_expr): Don't call
2703 omp_resolve_declare_variant after gimplification.
2704 * omp-general.c (omp_context_selector_matches): For isa that might
2705 match in some other function, defer if in declare simd function.
2706 (omp_context_compute_score): Don't look for " score" in construct
2707 trait set. Set *score to -1 if it can't ever match.
2708 (omp_resolve_declare_variant): If any variants need to be deferred,
2709 don't punt immediately, but compute scores of all variants and if
2710 ther eis a score winner that doesn't need to be deferred, return that.
2711
2712 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2713
2714 * ipa-comdats.c: Fix comments typo.
2715 * ipa-profile.c: Fix comments typo.
2716 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2717 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2718 (gimple_gen_ic_func_profiler): Likewise.
2719 (pass_ipa_tree_profile::gate): Fix comments typo.
2720
2721 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2722
2723 * ipa-inline.c (inline_small_functions): Update iterator of next.
2724
2725 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2726
2727 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2728 register is suitable for the mode.
2729
2730 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2731
2732 * range-op.h (range_operator::fold_range): Return a bool.
2733 * range-op.cc (range_operator::wi_fold): Assert supported type.
2734 (range_operator::fold_range): Assert supported type and return true.
2735 (operator_equal::fold_range): Return true.
2736 (operator_not_equal::fold_range): Same.
2737 (operator_lt::fold_range): Same.
2738 (operator_le::fold_range): Same.
2739 (operator_gt::fold_range): Same.
2740 (operator_ge::fold_range): Same.
2741 (operator_plus::op1_range): Adjust call to fold_range.
2742 (operator_plus::op2_range): Same.
2743 (operator_minus::op1_range): Same.
2744 (operator_minus::op2_range): Same.
2745 (operator_exact_divide::op1_range): Same.
2746 (operator_lshift::fold_range): Return true and adjust fold_range call.
2747 (operator_rshift::fold_range): Same.
2748 (operator_cast::fold_range): Return true.
2749 (operator_logical_and::fold_range): Same.
2750 (operator_logical_or::fold_range): Same.
2751 (operator_logical_not::fold_range): Same.
2752 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2753 (operator_bitwise_not::op1_range): Same.
2754 (operator_cst::fold_range): Return true.
2755 (operator_identity::fold_range): Return true.
2756 (operator_negate::fold_range): Return true and adjust fold_range call.
2757 (operator_addr_expr::fold_range): Return true.
2758 (operator_addr_expr::op1_range): Adjust call to fold_range.
2759 (range_cast): Same.
2760 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2761 (range_fold_unary_symbolics_p): Same.
2762
2763 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2764
2765 PR tree-optimization/92506
2766 * range-op.cc (range_operator::fold_range): Start with range undefined.
2767 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2768 overflow is varying.
2769
2770 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2771
2772 * range-op.cc (*operator*::*range): Remove calls to
2773 range_intersect, range_invert, and range_union in favor of calling
2774 the in-place API methods.
2775 (range_tests): Same.
2776 * range.cc (range_intersect): Remove.
2777 (range_union): Remove.
2778 (range_invert): Remove.
2779 * range.h (range_intersect): Remove.
2780 (range_union): Remove.
2781 (range_intersect): Remove.
2782
2783 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2784
2785 PR rtl-optimization/92430
2786 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2787 (pass_jump_after_combine::execute): Perform jump threading
2788 unconditionally.
2789
2790 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2791 Doug Rupp <rupp@adacore.com>
2792 Olivier Hainque <hainque@adacore.com>
2793
2794 * config.gcc: Collapse the arm-vxworks entries into
2795 a single arm-wrs-vxworks7* one, bpabi based. Update
2796 the default cpu from arm8 to armv7-a
2797 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2798 we always use ARM_UNWIND_INFO.
2799 (DWARF2_UNWIND_INFO): Remove redefinition.
2800 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2801 (VXWORKS_PERSONALITY): Define, to "llvm".
2802 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2803
2804 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2805
2806 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2807 _VX_CPU instead of CPU and handle arm_arch8.
2808
2809 2019-11-14 Doug Rupp <rupp@adacore.com>
2810 Olivier Hainque <hainque@adacore.com>
2811 Jerome Lambourg <lambourg@adacore.com>
2812
2813 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2814 * config/aarch64/aarch64-vxworks.h: New file.
2815 * config/aarch64/t-aarch64-vxworks: New file.
2816
2817 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2818 Olivier Hainque <hainque@adacore.com>
2819
2820 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2821 definition, pointless with a VxWorks specific version
2822 of crtstuff.
2823 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2824 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2825 New local macros, controlling the addition of vxworks specific
2826 crtstuff objects depending on the EH mechanism and kind of
2827 module being linked.
2828 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2829
2830 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2831 Jerome Lambourg <lambourg@adacore.com>
2832 Olivier Hainque <hainque@adacore.com>
2833
2834 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2835 common macro definitions, conveying VXWORKS7 or 64bit general
2836 variations. Add a block to set gcc_cv_initfini_array
2837 unconditionally to "yes" for VxWorks7.
2838 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2839 by default. Update some comments.
2840 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2841 default, to be added the end of VXWORKS_LIBS_RTP.
2842 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2843 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2844 redefine.
2845 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2846 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2847 to account for the now available TLS abilities.
2848 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2849 (VXWORKS_HAVE_TLS): Likewise.
2850
2851 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2852
2853 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2854 (vect_slp_convert_to_external): Likewise.
2855 (vect_slp_analyze_node_operations): If analysis fails, try building
2856 the node from scalars instead.
2857
2858 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2859
2860 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2861 between vector types.
2862 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2863 non-widening and non-narrowing path to handle standard
2864 conversion codes, if the target supports them.
2865 * expr.c (convert_move): Try using the extend and truncate optabs
2866 for vectors.
2867 * optabs-tree.c (supportable_convert_operation): Likewise.
2868 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2869 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2870 (trunc<mode><Vnarrowq>2): New patterns.
2871
2872 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2873
2874 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2875 require vectype and nunits_vectype to have the same size;
2876 instead assert that nunits_vectype has at least as many
2877 elements as vectype. Don't compute a separate nunits_vectype
2878 if the scalar type is obviously the same as vectype's.
2879 Tweak dump messages.
2880
2881 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2882
2883 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2884 function.
2885 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2886 (TARGET_VECTORIZE_RELATED_MODE): Define.
2887
2888 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2889
2890 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2891 (vec_info::used_vector_mode): New member variable.
2892 (vect_chooses_same_modes_p): Declare.
2893 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2894 chosen vector mode in vec_info::used_vector_mode.
2895 (vect_chooses_same_modes_p): New function.
2896 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2897 the same vector statements multiple times.
2898 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2899
2900 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2901
2902 * machmode.h (opt_machine_mode::operator==): New function.
2903 (opt_machine_mode::operator!=): Likewise.
2904 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2905 (get_related_vectype_for_scalar_type): Delete.
2906 (get_vectype_for_scalar_type_and_size): Declare.
2907 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2908 whether analysis passed or failed, and with what vector modes.
2909 Use related_vector_mode to check whether trying a particular
2910 vector mode would be redundant with the autodetected mode,
2911 and print a dump message if we decide to skip it.
2912 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2913 (vect_create_epilog_for_reduction): Use
2914 get_related_vectype_for_scalar_type instead of
2915 get_vectype_for_scalar_type_and_size.
2916 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2917 with...
2918 (get_related_vectype_for_scalar_type): ...this new function.
2919 Take a starting/"prevailing" vector mode rather than a vector size.
2920 Take an optional nunits argument, with the same meaning as for
2921 related_vector_mode. Use related_vector_mode when not
2922 auto-detecting a mode, falling back to mode_for_vector if no
2923 target mode exists.
2924 (get_vectype_for_scalar_type): Update accordingly.
2925 (get_same_sized_vectype): Likewise.
2926 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2927
2928 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2929
2930 * tree-vect-stmts.c (vectorizable_call): Require the types
2931 to have the same size.
2932
2933 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2934
2935 * tree-vect-stmts.c (vectorizable_call): If an operand is
2936 constant or external, use get_vectype_for_scalar_type
2937 rather than get_same_sized_vectype to get its vector type.
2938 (vectorizable_conversion, vectorizable_shift): Likewise.
2939 (vectorizable_operation): Likewise.
2940
2941 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2942
2943 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2944 (vec_info::vector_mode): ...this new field.
2945 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2946 (vect_analyze_loop, vect_transform_loop): Likewise.
2947 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2948 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2949 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2950 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2951 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2952
2953 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2954
2955 * target.h (vector_sizes, auto_vector_sizes): Delete.
2956 (vector_modes, auto_vector_modes): New typedefs.
2957 * target.def (autovectorize_vector_sizes): Replace with...
2958 (autovectorize_vector_modes): ...this new hook.
2959 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2960 Replace with...
2961 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2962 * doc/tm.texi: Regenerate.
2963 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2964 (default_autovectorize_vector_modes): New function.
2965 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2966 (default_autovectorize_vector_modes): New function.
2967 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2968 of autovectorize_vector_sizes. Use the number of units in the mode
2969 to calculate the maximum VF.
2970 * omp-low.c (omp_clause_aligned_alignment): Use
2971 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2972 Use a loop based on related_mode to iterate through all supported
2973 vector modes for a given scalar mode.
2974 * optabs-query.c (can_vec_mask_load_store_p): Use
2975 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2976 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2977 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2978 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2979 Replace with...
2980 (aarch64_autovectorize_vector_modes): ...this new function.
2981 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2982 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2983 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2984 (arc_autovectorize_vector_modes): ...this new function.
2985 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2986 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2987 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2988 (arm_autovectorize_vector_modes): ...this new function.
2989 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2990 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2991 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2992 (ix86_autovectorize_vector_modes): ...this new function.
2993 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2994 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2995 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2996 (mips_autovectorize_vector_modes): ...this new function.
2997 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2998 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2999
3000 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3001
3002 * tree-vect-stmts.c (vectorizable_shift): Check the number
3003 of vector elements as well as the type mode when deciding
3004 whether an op1_vectype is compatible. Reuse the result of
3005 this check when generating vector statements.
3006
3007 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3008
3009 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3010 targetm.vectorize.preferred_simd_mode returns an integer mode,
3011 use mode_for_vector to decide what the vector type's mode
3012 should actually be. Use build_vector_type_for_mode instead
3013 of build_vector_type.
3014
3015 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3016
3017 * target.def (get_mask_mode): Take a vector mode itself as argument,
3018 instead of properties about the vector mode.
3019 * doc/tm.texi: Regenerate.
3020 * targhooks.h (default_get_mask_mode): Update to reflect new
3021 get_mode_mask interface.
3022 * targhooks.c (default_get_mask_mode): Likewise. Use
3023 related_int_vector_mode.
3024 * optabs-query.c (can_vec_mask_load_store_p): Update call
3025 to get_mask_mode.
3026 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3027 first that the original mode really is a vector.
3028 * tree.c (build_truth_vector_type_for): Likewise.
3029 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3030 get_mode_mask interface.
3031 (aarch64_expand_sve_vcond): Update call accordingly.
3032 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3033 get_mode_mask interface.
3034 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3035
3036 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3037
3038 * tree.h (build_truth_vector_type): Delete.
3039 (build_same_sized_truth_vector_type): Likewise.
3040 * tree.c (build_truth_vector_type): Rename to...
3041 (build_truth_vector_type_for): ...this. Make static and take
3042 a vector type as argument.
3043 (truth_type_for): Update accordingly.
3044 (build_same_sized_truth_vector_type): Delete.
3045 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3046 instead of build_same_sized_truth_vector_type.
3047 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3048 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3049 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3050 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3051 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3052 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3053 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3054 (vectorizable_store, vectorizable_condition): Likewise.
3055 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3056 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3057 build_truth_vector_type.
3058 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3059 Use truth_type_for instead of build_same_sized_truth_vector_type.
3060 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3061
3062 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3063
3064 * tree.h (build_truth_vector_type_for_mode): Declare.
3065 * tree.c (build_truth_vector_type_for_mode): New function,
3066 split out from...
3067 (build_truth_vector_type): ...here.
3068 (build_opaque_vector_type): Fix head comment.
3069 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3070 vec_info parameter.
3071 (vect_halve_mask_nunits): Replace vec_info parameter with the
3072 mode of the new vector.
3073 (vect_double_mask_nunits): Likewise.
3074 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3075 (vect_double_mask_nunits): Likewise.
3076 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3077 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3078 to vect_halve_mask_nunits, getting the required mode from the unpack
3079 patterns.
3080 (vect_set_loop_condition_masked): Update call accordingly.
3081 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3082 parameter and update call to vect_double_mask_nunits.
3083 (vectorizable_conversion): Update call accordingly.
3084 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3085 (vectorizable_call): Update call accordingly.
3086 (supportable_widening_operation): Update call to
3087 vect_halve_mask_nunits.
3088 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3089 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3090
3091 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3092
3093 * machmode.h (mode_for_int_vector): Delete.
3094 (related_int_vector_mode): Declare.
3095 * stor-layout.c (mode_for_int_vector): Delete.
3096 (related_int_vector_mode): New function.
3097 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3098 instead of mode_for_int_vector.
3099 (expand_vec_perm_const): Likewise.
3100 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3101 (aarch64_evpc_sve_tbl): Likewise.
3102 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3103 (s390_expand_vcond): Likewise.
3104
3105 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3106
3107 * target.def (related_mode): New hook.
3108 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3109 * doc/tm.texi: Regenerate.
3110 * targhooks.h (default_vectorize_related_mode): Declare.
3111 * targhooks.c (default_vectorize_related_mode): New function.
3112 * machmode.h (related_vector_mode): Declare.
3113 * stor-layout.c (related_vector_mode): New function.
3114 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3115 * optabs-query.c (qimode_for_vec_perm): Likewise.
3116 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3117 (vectorizable_store, vectorizable_load): Likewise
3118
3119 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3120
3121 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3122 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3123 * config/arm/arm-c.c (arm_cpu_builtins): Define
3124 __GCC_ASM_FLAG_OUTPUTS__.
3125 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3126 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3127 Define __GCC_ASM_FLAG_OUTPUTS__.
3128 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3129 * doc/extend.texi (FlagOutputOperands): Add documentation
3130 for ARM and AArch64.
3131
3132 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3133 * config/arm/predicates.md (nz_comparison_operator): Rename
3134 from noov_comparison_operator.
3135 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3136 (arm_gen_dicompare_reg): Likewise.
3137 (maybe_get_arm_condition_code): Likewise.
3138 (thumb1_final_prescan_insn): Likewise.
3139 (arm_emit_coreregs_64bit_shift): Likewise.
3140 * config/arm/arm.md (addsi3_compare0): Likewise.
3141 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3142 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3143 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3144 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3145 (*mulsi3addsi_compare0_scratch): Likewise.
3146 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3147 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3148 (*zeroextractsi_compare0_scratch): Likewise.
3149 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3150 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3151 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3152 (andsi_not_shiftsi_si_scc): Likewise.
3153 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3154 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3155 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3156 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3157 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3158 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3159 (return_addr_mask, *check_arch2): Likewise.
3160 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3161 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3162 (compare_scc splitters): Likewise.
3163 (movcond_addsi): Likewise.
3164 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3165 (*thumb2_addsi3_compare0_scratch): Likewise.
3166 (*thumb2_mulsi_short_compare0): Likewise.
3167 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3168 (compare peephole2s): Likewise.
3169 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3170 nz_comparison_operator names.
3171 (cbranchsi4_insn): Likewise.
3172
3173 * config/arm/constraints.md (c): Use cc_register predicate.
3174
3175 * config/aarch64/constraints.md (c): New constraint.
3176
3177 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3178
3179 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3180 ipa_merge_fn_summary_after_inlining): Micro optimize.
3181
3182 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3183
3184 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3185
3186 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3187
3188 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3189 (ipa_value_range_from_jfunc): New function.
3190 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3191 known_value_ranges parameter; use it to evalulate conditions.
3192 (evaluate_properties_for_edge): Compute known value ranges.
3193 (ipa_fn_summary_t::duplicate): Update use of
3194 evaluate_conditions_for_known_args.
3195 (estimate_ipcp_clone_size_and_time): Likewise.
3196 (ipa_merge_fn_summary_after_inlining): Likewise.
3197 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3198
3199 2019-11-14 Martin Liska <mliska@suse.cz>
3200
3201 * ipa-inline.c (want_inline_small_function_p): Use
3202 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3203 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3204
3205 2019-11-14 Martin Liska <mliska@suse.cz>
3206
3207 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3208 of a callee to get value of the param.
3209 * ipa-inline.c (inline_insns_auto): Use proper
3210 opt_for_fn.
3211 * opts.c (maybe_default_option): Do not overwrite param
3212 value if optimization level does not match. Note that
3213 params usually have default value set via Init() keyword.
3214 * params.opt: Remove -param=max-inline-insns-auto-O2.
3215 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3216 * doc/invoke.texi: Remove documentation of
3217 max-inline-insns-auto-O2.
3218
3219 2019-11-14 Martin Liska <mliska@suse.cz>
3220
3221 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3222 Do not initialize m_other_count.
3223 (switch_conversion::collect): Do not count m_default_count and
3224 m_other_count as we use frequencies for edges.
3225 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3226
3227 2019-11-14 Martin Liska <mliska@suse.cz>
3228
3229 PR other/92329
3230 * doc/invoke.texi: Document -fallocation-dce.
3231
3232 2019-11-14 Martin Liska <mliska@suse.cz>
3233
3234 PR target/92389
3235 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3236 PTA_ICELAKE_CLIENT which is later interited by
3237 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3238
3239 2019-11-14 Martin Liska <mliska@suse.cz>
3240
3241 * ipa-icf.c (sem_item_optimizer::execute): Save
3242 loaded_symbols.
3243 (sem_item_optimizer::parse_nonsingleton_classes):
3244 Return number of loaded symbols.
3245 (sem_item_optimizer::merge_classes): Print
3246 statistics about totally needed symbols.
3247 * ipa-icf.h (parse_nonsingleton_classes): Change return
3248 type.
3249 (merge_classes): Add one argument.
3250
3251 2019-11-14 Martin Liska <mliska@suse.cz>
3252
3253 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3254 func_checker::hash_operand by handling of FIELD_DECLs.
3255
3256 2019-11-14 Martin Liska <mliska@suse.cz>
3257
3258 * ipa-icf-gimple.h (func_checker::func_checker): Add
3259 default constructor.
3260 * ipa-icf.c (sem_function::init): Make operand_equal_p
3261 and hash_operand public.
3262 (sem_item::add_expr): Remove.
3263 (sem_item::add_type): Remove.
3264 (sem_function::hash_stmt): Use m_checker for hashing
3265 of GIMPLE statements.
3266 (sem_function::parse): Init with checker.
3267 (sem_variable::parse): Pass NULL as checker.
3268 (sem_item_optimizer::parse_funcs_and_vars):
3269 Pass checker to ::parse function.
3270 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3271 (sem_variable::parse): New function.
3272 (sem_variable::get_hash): Only return computed hash value.
3273 (sem_variable::init): Initialize hash of a variable.
3274 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3275 to couple of functions as a new argument.
3276
3277 2019-11-14 Martin Liska <mliska@suse.cz>
3278
3279 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3280 bail out reason.
3281 (func_checker::compare_gimple_assign): Likewise.
3282
3283 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3284
3285 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3286 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3287 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3288
3289 * omp-general.c (omp_context_name_list_prop): New function.
3290 (omp_context_selector_matches): Use it. Return 0 if it returns
3291 NULL.
3292 (omp_context_selector_props_compare): Allow equivalency of an
3293 identifier and a string literal containing no embedded zeros.
3294
3295 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3296
3297 * range-op.cc (RANGE3): Remove.
3298 (range_tests): Remove all selftest that check for multi-ranges.
3299 Put tests in namespace selftest.
3300 * selftest.h: Move range_tests into namespace selftest.
3301 * value-range.h (class value_range): Unfriend range_tests.
3302
3303 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3304
3305 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3306 normalize_symbolics and normalize_addresses working in place.
3307 (range_fold_unary_symbolics_p): Same.
3308 (range_fold_unary_symbolics_p): Same.
3309 * value-range.cc (num_pairs): Same.
3310 (lower_bound): Same.
3311 (upper_bound): Same.
3312 (contains_p): Same.
3313 (normalize_addresses): Same.
3314 (normalize_symbolics): Same.
3315 * value-range.h (normalize_symbolics): Same.
3316 (normalize_addresses): Same.
3317
3318 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3319
3320 PR ipa/91682
3321 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3322 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3323 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3324 (ipa_agg_jump_function): Remove member function equal_to.
3325 (ipa_agg_jump_function_p): Remove typedef.
3326 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3327 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3328 information for aggregate jump function.
3329 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3330 record last definition statement.
3331 (load_from_unmodified_param_or_agg): New function.
3332 (ipa_known_agg_contents_list): Add new field type and value, remove
3333 field constant.
3334 (build_agg_jump_func_from_list): Rename parameter const_count to
3335 value_count, build aggregate jump function from ipa_load_agg_data.
3336 (analyze_agg_content_value): New function.
3337 (extract_mem_content): Analyze memory store assignment to prepare
3338 information for aggregate jump function generation.
3339 (determine_known_aggregate_parts): Add new parameter fbi, remove
3340 parameter aa_walk_budeget_p.
3341 (update_jump_functions_after_inlining): Update aggregate jump function.
3342 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3343 (try_make_edge_direct_simple_call): Add new parameter new_root.
3344 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3345 new_root_info.
3346 (update_indirect_edges_after_inlining): Pass new argument to
3347 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3348 (ipa_write_jump_function): Write aggregate jump function to file.
3349 (ipa_read_jump_function): Read aggregate jump function from file.
3350 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3351 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3352 (ipa_agg_value_from_node): Likewise.
3353 (ipa_agg_value_set_from_jfunc): Likewise.
3354 (propagate_vals_across_arith_jfunc): Likewise.
3355 (propagate_aggregate_lattice): Likewise.
3356 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3357 (propagate_vals_across_pass_through): Call
3358 propagate_vals_across_arith_jfunc.
3359 (get_clone_agg_value): Move forward.
3360 (propagate_aggs_across_jump_function): Handle value propagation for
3361 aggregate jump function.
3362 (agg_jmp_p_vec_for_t_vec): Remove.
3363 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3364 with vec<ipa_agg_value>.
3365 (copy_plats_to_inter, intersect_with_plats): Likewise.
3366 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3367 (intersect_aggregate_with_edge): Likewise.
3368 (find_aggregate_values_for_callers_subset): Likewise.
3369 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3370 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3371 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3372 (gather_context_independent_values): Likewise.
3373 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3374 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3375 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3376 (evaluate_properties_for_edge): Likewise.
3377 (estimate_edge_devirt_benefit): Likewise.
3378 (estimate_edge_size_and_time): Likewise.
3379 (estimate_calls_size_and_time): Likewise.
3380 (ipa_call_context::ipa_call_context): Likewise.
3381 (estimate_ipcp_clone_size_and_time): Likewise.
3382 * ipa-fnsummary.h (ipa_call_context): Replace
3383 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3384 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3385 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3386 (do_estimate_edge_size): Likewise.
3387 (do_estimate_edge_hints): Likewise.
3388
3389 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3390
3391 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3392 binary operations.
3393
3394 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3395
3396 * ipa-profile.c (check_argument_count): Check properly that e_info
3397 is non-NULL; do not check descriptors.
3398
3399 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3400
3401 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3402 check for ipa profiles.
3403
3404 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3405
3406 PR c++/92421
3407 * ipa-prop.c (update_indirect_edges_after_inlining):
3408 Mark parameter as used.
3409 * ipa-inline.c (recursive_inlining): Reset node cache
3410 after inlining.
3411 (inline_small_functions): Remove checking ifdef.
3412 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3413 cache consistency.
3414
3415 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3416
3417 PR ipa/92498
3418 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3419 is NULL.
3420 (ipa_profile): Fix reversed test.
3421
3422 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3423
3424 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3425 (propagate_constants_topo): Fix typo.
3426
3427 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3428
3429 * Makefile.in (OBJS): Add value-range.o.
3430 (GTFILES): Add value-range.h.
3431 * gengtype.c (open_base_files): Add value-range.h to list of
3432 header files.
3433 * tree-vrp.c: Move the following value_range related functions:
3434 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3435 constant_p, set_undefined, set_varying, may_contain_p,
3436 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3437 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3438 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3439 value_inside_range, ranges_from_anti_range, union_ranges,
3440 intersect_ranges, intersect_helper, union_helper, union_,
3441 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3442 upper_bound, contains_p, invert, intersect...
3443 * value-range.cc: ...to here.
3444 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3445 associated inline methods from here...
3446 * value-range.h: ...to here.
3447
3448 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3449
3450 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3451 instead of asserting its value.
3452
3453 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3454
3455 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3456 constructors and set methods so value_range_kind is the last
3457 argument and defaults to VR_RANGE.
3458 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3459 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3460 * ipa-prop.c (ipa_get_value_range): Same.
3461 (ipa_compute_jump_functions_for_edge): Same.
3462 * range-op.cc (value_range_from_overflowed_bounds): Same.
3463 (operator_cast::op1_range): Same.
3464 (range_tests): Same.
3465 * range.cc (range_nonzero): Same.
3466 * tree-ssanames.c (get_range_info): Same.
3467 * tree-vrp.c (value_range_equiv::set): Same.
3468 (value_range::value_range): Same.
3469 (value_range_equiv::value_range_equiv): Same.
3470 (value_range_equiv::update): Same.
3471 (value_range_equiv::deep_copy): Same.
3472 (value_range_equiv::move): Same.
3473 (value_range_equiv::set_undefined): Same.
3474 (value_range::set): Same.
3475 (value_range::set_nonzero): Same.
3476 (ranges_from_anti_range): Same.
3477 (extract_range_from_plus_minus_expr): Same.
3478 (value_range::intersect_helper): Same.
3479 (value_range_equiv::intersect): Same.
3480 (value_range::union_helper): Same.
3481 (value_range_equiv::union_): Same.
3482 (value_range::normalize_symbolics): Same.
3483 (value_range::invert): Same.
3484 (determine_value_range_1): Same.
3485 * tree-vrp.h (class value_range): Same.
3486 (class value_range_equiv): Same.
3487 * vr-values.c (set_value_range_to_nonnegative): Same.
3488 (set_value_range_to_truthvalue): Same.
3489 (vr_values::update_value_range): Same.
3490 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3491 (vr_values::extract_range_from_binary_expr): Same.
3492 (vr_values::extract_range_from_comparison): Same.
3493 (vr_values::extract_range_basic): Same.
3494 (vr_values::adjust_range_with_scev): Same.
3495 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3496 (vr_values::extract_range_from_phi_node): Same.
3497
3498 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3499
3500 * tree-dump.c (dequeue_and_dump): Print first tree operand
3501 for VIEW_CONVERT_EXPR.
3502
3503 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3504
3505 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3506 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3507 * real.c (get_max_float): Add norm_max argument.
3508 * real.h (get_max_float): Update prototype.
3509 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3510 get_max_float.
3511
3512 2019-11-13 Martin Liska <mliska@suse.cz>
3513
3514 * dbgcnt.c (test_sorted_dbg_counters): New.
3515 (dbgcnt_c_tests): Likewise.
3516 * selftest-run-tests.c (selftest::run_tests): Likewise.
3517 * selftest.h (dbgcnt_c_tests): Likewise.
3518
3519 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3520 Martin Jambor <mjambor@suse.cz>
3521
3522 PR ipa/92454
3523 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3524 (identify_dead_nodes): Likewise.
3525
3526 2019-11-13 Martin Liska <mliska@suse.cz>
3527
3528 * ipa-icf.c (sem_function::equals_private): Do not overuse
3529 push/pop_cfun functions.
3530
3531 2019-11-13 Martin Liska <mliska@suse.cz>
3532
3533 * common.opt: Document change of -fdbg-cnt option.
3534 * dbgcnt.c (DEBUG_COUNTER): Remove.
3535 (dbg_cnt_is_enabled): Remove.
3536 (dbg_cnt): Work with new intervals.
3537 (dbg_cnt_set_limit_by_index): Set to new
3538 list of intervals.
3539 (dbg_cnt_set_limit_by_name): Likewise.
3540 (dbg_cnt_process_single_pair): Process new format.
3541 (dbg_cnt_process_opt): Likewise.
3542 (dbg_cnt_list_all_counters): Likewise.
3543 * doc/invoke.texi: Document change of -fdbg-cnt option.
3544 (cmp_tuples): New.
3545
3546 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3547
3548 * ipa-inline.c (ipa_inline): Check that function is defined before
3549 flattening.
3550
3551 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3552 Julian Brown <julian@codesourcery.com>
3553
3554 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3555 flag_worker_partitioning is not set.
3556 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3557 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3558
3559 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3560
3561 * config/gcn/gcn-run.c (heap_region): New global variable.
3562 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3563 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3564 (get_kernarg_region): Move contents to ....
3565 (get_memory_region): .... here.
3566 (get_heap_region): New function.
3567 (init_device): Initialize the heap_region.
3568 (device_malloc): Add region parameter.
3569 (struct kernargs): Move heap ....
3570 (heap): ... to global scope.
3571 (main): Allocate heap separate to kernargs.
3572
3573 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3574
3575 * ipa-prop.c (ipa_print_node_jump_functions,
3576 ipa_print_node_params): Print info about missing summaries.
3577
3578 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3579
3580 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3581 the cost of generating loop masks.
3582
3583 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3584
3585 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3586 New function.
3587 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3588 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3589 (vect_transform_loop): Likewise.
3590 (vect_analyze_loop_costing): Don't take the cost of versioning
3591 into account for the static profitability threshold if it turns
3592 out that no versioning is needed.
3593
3594 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3595
3596 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3597 and target_option_default_node to get -fprofile-generate ctors working
3598 right with LTO.
3599
3600 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3601
3602 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3603 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3604 (vectorizable_assignment): Don't add a cost for nop conversions.
3605 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3606 Likewise.
3607 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3608
3609 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3610
3611 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3612 number of ncopies as an additional argument.
3613 (vectorizable_conversion): Update call accordingly. Use "modifier"
3614 to check whether a conversion is between vectors with the same
3615 numbers of units.
3616
3617 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3618
3619 * config/aarch64/aarch64-sve-builtins-functions.h
3620 (unary_count::expand): Use aarch64_sve_int_mode instead of
3621 mode_for_int_vector.
3622
3623 2019-11-13 Martin Liska <mliska@suse.cz>
3624
3625 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3626
3627 2019-11-13 Martin Liska <mliska@suse.cz>
3628
3629 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3630 Remove call to finalize_options_struct.
3631
3632 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3633
3634 PR target/92055
3635 * config/avr/t-avr (avr-mcus): Do not depend on
3636 $(srcdir)/config/avr/t-multilib.
3637
3638 2019-11-13 Richard Biener <rguenther@suse.de>
3639
3640 PR tree-optimization/92473
3641 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3642 direct optab reduction in the correct type.
3643
3644 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3645
3646 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3647 hexadecimal literal.
3648
3649 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3650
3651 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3652 UNORDERED if !HONOR_NANS (DFmode).
3653 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3654 if !HONOR_NANS (<MODE>mode).
3655
3656 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3657
3658 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3659 (ipcp_verify_propagated_values): Likewise.
3660 (propagate_constants_across_call): Likewise.
3661 (propagate_constants_topo): Likewise.
3662 (ipcp_propagate_stage): Likewise.
3663
3664 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3665
3666 PR ipa/92471
3667 * ipa-profile.c (check_argument_count): Break out from ...;
3668 watch for missing summaries.
3669 (ipa_profile): Here.
3670
3671 2019-11-12 Martin Sebor <msebor@redhat.com>
3672
3673 PR tree-optimization/92412
3674 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3675 extern variables.
3676
3677 2019-11-12 Martin Sebor <msebor@redhat.com>
3678
3679 PR middle-end/83688
3680 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3681 (directive::argno): New member.
3682 (format_result::aliases, format_result::alias_count): New data members.
3683 (format_result::append_alias): New member function.
3684 (fmtresult::dst_offset): New data member.
3685 (pass_sprintf_length::call_info::dst_origin): New data member.
3686 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3687 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3688 (get_origin_and_offset): Same.
3689 (format_string): Call it.
3690 (format_directive): Call append_alias and set directive argument
3691 number.
3692 (maybe_warn_overlap): New function.
3693 (pass_sprintf_length::compute_format_length): Call it.
3694 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3695 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3696
3697 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3698
3699 PR rtl-optimization/92430
3700 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3701 dominance info at the beginning.
3702
3703 2019-11-12 Richard Biener <rguenther@suse.de>
3704
3705 PR tree-optimization/92460
3706 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3707 expression before gimplifying.
3708
3709 2019-11-12 Richard Biener <rguenther@suse.de>
3710
3711 PR tree-optimization/92461
3712 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3713 stmt after propagation.
3714
3715 2019-11-12 Martin Liska <mliska@suse.cz>
3716
3717 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3718 Use SET_OPTION_IF_UNSET.
3719 (ix86_option_override_internal): Likewise.
3720 * opts.c (default_options_optimization): Likewise.
3721 (finish_options): Likewise.
3722 (enable_fdo_optimizations): Likewise.
3723 (common_handle_option): Likewise.
3724
3725 2019-11-12 Martin Liska <mliska@suse.cz>
3726
3727 * common/common-target.def: Remove option_validate_param and
3728 option_default_params.
3729 * common/common-targhooks.c (default_option_validate_param):
3730 Remove.
3731 * common/common-targhooks.h (default_option_validate_param):
3732 Remove.
3733 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3734 Remove usage of this.
3735 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3736 (aarch64_option_validate_param): Likewise.
3737 (aarch64_option_default_params): Likewise
3738 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3739 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3740 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3741 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3742 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3743 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3744 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3745 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3746 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3747 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3748 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3749 guard_size here.
3750 * doc/tm.texi: Remove option_default_params and option_validate_param.
3751 * doc/tm.texi.in: Likewise.
3752
3753 2019-11-12 Martin Liska <mliska@suse.cz>
3754
3755 * common/common-target.def:
3756 Do not mention set_default_param_value
3757 and set_param_value.
3758 * doc/tm.texi: Likewise.
3759
3760 2019-11-12 Martin Liska <mliska@suse.cz>
3761
3762 * common.opt: Remove param_values.
3763 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3764 Remove finalize_options_struct.
3765 * gcc.c (driver::decode_argv): Do not call global_init_params
3766 and finish_params.
3767 (driver::finalize): Do not call params_c_finalize
3768 and finalize_options_struct.
3769 * opt-suggestions.c (option_proposer::get_completions): Remove
3770 special casing of params.
3771 (option_proposer::find_param_completions): Remove.
3772 (test_completion_partial_match): Update expected output.
3773 * opt-suggestions.h: Remove find_param_completions.
3774 * opts-common.c (add_misspelling_candidates): Add
3775 --param with a space.
3776 * opts.c (handle_param): Remove.
3777 (init_options_struct):. Remove init_options_struct and
3778 similar calls.
3779 (finalize_options_struct): Remove.
3780 (common_handle_option): Use SET_OPTION_IF_UNSET.
3781 * opts.h (finalize_options_struct): Remove.
3782 * toplev.c (general_init): Do not call global_init_params.
3783 (toplev::finalize): Do not call params_c_finalize and
3784 finalize_options_struct.
3785
3786 2019-11-12 Martin Liska <mliska@suse.cz>
3787
3788 * Makefile.in: Remove PARAMS_H and params.list
3789 and params.options.
3790 * params-enum.h: Remove.
3791 * params-list.h: Remove.
3792 * params-options.h: Remove.
3793 * params.c: Remove.
3794 * params.def: Remove.
3795 * params.h: Remove.
3796 * asan.c: Do not include params.h.
3797 * auto-profile.c: Likewise.
3798 * bb-reorder.c: Likewise.
3799 * builtins.c: Likewise.
3800 * cfgcleanup.c: Likewise.
3801 * cfgexpand.c: Likewise.
3802 * cfgloopanal.c: Likewise.
3803 * cgraph.c: Likewise.
3804 * combine.c: Likewise.
3805 * common/config/aarch64/aarch64-common.c: Likewise.
3806 * common/config/gcn/gcn-common.c: Likewise.
3807 * common/config/ia64/ia64-common.c: Likewise.
3808 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3809 * common/config/rs6000/rs6000-common.c: Likewise.
3810 * common/config/sh/sh-common.c: Likewise.
3811 * config/aarch64/aarch64.c: Likewise.
3812 * config/alpha/alpha.c: Likewise.
3813 * config/arm/arm.c: Likewise.
3814 * config/avr/avr.c: Likewise.
3815 * config/csky/csky.c: Likewise.
3816 * config/i386/i386-builtins.c: Likewise.
3817 * config/i386/i386-expand.c: Likewise.
3818 * config/i386/i386-features.c: Likewise.
3819 * config/i386/i386-options.c: Likewise.
3820 * config/i386/i386.c: Likewise.
3821 * config/ia64/ia64.c: Likewise.
3822 * config/rs6000/rs6000-logue.c: Likewise.
3823 * config/rs6000/rs6000.c: Likewise.
3824 * config/s390/s390.c: Likewise.
3825 * config/sparc/sparc.c: Likewise.
3826 * config/visium/visium.c: Likewise.
3827 * coverage.c: Likewise.
3828 * cprop.c: Likewise.
3829 * cse.c: Likewise.
3830 * cselib.c: Likewise.
3831 * dse.c: Likewise.
3832 * emit-rtl.c: Likewise.
3833 * explow.c: Likewise.
3834 * final.c: Likewise.
3835 * fold-const.c: Likewise.
3836 * gcc.c: Likewise.
3837 * gcse.c: Likewise.
3838 * ggc-common.c: Likewise.
3839 * ggc-page.c: Likewise.
3840 * gimple-loop-interchange.cc: Likewise.
3841 * gimple-loop-jam.c: Likewise.
3842 * gimple-loop-versioning.cc: Likewise.
3843 * gimple-ssa-split-paths.c: Likewise.
3844 * gimple-ssa-sprintf.c: Likewise.
3845 * gimple-ssa-store-merging.c: Likewise.
3846 * gimple-ssa-strength-reduction.c: Likewise.
3847 * gimple-ssa-warn-alloca.c: Likewise.
3848 * gimple-ssa-warn-restrict.c: Likewise.
3849 * graphite-isl-ast-to-gimple.c: Likewise.
3850 * graphite-optimize-isl.c: Likewise.
3851 * graphite-scop-detection.c: Likewise.
3852 * graphite-sese-to-poly.c: Likewise.
3853 * graphite.c: Likewise.
3854 * haifa-sched.c: Likewise.
3855 * hsa-gen.c: Likewise.
3856 * ifcvt.c: Likewise.
3857 * ipa-cp.c: Likewise.
3858 * ipa-fnsummary.c: Likewise.
3859 * ipa-inline-analysis.c: Likewise.
3860 * ipa-inline.c: Likewise.
3861 * ipa-polymorphic-call.c: Likewise.
3862 * ipa-profile.c: Likewise.
3863 * ipa-prop.c: Likewise.
3864 * ipa-split.c: Likewise.
3865 * ipa-sra.c: Likewise.
3866 * ira-build.c: Likewise.
3867 * ira-conflicts.c: Likewise.
3868 * loop-doloop.c: Likewise.
3869 * loop-invariant.c: Likewise.
3870 * loop-unroll.c: Likewise.
3871 * lra-assigns.c: Likewise.
3872 * lra-constraints.c: Likewise.
3873 * modulo-sched.c: Likewise.
3874 * opt-suggestions.c: Likewise.
3875 * opts.c: Likewise.
3876 * postreload-gcse.c: Likewise.
3877 * predict.c: Likewise.
3878 * reload.c: Likewise.
3879 * reorg.c: Likewise.
3880 * resource.c: Likewise.
3881 * sanopt.c: Likewise.
3882 * sched-deps.c: Likewise.
3883 * sched-ebb.c: Likewise.
3884 * sched-rgn.c: Likewise.
3885 * sel-sched-ir.c: Likewise.
3886 * sel-sched.c: Likewise.
3887 * shrink-wrap.c: Likewise.
3888 * stmt.c: Likewise.
3889 * targhooks.c: Likewise.
3890 * toplev.c: Likewise.
3891 * tracer.c: Likewise.
3892 * trans-mem.c: Likewise.
3893 * tree-chrec.c: Likewise.
3894 * tree-data-ref.c: Likewise.
3895 * tree-if-conv.c: Likewise.
3896 * tree-inline.c: Likewise.
3897 * tree-loop-distribution.c: Likewise.
3898 * tree-parloops.c: Likewise.
3899 * tree-predcom.c: Likewise.
3900 * tree-profile.c: Likewise.
3901 * tree-scalar-evolution.c: Likewise.
3902 * tree-sra.c: Likewise.
3903 * tree-ssa-ccp.c: Likewise.
3904 * tree-ssa-dom.c: Likewise.
3905 * tree-ssa-dse.c: Likewise.
3906 * tree-ssa-ifcombine.c: Likewise.
3907 * tree-ssa-loop-ch.c: Likewise.
3908 * tree-ssa-loop-im.c: Likewise.
3909 * tree-ssa-loop-ivcanon.c: Likewise.
3910 * tree-ssa-loop-ivopts.c: Likewise.
3911 * tree-ssa-loop-manip.c: Likewise.
3912 * tree-ssa-loop-niter.c: Likewise.
3913 * tree-ssa-loop-prefetch.c: Likewise.
3914 * tree-ssa-loop-unswitch.c: Likewise.
3915 * tree-ssa-math-opts.c: Likewise.
3916 * tree-ssa-phiopt.c: Likewise.
3917 * tree-ssa-pre.c: Likewise.
3918 * tree-ssa-reassoc.c: Likewise.
3919 * tree-ssa-sccvn.c: Likewise.
3920 * tree-ssa-scopedtables.c: Likewise.
3921 * tree-ssa-sink.c: Likewise.
3922 * tree-ssa-strlen.c: Likewise.
3923 * tree-ssa-structalias.c: Likewise.
3924 * tree-ssa-tail-merge.c: Likewise.
3925 * tree-ssa-threadbackward.c: Likewise.
3926 * tree-ssa-threadedge.c: Likewise.
3927 * tree-ssa-uninit.c: Likewise.
3928 * tree-switch-conversion.c: Likewise.
3929 * tree-vect-data-refs.c: Likewise.
3930 * tree-vect-loop.c: Likewise.
3931 * tree-vect-slp.c: Likewise.
3932 * tree-vrp.c: Likewise.
3933 * tree.c: Likewise.
3934 * value-prof.c: Likewise.
3935 * var-tracking.c: Likewise.
3936
3937 2019-11-12 Martin Liska <mliska@suse.cz>
3938
3939 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3940 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3941 macro.
3942 (asan_sanitize_allocas_p): Likewise.
3943 (asan_emit_stack_protection): Likewise.
3944 (asan_protect_global): Likewise.
3945 (instrument_derefs): Likewise.
3946 (instrument_builtin_call): Likewise.
3947 (asan_expand_mark_ifn): Likewise.
3948 * auto-profile.c (auto_profile): Likewise.
3949 * bb-reorder.c (copy_bb_p): Likewise.
3950 (duplicate_computed_gotos): Likewise.
3951 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3952 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3953 (try_crossjump_bb): Likewise.
3954 * cfgexpand.c (defer_stack_allocation): Likewise.
3955 (stack_protect_classify_type): Likewise.
3956 (pass_expand::execute): Likewise.
3957 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3958 (estimate_reg_pressure_cost): Likewise.
3959 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3960 * combine.c (combine_instructions): Likewise.
3961 (record_value_for_reg): Likewise.
3962 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3963 (aarch64_option_default_params): Likewise.
3964 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3965 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3966 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3967 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3968 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3969 (aarch64_allocate_and_probe_stack_space): Likewise.
3970 (aarch64_expand_epilogue): Likewise.
3971 (aarch64_override_options_internal): Likewise.
3972 * config/alpha/alpha.c (alpha_option_override): Likewise.
3973 * config/arm/arm.c (arm_option_override): Likewise.
3974 (arm_valid_target_attribute_p): Likewise.
3975 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3976 * config/i386/i386.c (get_probe_interval): Likewise.
3977 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3978 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3979 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3980 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3981 (get_stack_clash_protection_guard_size): Likewise.
3982 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3983 * config/s390/s390.c (allocate_stack_space): Likewise.
3984 (s390_emit_prologue): Likewise.
3985 (s390_option_override_internal): Likewise.
3986 * config/sparc/sparc.c (sparc_option_override): Likewise.
3987 * config/visium/visium.c (visium_option_override): Likewise.
3988 * coverage.c (get_coverage_counts): Likewise.
3989 (coverage_compute_profile_id): Likewise.
3990 (coverage_begin_function): Likewise.
3991 (coverage_end_function): Likewise.
3992 * cse.c (cse_find_path): Likewise.
3993 (cse_extended_basic_block): Likewise.
3994 (cse_main): Likewise.
3995 * cselib.c (cselib_invalidate_mem): Likewise.
3996 * dse.c (dse_step1): Likewise.
3997 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3998 (get_max_insn_count): Likewise.
3999 (make_debug_insn_raw): Likewise.
4000 (init_emit): Likewise.
4001 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4002 * final.c (compute_alignments): Likewise.
4003 * fold-const.c (fold_range_test): Likewise.
4004 (fold_truth_andor): Likewise.
4005 (tree_single_nonnegative_warnv_p): Likewise.
4006 (integer_valued_real_single_p): Likewise.
4007 * gcse.c (want_to_gcse_p): Likewise.
4008 (prune_insertions_deletions): Likewise.
4009 (hoist_code): Likewise.
4010 (gcse_or_cprop_is_too_expensive): Likewise.
4011 * ggc-common.c: Likewise.
4012 * ggc-page.c (ggc_collect): Likewise.
4013 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4014 (MAX_DATAREFS): Likewise.
4015 (OUTER_STRIDE_RATIO): Likewise.
4016 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4017 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4018 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4019 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4020 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4021 (imm_store_chain_info::output_merged_store): Likewise.
4022 (pass_store_merging::process_store): Likewise.
4023 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4024 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4025 (scop_to_isl_ast): Likewise.
4026 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4027 (optimize_isl): Likewise.
4028 * graphite-scop-detection.c (build_scops): Likewise.
4029 * haifa-sched.c (set_modulo_params): Likewise.
4030 (rank_for_schedule): Likewise.
4031 (model_add_to_worklist): Likewise.
4032 (model_promote_insn): Likewise.
4033 (model_choose_insn): Likewise.
4034 (queue_to_ready): Likewise.
4035 (autopref_multipass_dfa_lookahead_guard): Likewise.
4036 (schedule_block): Likewise.
4037 (sched_init): Likewise.
4038 * hsa-gen.c (init_prologue): Likewise.
4039 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4040 (cond_move_process_if_block): Likewise.
4041 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4042 (merge_agg_lats_step): Likewise.
4043 (devirtualization_time_bonus): Likewise.
4044 (hint_time_bonus): Likewise.
4045 (incorporate_penalties): Likewise.
4046 (good_cloning_opportunity_p): Likewise.
4047 (ipcp_propagate_stage): Likewise.
4048 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4049 (set_switch_stmt_execution_predicate): Likewise.
4050 (analyze_function_body): Likewise.
4051 (compute_fn_summary): Likewise.
4052 * ipa-inline-analysis.c (estimate_growth): Likewise.
4053 * ipa-inline.c (caller_growth_limits): Likewise.
4054 (inline_insns_single): Likewise.
4055 (inline_insns_auto): Likewise.
4056 (can_inline_edge_by_limits_p): Likewise.
4057 (want_early_inline_function_p): Likewise.
4058 (big_speedup_p): Likewise.
4059 (want_inline_small_function_p): Likewise.
4060 (want_inline_self_recursive_call_p): Likewise.
4061 (edge_badness): Likewise.
4062 (recursive_inlining): Likewise.
4063 (compute_max_insns): Likewise.
4064 (early_inliner): Likewise.
4065 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4066 * ipa-profile.c (ipa_profile): Likewise.
4067 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4068 (ipa_analyze_node): Likewise.
4069 (ipcp_transform_function): Likewise.
4070 * ipa-split.c (consider_split): Likewise.
4071 * ipa-sra.c (allocate_access): Likewise.
4072 (process_scan_results): Likewise.
4073 (ipa_sra_summarize_function): Likewise.
4074 (pull_accesses_from_callee): Likewise.
4075 * ira-build.c (loop_compare_func): Likewise.
4076 (mark_loops_for_removal): Likewise.
4077 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4078 * loop-doloop.c (doloop_optimize): Likewise.
4079 * loop-invariant.c (gain_for_invariant): Likewise.
4080 (move_loop_invariants): Likewise.
4081 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4082 (decide_unroll_runtime_iterations): Likewise.
4083 (decide_unroll_stupid): Likewise.
4084 (expand_var_during_unrolling): Likewise.
4085 * lra-assigns.c (spill_for): Likewise.
4086 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4087 * modulo-sched.c (sms_schedule): Likewise.
4088 (DFA_HISTORY): Likewise.
4089 * opts.c (default_options_optimization): Likewise.
4090 (finish_options): Likewise.
4091 (common_handle_option): Likewise.
4092 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4093 (if): Likewise.
4094 * predict.c (get_hot_bb_threshold): Likewise.
4095 (maybe_hot_count_p): Likewise.
4096 (probably_never_executed): Likewise.
4097 (predictable_edge_p): Likewise.
4098 (predict_loops): Likewise.
4099 (expr_expected_value_1): Likewise.
4100 (tree_predict_by_opcode): Likewise.
4101 (handle_missing_profiles): Likewise.
4102 * reload.c (find_equiv_reg): Likewise.
4103 * reorg.c (redundant_insn): Likewise.
4104 * resource.c (mark_target_live_regs): Likewise.
4105 (incr_ticks_for_insn): Likewise.
4106 * sanopt.c (pass_sanopt::execute): Likewise.
4107 * sched-deps.c (sched_analyze_1): Likewise.
4108 (sched_analyze_2): Likewise.
4109 (sched_analyze_insn): Likewise.
4110 (deps_analyze_insn): Likewise.
4111 * sched-ebb.c (schedule_ebbs): Likewise.
4112 * sched-rgn.c (find_single_block_region): Likewise.
4113 (too_large): Likewise.
4114 (haifa_find_rgns): Likewise.
4115 (extend_rgns): Likewise.
4116 (new_ready): Likewise.
4117 (schedule_region): Likewise.
4118 (sched_rgn_init): Likewise.
4119 * sel-sched-ir.c (make_region_from_loop): Likewise.
4120 * sel-sched-ir.h (MAX_WS): Likewise.
4121 * sel-sched.c (process_pipelined_exprs): Likewise.
4122 (sel_setup_region_sched_flags): Likewise.
4123 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4124 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4125 * toplev.c (print_version): Likewise.
4126 (process_options): Likewise.
4127 * tracer.c (tail_duplicate): Likewise.
4128 * trans-mem.c (tm_log_add): Likewise.
4129 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4130 * tree-data-ref.c (split_constant_offset): Likewise.
4131 (compute_all_dependences): Likewise.
4132 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4133 * tree-inline.c (remap_gimple_stmt): Likewise.
4134 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4135 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4136 (create_parallel_loop): Likewise.
4137 * tree-predcom.c (determine_unroll_factor): Likewise.
4138 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4139 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4140 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4141 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4142 (dse_optimize_redundant_stores): Likewise.
4143 (dse_classify_store): Likewise.
4144 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4145 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4146 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4147 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4148 (try_peel_loop): Likewise.
4149 (tree_unroll_loops_completely): Likewise.
4150 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4151 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4152 (MAX_CONSIDERED_GROUPS): Likewise.
4153 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4154 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4155 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4156 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4157 (L1_CACHE_SIZE_BYTES): Likewise.
4158 (L2_CACHE_SIZE_BYTES): Likewise.
4159 (should_issue_prefetch_p): Likewise.
4160 (schedule_prefetches): Likewise.
4161 (determine_unroll_factor): Likewise.
4162 (volume_of_references): Likewise.
4163 (add_subscript_strides): Likewise.
4164 (self_reuse_distance): Likewise.
4165 (mem_ref_count_reasonable_p): Likewise.
4166 (insn_to_prefetch_ratio_too_small_p): Likewise.
4167 (loop_prefetch_arrays): Likewise.
4168 (tree_ssa_prefetch_arrays): Likewise.
4169 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4170 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4171 (convert_mult_to_fma): Likewise.
4172 (math_opts_dom_walker::after_dom_children): Likewise.
4173 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4174 (hoist_adjacent_loads): Likewise.
4175 (gate_hoist_loads): Likewise.
4176 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4177 (compute_partial_antic_aux): Likewise.
4178 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4179 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4180 (vn_reference_lookup): Likewise.
4181 (do_rpo_vn): Likewise.
4182 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4183 * tree-ssa-sink.c (select_best_block): Likewise.
4184 * tree-ssa-strlen.c (new_stridx): Likewise.
4185 (new_addr_stridx): Likewise.
4186 (get_range_strlen_dynamic): Likewise.
4187 (class ssa_name_limit_t): Likewise.
4188 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4189 (create_variable_info_for_1): Likewise.
4190 (init_alias_vars): Likewise.
4191 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4192 (tail_merge_optimize): Likewise.
4193 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4194 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4195 (thread_jumps::find_jump_threads_backwards): Likewise.
4196 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4197 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4198 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4199 (jump_table_cluster::can_be_handled): Likewise.
4200 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4201 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4202 (param_switch_conversion_branch_ratio): Likewise.
4203 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4204 (vect_enhance_data_refs_alignment): Likewise.
4205 (vect_prune_runtime_alias_test_list): Likewise.
4206 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4207 (vect_get_datarefs_in_loop): Likewise.
4208 (vect_analyze_loop): Likewise.
4209 * tree-vect-slp.c (vect_slp_bb): Likewise.
4210 * tree-vectorizer.h: Likewise.
4211 * tree-vrp.c (find_switch_asserts): Likewise.
4212 (vrp_prop::check_mem_ref): Likewise.
4213 * tree.c (wide_int_to_tree_1): Likewise.
4214 (cache_integer_cst): Likewise.
4215 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4216 (reverse_op): Likewise.
4217 (vt_find_locations): Likewise.
4218
4219 2019-11-12 Martin Liska <mliska@suse.cz>
4220
4221 * Makefile.in: Include params.opt.
4222 * flag-types.h (enum parloops_schedule_type): Add
4223 parloops_schedule_type used in params.opt.
4224 * params.opt: New file.
4225
4226 2019-11-12 Martin Liska <mliska@suse.cz>
4227
4228 * common.opt: Remove --param and --param= options.
4229 * opt-functions.awk: Mark CL_PARAMS for options
4230 that have Param keyword.
4231 * opts-common.c (decode_cmdline_options_to_array):
4232 Replace --param key=value with --param=key=value.
4233 * opts.c (print_filtered_help): Remove special
4234 printing of params.
4235 (print_specific_help): Update title for params.
4236 (common_handle_option): Do not handle OPT__param.
4237 opts.h (SET_OPTION_IF_UNSET): New macro.
4238 * doc/options.texi: Document Param keyword.
4239
4240 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4241 Frederik Harwath <frederik@codesourcery.com>
4242 Thomas Schwinge <thomas@codesourcery.com>
4243
4244 gcc/
4245 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4246 enumeration constant.
4247 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4248 (is_gimple_omp_offloaded): Likewise.
4249 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4250 constant. Adjust the value of ORT_NONE accordingly.
4251 (is_gimple_stmt): Handle OACC_SERIAL.
4252 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4253 (gomp_needs_data_present): Likewise.
4254 (gimplify_adjust_omp_clauses): Likewise.
4255 (gimplify_omp_workshare): Handle OACC_SERIAL.
4256 (gimplify_expr): Likewise.
4257 * omp-expand.c (expand_omp_target):
4258 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4259 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4260 * omp-low.c (is_oacc_parallel): Rename function to...
4261 (is_oacc_parallel_or_serial): ... this.
4262 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4263 (scan_sharing_clauses): Adjust accordingly.
4264 (scan_omp_for): Likewise.
4265 (lower_oacc_head_mark): Likewise.
4266 (convert_from_firstprivate_int): Likewise.
4267 (lower_omp_target): Likewise.
4268 (check_omp_nesting_restrictions): Handle
4269 GF_OMP_TARGET_KIND_OACC_SERIAL.
4270 (lower_oacc_reductions): Likewise.
4271 (lower_omp_target): Likewise.
4272 * tree.def (OACC_SERIAL): New tree code.
4273 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4274
4275 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4276
4277 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4278
4279 PR target/92449
4280 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4281 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4282
4283 PR tree-optimization/92452
4284 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4285 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4286 MINUS_EXPR on it.
4287
4288 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4289
4290 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4291 safelen with 0.
4292
4293 2019-11-12 Alan Modra <amodra@gmail.com>
4294
4295 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4296 element of unspec vec.
4297 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4298 PC-relative TLS.
4299 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4300 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4301 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4302 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4303
4304 2019-11-12 Alan Modra <amodra@gmail.com>
4305
4306 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4307 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4308 (IS_NOMARK_TLSGETADDR): Likewise.
4309 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4310 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4311 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4312 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4313 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4314 (rs6000_indirect_call_template_1): Likewise.
4315 (rs6000_pltseq_template): Likewise.
4316 (rs6000_opt_vars): Remove "tls-markers" entry.
4317 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4318 with TARGET_ELF.
4319 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4320 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4321 (pltseq_plt_pcrel<mode>): Likewise.
4322 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4323 (call_value_local64): Likewise.
4324 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4325 output and length attribute sub-expression.
4326 (call_value_nonlocal_sysv<mode>),
4327 (call_value_nonlocal_sysv_secure<mode>),
4328 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4329 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4330 (call_value_indirect_pcrel<mode>): Likewise.
4331 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4332 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4333 * configure: Regenerate.
4334 * config.in: Regenerate.
4335
4336 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4337
4338 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4339 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4340 address being a prefixed load/store.
4341 (stack_protect_testdi): Deal with either address being a prefixed
4342 load.
4343
4344 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4345
4346 PR bootstrap/92433
4347 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4348 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4349 std::swap.
4350
4351 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4352
4353 PR tree-optimization/92420
4354 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4355 up file.
4356 (get_group_load_store_type): Use it for reversed SLP accesses.
4357
4358 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4359
4360 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4361 summary.
4362 (ipcp_transformation_t::duplicate): Break out from ...
4363 (ipa_node_params_t::duplicate): ... here; add copying of agg
4364 replacements.
4365 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4366 (ipcp_transformation_t): Add duplicate.
4367
4368 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4369
4370 PR fortran/91828
4371 * doc/install.texi: Document that the minimum MPFR version is
4372 3.1.0.
4373
4374 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4375
4376 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4377 use new register constraint letters.
4378
4379 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4380
4381 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4382 as well, if interesting recover the symbol and re-legitimize the
4383 pic address.
4384
4385 2019-11-11 Martin Liska <mliska@suse.cz>
4386
4387 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4388 alphabetically.
4389
4390 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4391
4392 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4393 account when checking if there are enough iterations to vectorize
4394 epilogue.
4395
4396 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4397 Kwok Cheung Yeung <kcy@codesourcery.com>
4398
4399 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4400 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4401 (LANG_HOOKS_DECLS): Rename also here.
4402 * langhooks.h (lang_hooks_for_decls): Rename
4403 omp_is_optional_argument to omp_check_optional_argument; take
4404 additional bool argument.
4405 * omp-general.h (omp_check_optional_argument): Likewise.
4406 * omp-general.h (omp_check_optional_argument): Likewise.
4407 * omp-low.c (lower_omp_target): Update calls; handle absent
4408 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4409
4410 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4411
4412 PR target/87833
4413 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4414 -fPIC and -shared the last to create offload image.
4415
4416 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4417
4418 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4419 of 'offset'.
4420
4421 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4422 (config.status): Use/depend on it.
4423 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4424 * configure: Regenerate.
4425
4426 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4427
4428 PR tree-optimization/88760
4429 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4430 * gcc/common/config/rs6000/rs6000-common.c
4431 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4432 Turn on -funroll-loops and -munroll-only-small-loops.
4433 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4434 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4435 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4436 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4437 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4438 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4439
4440 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4441
4442 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4443 Make scalar_load, vector_load, unaligned_load and
4444 vector_gather_load cost more to conform hardware latency and
4445 insn cost settings.
4446
4447 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4448
4449 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4450 (MACHO_SYMBOL_LINKER_VIS_P): New.
4451
4452 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4453
4454 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4455 registers in eliminable_regset.
4456
4457 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4458
4459 * ipa-inline.c (compute_uninlined_call_time,
4460 compute_inlined_call_time): Take edge frequency as
4461 parameter rather than computing it by itself.
4462 (big_speedup_p, edge_badness): Manually CSE sreal
4463 frequency calculations.
4464
4465 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4466
4467 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4468 case where profiles are same.
4469
4470 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4471
4472 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4473
4474 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4475
4476 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4477 args summaries of inlined edge unless it holds info about
4478 described reference.
4479
4480 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4481
4482 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4483 (*movcc_internal1): Rename to...
4484 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4485
4486 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4487
4488 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4489 (cgraph_node::create_virtual_clone): Copy it.
4490 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4491 summaries.
4492 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4493 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4494 is disabled.
4495 (propagate_constants_across_call): If callee is not analyzed, give up.
4496 (propagate_constants_topo): Lower to bottom latties of all callees of
4497 functions with ipa-cp disabled.
4498 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4499 (cgraph_edge_brings_value_p): Check for availability first.
4500 (create_specialized_node): Set ipcp_clone.
4501 (ipcp_store_bits_results): Check that info is present.
4502 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4503 thunks.
4504 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4505 conservative when callee summary is missing.
4506 (remap_edge_summaries): Lookup call summary only when needed.
4507 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4508 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4509 Use get_create.
4510 (ipa_analyze_node): Use get_create.
4511 (propagate_controlled_uses): Do not propagate when function is not
4512 analyzed.
4513 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4514 (ipa_read_node_info): Use get_create.
4515 * ipa-prop.h (IPA_NODE_REF): Use get.
4516 (IPA_NODE_REF_GET_CREATE): New.
4517
4518 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4519
4520 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4521 on function symbol.
4522
4523 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4524
4525 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4526 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4527 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4528 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4529
4530 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4531
4532 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4533 capping the growth cumulated.
4534 (offline_size): Break out from ...
4535 (estimate_growth): ... here.
4536 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4537 parameters.
4538 (growth_likely_positive): Turn to ...
4539 (growth_positive_p): Re-implement.
4540 * ipa-inline.h (growth_likely_positive): Remove.
4541 (growth_positive_p): Declare.
4542 * ipa-inline.c (want_inline_small_function_p): Use
4543 growth_positive_p.
4544 (want_inline_function_to_all_callers_p): Likewise.
4545
4546 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4547
4548 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4549 calculation of min_size.
4550 (ipa_update_overall_fn_summary): Likewise.
4551
4552 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4553
4554 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4555 estimate_edge_devirt_benefit when not computing hints;
4556 do not compute time when not asked for.
4557 (estimate_calls_size_and_time): Pass NULL hints and time when
4558 these are not computed; do not evaluate hint predicates when these are
4559 not computed.
4560 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4561 frequency.
4562
4563 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4564
4565 PR tree-optimization/92401
4566 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4567 if res_op->code is an expression with code length 1.
4568 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4569 if res_op->code is an expression with code length 2.
4570 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4571 if res_op->code is an expression with code length 3.
4572
4573 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4574
4575 * config/darwin.c (machopic_mcount_stub_name): Validate the
4576 symbol stub name when it is created.
4577 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4578 stub validation.
4579
4580 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4581
4582 * symtab.c: Fix comment typos.
4583 * cgraphunit.c: Likewise.
4584 * cgraph.h: Likewise.
4585 * cgraphclones.c: Likewise.
4586 * cgraph.c: Likewise.
4587 * varpool.c: Likewise.
4588 * tree-ssa-strlen.c: Likewise.
4589 * ipa-sra.c: Likewise.
4590 (scan_expr_access, check_all_callers_for_issues): Fix typo
4591 in a dump message.
4592
4593 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4594
4595 * config/darwin-protos.h: Add include quard.
4596
4597 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4598
4599 * range-op.h (range_operator::fold_range): Return result in a
4600 reference parameter instead of by value.
4601 (range_operator::wi_fold): Same.
4602 * range-op.cc (range_operator::wi_fold): Return result in a reference
4603 parameter instead of by value.
4604 (range_operator::fold_range): Same.
4605 (value_range_from_overflowed_bounds): Same.
4606 (value_range_with_overflow): Same
4607 (create_possibly_reversed_range): Same.
4608 (operator_equal::fold_range): Same.
4609 (operator_not_equal::fold_range): Same.
4610 (operator_lt::fold_range): Same.
4611 (operator_le::fold_range): Same.
4612 (operator_gt::fold_range): Same.
4613 (operator_ge::fold_range): Same.
4614 (operator_plus::wi_fold): Same.
4615 (operator_plus::op1_range): Change call to fold_range.
4616 (operator_plus::op2_range): Change call to fold_range.
4617 (operator_minus::wi_fold): Return result via reference parameter.
4618 (operator_minus::op1_range): Change call to fold_range.
4619 (operator_minus::op2_range): Change call to fold_range.
4620 (operator_min::wi_fold): Return result via reference parameter.
4621 (operator_max::wi_fold): Same.
4622 (cross_product_operator::wi_cross_product): Same.
4623 (operator_mult::wi_fold): Same.
4624 (operator_div::wi_fold): Same.
4625 (operator_div op_floor_div): Fix whitespace.
4626 (operator_exact_divide::op1_range): Change call to fold_range.
4627 (operator_lshift::fold_range): Return result via reference parameter.
4628 (operator_lshift::wi_fold): Same.
4629 (operator_rshift::fold_range): Same.
4630 (operator_rshift::wi_fold): Same.
4631 (operator_cast::fold_range): Same.
4632 (operator_cast::op1_range): Change calls to fold_range.
4633 (operator_logical_and::fold_range): Return result via reference.
4634 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4635 (operator_bitwise_and::wi_fold): Return result via reference.
4636 (operator_logical_or::fold_range): Same.
4637 (operator_bitwise_or::wi_fold): Same.
4638 (operator_bitwise_xor::wi_fold): Same.
4639 (operator_trunc_mod::wi_fold): Same.
4640 (operator_logical_not::fold_range): Same.
4641 (operator_bitwise_not::fold_range): Same.
4642 (operator_bitwise_not::op1_range): Change call to fold_range.
4643 (operator_cst::fold_range): Return result via reference.
4644 (operator_identity::fold_range): Same.
4645 (operator_abs::wi_fold): Same.
4646 (operator_absu::wi_fold): Same.
4647 (operator_negate::fold_range): Same.
4648 (operator_negate::op1_range): Change call to fold_range.
4649 (operator_addr_expr::fold_range): Return result via reference.
4650 (operator_addr_expr::op1_range): Change call to fold_range.
4651 (operator_pointer_plus::wi_fold): Return result via reference.
4652 (operator_pointer_min_max::wi_fold): Same.
4653 (operator_pointer_and::wi_fold): Same.
4654 (operator_pointer_or::wi_fold): Same.
4655 (range_op_handler): Change call to fold_range.
4656 (range_cast): Same.
4657 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4658 fold_range.
4659 (range_fold_unary_symbolics_p): Same.
4660 (range_fold_binary_expr): Same.
4661 (range_fold_unary_expr): Same.
4662
4663 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4664
4665 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4666 vector type as an argument rather than reading it from the
4667 stmt_vec_info.
4668 (vect_create_epilog_for_reduction): Update accordingly.
4669 (vectorizable_reduction): Likewise.
4670 (vect_transform_cycle_phi): Likewise.
4671
4672 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4673
4674 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4675 the comparison codes that make sense for the mode used, and only the
4676 codes that can be done with a single branch instruction.
4677
4678 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4679
4680 PR tree-optimization/92351
4681 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4682 peeling the main loop for alignment, make sure to set the misalignment
4683 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4684
4685 2019-11-08 Richard Biener <rguenther@suse.de>
4686
4687 * dbgcnt.def (ivopts_loop): Add.
4688 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4689 ivopts_loop before optimizing a loop.
4690
4691 2019-11-08 Richard Biener <rguenther@suse.de>
4692
4693 PR ipa/92409
4694 * tree-inline.c (declare_return_variable): Properly handle
4695 type mismatches for the return slot.
4696
4697 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4698
4699 PR target/92095
4700 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4701 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4702 change.
4703 (got_helper_needed): New static variable.
4704 (output_load_pcrel_sym): New function.
4705 (get_pc_thunk_name): Remove after inlining...
4706 (load_got_register): ...here. Rework the initialization of the GOT
4707 register and of the GOT helper.
4708 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4709 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4710 helper must be emitted. Use output_asm_insn instead of fprintf.
4711 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4712 if optimization is enabled.
4713 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4714 by calling output_load_pcrel_sym.
4715
4716 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4717
4718 * tree-sra.c (create_access): Delay disqualifying the base
4719 for poly_int values until we know we have a base.
4720
4721 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4722
4723 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4724 for loops with SIMDUID set. Enable epilogue vectorization for loops
4725 with SIMDLEN set after finding a main loop with a VF that matches it.
4726
4727 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4728
4729 PR target/92038
4730 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4731 value only, return non-NULL if there is a single non-clobber
4732 constituent store even if there are constituent clobbers and return
4733 one of clobber constituent stores if all constituent stores are
4734 clobbers.
4735 (split_group): Handle clobbers.
4736 (imm_store_chain_info::output_merged_store): When computing
4737 bzero_first, look after all clobbers at the start. Don't count
4738 clobber stmts in orig_num_stmts, except if the first orig store is
4739 a clobber covering the whole area and split_stores cover the whole
4740 area, consider equal number of stmts ok. Punt if split_stores
4741 contains only ->orig stores and their number plus number of original
4742 clobbers is equal to original number of stmts. For ->orig, look past
4743 clobbers in the constituent stores.
4744 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4745 stmts.
4746 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4747 rhs.
4748 (store_valid_for_store_merging_p): Allow clobber stmts.
4749 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4750
4751 PR c++/92384
4752 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4753 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4754 slot.
4755 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4756 force creation of a unique data.stack_parm slot.
4757
4758 2019-11-08 Richard Biener <rguenther@suse.de>
4759
4760 * genmatch.c (expr::gen_transform): Use the resimplify
4761 member function instead of hard-coding the gimple_resimplifyN variant.
4762 (dt_simplify::gen_1): Likewise.
4763
4764 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4765
4766 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4767 POLY_INT_CST.
4768
4769 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4770
4771 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4772 instead of INTEGER_CST.
4773
4774 2019-11-08 Richard Biener <rguenther@suse.de>
4775
4776 PR tree-optimization/92324
4777 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4778 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4779 sign-conversions as necessary.
4780 (vectorizable_reduction): Reject conversions in the chain
4781 that are not sign-conversions, base analysis on a non-converting
4782 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4783 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4784 for debug stmts.
4785 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4786 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4787
4788 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4789
4790 PR target/92055
4791 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4792 Fix a missing '-' when displaying these options in the
4793 help screen.
4794
4795 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4796
4797 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4798
4799 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4800
4801 * config/aarch64/aarch64-builtins.c
4802 (aarch64_builtin_vectorized_function): Remove bswap handling.
4803
4804 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4805
4806 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4807 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4808 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4809 Treat the vector types as indivisible.
4810
4811 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4812
4813 * optabs.def (gather_load_optab, mask_gather_load_optab)
4814 (scatter_store_optab, mask_scatter_store_optab): Turn into
4815 conversion optabs, with the offset mode given explicitly.
4816 * doc/md.texi: Update accordingly.
4817 * config/aarch64/aarch64-sve-builtins-base.cc
4818 (svld1_gather_impl::expand): Likewise.
4819 (svst1_scatter_impl::expand): Likewise.
4820 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4821 (expand_scatter_store_optab_fn): Likewise.
4822 (direct_gather_load_optab_supported_p): Likewise.
4823 (direct_scatter_store_optab_supported_p): Likewise.
4824 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4825 to be argument 4.
4826 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4827 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4828 argument with the offset vector type. Require the two vector
4829 types to have the same number of elements but allow their element
4830 sizes to be different. Treat the optabs as conversion optabs.
4831 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4832 prototype accordingly.
4833 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4834 (supports_vec_convert_optab_p): ...this new function.
4835 (supports_vec_gather_load_p): Update accordingly.
4836 (supports_vec_scatter_store_p): Likewise.
4837 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4838 Replace the offset sign and bits parameters with a scalar type tree.
4839 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4840 Pass back the offset vector type instead of the scalar element type.
4841 Allow the offset to be wider than the memory elements. Search for
4842 an offset type that the target supports, stopping once we've
4843 reached the maximum of the element size and pointer size.
4844 Update call to internal_gather_scatter_fn_supported_p.
4845 (vect_check_gather_scatter): Update calls accordingly.
4846 When testing a new scale before knowing the final offset type,
4847 check whether the scale is supported for any signed or unsigned
4848 offset type. Check whether the target supports the source and
4849 target types of a conversion before deciding whether to look
4850 through the conversion. Record the chosen offset_vectype.
4851 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4852 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4853 directly from the gs_info's offset_vectype instead. Pass a zero
4854 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4855 * tree-vect-stmts.c (check_load_store_masking): Update call to
4856 internal_gather_scatter_fn_supported_p, passing the offset vector
4857 type recorded in the gs_info.
4858 (vect_truncate_gather_scatter_offset): Update call to
4859 vect_check_gather_scatter, leaving it to search for a valid
4860 offset vector type.
4861 (vect_use_strided_gather_scatters_p): Convert the offset to the
4862 element type of the gs_info's offset_vectype.
4863 (vect_get_gather_scatter_ops): Get the offset vector type directly
4864 from the gs_info.
4865 (vect_get_strided_load_store_ops): Likewise.
4866 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4867 and IFN_MASK_GATHER_LOAD.
4868 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4869 (gather_load<mode><v_int_equiv>): ...this.
4870 (mask_gather_load<mode>): Rename to...
4871 (mask_gather_load<mode><v_int_equiv>): ...this.
4872 (scatter_store<mode>): Rename to...
4873 (scatter_store<mode><v_int_equiv>): ...this.
4874 (mask_scatter_store<mode>): Rename to...
4875 (mask_scatter_store<mode><v_int_equiv>): ...this.
4876
4877 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4878
4879 PR target/92132
4880 * config/rs6000/predicates.md
4881 (signed_or_equality_comparison_operator): New predicate.
4882 (unsigned_or_equality_comparison_operator): Likewise.
4883 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4884 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4885 * config/rs6000/vector.md
4886 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4887 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4888 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4889 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4890 vector modes and same-size integer vector modes.
4891 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4892 (vector_lt<mode> for VEC_F): New expand.
4893 (vector_le<mode> for VEC_F): Likewise.
4894 (vector_ne<mode> for VEC_F): Likewise.
4895 (vector_unge<mode> for VEC_F): Likewise.
4896 (vector_ungt<mode> for VEC_F): Likewise.
4897 (vector_unle<mode> for VEC_F): Likewise.
4898 (vector_unlt<mode> for VEC_F): Likewise.
4899 (vector_uneq<mode>): Expose name.
4900 (vector_ltgt<mode>): Likewise.
4901 (vector_unordered<mode>): Likewise.
4902 (vector_ordered<mode>): Likewise.
4903
4904 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4905
4906 PR target/92295
4907 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4908 Enhance ix86_expand_vector_init_concat.
4909
4910 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4911
4912 * doc/invoke.texi (-Wold-style-definition): Document () not being
4913 considered an old-style definition for C2x.
4914
4915 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4916
4917 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4918 Enhance comment.
4919 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4920 insn patterns using ldcw instruction.
4921 (memory_barrier): Remove insn pattern using sync instruction.
4922 * config/pa/pa.opt (coherent-ldcw): New option.
4923 (ordered): New option.
4924
4925 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4926
4927 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4928 valid conditions.
4929
4930 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4931
4932 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4933 typo - mistmatch -> mismatch.
4934 * ipa-profile.c (ipa_profile): Likewise.
4935 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4936 - mistmatch -> mismatch.
4937
4938 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4939
4940 * simplify-rtx.c (comparison_to_mask): New function.
4941 (mask_to_comparison): New function.
4942 (simplify_logical_relational_operation): New function.
4943 (simplify_binary_operation_1): Call
4944 simplify_logical_relational_operation.
4945
4946 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4947
4948 PR other/92090
4949 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4950 modes for integer constants.
4951
4952 2019-11-07 Jan Hubicka <jh@suse.cz>
4953
4954 PR ipa/92406
4955 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4956 summary.
4957
4958 2019-11-07 Jan Hubicka <jh@suse.cz>
4959
4960 * optc-save-gen.awk: Generate cl_target_option_free
4961 and cl_optimization_option_free.
4962 * opth-en.awk: Declare cl_target_option_free
4963 and cl_optimization_option_free.
4964 * tree.c (free_node): Use it.
4965
4966 2019-11-06 Jan Hubicka <jh@suse.cz>
4967
4968 * lto-streamer-in.c: Include alloc-pool.h.
4969 (freeing_string_slot_hasher): Remove.
4970 (string_slot_allocator): New object allocator.
4971 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4972 (file_name_obstack): New obstack.
4973 (canon_file_name): Allocate in obstack and allocator.
4974 (lto_reader_init): Initialize obstack and allocator.
4975 (lto_free_file_name_hash): New function.
4976 * lto-streamer.h (lto_free_file_name_hash): New.
4977
4978 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4979
4980 PR tree-optimization/89134
4981 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4982 * params.def: Add min-loop-cond-split-prob.
4983 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4984 outside checks on loop into the function.
4985 (split_info): New class.
4986 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4987 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4988 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4989 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4990 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4991 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4992 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4993 (split_loop_on_cond): Likewise.
4994 (tree_ssa_split_loops): Add loop split on conditional statement.
4995
4996 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4997
4998 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4999 pattern.
5000
5001 2019-11-07 Richard Biener <rguenther@suse.de>
5002
5003 PR tree-optimization/92405
5004 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5005 restrict lane-reducing ops to single stmt chains.
5006
5007 2019-11-07 Martin Jambor <mjambor@suse.cz>
5008
5009 PR lto/70929
5010 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5011 * cgraph.h (gimple_check_call_matching_types): Remove
5012 * cgraph.c (gimple_check_call_args): Likewise.
5013 (gimple_check_call_matching_types): Likewise.
5014 (symbol_table::create_edge): Do not call
5015 gimple_check_call_matching_types.
5016 (cgraph_edge::make_direct): Likewise.
5017 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5018 * value-prof.h (check_ic_target): Remove.
5019 * value-prof.c (check_ic_target): Remove.
5020 (gimple_ic_transform): Do nat call check_ic_target.
5021 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5022 (afdo_indirect_call): Likewise.
5023 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5024 gimple_check_call_matching_types.
5025 * ipa-inline.c (early_inliner): Likewise.
5026
5027 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5028
5029 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5030 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5031 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5032 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5033 * config/arm/iterators.md (USSAT16): New int_iterator.
5034 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5035 (sup): Likewise.
5036 * config/arm/predicates.md (ssat16_imm): New predicate.
5037 (usat16_imm): Likewise.
5038 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5039
5040 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5041
5042 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5043 New define_insns.
5044 (arm_<simd32_op>): New define_expands.
5045 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5046 __smuad, __smuadx): Define.
5047 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5048 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5049 (SIMD32_BINOP_Q): Likewise.
5050 (simd32_op): Handle the above.
5051 * config/arm/unspecs.md: Define unspecs for the above.
5052
5053 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5054
5055 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5056 * config/arm/arm.md (APSRGE_REGNUM): Define.
5057 (arm_<simd32_op>): New define_insn.
5058 (arm_sel): Likewise.
5059 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5060 (CALL_USED_REGISTERS): Likewise.
5061 (REG_ALLOC_ORDER): Likewise.
5062 (FIRST_PSEUDO_REGISTER): Update value.
5063 (ARM_GE_BITS_READ): Define.
5064 * config/arm/arm.c (arm_conditional_register_usage): Clear
5065 APSRGE_REGNUM from operand_reg_set.
5066 (arm_ge_bits_access): Define.
5067 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5068 ARM_BUIILTIN_sel.
5069 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5070 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5071 FAIL if ARM_GE_BITS_READ.
5072 (*arm_add<mode>3): New define_insn.
5073 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5074 (*arm_sub<mode>3): New define_insn.
5075 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5076 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5077 __usub16): Define.
5078 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5079 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5080 (simd32_op): Handle the above.
5081 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5082 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5083 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5084 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5085
5086 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5087
5088 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5089 (arm_smlabb): New define_expand.
5090 (*maddhisi4tb): Rename to...
5091 (maddhisi4tb): ... This.
5092 (*maddhisi4tt): Rename to...
5093 (maddhisi4tt): ... This.
5094 (arm_smlatb_setq): New define_insn.
5095 (arm_smlatb): New define_expand.
5096 (arm_smlatt_setq): New define_insn.
5097 (arm_smlatt): New define_expand.
5098 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5099 (arm_<smlaw_op>): New define_expand.
5100 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5101 __smlawb, __smlawt): Define.
5102 * config/arm_acle_builtins.def: Define builtins for the above.
5103 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5104 (slaw_op): New int_attribute.
5105 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5106
5107 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5108
5109 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5110 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5111 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5112 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5113 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5114 (ss_op): New code_attr.
5115
5116 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5117
5118 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5119 * config/arm/arm.md (APSRQ_REGNUM): Define.
5120 (add_setq): New define_subst.
5121 (add_clobber_q_name): New define_subst_attr.
5122 (add_clobber_q_pred): Likewise.
5123 (maddhisi4): Change to define_expand. Split into mult and add if
5124 ARM_Q_BIT_READ.
5125 (arm_maddhisi4): New define_insn.
5126 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5127 (*maddhisi4tt): Likewise.
5128 (arm_ssat): New define_expand.
5129 (arm_usat): Likewise.
5130 (arm_get_apsr): New define_insn.
5131 (arm_set_apsr): Likewise.
5132 (arm_saturation_occurred): New define_expand.
5133 (arm_set_saturation): Likewise.
5134 (*satsi_<SAT:code>): Rename to...
5135 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5136 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5137 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5138 (CALL_USED_REGISTERS): Mark apsrq.
5139 (FIRST_PSEUDO_REGISTER): Update value.
5140 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5141 (machine_function): Add q_bit_access.
5142 (ARM_Q_BIT_READ): Define.
5143 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5144 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5145 operand_reg_set.
5146 (arm_q_bit_access): Define.
5147 * config/arm/arm-builtins.c: Include stringpool.h.
5148 (arm_sat_binop_imm_qualifiers,
5149 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5150 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5151 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5152 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5153 SET_SAT_QUALIFIERS): Likewise.
5154 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5155 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5156 Handle 0 argument expander.
5157 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5158 (arm_check_builtin_call): Define.
5159 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5160 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5161 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5162 (arm_q_bit_access): Likewise.
5163 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5164 __saturation_occurred, __set_saturation_occurred): Define.
5165 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5166 saturation_occurred, set_saturation_occurred.
5167 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5168 (UNSPEC_APSR_READ): Likewise.
5169 (VUNSPEC_APSR_WRITE): Likewise.
5170 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5171 (*arm_ssadd<mode>3): New define_insn.
5172 (sssub<mode>3): Convert to define_expand.
5173 (*arm_sssub<mode>3): New define_insn.
5174 (ssmulsa3): Convert to define_expand.
5175 (*arm_ssmulsa3): New define_insn.
5176 (usmulusa3): Convert to define_expand.
5177 (*arm_usmulusa3): New define_insn.
5178 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5179 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5180 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5181
5182 2019-11-07 Martin Liska <mliska@suse.cz>
5183
5184 PR c++/92354
5185 * cgraph.c (delete_function_version): Clear global
5186 variable version_info_node if equal to deleted
5187 function.
5188
5189 2019-11-07 Martin Liska <mliska@suse.cz>
5190
5191 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5192 of CONSTRUCTOR_NO_CLEARING.
5193 (operand_compare::hash_operand): Likewise.
5194
5195 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5196
5197 Support 64-bit double and 64-bit long double configurations.
5198
5199 PR target/92055
5200 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5201 --with-long-double=.
5202 * config/avr/t-multilib: Remove.
5203 * config/avr/t-avr: Output of genmultilib.awk is now fully
5204 dynamically generated and no more part of the repo.
5205 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5206 Pass them down to...
5207 * config/avr/genmultilib.awk: ...here and handle them.
5208 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5209 (-mlong-double=, avr_long_double). New option and var.
5210 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5211 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5212 Set default as requested by --with-double=
5213 (TARGET_HANDLE_OPTION): Define to this...
5214 (avr_handle_option): ...new hook worker.
5215 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5216 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5217 (avr_double_lib): New proto for spec function.
5218 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5219 (DRIVER_SELF_SPECS): Call %:double-lib.
5220 * config/avr/avr.c (avr_option_override): Assert
5221 sizeof(long double) >= sizeof(double) for the target.
5222 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5223 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5224 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5225 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5226 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5227 New built-in define depending on --with-double=, --with-long-double=.
5228 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5229 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5230 * doc/install.texi (Cross-Compiler-Specific Options)
5231 <--with-double=, --with-long-double=>: Doc.
5232
5233 2019-11-07 Richard Biener <rguenther@suse.de>
5234
5235 * dbgcnt.def (gimple_unroll): New.
5236 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5237 gimple_unroll debug counter before applying transform.
5238 (try_peel_loop): Likewise.
5239
5240 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5241
5242 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5243 frame pointer in multiple registers.
5244 (ira_setup_eliminable_regset): Setup eliminable_regset,
5245 ira_no_alloc_regs and regs_ever_live for frame pointer in
5246 multiple registers.
5247
5248 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5249
5250 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5251 V2DI modes.
5252
5253 2019-11-06 Jan Hubicka <jh@suse.cz>
5254
5255 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5256 allocations.
5257 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5258 Do not silently ignore summary corruptions.
5259
5260 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5261
5262 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5263 the epilogue if there are peeled iterations for it to handle.
5264
5265 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5266
5267 * config/arc/arc.c (arc_split_ior): Add asserts.
5268 (arc_split_mov_const): Likewise.
5269 (arc_check_ior_const): Do not match known short immediate values.
5270 * config/arc/arc.md (movsi): Don't split predicated instructions
5271 (iorsi): Likewise.
5272
5273 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5274
5275 * config/arc/arc.opt (mea): Update help string.
5276 * doc/invoke.texi(ARC): Update mea option info.
5277
5278 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5279
5280 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5281 (zero_extendqisi2_ac): Likewise.
5282 (zero_extendhisi2_i): Likewise.
5283 (extendqihi2_i): Likewise.
5284 (extendqisi2_ac): Likewise.
5285 (extendhisi2_i): Likewise.
5286
5287 2019-11-06 Richard Biener <rguenther@suse.de>
5288
5289 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5290 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5291 Simplify single_defuse_cycle condition.
5292
5293 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5294
5295 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5296 epilogue loop, make sure that the VF is small enough or that
5297 the epilogue loop can be fully-masked.
5298
5299 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5300
5301 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5302 loop when we've finished, rather than returning directly from
5303 the loop. Use a local variable to track whether we're still
5304 searching for the preferred simdlen. Make vect_epilogues
5305 record whether the next iteration should try to treat the
5306 loop as an epilogue.
5307
5308 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5309
5310 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5311 __arc_hard_float__, __ARC_HARD_FLOAT__,
5312 __arc_soft_float__, __ARC_SOFT_FLOAT__
5313
5314 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5315
5316 PR tree-optimization/92317
5317 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5318 update phi's with constant phi arguments.
5319
5320 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5321 Alexandre Oliva <oliva@adacore.com>
5322
5323 * common.opt (-fcallgraph-info[=]): New option.
5324 * doc/invoke.texi (Developer options): Document it.
5325 * opts.c (common_handle_option): Handle it.
5326 * builtins.c (expand_builtin_alloca): Record allocation if
5327 -fcallgraph-info=da.
5328 * calls.c (expand_call): If -fcallgraph-info, record the call.
5329 (emit_library_call_value_1): Likewise.
5330 * flag-types.h (enum callgraph_info_type): New type.
5331 * explow.c: Include stringpool.h.
5332 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5333 * function.c (allocate_stack_usage_info): New.
5334 (allocate_struct_function): Call it for -fcallgraph-info.
5335 (prepare_function_start): Call it otherwise.
5336 (record_final_call, record_dynamic_alloc): New.
5337 * function.h (struct callinfo_callee): New.
5338 (CALLEE_FROM_CGRAPH_P): New.
5339 (struct callinfo_dalloc): New.
5340 (struct stack_usage): Add callees and dallocs.
5341 (record_final_call, record_dynamic_alloc): Declare.
5342 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5343 object if -fcallgraph-info=da.
5344 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5345 * print-tree.h (print_decl_identifier): Declare.
5346 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5347 * print-tree.c: Include print-tree.h.
5348 (print_decl_identifier): New function.
5349 * toplev.c: Include print-tree.h.
5350 (callgraph_info_file): New global variable.
5351 (callgraph_info_external_printed): Likewise.
5352 (output_stack_usage): Rename to...
5353 (output_stack_usage_1): ... this. Make it static, add cf
5354 parameter. If -fcallgraph-info=su, print stack usage to cf.
5355 If -fstack-usage, use print_decl_identifier for
5356 pretty-printing.
5357 (INDIRECT_CALL_NAME): New.
5358 (dump_final_node_vcg_start): New.
5359 (dump_final_callee_vcg, dump_final_node_vcg): New.
5360 (output_stack_usage): New.
5361 (lang_dependent_init): Open and start file if
5362 -fcallgraph-info. Allocated callgraph_info_external_printed.
5363 (finalize): If callgraph_info_file is not null, finish it,
5364 close it, and release callgraph_info_external_printed.
5365
5366 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5367 Frederik Harwath <frederik@codesourcery.com>
5368 Thomas Schwinge <thomas@codesourcery.com>
5369
5370 * omp-low.c (struct omp_context): New fields
5371 local_reduction_clauses, outer_reduction_clauses.
5372 (new_omp_context): Initialize these.
5373 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5374 (scan_omp_for): Check reduction clauses for incorrect nesting.
5375
5376 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5377
5378 PR inline-asm/92352
5379 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5380 operands with non-memory constraints.
5381
5382 2019-11-05 Martin Sebor <msebor@redhat.com>
5383
5384 PR tree-optimization/92373
5385 * tree.c (component_ref_size): Only consider initializers of objects
5386 of matching struct types.
5387 Return null for instances of interior zero-length arrays.
5388
5389 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5390
5391 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5392
5393 2019-11-05 Jason Merrill <jason@redhat.com>
5394
5395 PR tree-optimization/91825
5396 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5397
5398 2019-11-05 Jim Wilson <jimw@sifive.com>
5399
5400 PR middle-end/92263
5401 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5402 optimize_insn_for_speed_p is true.
5403
5404 2019-11-05 Martin Sebor <msebor@redhat.com>
5405
5406 PR middle-end/92333
5407 PR middle-end/82608
5408 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5409 size.
5410 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5411 name and location for a temporary variable.
5412
5413 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5414
5415 * tree-vrp.c (value_range::value_range): Fix whitespace.
5416 (defined_ranges_p): Same.
5417 (range_fold_binary_symbolics_p): Same.
5418 (value_range::intersect_helper): Same.
5419 (value_range::union_helper): Same.
5420 * tree-vrp.h (range_fold_binary_expr): Same.
5421
5422 2019-11-04 Martin Sebor <msebor@redhat.com>
5423
5424 PR middle-end/92341
5425 PR middle-end/82612
5426 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5427 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5428 of message printed in a warning for empty arrays.
5429 (vrp_prop::check_mem_ref): Also handle function parameters and
5430 empty arrays.
5431
5432 2019-11-05 Richard Biener <rguenther@suse.de>
5433
5434 PR tree-optimization/92371
5435 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5436 on the original stmt of live stmts in the chain.
5437 (vectorizable_live_operation): Look at the original stmt when
5438 checking STMT_VINFO_REDUC_DEF.
5439
5440 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5441
5442 * gimple-fold.c, gimple-loop-versioning.cc,
5443 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5444 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5445 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5446 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5447 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5448 value_range_equiv, and value_range_base to value_range.
5449
5450 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5451
5452 * expr.c (build_personality_function): Fix generated type to
5453 match actual personality functions.
5454
5455 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5456
5457 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5458 enough bytes for the NULL character.
5459
5460 2019-11-05 Richard Biener <rguenther@suse.de>
5461
5462 PR tree-optimization/92280
5463 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5464 had a single use do not create a new CTOR.
5465 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5466 BIT_FIELD_REF of a CTOR via GENERIC.
5467
5468 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5469
5470 * config/s390/s390.c (s390_vector_alignment): Check if the value
5471 fits into uhwi before using it.
5472
5473 2019-11-05 Martin Liska <mliska@suse.cz>
5474
5475 * symbol-summary.h: Use ggc_delete.
5476
5477 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5478
5479 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5480 Change vec_perm field to 10.
5481
5482 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5483
5484 * doc/install.texi: Further fix syntax for html generation.
5485
5486 2019-11-05 Martin Liska <mliska@suse.cz>
5487
5488 * symbol-summary.h: Rename allocator to m_allocator and
5489 add comment.
5490
5491 2019-11-05 Richard Biener <rguenther@suse.de>
5492
5493 PR tree-optimization/92324
5494 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5495 all signed or unsigned operations.
5496
5497 2019-11-05 Jan Hubicka <jh@suse.cz>
5498
5499 * hsa-brig.c: Include alloc-pool.h
5500 * hsa-dump.c: Likewise.
5501 * hsa-gen.c: Likewise.
5502 * hse-regalloc.c: Likewise.
5503 * ipa-hsa.c: Likewise.
5504 * ipa-predicate.c: Likewise.
5505 * ipa-reference.c: Likewise.
5506 * ipa-sra.c: Likewise.
5507 * omp-expand.c: Likewise.
5508 * omp-general.c: Likewise.
5509 * omp-low.c: Likewise.
5510 * sumbol-summary.h (function_summary_base): Add allocator.
5511 (function_summary<T *>::function_summary): Update construction.
5512 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5513 (call_summary_base): Add allcator.
5514 (call_summary<T *>::call_summary): Update construction.
5515 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5516
5517 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5518
5519 PR tree-optimization/91945
5520 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5521 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5522 Formatting fix.
5523
5524 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5525
5526 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5527 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5528 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5529 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5530 (vrp_set_zero_nonzero_bits): Move to...
5531 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5532 (vr_values::simplify_bit_ops_using_ranges): Rename
5533 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5534
5535 2019-11-05 Martin Liska <mliska@suse.cz>
5536
5537 PR c++/92339
5538 * fold-const.c (operand_compare::hash_operand): Remove
5539 FIELD_DECL handling.
5540
5541 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5542
5543 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5544 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5545 static.
5546
5547 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5548
5549 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5550 properly handle symbolics.
5551 (range_compatible_p): Remove.
5552
5553 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5554
5555 * common.opt (-fabi-version): Document =14.
5556 * doc/invoke.texi (C++ Dialect Options): Likewise.
5557
5558 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5559
5560 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5561
5562 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5563
5564 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5565 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5566 gcn_omp_device_kind_arch_isa.
5567 * config/gcn/t-omp-device: New file.
5568 * configure.ac: Support gcn for omp_device_property.
5569 * configure: Regenerate.
5570
5571 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5572
5573 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5574 (vrp_val_max): Same.
5575 (vrp_val_is_min): Same.
5576 (vrp_val_is_max): Same.
5577 (value_range_base::nonzero_p): Remove last argument to
5578 vrp_val_is_max.
5579 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5580 (vrp_val_max): Same.
5581 (vrp_val_is_min): Same.
5582 (vrp_val_is_max): Same.
5583 (value_range_base::set_varying): Remove last argument to vrp_val*.
5584 (value_range_base::dump): Same.
5585 (value_range_base::set): Same.
5586 (value_range_base::normalize_symbolics): Same.
5587 (value_range_base::num_pairs): Same.
5588 (value_range_base::lower_bound): Same.
5589 (value_range_base::upper_bound): Same.
5590 (ranges_from_anti_range): Remove handle_pointers argument.
5591 (value_range_base::singleton_p): Remove last argument to
5592 ranges_from_anti_range.
5593
5594 2019-11-04 Jan Hubicka <jh@suse.cz>
5595
5596 * ipa-reference.c (init_function_info): Initialize
5597 info->global.statics_read.
5598
5599 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5600
5601 * tree-vrp.c (value_range_base::invert): Use constructors to build
5602 range.
5603
5604 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5605
5606 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5607 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5608
5609 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5610
5611 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5612 VR_UNDEFINED.
5613
5614 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5615
5616 * tree-vrp.c (dump_assert_info): New.
5617 (dump_asserts_info): New.
5618
5619 2019-11-04 Jan Hubicka <jh@suse.cz>
5620
5621 * ipa-inline-transform.c: Include ipa-utils.h
5622 (inline_call): Set thunk_expansion flag.
5623 * ipa-utils.h (thunk_expansion): Declare.
5624 * ipa-devirt.c (thunk_expansion): New global var.
5625 (devirt_node_removal_hook): Do not invalidate cache while
5626 doing thunk expansion.
5627
5628 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5629
5630 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5631
5632 2019-11-04 Martin Sebor <msebor@redhat.com>
5633
5634 PR tree-optimization/92349
5635 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5636 memebers have constant sizes.
5637
5638 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5639
5640 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5641 parameter.
5642 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5643 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5644 vect_analyze_loop.
5645
5646 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5647
5648 * expr.c (store_constructor): Modify to handle single element vectors.
5649 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5650 constructors.
5651 (vect_slp_check_for_constructors): New function.
5652 (vect_slp_analyze_bb_1): Call new function to check for vector
5653 constructors.
5654 (vectorize_slp_instance_root_stmt): New function.
5655 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5656 constructors.
5657 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5658
5659 2019-11-04 Richard Biener <rguenther@suse.de>
5660
5661 PR tree-optimization/92345
5662 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5663 we produced a reduction chain.
5664 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5665 LOOP_VINFO_REDUCTIONS.
5666
5667 2019-11-04 Jan Hubicka <jh@suse.cz>
5668
5669 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5670 duplicate summaries.
5671 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5672 first.
5673 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5674 access call summaries.
5675 (dump_ipa_call_summary): Be ready for missing edge summaries.
5676 (analyze_function_body): Use get instead of get_create to access
5677 edge summary.
5678 (estimate_calls_size_and_time): Do not access summaries of
5679 inlined edges; sanity check they are missing.
5680 (ipa_call_context::estimate_size_and_time): Use get instead
5681 of get_create to access node summary.
5682 (inline_update_callee_summaries): Do not update depth of
5683 inlined edge.
5684 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5685 growth caches.
5686 (ipa_merge_fn_summary_after_inlining): Use get instead
5687 of get_create.
5688 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5689 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5690 fast summary.
5691 (initialize_growth_caches): Update.
5692 (do_estimate_edge_time): Remove redundant copy of context.
5693 (ipa_remove_from_growth_caches): New function.
5694 * ipa-inline.c (flatten_function): Update overall summary
5695 only when optimizing.
5696 (inline_to_all_callers): Update overall summary of function
5697 inlined to.
5698 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5699 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5700 to false.
5701
5702 2019-11-04 Richard Biener <rguenther@suse.de>
5703
5704 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5705 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5706
5707 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5708
5709 * ggc-common.c: Include system.h before malloc.h.
5710
5711 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5712
5713 * configure.ac: Pass --enable-obsolete=* and
5714 --enable-option-checking=* down to build configure, and fail
5715 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5716 * configure: Rebuild.
5717 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5718 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5719
5720 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5721
5722 * config.in: Regenerate.
5723 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5724 -mtiny-printf is used without GCC being configured with
5725 --enable-newlib-nano-formatted-io.
5726 * config/msp430/msp430.h (LINK_SPEC): Pass
5727 "--wrap puts --wrap printf" when -mtiny-printf is used.
5728 * config/msp430/msp430.opt: Document -mtiny-printf.
5729 * configure: Regenerate.
5730 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5731 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5732 --enable-newlib-nano-formatted-io is passed.
5733 * doc/invoke.texi: Document -mtiny-printf.
5734
5735 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5736
5737 * configure: Regenerate.
5738
5739 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5740
5741 * config/msp430/driver-msp430.c
5742 (msp430_get_linker_devices_include_path): New spec function.
5743 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5744 (extract_devices_dir_from_exec_prefix): New function.
5745 (extract_devices_dir_from_collect_gcc): New function.
5746 (msp430_check_env_var_for_devices): New function.
5747 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5748 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5749 devices.csv was not found using other methods.
5750 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5751 New prototype.
5752 (msp430_dirname): Likewise.
5753 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5754 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5755 msp430_get_linker_devices_include_path.
5756 (TARGET_EXTRA_PRE_INCLUDES): Define.
5757 * doc/invoke.texi: Document new ways of searching for support files.
5758
5759 2019-11-04 Richard Biener <rguenther@suse.de>
5760
5761 PR tree-optimization/92301
5762 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5763 as required by epilogue generation
5764
5765 2019-11-04 Martin Liska <mliska@suse.cz>
5766
5767 PR ipa/92304
5768 * fold-const.c (operand_compare::hash_operand): Fix field
5769 hashing of CONSTRUCTOR.
5770
5771 2019-11-04 Martin Liska <mliska@suse.cz>
5772
5773 * ggc.h (ggc_delete): New function.
5774 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5775 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5776 (ipa_free_all_node_params): Likewise.
5777 * ipa-sra.c (ipa_sra_analysis): Likewise.
5778
5779 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5780
5781 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5782 set_switch_stmt_execution_predicate, compute_bb_predicates,
5783 will_be_nonconstant_expr_predicate,
5784 phi_result_unknown_predicate,
5785 analyze_function_body): Pass arround params summary.
5786 (ipa_call_context::duplicate_from): New comment;
5787 only duplicate useful values.
5788 (ipa_call_context::equal_to): Only compare useful values.
5789 (remap_edge_summaries): Pass params_summary.
5790 (remap_hint_predicate): Likewise.
5791 (ipa_merge_fn_summary_after_inlining): Likewise.
5792 (inline_read_section): Initialize params summary used flags.
5793 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5794 around param_summary.
5795 (add_condition): Initialized used params summary flags.
5796 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5797 (inline_param_summary::useless_p): New predicate.
5798 (remap_after_inlining, add_condition): Update prototype
5799 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5800 move_cost.
5801 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5802 summaries.
5803 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5804 (ipa_analyze_virtual_call_uses): Likewise.
5805 (update_indirect_edges_after_inlining): Update param summaries.
5806 (ipa_print_node_params): Print used flags.
5807 (ipa_read_indirect_edge_info): Update param summareis.
5808 * ipa-prop.h (ipa_param_descriptor): Add
5809 used_by_ipa_predicates, used_by_indirect_call
5810 and used_by_polymorphic_call.
5811 (ipa_set_param_used_by_ipa_predicates,
5812 ipa_set_param_used_by_indirect_call,
5813 ipa_set_param_used_by_polymorphic_call,
5814 ipa_is_param_used_by_ipa_predicates,
5815 ipa_is_param_used_by_indirect_call,
5816 ipa_is_param_used_by_polymorphic_call): New inline functions.
5817
5818 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5819
5820 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5821 member function.
5822 (ipa_call_context::release): Add ALL parameter.
5823 (ipa_call_context::equal_to): New member function.
5824 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5825 duplicate_form, release, equal_to and exists_p member functoins.
5826 * ipa-inline-analysis.c (node_context_cache_entry): New
5827 class.
5828 (node_context_summary): Likewise.
5829 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5830 node_context_clear): New static vars.
5831 (initialize_growth_caches): New function.
5832 (free_growth_caches): Also delete node_context_cache; output stats.
5833 (do_estimate_edge_time): Cache contexts.
5834 (reset_node_cache): New function.
5835 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5836 (inline_small_functions): Initialize growth caches.
5837 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5838 Declare.
5839 * ipa-predicate.h (inline_param_summary::equal_to): New.
5840 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5841 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5842 (ipa_agg_jump_function): Implement equal_to member function.
5843
5844 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5845
5846 * ipa-fnsummary.c (inline_read_section): Set vector size
5847 ahead of time.
5848
5849 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5850
5851 * ipa-fnsummary.c (ipa_call_context): New constructor.
5852 (estimate_node_size_and_time): Turn to ...
5853 (ipa_call_context::estimate_size_and_time): ... this one.
5854 (ipa_call_context::release): New.
5855 * ipa-fnsummary.h (ipa_call_context): New class.
5856 (estimate_node_size_and_time): Remove.
5857 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5858 do_estimate_edge_hints): Update.
5859
5860 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5861
5862 * config.in: Regenerate.
5863 * configure: Regenerate.
5864 * configure.ac: Check for mallinfo.
5865 * ggc-common.c: Include malloc.h if available;
5866 include options.h
5867 (report_heap_memory_use): New functoin.
5868 * ggc-page.c (ggc_grow): Do not print "start".
5869 * ggc.h (report_heap_memory_use): Declare.
5870 * pases.c (execute_one_pass): Report memory after IPA passes.
5871 (ipa_read_summaries_1): Likewise.
5872 (ipa_read_optimization_summaries_1): Likewise.
5873
5874 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5875
5876 * gimplify.h (omp_construct_selector_matches): Change return
5877 type to int, add a new SCORES argument.
5878 * gimplify.c (omp_construct_selector_matches): Likewise. If
5879 SCORES is non-NULL, compute scores of each construct.
5880 * omp-general.h (omp_get_context_selector): Declare.
5881 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5882 Adjust omp_construct_selector_matches callers.
5883 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5884 (omp_context_compute_score): New function.
5885 (omp_resolve_declare_variant): Compute scores and decide based on
5886 that.
5887
5888 PR bootstrap/92314
5889 * configure.ac: Don't look for omp-device-properties files from
5890 installed offloading compilers. Instead add tmake_file snippets
5891 for configured offloading targets and use files they generate.
5892 * Makefile.in (install): Don't depend on
5893 install-omp-device-properties.
5894 (install-omp-device-properties): Remove goal.
5895 * config/i386/t-omp-device: New file.
5896 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5897 * config/nvptx/t-omp-device: New file.
5898 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5899 * configure: Regenerated.
5900
5901 * omp-general.h (omp_context_selector_set_compare): Declare.
5902 * omp-general.c (omp_construct_simd_compare,
5903 omp_context_selector_props_compare, omp_context_selector_set_compare,
5904 omp_context_selector_compare): New functions.
5905 (omp_resolve_declare_variant): Prune variants that are strict subset
5906 of another variant.
5907
5908 2019-11-01 Martin Sebor <msebor@redhat.com>
5909
5910 PR middle-end/91679
5911 PR middle-end/91647
5912 PR middle-end/91463
5913 PR middle-end/92312
5914 * doc/invoke.texi (-Wzero-length-bounds): Document.
5915 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5916 instead of a hand-rolled loop to avoid PR 92323.
5917 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5918 with initializers.
5919 (vrp_prop::check_mem_ref): Handle declared struct objects.
5920 * tree.c (last_field): New function.
5921 (array_at_struct_end_p): Handle MEM_REF.
5922 (get_initializer_for): New helper.
5923 (component_ref_size): Add argument. Rename locals. Call
5924 get_initializer_for instead of fold_ctor_reference. Correct handling
5925 of flexible array members.
5926 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5927
5928 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5929
5930 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5931 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5932 UNSPEC_VSX_CVSPUXDS): Remove.
5933 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5934 (vsx_xvcvspdp_be): ... this. New. And...
5935 (vsx_xvcvspdp_le): ... this. New.
5936 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5937 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5938 (vsx_xvcv<su>xwdp_le): ... this. New.
5939 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5940 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5941 (vsx_xvcvsp<su>xds_le): ... this. New.
5942
5943 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5944
5945 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5946 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5947 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5948 UNSPEC_VSX_XVCVSPSXWS): Remove.
5949 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5950 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5951
5952 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5953
5954 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5955 (UNSPEC_VSX_XVCDPSP): Remove.
5956 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5957 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5958
5959 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5960
5961 * hooks.c (hook_tree_tree_bool_null): New.
5962 * hooks.h (hook_tree_tree_bool_null): Declare.
5963 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5964 (LANG_HOOKS_DECLS): Add it.
5965 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5966 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5967 (lower_omp_target): Handle Fortran array with descriptor in
5968 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5969
5970 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5971
5972 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5973 Assert that the type we store in abi_vector_types is its own
5974 main variant.
5975 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5976
5977 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5978
5979 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5980 from a CONST_INT address when TARGET_THUMB2.
5981
5982 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5983
5984 * config/arm/arm.md (add_not_cin): New insn.
5985 (add_not_shift_cin): Likewise.
5986
5987 2019-10-31 Martin Liska <mliska@suse.cz>
5988
5989 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5990 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5991 and compare_memory_operand.
5992
5993 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5994
5995 * configure.ac: Compute and substitute omp_device_properties and
5996 omp_device_property_deps.
5997 * Makefile.in (generated_files): Add omp-device-properties.h.
5998 (omp-general.o): Depend on omp-device-properties.h.
5999 (omp_device_properties): New make variable.
6000 (omp-device-properties.h, s-omp-device-properties-h,
6001 install-omp-device-properties): New goals.
6002 (install): Depend on install-omp-device-properties for accelerators.
6003 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6004 * target.h (enum omp_device_kind_arch_isa): New enum.
6005 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6006 documentation.
6007 * omp-general.c: Include omp-device-properties.h.
6008 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6009 colon instead of comma.
6010 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6011 functions.
6012 (omp_context_selector_matches): Implement device set arch/isa
6013 selectors, improve device set kind selector handling.
6014 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6015 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6016 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6017 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6018 ix86_omp_device_kind_arch_isa.
6019 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6020 definition from ix86_target_string to file scope.
6021 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6022 to file scope.
6023 (ix86_omp_device_kind_arch_isa): New function.
6024 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6025 isa_opts definitions to file scope.
6026 * config/i386/t-intelmic (omp-device-properties): New goal.
6027 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6028 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6029 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6030 nvptx_omp_device_kind_arch_isa.
6031 * configure: Regenerate.
6032 * doc/tm.texi: Regenerate.
6033
6034 PR middle-end/92231
6035 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6036 DECL_BUILT_IN in comment. Remove redundant ()s around return
6037 argument.
6038 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6039 before calling fndecl_built_in_p.
6040 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6041 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6042 fndecl_built_in_p on it.
6043
6044 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6045
6046 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6047
6048 2019-10-31 Martin Liska <mliska@suse.cz>
6049
6050 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6051 of cgraph_local_info and use local_info_node instead.
6052 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6053 (bfin_function_ok_for_sibcall): Likewise.
6054 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6055 (must_reload_pic_reg_p): Likewise.
6056
6057 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6058
6059 PR c++/90947
6060 * tree.h (type_initializer_zero_p): Remove.
6061 * tree.c (type_initializer_zero_p): Remove.
6062
6063 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6064
6065 * doc/invoke.texi (-Wshadow, -Wshadow=global
6066 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6067
6068 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6069
6070 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6071 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6072 and 'target exit data'.
6073
6074 2019-10-30 Martin Jambor <mjambor@suse.cz>
6075
6076 ipa/92278
6077 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6078 availability comparison.
6079
6080 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6081
6082 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6083 calls to __mspabi_mpy* functions.
6084 * config/msp430/msp430.md (mulhisi3): New define_expand.
6085 (umulhisi3): New define_expand.
6086 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6087 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6088
6089 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6090
6091 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6092 (msp430_check_plus_not_high_mem): New.
6093 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6094 might be in low memory.
6095 Indicate that a 16-bit absolute address is in lower memory.
6096
6097 2019-10-30 Martin Jambor <mjambor@suse.cz>
6098
6099 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6100 ultimate_alias_target.
6101
6102 2019-10-30 Richard Biener <rguenther@suse.de>
6103
6104 PR tree-optimization/92275
6105 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6106 Copy all loop-closed PHIs.
6107
6108 2019-10-30 Martin Liska <mliska@suse.cz>
6109
6110 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6111 const_tree as function argument.
6112 (func_checker::compare_decl): Likewise.
6113 (func_checker::operand_equal_p): Likewise.
6114 (func_checker::compare_variable_decl): Likewise.
6115 (func_checker::parse_labels): Likewise.
6116 * ipa-icf-gimple.h: Likewise.
6117
6118 2019-10-30 Martin Liska <mliska@suse.cz>
6119
6120 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6121 Do not compare alias sets. It's handled by operand_equal_p.
6122
6123 2019-10-30 Martin Liska <mliska@suse.cz>
6124
6125 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6126 initialize m_compare_polymorphic.
6127 (func_checker::compare_decl): Do not compare polymorphic types.
6128 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6129 * ipa-icf.c (sem_function::equals_private): Do not call
6130 compare_polymorphic_p.
6131
6132 2019-10-30 Martin Liska <mliska@suse.cz>
6133
6134 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6135 compare_operand.
6136 (func_checker::compare_memory_operand): Remove.
6137 (func_checker::compare_cst_or_decl): Remove.
6138 (func_checker::operand_equal_valueize): Do not handle
6139 FIELD_DECL.
6140 (func_checker::compare_gimple_call): Call compare_operand.
6141 (func_checker::compare_gimple_assign): Likewise.
6142 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6143 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6144 * ipa-icf.h (icf_handled_component_p): Remove.
6145
6146 2019-10-30 Martin Liska <mliska@suse.cz>
6147
6148 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6149 (func_checker::compare_cst_or_decl): Remove handling
6150 of FIELD_DECL.
6151 (func_checker::compare_operand): Transform to ...
6152 (func_checker::operand_equal_p): ... this.
6153 * ipa-icf-gimple.h (class func_checker): Add
6154 operand_equal_p and hash_operand.
6155 * ipa-icf.c (sem_function::equals_private): Fix
6156 pushing and popping of cfun.
6157
6158 2019-10-30 Martin Liska <mliska@suse.cz>
6159
6160 * fold-const.c (operand_equal_p): Move to ...
6161 (operand_compare::operand_equal_p): ... here.
6162 (operand_compare::verify_hash_value): New.
6163 (add_expr): Move to ...
6164 (operand_compare::hash_operand): ... here.
6165 * fold-const.h (operand_equal_p): Move to the class.
6166 (class operand_compare): New.
6167 * tree.c (add_expr): Remove.
6168
6169 2019-10-30 Martin Liska <mliska@suse.cz>
6170
6171 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6172 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6173
6174 2019-10-30 Martin Liska <mliska@suse.cz>
6175
6176 PR lto/91393
6177 PR lto/88220
6178 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6179 from a first_clone in order to get proper LTO section
6180 in LTO stream.
6181 (cgraph_node::get_untransformed_body):
6182 Use lto_get_section_data where symtab_node::order
6183 must be provided.
6184 * cgraphclones.c (cgraph_node::find_replacement):
6185 Update also symbol order.
6186 * ipa-fnsummary.c (ipa_fn_summary_read):
6187 Use new function lto_get_summary_section_data.
6188 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6189 * ipa-icf.c (sem_item_optimizer::read_summary):
6190 Likewise.
6191 * ipa-prop.c (ipa_prop_read_jump_functions):
6192 Likewise.
6193 (ipcp_read_transformation_summaries): Likewise.
6194 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6195 * lto-cgraph.c (input_node): Add also order_base.
6196 (input_varpool_node): Likewise.
6197 (input_cgraph_1): Assign the order_base.
6198 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6199 * lto-opts.c (lto_write_options): Pass new argument.
6200 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6201 (lto_get_summary_section_data): New.
6202 (lto_get_raw_section_data): Add order argument.
6203 (lto_create_simple_input_block): Likewise.
6204 * lto-section-out.c (lto_destroy_simple_output_block):
6205 Likewise.
6206 * lto-streamer-in.c (lto_input_toplevel_asms):
6207 Use lto_get_summary_section_data.
6208 (lto_input_mode_table): Likewise.
6209 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6210 (lto_output_toplevel_asms): Pass new argument.
6211 (copy_function_or_variable): Likewise.
6212 (produce_lto_section):Likewise.
6213 (produce_symtab): Likewise.
6214 (lto_write_mode_table): Likewise.
6215 (produce_asm_for_decls): Likewise.
6216 * lto-streamer.c (lto_get_section_name): Concat symbol name
6217 and symbol order.
6218 * lto-streamer.h (lto_get_section_data): Add order argument.
6219 (lto_get_summary_section_data): New.
6220 (lto_get_raw_section_data): Add order argument.
6221 (lto_get_section_name): Likewise.
6222 * varpool.c (varpool_node::get_constructor): Pass order argument.
6223
6224 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6225
6226 PR tree-optimization/92262
6227 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6228 ubase or cbase here.
6229 (remove_unused_ivs): Unshare comp before using it.
6230
6231 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6232
6233 * ipa-prop.c (update_jump_functions_after_inlining):
6234 Watch for missing summaries.
6235
6236 2019-10-30 Richard Biener <rguenther@suse.de>
6237
6238 PR tree-optimization/65930
6239 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6240 chains also allow a leading and trailing conversion.
6241 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6242 intermediate reduction chains.
6243 (vect_analyze_slp_instance): Likewise. Build a SLP
6244 node for a trailing conversion manually.
6245
6246 2019-10-30 Martin Liska <mliska@suse.cz>
6247
6248 * cgraph.c (cgraph_node::local_info): Transform to ...
6249 (cgraph_node::local_info_node): ... this.
6250 (cgraph_node::dump): Remove cgraph_local_info and
6251 put its fields directly into cgraph_node.
6252 (cgraph_node::get_availability): Likewise.
6253 (cgraph_node::make_local): Likewise.
6254 (cgraph_node::verify_node): Likewise.
6255 * cgraph.h (struct GTY): Likewise.
6256 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6257 (duplicate_thunk_for_node): Likewise.
6258 (cgraph_node::create_clone): Likewise.
6259 (cgraph_node::create_virtual_clone): Likewise.
6260 (cgraph_node::create_version_clone): Likewise.
6261 * cgraphunit.c (cgraph_node::reset): Likewise.
6262 (cgraph_node::finalize_function): Likewise.
6263 (cgraph_node::add_new_function): Likewise.
6264 (analyze_functions): Likewise.
6265 * combine.c (setup_incoming_promotions): Likewise.
6266 * config/i386/i386.c (ix86_function_regparm): Likewise.
6267 (ix86_function_sseregparm): Likewise.
6268 (init_cumulative_args): Likewise.
6269 * ipa-cp.c (determine_versionability): Likewise.
6270 (count_callers): Likewise.
6271 (set_single_call_flag): Likewise.
6272 (initialize_node_lattices): Likewise.
6273 (estimate_local_effects): Likewise.
6274 (create_specialized_node): Likewise.
6275 (identify_dead_nodes): Likewise.
6276 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6277 (ipa_fn_summary_generate): Likewise.
6278 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6279 (process_hsa_functions): Likewise.
6280 * ipa-icf.c (set_local): Likewise.
6281 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6282 * ipa-inline.c (speculation_useful_p): Likewise.
6283 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6284 (ipa_profile): Likewise.
6285 * ipa-split.c (split_function): Likewise.
6286 (execute_split_functions): Likewise.
6287 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6288 (ipa_sra_ipa_function_checks): Likewise.
6289 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6290 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6291 * lto-cgraph.c (lto_output_node): Likewise.
6292 (input_overwrite_node): Likewise.
6293 * multiple_target.c (expand_target_clones): Likewise.
6294 * omp-simd-clone.c (simd_clone_create): Likewise.
6295 * trans-mem.c (expand_call_tm): Likewise.
6296 (ipa_tm_mayenterirr_function): Likewise.
6297 (ipa_tm_diagnose_tm_safe): Likewise.
6298 (ipa_tm_diagnose_transaction): Likewise.
6299 (ipa_tm_create_version): Likewise.
6300 (ipa_tm_transform_calls_redirect): Likewise.
6301 (ipa_tm_execute): Likewise.
6302 * tree-inline.c (expand_call_inline): Likewise.
6303
6304 2019-10-29 Martin Liska <mliska@suse.cz>
6305
6306 * symbol-summary.h (function_summary): Pass memory location
6307 to underlaying hash_map (or vec).
6308 (V>::fast_function_summary): Likewise.
6309
6310 2019-10-29 Martin Liska <mliska@suse.cz>
6311
6312 * ggc.h (ggc_alloc_no_dtor): New function.
6313 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6314 destructor and ggc_free.
6315 (ipa_free_size_summary): Call delete instead
6316 of release.
6317 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6318 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6319 (ipa_free_all_edge_args): Call destructor and ggc_free.
6320 (ipa_free_all_node_params): Likewise.
6321 (ipcp_free_transformation_sum): Likewise.
6322 * ipa-prop.h (ipa_check_create_node_params):
6323 Call new ggc_alloc_no_dtor.
6324 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6325 (ipa_sra_analysis): Call destructor and ggc_free.
6326 Replace release with delete operator.
6327 * symbol-summary.h (release): Remove ..
6328 (V>::~fast_function_summary): and move logic here.
6329 Likewise for other classes.
6330
6331 2019-10-29 Richard Biener <rguenther@suse.de>
6332
6333 PR tree-optimization/92260
6334 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6335 lane-reducing ops.
6336
6337 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6338
6339 PR tree-optimization/88915
6340 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6341 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6342 and make the valueize function pointer also take a void pointer.
6343 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6344 around vn_valueize, to call it without a context.
6345 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6346 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6347 (~_loop_vec_info): Release epilogue_vinfos.
6348 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6349 number of iterations of epilogue.
6350 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6351 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6352 versioning threshold needed for main loop.
6353 (vect_analyze_loop): Likewise.
6354 (find_in_mapping): New helper function.
6355 (update_epilogue_loop_vinfo): New function.
6356 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6357 on main loop and call update_epilogue_loop_vinfo to update it.
6358 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6359 stmts on loop preheader edge.
6360 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6361 we decided to vectorize epilogues. Update epilogues NITERS and
6362 construct ADVANCE to update epilogues data references where needed.
6363 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6364 (vect_do_peeling, vect_update_inits_of_drs,
6365 determine_peel_for_niter, vect_analyze_loop): Add or update
6366 declarations.
6367 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6368 created loop_vec_info's for epilogues when available. Otherwise analyse
6369 epilogue separately.
6370
6371 2019-10-29 Richard Biener <rguenther@suse.de>
6372
6373 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6374 example.
6375
6376 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6377
6378 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6379 index for the COND_EXPR from stmt_info rather than reduc_info.
6380
6381 2019-10-29 Richard Biener <rguenther@suse.de>
6382
6383 PR tree-optimization/65930
6384 * tree-vect-loop.c (check_reduction_path): Relax single-use
6385 check allowing out-of-loop uses.
6386 (vect_is_simple_reduction): SLP reduction chains cannot have
6387 intermediate stmts used outside of the loop.
6388 (vect_create_epilog_for_reduction): The adjustment might need
6389 to be converted.
6390 (vectorizable_reduction): Annotate live stmts of the reduction
6391 chain with STMT_VINFO_REDUC_DEF.
6392 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6393
6394 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6395
6396 * calls.c (pass_by_reference): Leave the target to decide whether
6397 POLY_INT_CST-sized arguments should be passed by value or reference,
6398 rather than forcing them to be passed by reference.
6399 (must_pass_in_stack_var_size): Likewise.
6400 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6401 V31_REGNUM to P15_REGNUM.
6402 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6403 Take an extra "silent_p" parameter, defaulting to false.
6404 (aarch64_sve::svbool_type_p): Declare.
6405 (aarch64_sve::nvectors_if_data_type): Likewise.
6406 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6407 (aarch64_frame::reg_offset): Turn into poly_int64s.
6408 (aarch64_frame::save_regs_size): Likewise.
6409 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6410 (aarch64_frame::sve_callee_adjust): Likewise.
6411 (aarch64_frame::spare_reg_reg): Likewise.
6412 (ARM_PCS_SVE): New arm_pcs value.
6413 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6414 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6415 (CUMULATIVE_ARGS::silent_p): Likewise.
6416 (BITS_PER_SVE_PRED): New macro.
6417 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6418 function. Reject aarch64_vector_pcs attributes on SVE functions.
6419 (aarch64_attribute_table): Use the above handler.
6420 (aarch64_sve_abi): New function.
6421 (aarch64_sve_argument_p): Likewise.
6422 (aarch64_returns_value_in_sve_regs_p): Likewise.
6423 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6424 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6425 descriptor for them.
6426 (aarch64_simd_decl_p): Delete.
6427 (aarch64_emit_cfi_for_reg_p): New function.
6428 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6429 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6430 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6431 as partly clobbered for the SVE PCS.
6432 (aarch64_function_ok_for_sibcall): Check whether the two functions
6433 use the same ABI, rather than checking specifically for whether
6434 they're aarch64_vector_pcs functions.
6435 (aarch64_pass_by_reference): Raise an error for attempts to pass
6436 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6437 if there are not enough free registers left, or if the argument is
6438 variadic.
6439 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6440 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6441 tuples in memory.
6442 (aarch64_layout_arg): Take a function_arg_info rather than
6443 individual properties. Handle SVE predicates, vectors and tuples.
6444 Raise an error if they are passed to unprototyped functions.
6445 (aarch64_function_arg): If the silent_p flag is set, suppress the
6446 usual error about using float registers without TARGET_FLOAT.
6447 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6448 it in the cumulative_args structure. Initialize aapcs_nprn and
6449 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6450 error about using float registers without TARGET_FLOAT.
6451 If the silent_p flag is not set, also raise an error about
6452 using SVE functions when SVE is disabled.
6453 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6454 and call it for SVE functions too. Update aapcs_nprn similarly
6455 to the other register counts.
6456 (aarch64_layout_frame): If a big-endian function needs to save
6457 and restore Z8-Z15, search for a spare predicate that it can use.
6458 Store SVE predicates at the bottom of the register save area,
6459 followed by SVE vectors, then followed by the normal slots.
6460 Keep pointing the hard frame pointer at the base of the normal slots,
6461 above the SVE vectors. Update the various frame creation and
6462 tear-down strategies for the new layout, initializing the new
6463 sve_callee_adjust field. Add an additional layout for frames
6464 whose saved registers are all SVE registers.
6465 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6466 (aarch64_return_address_signing_enabled): Likewise.
6467 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6468 aarch64_reg_save_mode.
6469 (aarch64_adjust_sve_callee_save_base): New function.
6470 (aarch64_add_cfa_expression): Move earlier in file. Take the
6471 saved register as an rtx rather than a register number and use
6472 its mode for the MEM slot.
6473 (aarch64_save_callee_saves): Remove the mode argument and instead
6474 use aarch64_reg_save_mode to get the mode of each save slot.
6475 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6476 offsets. Allow GP offsets to be saved at a VL-based offset from
6477 the stack, handling this case using the frame pointer if available
6478 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6479 big-endian SVE functions; use normal moves for other SVE saves.
6480 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6481 returns true. Add explicit CFA notes when not storing via the
6482 stack pointer. Do not try to pair SVE saves.
6483 (aarch64_restore_callee_saves): Cope with poly_int64 register
6484 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6485 use normal moves for other SVE restores. Only add CFA restore notes
6486 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6487 SVE restores.
6488 (aarch64_get_separate_components): Always keep the first SVE save
6489 in the prologue if we need to use it as a stack probe. Don't allow
6490 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6491 Likewise the spare predicate register that they need. Update the
6492 offset calculation to account for the SVE save area. Use the
6493 appropriate range check for SVE LDR and STR instructions.
6494 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6495 (aarch64_process_components): Likewise. Update the offset
6496 calculation to account for the SVE save area. Only mark the
6497 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6498 Do not try to pair SVE saves.
6499 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6500 reg_offsets. When handling the final allocation, expect the
6501 first SVE register save to be part of the initial allocation
6502 and for it to act as a probe at SP. Account for the SVE callee
6503 save area in the dump information.
6504 (aarch64_expand_prologue): Update the frame diagram. Fold the
6505 SVE callee allocation into the initial allocation if stack clash
6506 protection is enabled. Use new variables to track the offset
6507 of the frame chain (and hard frame pointer) from the current
6508 stack pointer, and likewise the offset of the bottom of the
6509 register save area. Update calls to aarch64_save_callee_saves
6510 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6511 saving the FP&SIMD registers. Save the predicate registers.
6512 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6513 into account when setting the stack pointer from the frame pointer,
6514 and when deciding whether we can inherit the initial adjustment
6515 amount from the prologue. Restore the predicate registers after
6516 the vector registers, then apply sve_callee_adjust, then restore
6517 the general registers.
6518 (aarch64_secondary_reload): Don't use secondary SVE reloads
6519 for VNx16BImode.
6520 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6521 (aarch64_short_vector_p): Return false for SVE types.
6522 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6523 at the start of the function. Return false for SVE types.
6524 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6525 functions too.
6526 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6527 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6528 to big-endian targets for bytewise moves.
6529 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6530
6531 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6532 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6533 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6534
6535 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6536 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6537 aarch64-sve-builtins-base.o to extra_objs. Add
6538 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6539 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6540 (aarch64-sve-builtins-shapes.o): Likewise.
6541 (aarch64-sve-builtins-base.o): New rules.
6542 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6543 (aarch64_resolve_overloaded_builtin): Likewise.
6544 (aarch64_check_builtin_call): Likewise.
6545 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6546 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6547 pragma.
6548 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6549 (aarch64_svprfop): New enum.
6550 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6551 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6552 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6553 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6554 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6555 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6556 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6557 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6558 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6559 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6560 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6561 (aarch64_sve::mangle_builtin_type): Likewise.
6562 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6563 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6564 (aarch64_sve::expand_builtin): Likewise.
6565 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6566 (aarch64_sve_int_mode): Likewise.
6567 (aarch64_ptrue_all_mode): New function.
6568 (aarch64_convert_sve_data_to_pred): Make public.
6569 (svprfop_token): New function.
6570 (aarch64_output_sve_prefetch): Likewise.
6571 (aarch64_fold_sve_cnt_pat): Likewise.
6572 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6573 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6574 instead of gen_while_ult.
6575 (aarch64_replace_reg_mode): Make public.
6576 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6577 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6578 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6579 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6580 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6581 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6582 (aarch64_sve_ptrue_svpattern_p): Likewise.
6583 (aarch64_sve_pred_valid_immediate): Check
6584 aarch64_sve_ptrue_svpattern_p.
6585 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6586 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6587 functions.
6588 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6589 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6590 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6591 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6592 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6593 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6594 New unspecs.
6595 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6596 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6597 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6598 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6599 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6600 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6601 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6602 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6603 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6604 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6605 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6606 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6607 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6608 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6609 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6610 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6611 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6612 (Vesize): Handle partial vector modes.
6613 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6614 mode attributes.
6615 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6616 iterators.
6617 (s, paired_extend, inc_dec): New code attributes.
6618 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6619 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6620 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6621 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6622 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6623 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6624 UNSPEC_COND_FMULX.
6625 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6626 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6627 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6628 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6629 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6630 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6631 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6632 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6633 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6634 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6635 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6636 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6637 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6638 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6639 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6640 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6641 UNSPEC_COND_FSCALE.
6642 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6643 (binqops_op, binqops_op_rev, last_op): New int attributes.
6644 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6645 (fn, ab): New int attributes.
6646 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6647 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6648 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6649 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6650 UNSPEC_RBIT.
6651 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6652 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6653 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6654 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6655 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6656 UNSPEC_COND_FMULX.
6657 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6658 (brk_reg_con, brk_reg_opno): New int attributes.
6659 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6660 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6661 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6662 UNSPEC_COND_FMIN.
6663 (max_elem_bits): New int attribute.
6664 (min_elem_bits): Handle UNSPEC_RBIT.
6665 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6666 TRUNCATE as well as SUBREG.
6667 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6668 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6669 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6670 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6671 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6672 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6673 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6674 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6675 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6676 (aarch64_gather_scale_operand_h): New predicates.
6677 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6678 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6679 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6680 (*aarch64_sve_reinterpret<mode>): Allow any source register
6681 instead of requiring an exact match.
6682 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6683 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6684 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6685 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6686 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6687 (aarch64_update_ffrt): New patterns.
6688 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6689 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6690 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6691 (@aarch64_ld<fn>f1<mode>): New patterns.
6692 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6693 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6694 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6695 (@aarch64_ldnt1<mode>): New patterns.
6696 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6697 the scalar part of the address.
6698 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6699 scalar part of the addresse and add an alternative for handling
6700 nonzero offsets.
6701 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6702 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6703 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6704 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6705 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6706 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6707 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6708 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6709 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6710 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6711 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6712 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6713 (@aarch64_sve_prefetch<mode>): New patterns.
6714 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6715 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6716 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6717 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6718 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6719 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6720 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6721 (@aarch64_stnt1<mode>): New patterns.
6722 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6723 the scalar part of the address.
6724 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6725 the scalar part of the addresse and add an alternative for handling
6726 nonzero offsets.
6727 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6728 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6729 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6730 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6731 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6732 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6733 New patterns.
6734 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6735 (extract_last_<mode>): Generalize to...
6736 (@extract_<LAST:last_op>_<mode>): ...this.
6737 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6738 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6739 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6740 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6741 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6742 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6743 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6744 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6745 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6746 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6747 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6748 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6749 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6750 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6751 (*aarch64_adr_uxtw_unspec): Likewise.
6752 (*aarch64_adr_uxtw): Rename to...
6753 (*aarch64_adr_uxtw_and): ...this.
6754 (@aarch64_adr<mode>_shift): New expander.
6755 (*aarch64_adr_shift_sxtw): New pattern.
6756 (aarch64_<su>abd<mode>_3): Rename to...
6757 (@aarch64_pred_<su>abd<mode>): ...this.
6758 (<su>abd<mode>_3): Update accordingly.
6759 (@aarch64_cond_<su>abd<mode>): New expander.
6760 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6761 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6762 (*<su>mul<mode>3_highpart): Rename to...
6763 (@aarch64_pred_<optab><mode>): ...this.
6764 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6765 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6766 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6767 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6768 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6769 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6770 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6771 (*v<ASHIFT:optab><mode>3): Rename to...
6772 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6773 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6774 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6775 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6776 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6777 (@cond_asrd<mode>): New expander.
6778 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6779 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6780 (*sdiv_pow2<mode>3): Delete.
6781 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6782 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6783 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6784 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6785 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6786 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6787 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6788 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6789 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6790 (*add<SVE_F:mode>3): Rename to...
6791 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6792 for SVE_STRICT_GP.
6793 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6794 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6795 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6796 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6797 (*sub<SVE_F:mode>3): Rename to...
6798 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6799 for SVE_STRICT_GP.
6800 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6801 (*fabd<SVE_F:mode>3): Rename to...
6802 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6803 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6804 (*mul<SVE_F:mode>3): Rename to...
6805 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6806 for SVE_STRICT_GP.
6807 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6808 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6809 to...
6810 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6811 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6812 (*<nlogical><PRED_ALL:mode>3): Rename to...
6813 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6814 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6815 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6816 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6817 (aarch64_pred_<logical_nn><mode>_z): ...this.
6818 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6819 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6820 (*fma<SVE_I:mode>4): Rename to...
6821 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6822 (*fnma<SVE_I:mode>4): Rename to...
6823 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6824 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6825 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6826 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6827 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6828 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6829 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6830 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6831 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6832 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6833 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6834 (@aarch64_sve_tmad<mode>): Likewise.
6835 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6836 (*aarch64_sel_dup<mode>): Rename to...
6837 (@aarch64_sel_dup<mode>): ...this.
6838 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6839 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6840 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6841 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6842 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6843 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6844 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6845 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6846 (*fcm<cmp_op><mode>): Rename to...
6847 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6848 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6849 (*fcmuo<mode>): Rename to...
6850 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6851 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6852 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6853 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6854 (fold_extract_last_<mode>): Generalize to...
6855 (@fold_extract_<last_op>_<mode>): ...this.
6856 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6857 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6858 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6859 DImode result explicit.
6860 (reduc_plus_scal_<mode>): Update accordingly.
6861 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6862 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6863 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6864 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6865 (*aarch64_sve_tbl<mode>): Rename to...
6866 (@aarch64_sve_tbl<mode>): ...this.
6867 (@aarch64_sve_compact<mode>): New pattern.
6868 (*aarch64_sve_dup_lane<mode>): Rename to...
6869 (@aarch64_sve_dup_lane<mode>): ...this.
6870 (@aarch64_sve_dupq_lane<mode>): New pattern.
6871 (@aarch64_sve_splice<mode>): Likewise.
6872 (aarch64_sve_<perm_insn><mode>): Rename to...
6873 (@aarch64_sve_<perm_insn><mode>): ...this.
6874 (*aarch64_sve_ext<mode>): Rename to...
6875 (@aarch64_sve_ext<mode>): ...this.
6876 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6877 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6878 to...
6879 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6880 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6881 Rename to...
6882 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6883 ...this.
6884 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6885 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6886 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6887 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6888 to...
6889 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6890 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6891 a "@" marker.
6892 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6893 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6894 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6895 pattern.
6896 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6897 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6898 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6899 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6900 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6901 "@" marker.
6902 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6903 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6904 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6905 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6906 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6907 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6908 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6909 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6910 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6911 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6912 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6913 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6914 (aarch64_sve_cnt_pat): Likewise.
6915 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6916 (*aarch64_sve_incsi_pat): Likewise.
6917 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6918 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6919 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6920 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6921 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6922 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6923 (*aarch64_sve_decsi_pat): Likewise.
6924 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6925 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6926 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6927 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6928 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6929 (@aarch64_pred_cntp<mode>): Likewise.
6930 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6931 New expander.
6932 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6933 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6934 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6935 New expander.
6936 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6937 New pattern.
6938 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6939 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6940 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6941 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6942 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6943 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6944 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6945 New expander.
6946 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6947 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6948 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6949 New expander.
6950 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6951 New pattern.
6952 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6953 expander.
6954 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6955 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6956 expander.
6957 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6958 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6959 expander.
6960 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6961 * config/aarch64/arm_sve.h: New file.
6962 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6963 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6964 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6965 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6966 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6967 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6968 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6969 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6970 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6971
6972 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6973
6974 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6975 New pattern.
6976 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6977 SVE modes.
6978
6979 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6980
6981 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6982 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6983 FFRT_REGNUM + 1.
6984 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6985 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6986 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6987 (aarch64_hard_regno_nregs): Handle the new register classes.
6988 (aarch64_hard_regno_mode_ok): Likewise.
6989 (aarch64_regno_regclass): Likewise.
6990 (aarch64_class_max_nregs): Likewise.
6991 (aarch64_register_move_cost): Likewise.
6992 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6993 as general register_operands.
6994
6995 2019-10-29 Martin Liska <mliska@suse.cz>
6996
6997 * ggc-common.c: One can't subtract unsigned types
6998 in compare function.
6999
7000 2019-10-29 Martin Liska <mliska@suse.cz>
7001
7002 * cgraphunit.c (symbol_table::compile): Pass
7003 title as dump_memory_report argument.
7004 * toplev.c (dump_memory_report): New argument.
7005 (finalize): Pass new argument.
7006 * toplev.h (dump_memory_report): Add argument.
7007
7008 2019-10-29 Martin Liska <mliska@suse.cz>
7009
7010 * ggc-common.c: Move Leak to the first column.
7011
7012 2019-10-29 Martin Liska <mliska@suse.cz>
7013
7014 * cgraphunit.c (symbol_table::compile): Remove argument
7015 for dump_memory_report.
7016 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7017 (compare_final): Remove in order to make report
7018 better readable.
7019 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7020 * mem-stats.h (mem_alloc_description::get_list):
7021 Do not pass cmp.
7022 (mem_alloc_description::dump): Likewise here.
7023 * toplev.c (dump_memory_report): Remove final
7024 argument.
7025 (finalize): Likewise.
7026 * toplev.h (dump_memory_report): Remove argument.
7027
7028 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7029
7030 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7031 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7032 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7033 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7034 accept "const".
7035
7036 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7037
7038 * coretypes.h (string_int_pair): New typedef.
7039 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7040 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7041 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7042
7043 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7044
7045 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7046 (simulate_builtin_function_decl): Declare.
7047 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7048 (LANG_HOOKS_INITIALIZER): Include it.
7049 * langhooks.c (add_builtin_function_common): Rename to...
7050 (build_builtin_function): ...this. Add a location parameter and use
7051 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7052 the decl instead.
7053 (add_builtin_function): Update accordingly, passing the returned
7054 decl to the lang hook.
7055 (add_builtin_function_ext_scope): Likewise
7056 (simulate_builtin_function_decl): New function.
7057
7058 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7059
7060 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7061 example, use actual names of supported offload targets.
7062
7063 PR target/92258
7064 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7065
7066 2019-10-28 Martin Sebor <msebor@redhat.com>
7067
7068 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7069 (handle_store): Pass argument to get_addr_stridx.
7070
7071 2019-10-28 Martin Sebor <msebor@redhat.com>
7072
7073 PR tree-optimization/92226
7074 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7075 the offset is in the open range outlined by SI's length.
7076
7077 2019-10-28 Martin Sebor <msebor@redhat.com>
7078
7079 PR c/66970
7080 * doc/cpp.texi (__has_builtin): Document.
7081 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7082
7083 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7084
7085 PR target/82981
7086 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7087 doubleword and low doubleword result of multiplication on
7088 MIPS64R6.
7089
7090 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7091 pure qualifier to the built-in.
7092 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7093 built-ins.
7094 (struct mips_builtin_description): Add is_pure flag.
7095 (mips_init_builtins): Mark built-in as pure if the flag in the
7096 corresponding mips_builtin_description struct is set.
7097
7098 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7099 alternative which covers the floating-point input value. Also
7100 forbid the split of insert.d pattern for floating-point values.
7101
7102 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7103
7104 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7105 * config/riscv/riscv-sr.c: New file.
7106 * config/riscv/riscv.c (riscv_reorg): New function.
7107 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7108 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7109 (riscv_remove_unneeded_save_restore_calls): Declare.
7110 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7111
7112 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7113
7114 PR tree-optimization/92163
7115 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7116 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7117 before calling bitmap_set_bit.
7118 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7119 delete_dead_or_redundant_assignment.
7120 (dse_dom_walker::dse_optimize_stmt): Likewise.
7121 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7122
7123 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7124
7125 PR middle-end/91272
7126 * tree-vect-stmts.c (vectorizable_condition): Support
7127 EXTRACT_LAST_REDUCTION with fully-masked loops.
7128
7129 2019-10-28 Richard Biener <rguenther@suse.de>
7130
7131 PR tree-optimization/92252
7132 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7133 STMT_VINFO_REDUC_IDX when swapping operands.
7134
7135 2019-10-28 Richard Biener <rguenther@suse.de>
7136
7137 PR tree-optimization/92241
7138 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7139 we failed to update the reduction index do not use the pattern
7140 stmts for the reduction chain.
7141 (vectorizable_reduction): When the reduction chain is corrupt,
7142 fail.
7143 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7144 fail to update the reduction chain.
7145
7146 2019-10-28 Richard Biener <rguenther@suse.de>
7147
7148 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7149 STMT_VINFO_REDUC_IDX from the actual stmt.
7150 (vect_transform_reduction): Likewise.
7151 (vectorizable_reduction): Compute the reduction chain length,
7152 do not recompute the reduction operand index. Remove no longer
7153 necessary restriction for condition reduction chains.
7154
7155 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7156
7157 PR target/92225
7158 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7159 condition for V2DImode.
7160
7161 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7162
7163 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7164 Remove %k operand modifier.
7165 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7166
7167 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7168
7169 PR rtl-optimization/92007
7170 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7171 call it after reload if hot/cold partitioning has been done.
7172 (class pass_postreload_jump): Rename to
7173 pass_jump_after_combine.
7174 (make_pass_postreload_jump): Rename to
7175 make_pass_jump_after_combine.
7176 * passes.def(pass_postreload_jump): Move before reload, rename
7177 to pass_jump_after_combine.
7178 * tree-pass.h (make_pass_postreload_jump): Rename to
7179 make_pass_jump_after_combine.
7180
7181 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7182
7183 PR ipa/92242
7184 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7185 for missing EDGE_REF
7186 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7187
7188 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7189
7190 PR tree-optimization/88760
7191 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7192 Enable -funroll-loops for -O2 and above.
7193 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7194 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7195 do not turn on web and rngreg implicitly, if the unroller is not
7196 explicitly enabled.
7197
7198 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7199
7200 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7201 jump functions.
7202
7203 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7204
7205 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7206 * cgraph.h (cgraph_node::rtl_info): Likewise.
7207
7208 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7209
7210 * ipa-cp.c (propagate_constants_across_call): If args are not available
7211 just drop everything to varying.
7212 (find_aggregate_values_for_callers_subset): Watch for missing
7213 edge summary.
7214 (find_more_scalar_values_for_callers_subs): Likewise.
7215 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7216 update_jump_functions_after_inlining, propagate_controlled_uses):
7217 Watch for missing summaries.
7218 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7219 is finished.
7220 (ipa_write_node_info): Watch for missing summaries.
7221 (ipa_read_edge_info): Create new ref.
7222 (ipa_edge_args_sum_t): Add remove.
7223 (IPA_EDGE_REF_GET_CREATE): New macro.
7224 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7225 edge summary.
7226 (remap_edge_change_prob): Likewise.
7227
7228 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7229
7230 * ipa-inline-transform.c (inline_call): update function summaries
7231 after expanidng thunk.
7232
7233 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7234
7235 * ipa-icf.c (sem_function::merge): Update function summaries.
7236 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7237
7238 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7239
7240 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7241 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7242 operand already has scalar mode.
7243 (iptr): Remove SF/DF.
7244
7245 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7246
7247 PR target/91289
7248 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7249 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7250 this.
7251
7252 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7253
7254 * config/i386/sse.md
7255 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7256 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7257 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7258 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7259 <sse>_vmmaskcmp<mode>3):
7260 Change predicates from vector_operand to nonimmediate_operand,
7261 constraints xBm to xm, since scalar operations don't need
7262 memory address alignment.
7263 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7264 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7265 round_saeonly_nimm_predicate with
7266 round_saeonly_nimm_scalar_predicate.
7267 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7268 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7269 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7270 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7271 avx512f_vmfmadd_<mode>_mask3<round_name>,
7272 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7273 *avx512f_vmfmsub_<mode>_mask<round_name>,
7274 avx512f_vmfmsub_<mode>_mask3<round_name>,
7275 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7276 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7277 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7278 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7279 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7280 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7281 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7282 cvtusi2<ssescalarmodesuffix>32<round_name>,
7283 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7284 round_nimm_predicate with round_nimm_scalr_predicate.
7285 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7286 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7287 avx512er_vmrcp28<mode><round_saeonly_name>,
7288 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7289 ): Replace round_saeonly_nimm_predicate with
7290 round_saeonly_nimm_scalar_predicate.
7291 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7292 vector_operand with nonimmediate_operand.
7293 * config/i386/subst.md (round_scalar_nimm_predicate,
7294 round_saeonly_scalar_nimm_predicate): Replace
7295 vector_operand with nonimmediate_operand.
7296
7297 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7298
7299 PR target/89071
7300 * config/i386/i386.md (*rcpsf2_sse): Add
7301 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7302 (*rsqrtsf2_sse): Ditto.
7303 (*sqrt<mode>2_sse): Ditto.
7304 (sse4_1_round<mode>2): separate constraint vm, add
7305 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7306 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7307 by pass rpad.
7308 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7309 Ditto.
7310 (*sse_vmrsqrtv4sf2): Ditto.
7311 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7312 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7313 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7314 <iptr> pointer size modifier since vround support memory operand.
7315
7316 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7317
7318 PR target/85969
7319 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7320 static function.
7321
7322 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7323 Tobias Burnus <tobias@codesourcery.com>
7324
7325 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7326 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7327 common block decls.
7328
7329 2019-10-25 Richard Biener <rguenther@suse.de>
7330
7331 PR tree-optimization/92222
7332 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7333 (_slp_oprnd_info::second_pattern): Likewise.
7334 (_slp_oprnd_info::any_pattern): New.
7335 (vect_create_oprnd_info): Adjust.
7336 (vect_get_and_check_slp_defs): Compute whether any stmt is
7337 in a pattern.
7338 (vect_build_slp_tree_2): Avoid building up a node from scalars
7339 if any of the operand defs, not just the first, is in a pattern.
7340
7341 2019-10-25 Richard Biener <rguenther@suse.de>
7342
7343 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7344 swapping if we actually have to modify the IL on a shared stmt.
7345 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7346 because we no longer modify the IL.
7347
7348 2019-10-25 Martin Liska <mliska@suse.cz>
7349
7350 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7351
7352 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7353
7354 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7355 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7356 handled by vect_transform_reduction. Allow fully-masked loops
7357 to be used with reduction chains.
7358 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7359 operations in fully-masked loops.
7360 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7361 operations in fully-masked loops.
7362
7363 2019-10-25 Richard Biener <rguenther@suse.de>
7364
7365 * tree-vect-loop.c (vectorizable_reduction): Verify
7366 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7367 correctly.
7368 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7369 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7370 stmts.
7371
7372 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7373
7374 * gimplify.h (omp_construct_selector_matches): Declare.
7375 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7376 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7377 called function if needed for flag_openmp.
7378 (gimplify_scan_omp_clauses): Set ctx->code.
7379 (omp_construct_selector_matches): New function.
7380 * omp-general.h (omp_constructor_traits_to_codes,
7381 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7382 * omp-general.c (omp_constructor_traits_to_codes,
7383 omp_context_selector_matches, omp_resolve_declare_variant): New
7384 functions.
7385
7386 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7387 literal.
7388 * config/rx/rx.c (rx_print_operand): Likewise.
7389 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7390 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7391 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7392 Likewise.
7393 * genemit.c (emit_c_code): Likewise.
7394 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7395
7396 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7397
7398 * symbols-summary.h (fast_function_summary<T *, V>::release,
7399 fast_call_summary<T *, V>::release): Free m_vector.
7400
7401 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7402
7403 * cgraphunit.c (symbol_table::process_new_functions): Call
7404 ipa_free_size_summary.
7405 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7406 (devirtualization_time_bonus): Update.
7407 (ipcp_propagate_stage): Update.
7408 * ipa-fnsummary.c (ipa_size_summaries): New.
7409 (ipa_fn_summary_alloc): Alloc size summary.
7410 (dump_ipa_call_summary): Update.
7411 (ipa_dump_fn_summary): Update.
7412 (analyze_function_body): Update.
7413 (compute_fn_summary): Likewise.
7414 (ipa_get_stack_frame_offset): New function.
7415 (inline_update_callee_summaries): Do not update frame offsets.
7416 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7417 remove call and function summary.
7418 (ipa_update_overall_fn_summary): Update.
7419 (inline_read_section): Update.
7420 (ipa_fn_summary_write): Update.
7421 (ipa_free_fn_summary): Do not remove summaries.
7422 (ipa_free_size_summary): New.
7423 (release summary pass): Also run at WPA.
7424 * ipa-fnsummary.h (ipa_size_summary): Declare.
7425 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7426 estimated_self_stack_size.
7427 (ipa_size_summary_t): New type.
7428 (ipa_size_summaries): Declare.
7429 (ipa_free_size_summary): Declare.
7430 (ipa_get_stack_frame_offset): Declare.
7431 * ipa-icf.c (sem_function::merge): Update.
7432 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7433 (estimate_growth): Update.
7434 (growth_likely_positive): Update.
7435 (clone_inlined_nodes): Update.
7436 (inline_call): Update.
7437 * ipa-inline.c (caller_growth_limits): Update.
7438 (edge_badness): Update.
7439 (recursive_inlining): Update.
7440 (inline_small_functions): Update.
7441 (inline_to_all_callers_1): Update.
7442 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7443
7444 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7445
7446 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7447 (uavg<mode>3_ceil): ... This.
7448 (altivec_vavgs<VI_char>): Rename to...
7449 (avg<mode>3_ceil): ... This.
7450 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7451 VAVGUW, VAVGSW): Adjust.
7452
7453 2019-10-24 Nathan Sidwell <nathan@acm.org>
7454
7455 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7456
7457 2019-10-24 Martin Liska <mliska@suse.cz>
7458
7459 * symbol-summary.h (gt_pch_nx): Mark all functions
7460 with gcc_unreachable as we do not expect to be called.
7461
7462 2019-10-24 Richard Biener <rguenther@suse.de>
7463
7464 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7465 chains try harder with operand swapping and instead of
7466 putting a shifted chain into the reduction operands put
7467 a repetition of the final reduction op there as if we'd
7468 reassociate the expression.
7469
7470 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7471
7472 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7473 statics_not_read and statics_not_written to statics_read and
7474 statics_written respectively.
7475 (no_module_statics): New static var.
7476 (ipa_reference_get_not_read_global): Rename to ...
7477 (ipa_reference_get_read_global): ... this.
7478 (ipa_reference_get_not_written_global): Rename to ...
7479 (ipa_reference_get_written_global): ... this.
7480 (dump_static_vars_set_to_file): Dump no_module_statics.
7481 (copy_static_var_set): Add for propagation parameter.
7482 (ipa_init): Initialize no_module_statics.
7483 (ipa_ref_opt_summary_t::duplicate): Update.
7484 (ipa_ref_opt_summary_t::remove): Update.
7485 (propagate): Update.
7486 (write_node_summary_p): Look correctly for bitmap differences.
7487 (ipa_reference_write_optimization_summary): Update.
7488 (ipa_reference_read_optimization_summary): Update.
7489 * ipa-reference.h
7490 (ipa_reference_get_not_read_global): Rename to ...
7491 (ipa_reference_get_read_global): ... this.
7492 (ipa_reference_get_not_written_global): Rename to ...
7493 (ipa_reference_get_written_global): ... this.
7494 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7495 (call_may_clobber_ref_p_1): Update.
7496
7497 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7498
7499 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7500 and add comment.
7501 (msp430_hard_regno_nregs_with_padding): Remove.
7502
7503 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7504
7505 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7506 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7507 shift amount is between 1 and 4.
7508 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7509 is between 1 and 4.
7510
7511 2019-10-24 Richard Biener <rguenther@suse.de>
7512
7513 PR tree-optimization/92205
7514 * tree-vect-loop.c (vectorizable_reduction): Restrict
7515 search for alternate vectype_in to lane-reducing patterns
7516 we support.
7517
7518 2019-10-24 Richard Biener <rguenther@suse.de>
7519
7520 PR tree-optimization/92203
7521 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7522 Skip eliminating conversion stmts inserted by insertion.
7523
7524 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7525
7526 * config/s390/s390.c (s390_get_thread_pointer): Use
7527 gen_get_thread_pointer.
7528 (s390_expand_split_stack_prologue): Likewise.
7529 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7530 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7531 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7532 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7533 parameterized name.
7534
7535 2019-10-24 Richard Biener <rguenther@suse.de>
7536
7537 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7538 SLP discovery fails try to handle the reduction as part
7539 of SLP reduction discovery.
7540
7541 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7542
7543 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7544 declaration.
7545 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7546 attribute if it exists, rather than the insn size. If we use the
7547 insn size, adjust the size to remove the extra size that prefixed
7548 instructions take.
7549 (rs6000_adjust_insn_length): New function.
7550 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7551 update the instruction sized if prefixed instructions are used.
7552 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7553 (non_prefixed_length attribute): Delete.
7554 (num_insns attribute): New insn attribute to return the number of
7555 instructions.
7556 (max_prefixed_insns attribute): New insn attribute to return the
7557 maximum number of prefixed instructions in an insn.
7558 (length attribute): Do not adjust for prefix instructions here,
7559 punt to ADJUST_INSN_LENGTH.
7560 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7561 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7562 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7563 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7564 max_prefixed_insns and num_insns.
7565
7566 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7567 (movtd_64bit_nodm): Reformat.
7568 (mov<mode>_32bit): Reformat.
7569 (mov<mode>_softfloat): Reformat.
7570 (FMOVE128_GPR splitter): Reformat.
7571 (DIFD splitter): Reformat.
7572 (TI2 splitter): Reformat.
7573 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7574 bits of the offset for the memory address are non-zero, use PLWA
7575 if prefixed instructions are available.
7576
7577 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7578
7579 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7580
7581 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7582
7583 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7584 previous patch.
7585
7586 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7587
7588 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7589 (cmp_symbol_files): New.
7590 (lto_output): Copy sections in file order.
7591 * lto-streamer.h (lto_file_decl_data): Add field order.
7592
7593 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7594
7595 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7596 * ipa-reference.c (reference_vars_map_t): new type.
7597 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7598 (ipa_reference_var_uid): Implement.
7599 (varpool_node_hooks): New static var.
7600 (varpool_removal_hook): New function.
7601 (is_improper): Do not check bitmap for id==-1
7602 (get_static_name): Update.
7603 (ipa_init): Initialize new datastructures.
7604 (analyze_function): Do not recompute ids.
7605 (propagate): Free reference_vars_to_consider.
7606 (stream_out_bitmap): Update.
7607 (ipa_reference_read_optimization_summary): Update.
7608
7609 2019-10-23 qing zhao <qing.zhao@oracle.com>
7610
7611 PR gcov-profile/91971
7612 * coverage.c (coverage_init): Mangle the full path of filename when
7613 filename is a absolute path.
7614
7615 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7616
7617 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7618 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7619 (msp430_has_hwmult): New.
7620 (msp430_output_labelref):
7621 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7622 * config/msp430/msp430.md (mulhisi3): Likewise.
7623 (umulhisi3): Likewise.
7624 (mulsidi3): Likewise.
7625 (umulsidi3): Likewise.
7626
7627 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7628
7629 PR ipa/92074
7630 * params.def (inline-heuristics-hint-percent): Set to 600.
7631
7632 2019-10-23 Richard Biener <rguenther@suse.de>
7633
7634 PR tree-optimization/65930
7635 * tree-vect-loop.c (check_reduction_path): Allow conversions
7636 that only change the sign.
7637 (vectorizable_reduction): Relax latch def stmts we handle further.
7638
7639 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7640
7641 PR debug/90231
7642 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7643 (remove_unused_ivs): Use it instead of get_computation_at. When
7644 choosing best candidate, only consider candidates where
7645 get_debug_computation_at actually returns non-NULL.
7646
7647 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7648
7649 PR tree-optimization/92131
7650 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7651 range would be symbolic, drop to varying for any explicit overflow
7652 in the constant part or if neither range is a singleton.
7653
7654 2019-10-23 Martin Liska <mliska@suse.cz>
7655
7656 PR middle-end/81669
7657 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7658 Initialize m_data.
7659
7660 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7661
7662 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7663 int_mode_for_mode rather than mode_for_int_vector for scalars.
7664
7665 2019-10-23 Richard Biener <rguenther@suse.de>
7666
7667 PR tree-optimization/92179
7668 * tree-vect-stmts.c (vectorizable_shift): For shift args
7669 that are all the same remove type restriction in the SLP case.
7670 Adjust SLP code to handle converting of the shift arg to
7671 only apply in case the modes are different.
7672
7673 2019-10-23 Martin Liska <mliska@suse.cz>
7674
7675 PR ipa/91969
7676 * ipa-inline.c (recursive_inlining): Do not print
7677 when curr->count is not initialized.
7678
7679 2019-10-23 Richard Biener <rguenther@suse.de>
7680
7681 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7682 op from scalars in case there's a constant operand in its
7683 definition.
7684
7685 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7686
7687 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7688 against out of range max skip or log values.
7689
7690 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7691
7692 * cgraph.c (dump_graphviz): Change name to dump_name
7693
7694 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7695
7696 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7697 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7698 subtraction from a carry operation.
7699
7700 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7701
7702 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7703
7704 2019-10-22 Richard Biener <rguenther@suse.de>
7705
7706 PR tree-optimization/92173
7707 * tree-vect-loop.c (vectorizable_reduction): If
7708 vect_transform_reduction cannot handle code-generation try without
7709 the single-def-use-cycle optimization. Pass optab_vector to
7710 optab_for_tree_code to get vector shifts as that's what we'd
7711 generate.
7712
7713 2019-10-22 Michael Matz <matz@suse.de>
7714
7715 PR middle-end/90796
7716 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7717 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7718 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7719
7720 2019-10-22 Richard Biener <rguenther@suse.de>
7721
7722 PR tree-optimization/92173
7723 * tree-vect-loop.c (vectorizable_reduction): If
7724 vect_transform_reduction cannot handle code-generation try without
7725 the single-def-use-cycle optimization. Pass optab_vector to
7726 optab_for_tree_code to get vector shifts as that's what we'd
7727 generate.
7728
7729 2019-10-22 Martin Liska <mliska@suse.cz>
7730
7731 * diagnostic-format-json.cc (json_from_expanded_location):
7732 Use json::integer_number.
7733 * gcov.c (output_intermediate_json_line): Use new
7734 json::integer_number.
7735 (output_json_intermediate_file): Likewise.
7736 * json.cc (number::print): Move to ...
7737 (float_number::print): ... this.
7738 (integer_number::print): New.
7739 (test_writing_numbers): Move to ...
7740 (test_writing_float_numbers): ... this.
7741 (test_writing_integer_numbers): New.
7742 (json_cc_tests): Register test_writing_integer_numbers.
7743 * json.h (class value): Add forward declaration
7744 for float_number and integer_number.
7745 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7746 (class number): Move to ...
7747 (class float_number): ... this.
7748 (class integer_number): New.
7749 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7750 Use json::integer_number.
7751 (optrecord_json_writer::location_to_json): Likewise.
7752 (optrecord_json_writer::profile_count_to_json): Likewise.
7753 (optrecord_json_writer::pass_to_json): Likewise.
7754
7755 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7756
7757 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7758 autodetected_vector_size rather than vector_size is zero.
7759 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7760 Set autodetected_vector_size immediately after calling
7761 vect_analyze_loop_2. Check for a fatal error before advancing
7762 next_size.
7763
7764 2019-10-21 Jason Merrill <jason@redhat.com>
7765
7766 * lock-and-run.sh: Check for process existence rather than timeout.
7767
7768 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7769
7770 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7771 widening multiplication.
7772
7773 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7774
7775 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7776 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7777 type attribute.
7778 (subsi3_carryin_shift): Separate into register and constant controlled
7779 alternatives. Use shift_amount_operand for operand 4. Set shift
7780 attribute and simplify type attribute.
7781 (subsi3_carryin_shift_alt): Likewise.
7782 (rsbsi3_carryin_shift): Likewise.
7783 (rsbsi3_carryin_shift_alt): Likewise.
7784 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7785 and register controlled shifts into distinct alternatives.
7786 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7787 (andsi_not_shiftsi_si_scc): Likewise.
7788 (arm_cmpsi_negshiftsi_si): Likewise.
7789 (not_shiftsi): Remove redundant M constraint from alternative 1.
7790 (not_shiftsi_compare0): Likewise.
7791 (arm_cmpsi_insn): Remove redundant alternative 2.
7792 (cmpsi_shift_swp): Likewise.
7793 (sub_shiftsi): Likewise.
7794 (sub_shiftsi_compare0_scratch): Likewise.
7795 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7796 (thumb2_cmpsi_neg_shiftsi): Likewise.
7797
7798 2019-10-21 Richard Biener <rguenther@suse.de>
7799
7800 PR tree-optimization/92162
7801 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7802 STMT_VINFO_REDUC_IDX in reduc_info.
7803 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7804
7805 2019-10-21 Richard Biener <rguenther@suse.de>
7806
7807 * tree-vectorizer.h (_slp_tree::ops): New member.
7808 (SLP_TREE_SCALAR_OPS): New.
7809 (vect_get_slp_defs): Adjust prototype.
7810 * tree-vect-slp.c (vect_free_slp_tree): Release
7811 SLP_TREE_SCALAR_OPS.
7812 (vect_create_new_slp_node): Initialize it. New overload for
7813 initializing by an operands array.
7814 (_slp_oprnd_info::ops): New member.
7815 (vect_create_oprnd_info): Initialize it.
7816 (vect_free_oprnd_info): Release it.
7817 (vect_get_and_check_slp_defs): Populate the operands array.
7818 Do not swap operands in the IL when not necessary.
7819 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7820 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7821 swap operands in the operands array. Do not swap operands in
7822 the IL.
7823 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7824 (vect_gather_slp_loads): Fix.
7825 (vect_detect_hybrid_slp_stmts): Likewise.
7826 (vect_slp_analyze_node_operations_1): Search for a internal
7827 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7828 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7829 the def-type push/pop dance.
7830 (vect_get_constant_vectors): Compute number_of_vectors here.
7831 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7832 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7833 (vect_get_slp_defs): Simplify greatly.
7834 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7835 (vect_transform_reduction): Likewise.
7836 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7837 (vectorizable_call): Likewise.
7838 (vectorizable_operation): Likewise.
7839 (vectorizable_load): Likewise.
7840 (vectorizable_condition): Likewise.
7841 (vectorizable_comparison): Likewise.
7842
7843 2019-10-21 Richard Biener <rguenther@suse.de>
7844
7845 PR tree-optimization/92161
7846 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7847 for reductions.
7848
7849 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7850
7851 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7852 (aarch64_rndr): New define_insn.
7853 (aarch64_rndrrs): Likewise.
7854 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7855 (TARGET_RNG): Likewise.
7856 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7857 argument.
7858 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7859 Add fourth argument in prototype.
7860 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7861 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7862 (aarch64_init_rng_builtins): Define.
7863 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7864 (aarch64_expand_rng_builtin): Define.
7865 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7866 RNG builtins.
7867 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7868 __ARM_FEATURE_RNG when TARGET_RNG.
7869 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7870
7871 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7872
7873 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7874 alignment is more restrictive.
7875
7876 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7877
7878 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7879 (vect_update_max_nunits): Update comment.
7880 (current_vector_size): Delete.
7881 * tree-vect-stmts.c (current_vector_size): Likewise.
7882 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7883 of current_vector_size.
7884 (get_mask_type_for_scalar_type): Likewise.
7885 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7886 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7887 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7888 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7889 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7890 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7891
7892 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7893
7894 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7895 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7896 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7897 accordingly.
7898
7899 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7900
7901 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7902 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7903 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7904 call accordingly.
7905 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7906
7907 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7908
7909 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7910 a loop_vec_info.
7911 (vect_set_loop_condition_masked): Update call accordingly.
7912
7913 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7914
7915 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7916 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7917 (simple_integer_narrowing): Update call accordingly.
7918 (vectorizable_conversion): Likewise.
7919
7920 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7921
7922 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7923 (vectorizable_call): Update call accordingly.
7924
7925 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7926
7927 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7928 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7929 (duplicate_and_interleave): Update call accordingly.
7930 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7931
7932 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7933
7934 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7935 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7936 (vect_get_constant_vectors): Update call accordingly.
7937 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7938
7939 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7940
7941 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7942 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7943 (vect_prologue_cost_for_slp_op): Update call accordingly.
7944 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7945 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7946 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7947 (get_mask_type_for_scalar_type): Likewise.
7948 (vect_get_vector_types_for_stmt): Likewise.
7949 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7950 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7951 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7952 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7953 (vect_split_statement, vect_convert_input): Likewise.
7954 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7955 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7956 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7957 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7958 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7959 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7960 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7961 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7962 (vect_recog_mask_conversion_pattern): Likewise.
7963 (vect_add_conversion_to_pattern): Likewise.
7964 (vect_recog_gather_scatter_pattern): Likewise.
7965 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7966 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7967
7968 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7969
7970 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7971 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7972 (vect_check_load_store_mask): Update call accordingly.
7973 (vect_get_mask_type_for_stmt): Likewise.
7974 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7975 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7976 (vect_convert_mask_for_vectype): Likewise.
7977
7978 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7979
7980 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7981 a vec_info.
7982 (vect_recog_dot_prod_pattern): Update call accordingly.
7983 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7984 (vect_recog_widen_sum_pattern): Likewise.
7985
7986 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7987
7988 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7989 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7990 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7991 accordingly.
7992
7993 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7994
7995 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7996 get_vectype_for_scalar_type_and_size instead of
7997 get_vectype_for_scalar_type.
7998
7999 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8000
8001 * common.opt (-fcommon): Fix description.
8002
8003 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8004
8005 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8006 * config/i386/i386.c (ix86_pre_reload_split): New function.
8007 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8008 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8009 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8010 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8011 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8012 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8013 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8014 *<shift_insn><dwi>3_doubleword_mask,
8015 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8016 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8017 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8018 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8019 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8020 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8021 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8022 *avx2_<code>v8qiv8si2<mask_name>_2,
8023 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8024 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8025 *avx512f_<code>v8qiv8di2<mask_name>_2,
8026 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8027 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8028 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8029 sse4_2_pcmpistr): Likewise.
8030
8031 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8032
8033 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8034 now defaults to https.
8035
8036 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8037
8038 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8039 skip non-zero array accesses.
8040
8041 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8042
8043 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8044 and return a boolean success value. Move the allocation and
8045 initialization of the bb_vec_info to...
8046 (vect_slp_bb_region): ...here. Update call accordingly.
8047 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8048 than in vect_slp_analyze_bb_1.
8049
8050 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8051
8052 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8053 when processing the given datarefs for the first time and
8054 check_datarefs subsequently.
8055 (vect_slp_bb_region): New function, split out of...
8056 (vect_slp_bb): ...here. Don't recompute the region bounds and
8057 dataref sets when retrying with a different vector size.
8058
8059 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8060 Uroš Bizjak <ubizjak@gmail.com>
8061
8062 PR target/92140
8063 * config/i386/predicates.md (int_nonimmediate_operand): New special
8064 predicate.
8065 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8066 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8067 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8068 define_insn_and_split patterns.
8069
8070 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8071
8072 * config/rs6000/rs6000.md: Delete out--of-date comment about
8073 special-casing integer loads.
8074
8075 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8076
8077 * escaped_string.h (escaped_string): New header.
8078 * tree.c (escaped_string): Remove escaped_string class.
8079
8080 2019-10-18 Martin Sebor <msebor@redhat.com>
8081
8082 PR tree-optimization/92157
8083 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8084 compute_string_length to return a negative result.
8085
8086 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8087
8088 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8089 (negvsi3, negvdi3): Delete.
8090 (negdi2_compare): Delete.
8091
8092 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8093
8094 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8095 operations.
8096 (subdi3_compare1): Delete pattern.
8097 (subvsi3_borrow): New insn pattern.
8098 (subvsi3_borrow_imm): Likewise.
8099
8100 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8101
8102 * config/arm/arm.md (subv<mode>4): Delete.
8103 (subvdi4): New expander pattern.
8104 (subvsi4): Likewise. Handle some immediate values.
8105 (subvsi3_intmin): New insn pattern.
8106 (subvsi3): Likewise.
8107 (subvsi3_imm1): Likewise.
8108 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8109 idioms.
8110
8111 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8114 incoming operands. Early split the calculation into SImode
8115 operations.
8116 (usubvsi3_borrow): New insn pattern.
8117 (usubvsi3_borrow_imm): Likewise.
8118
8119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8120
8121 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8122 (usubvsi4): New pattern. Allow some immediate values for inputs.
8123 (usubvdi4): New pattern.
8124
8125 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8126
8127 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8128 or second operand of the PLUS inside a DImode equality test to be
8129 sign-extend when selecting CC_Vmode.
8130 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8131 instructions.
8132 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8133 expand patterns.
8134 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8135 (addsi3_cin_vout_0): Likewise.
8136 (adddi3_compareV): Delete.
8137
8138 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8139
8140 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8141 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8142 to transform this back into the summation version when that leads
8143 to smaller code.
8144
8145 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8146
8147 * config/arm/arm.md (addv<mode>4): Delete.
8148 (addvsi4): New pattern. Handle immediate values that the architecture
8149 supports.
8150 (addvdi4): New pattern.
8151 (addsi3_compareV): Rename to ...
8152 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8153 and use COMPARE rather than NE.
8154 (addsi3_compareV_imm): New pattern.
8155 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8156 a signed-overflow check.
8157
8158 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8159
8160 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8161 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8162 CC_ADCmode.
8163 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8164 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8165 with overflow.
8166 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8167 expand patterns.
8168 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8169 (addsi3_cin_cout_imm_insn): Likewise.
8170 (adddi3_compareC): Delete insn.
8171 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8172
8173 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8174
8175 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8176 * (uaddv<mode>4): Delete expansion pattern.
8177 (uaddvsi4): New pattern.
8178 (uaddvdi4): Likewise.
8179 (addsi3_compareC): Delete pattern, change callers to use
8180 addsi3_compare_op1.
8181 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8182 reduce the number of alternatives and re-work type attribute handling.
8183 (addsi3_compare_op2): Clean up constraints to reduce the number of
8184 alternatives and re-work type attribute handling.
8185 (compare_addsi2_op0): Likewise.
8186 (compare_addsi2_op1): Likewise.
8187
8188 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8189
8190 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8191 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8192 for DImode operands.
8193 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8194 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8195 CC_NCVmode.
8196 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8197 (arm_cmpdi_unsigned): Delete.
8198
8199 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8200
8201 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8202 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8203 unchanged only if that will be cheaper.
8204 (arm_select_cc_mode): Recognize a swapped comparison that will
8205 be regenerated using RSBS or RSCS. Relax restriction on selecting
8206 CC_RSBmode.
8207 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8208 a constant.
8209 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8210 is CC_RSBmode.
8211 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8212 as CCmode.
8213 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8214 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8215
8216 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8217
8218 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8219 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8220 need these modes.
8221 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8222 of EQ, NE, LT, GE, LTU and GEU.
8223 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8224 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8225 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8226 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8227 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8228
8229 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8230
8231 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8232 operand 2.
8233 (cstoredi4): Similarly, but for operand 3.
8234 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8235 canonicalization of unsigned compares with a constant on Arm.
8236 Prefer using const+1 and adjusting the comparison over swapping the
8237 operands whenever the original constant was not valid.
8238 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8239 register here.
8240 (arm_validize_comparison): Do not force invalid DImode operands to
8241 registers here.
8242
8243 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8244
8245 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8246 return CC_Zmode if comparing against a constant where one word is
8247 zero.
8248 (arm_gen_compare_reg): Split DImode handling to ...
8249 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8250 against simple constants.
8251 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8252
8253 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8254
8255 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8256 (rsbsi3_carryin_shift_alt): Likewise.
8257
8258 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8259
8260 * config/arm/arm.md (negscc_borrow): New pattern.
8261 (mov_negscc): Don't split if the insn would match negscc_borrow.
8262 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8263 (thumb2_mov_negscc_strict_it): Likewise.
8264
8265 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8266
8267 * config/arm/arm.c (arm_insn_cost): New function.
8268 (TARGET_INSN_COST): Override default definition.
8269
8270 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8271
8272 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8273 borrow operations.
8274
8275 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8276
8277 * config/arm/arm.c (strip_carry_operation): New function.
8278 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8279 for SImode.
8280
8281 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8282
8283 * config/arm/predicates.md (arm_carry_operation): New special
8284 predicate.
8285 * config/arm/iterators.md (LTUGEU): Delete iterator.
8286 (cnb): Delete code attribute.
8287 (optab): Delete ltu and geu elements.
8288 * config/arm/arm.md (addsi3_carryin): Renamed from
8289 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8290 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8291 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8292 (addsi3_carryin_clobercc): Similarly.
8293 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8294 Thumb2 state.
8295
8296 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8297
8298 * config/arm/arm.md (arm_subdi3): Delete insn.
8299 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8300
8301 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8302
8303 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8304 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8305 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8306 return CC_RSBmode.
8307 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8308 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8309 expand.
8310 (subdi3): Rewrite to early-expand the sub-operations.
8311 (rsb_im_compare): New pattern.
8312 (negdi2): Delete.
8313 (negdi2_insn): Delete.
8314 (arm_negsi2): Correct type attribute to alu_imm.
8315 (negsi2_0compare): New insn pattern.
8316 (negsi2_carryin): New insn pattern.
8317
8318 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8319
8320 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8321 operand 2.
8322
8323 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8324
8325 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8326 to match canonical form.
8327
8328 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8329
8330 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8331 (extend<mode>di2): Likewise.
8332
8333 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8334
8335 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8336 * config/arm/arm.c (arm_decompose_di_binop): New function.
8337 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8338 If not generating Thumb-1 code, decompose the operation into 32-bit
8339 pieces.
8340 * add0si_carryin_<optab>: New pattern.
8341
8342 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * arm.md (adddi3): Only accept register operands.
8345 (arm_adddi3): Convert to simple insn with no split. Do not accept
8346 constants.
8347 (adddi_sesidi_di): Delete patern.
8348 (adddi_zesidi_di): Likewise.
8349 (uaddv<mode>4): Use LTU as condition for branch.
8350 (adddi3_compareV): Convert to simple insn with no split.
8351 (addsi3_compareV_upper): Delete pattern.
8352 (adddi3_compareC): Convert to simple insn with no split. Correct
8353 flags setting expression.
8354 (addsi3_compareC_upper): Delete pattern.
8355 (addsi3_compareC): Correct flags setting expression.
8356 (subdi3_compare1): Convert to simple insn with no split.
8357 (subsi3_carryin_compare): Delete pattern.
8358 (arm_subdi3): Convert to simple insn with no split.
8359 (subdi_zesidi): Delete pattern.
8360 (subdi_di_sesidi): Delete pattern.
8361 (subdi_zesidi_di): Delete pattern.
8362 (subdi_sesidi_di): Delete pattern.
8363 (subdi_zesidi_zesidi): Delete pattern.
8364 (negvdi3): Use s_register_operand.
8365 (negdi2_compare): Convert to simple insn with no split.
8366 (negdi2_insn): Likewise.
8367 (negsi2_carryin_compare): Delete pattern.
8368 (negdi_zero_extendsidi): Delete pattern.
8369 (arm_cmpdi_insn): Convert to simple insn with no split.
8370 (negdi2): Don't call gen_negdi2_neon.
8371 * config/arm/neon.md (adddi3_neon): Delete pattern.
8372 (subdi3_neon): Delete pattern.
8373 (negdi2_neon): Delete pattern.
8374 (splits for negdi2_neon): Delete splits.
8375
8376 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8377
8378 PR middle-end/92153
8379 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8380 than after it.
8381
8382 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8383
8384 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8385 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8386 new multilib variants and new mappings.
8387
8388 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8389
8390 PR target/86040
8391 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8392
8393 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8394 Richard Sandiford <richard.sandiford@arm.com>
8395
8396 PR target/86753
8397 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8398 and define hashmap traits for it.
8399 (loop_vec_info::scalar_cond_masked_set): New member.
8400 (vect_record_loop_mask): Adjust prototype.
8401 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8402 Implement method.
8403 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8404 vect_record_loop_mask.
8405 (vectorizable_live_operation): Likewise.
8406 (vect_record_loop_mask): New param scalar_mask. Add entry
8407 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8408 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8409 Pass it as last arg to vect_record_loop_mask.
8410 (vectorizable_call): Pass scalar_mask as last arg to
8411 vect_record_loop_mask.
8412 (vectorizable_store): Likewise.
8413 (vectorizable_load): Likewise.
8414 (vectorizable_condition): Check if another part of vectorized code
8415 applies loop_mask to condition or to it's inverse, and if yes,
8416 apply loop_mask to result of vector comparison.
8417
8418 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8419
8420 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8421
8422 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8423
8424 PR tree-optimization/92056
8425 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8426 before calling compute_builtin_object_size.
8427
8428 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8429
8430 PR target/65342
8431 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8432 (movdi_low_st): Delete.
8433 * config/rs6000/rs6000.c
8434 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8435 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8436 * config/rs6000/rs6000.md (movsi_low): Delete.
8437
8438 2019-10-17 Jason Merrill <jason@redhat.com>
8439
8440 * gimplify.h (get_initialized_tmp_var): Add default argument to
8441 post_p.
8442 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8443 NULL post_p argument.
8444 * targhooks (std_gimplify_va_arg_expr): Likewise.
8445
8446 2019-10-17 Richard Biener <rguenther@suse.de>
8447
8448 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8449 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8450 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8451 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8452 * tree-vect-loop.c (vect_is_simple_reduction): Set
8453 STMT_VINFO_REDUC_CODE.
8454 (vectorizable_reduction): Remove dead and redundant code, use
8455 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8456
8457 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8458
8459 Fix breakage introduced by r276985.
8460
8461 * config/avr/avr.c (avr_option_override): Remove set of
8462 PARAM_ALLOW_STORE_DATA_RACES.
8463 * common/config/avr/avr-common.c (avr_option_optimization_table)
8464 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8465
8466 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8467
8468 * config/i386/i386.h (processor_costs): Add clear_ratio.
8469 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8470 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8471 of 6 and move_ratio in all cost models.
8472
8473 2019-10-17 Richard Biener <rguenther@suse.de>
8474
8475 * tree-vect-loop.c (check_reduction_path): Compute reduction
8476 operation here.
8477 (vect_is_simple_reduction): Remove special-case of single-stmt
8478 reduction path detection.
8479
8480 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8481
8482 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8483
8484 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8485
8486 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8487 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8488 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8489 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8490 New combine patterns.
8491 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8492 above.
8493 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8494
8495 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8496
8497 * tree-vrp.c (value_range_base::dump): Display +INF for both
8498 pointers and integers when appropriate.
8499
8500 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8501
8502 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8503 when to use versioning threshold.
8504
8505 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8506
8507 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8508 outlined code from ...
8509 (vect_analyze_loop_2): ... here.
8510
8511 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8512
8513 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8514 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8515 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8516
8517 2019-10-17 Richard Biener <rguenther@suse.de>
8518
8519 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8520 (vect_is_simple_reduction): Move all validity checks ...
8521 (vectorizable_reduction): ... here. Compute whether we
8522 need a fold-left reduction here.
8523 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8524 both overloads, check needs_fold_left_reduction_p directly.
8525 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8526
8527 2019-10-17 Richard Biener <rguenther@suse.de>
8528
8529 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8530 TARGET_MEM_REF creation.
8531
8532 2019-10-17 Richard Biener <rguenther@suse.de>
8533
8534 PR tree-optimization/92129
8535 * tree-vect-loop.c (vectorizable_reduction): Also fail
8536 on GIMPLE_SINGLE_RHS.
8537
8538 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8539
8540 PR tree-optimization/92056
8541 * tree-object-size.c (cond_expr_object_size): Return early if then_
8542 processing resulted in unknown size.
8543
8544 PR tree-optimization/92115
8545 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8546 temporary if it could trap.
8547
8548 2019-10-17 Richard Biener <rguenther@suse.de>
8549
8550 PR debug/91887
8551 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8552 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8553
8554 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8555
8556 * tree-ssa-strlen.c (maybe_invalidate): Use
8557 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8558
8559 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8560 Jim Wilson <jimw@sifive.com>
8561
8562 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8563 regs to SIBCALL_REGS.
8564 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8565 passing regs to SIBCALL_REGS.
8566
8567 2019-10-16 Martin Sebor <msebor@redhat.com>
8568
8569 PR tree-optimization/83821
8570 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8571 the length of a string when available.
8572 (handle_builtin_memset) Add argument.
8573 (handle_store, strlen_check_and_optimize_call): Same.
8574 (check_and_optimize_stmt): Same. Pass it to callees.
8575
8576 2019-10-16 Martin Sebor <msebor@redhat.com>
8577
8578 PR tree-optimization/91996
8579 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8580 information.
8581 (compare_nonzero_chars): Add an overload.
8582 (count_nonzero_bytes): Add an argument. Call overload above.
8583 Handle non-constant lengths in some range.
8584 (handle_store): Add an argument.
8585 (check_and_optimize_stmt): Pass an argument to handle_store.
8586
8587 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8588
8589 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8590
8591 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8592
8593 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8594 operands which correspond to the same input-output register to
8595 have the same pseudo assigned to them.
8596
8597 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8598
8599 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8600
8601 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8602
8603 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8604 Apply reasonable limit to symbol offsets.
8605
8606 2019-10-16 Richard Biener <rguenther@suse.de>
8607
8608 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8609 (vect_is_simple_reduction): Delay checking to
8610 vectorizable_reduction and relax the checking.
8611 (vectorizable_reduction): Check we have a simple use. Check
8612 for bogus condition reductions.
8613 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8614 are looking at the last stmt in a pattern sequence when
8615 filling in backedge PHI values.
8616
8617 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8618 Jiufu Guo <guojiufu@linux.ibm.com>
8619
8620 PR target/70010
8621 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8622 the callee explicitly disables some isa_flags the caller is using.
8623
8624 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8625
8626 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8627
8628 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8629
8630 * genmodes.c (mode_data::order): New field.
8631 (blank_mode): Update accordingly.
8632 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8633 (make_vector_modes): Likewise.
8634 (VECTOR_MODES): Update use accordingly.
8635 (cmp_modes): Sort by the new order field ahead of sorting by size.
8636 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8637 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8638 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8639 (aarch64_classify_vector_mode): Handle the new partial modes.
8640 (aarch64_vl_bytes): New function.
8641 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8642 when counting the number of registers in an SVE mode.
8643 (aarch64_class_max_nregs): Likewise.
8644 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8645 in registers yet.
8646 (aarch64_classify_address): Treat partial vectors analogously
8647 to full vectors.
8648 (aarch64_print_address_internal): Consolidate the printing of
8649 MUL VL addresses, using aarch64_vl_bytes as the number of
8650 bytes represented by "VL".
8651 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8652
8653 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8654
8655 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8656 rather than known_lt when choosing frame layouts.
8657
8658 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8659
8660 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8661 that all the adjustments add up to the full frame size.
8662 Use crtl->outgoing_args_size directly as the final adjustment
8663 where appropriate.
8664
8665 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8666
8667 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8668 "frame" reference instead of always referring directly to
8669 "cfun->machine->frame".
8670
8671 2019-10-16 Richard Biener <rguenther@suse.de>
8672
8673 PR tree-optimization/92119
8674 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8675 against missing bswap lhs.
8676
8677 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8678
8679 PR middle-end/92033
8680 * poly-int.h (constant_lower_bound_with_limit): New function.
8681 (constant_upper_bound_with_limit): Likewise.
8682 * doc/poly-int.texi: Document them.
8683 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8684 into the worst-case INTEGER_CST bounds.
8685
8686 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8687
8688 PR ipa/91088
8689 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8690 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8691 * ipa-predicat.h (struct expr_eval_op): New struct.
8692 (expr_eval_ops): New typedef.
8693 (struct condition): Add type and param_ops fields, remove size field.
8694 (add_condition): Replace size parameter with type parameter, add
8695 param_ops parameter.
8696 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8697 (predicate::add_clause): Add comparisons on type and param_ops.
8698 (dump_condition): Add debug dump for param_ops.
8699 (remap_after_inlining): Adjust call arguments to add_condition.
8700 (add_condition): Replace size parameter with type parameter, add
8701 param_ops parameter. Unshare constant value used in conditions.
8702 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8703 parameter expressions using param_ops.
8704 (decompose_param_expr): New function.
8705 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8706 to replace call to unmodified_parm_or_parm_agg_item.
8707 (set_switch_stmt_execution_predicate): Likewise.
8708 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8709 with type.
8710 (inline_read_section): Read param_ops from summary stream.
8711 (ipa_fn_summary_write): Write param_ops to summary stream.
8712
8713 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8714
8715 PR rtl-optimization/92107
8716 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8717 expression written.
8718
8719 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8720
8721 * config/darwin.c: Update description of fix and continue.
8722
8723 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8724
8725 * config/darwin.c (darwin_binds_local_p): Update to call
8726 default_binds_local_p_3 () directly. amend comments.
8727
8728 2019-10-15 Richard Biener <rguenther@suse.de>
8729
8730 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8731 (tree_is_indexable): Use it.
8732 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8733 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8734 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8735
8736 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8737
8738 * config/msp430/msp430.md (zero_extendqipsi2): New.
8739 (zero_extendqisi2): Optimize case where src register and base dst
8740 register are the same.
8741 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8742 (zero_extendpsisi2): Optimize r->m case.
8743 Add unnamed insn patterns to catch insns combine searches for when
8744 optimizing pointer manipulation.
8745
8746 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8747
8748 * config/msp430/msp430.md: Group zero_extend* insns together.
8749
8750 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8751
8752 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8753 constraint.
8754 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8755 POST_INC.
8756 (msp430_subreg): Likewise.
8757 (msp430_split_addsi): Likewise.
8758 (msp430_print_operand_addr): Likewise.
8759 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8760 (USE_STORE_POST_INCREMENT): Define.
8761 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8762 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8763 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8764 (msp430_general_dst_operand): New.
8765 (msp430_general_dst_nonv_operand): New.
8766 (msp430_nonsubreg_operand): Remove.
8767 (msp430_nonsubreg_dst_operand): New.
8768 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8769 of defunct msp430_nonsubreg_operand.
8770 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8771
8772 2019-10-15 Richard Biener <rguenther@suse.de>
8773
8774 PR tree-optimization/91929
8775 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8776 (get_or_alloc_expr_for_name): Initialize it.
8777 (get_or_alloc_expr_for_constant): Likewise.
8778 (phi_translate_1): Copy it.
8779 (create_expression_by_pieces): Use the original location
8780 of the expression for the inserted stmt.
8781 (compute_avail): Record the location of the stmt for the
8782 expressions created.
8783
8784 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8785
8786 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8787 before using tree_to_uhwi.
8788
8789 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8790
8791 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8792
8793 2019-10-15 Richard Biener <rguenther@suse.de>
8794
8795 PR tree-optimization/92094
8796 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8797 do not adjust the reduction definition def type.
8798 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8799 defines the latch argument of the PHI.
8800
8801 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8802
8803 PR target/92035
8804 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8805 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8806 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8807 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8808 _mm_maskz_roundscale_round_sd): New intrinsics.
8809 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8810 __builtin_ia32_rndscales?_mask_round builtins instead of
8811 __builtin_ia32_rndscales?_round.
8812 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8813 __builtin_ia32_rndscalesd_round): Remove.
8814 (__builtin_ia32_rndscaless_mask_round,
8815 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8816 * config/i386/sse.md
8817 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8818 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8819 ... this, adjust and add subst atrributes to make it maskable.
8820
8821 2019-10-15 Richard Biener <rguenther@suse.de>
8822
8823 PR middle-end/92046
8824 * common.opt (fallow-store-data-races): New.
8825 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8826 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8827 * doc/invoke.texi (fallow-store-data-races): Document.
8828 (--param allow-store-data-races): Remove docs.
8829 * opts.c (default_options_table): Enable -fallow-store-data-races
8830 at -Ofast.
8831 (default_options_optimization): Do not enable --param
8832 allow-store-data-races at -Ofast.
8833 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8834 instead of PARAM_ALLOW_STORE_DATA_RACES.
8835 * tree-ssa-loop-im.c (execute_sm): Likewise.
8836
8837 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8838
8839 PR tree-optimization/92085
8840 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8841 instead of calling it unconditionally after
8842 delete_dead_or_redundant_assignment and fix indentation.
8843
8844 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8845
8846 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8847 TARGET_VFP_DOUBLE.
8848 (*fmsub<SDF:mode>4): Likewise.
8849 *fnmsub<SDF:mode>4): Likewise.
8850 (*fnmadd<SDF:mode>4): Likewise.
8851
8852 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8853
8854 * doc/tree-ssa.texi: Update renamed macro name.
8855
8856 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8857
8858 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8859 vector constants.
8860
8861 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8862
8863 * config/darwin.c: Use unsigned ints for the picbase label
8864 counters, initialise the vars explicitly.
8865 (update_pic_label_number_if_needed): Move a variable declaration
8866 to where it's needed.
8867 (machopic_output_function_base_name): Use a more strict checking
8868 assert, and and unsigned int for the picbase label counter.
8869 (machopic_get_function_picbase): Likewise.
8870
8871 2019-10-14 Richard Biener <rguenther@suse.de>
8872
8873 PR middle-end/92046
8874 * dse.c (scan_insn): Use param max_active_local_stores.
8875 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8876 based on optimization level.
8877 * loop-invariant.c (move_loop_invariants): Adjust
8878 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8879 * opts.c (default_options_optimization): Do not adjust
8880 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8881 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8882
8883 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8884
8885 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8886
8887 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8888
8889 * config/arm/arm.c (arm_option_override): Don't override sched
8890 pressure algorithm.
8891
8892 2019-10-14 Richard Biener <rguenther@suse.de>
8893
8894 PR tree-optimization/92069
8895 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8896 cycles do not set vect_nested_cycle on the latch definition.
8897
8898 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8899
8900 * function-abi.h (expr_callee_abi): Declare.
8901 * function-abi.cc (expr_callee_abi): New function.
8902
8903 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8904
8905 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8906 into [1,MAX].
8907 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8908 non-zero being represented as [1,MAX].
8909
8910 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8911
8912 * tree-sra.c (dump_access): Add missing braces.
8913
8914 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8915
8916 * config/darwin.c (machopic_indirection_name): Rework the
8917 function to emit linker-visible symbols only for indirections
8918 in the data section. Clean up the code and update comments.
8919
8920 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8921
8922 * config/darwin.c (machopic_indirect_data_reference): Remove
8923 redundant code.
8924
8925 2019-10-13 Nathan Sidwell <nathan@acm.org>
8926
8927 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8928
8929 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8930
8931 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8932 c99_runtime.
8933
8934 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8935
8936 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8937 so non-virutal are before virutals.
8938 (output_function): Avoid body modifications.
8939
8940 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8941
8942 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8943 %r22. Load function address before global pointer.
8944 (pa_attr_length_indirect_call): Adjust length of inline versions of
8945 $$dyncall.
8946 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8947 before normal cases. Update inline $$dyncall sequences to preserve
8948 function descriptor address in register %r22.
8949 (TRAMPOLINE_CODE_SIZE): Adjust.
8950 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8951 register %r22 contains trampoline address.
8952 (pa_trampoline_init): Adjust offsets.
8953 (pa_trampoline_adjust_address): Likewise.
8954 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8955
8956 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8957
8958 PR target/67183
8959 * config/darwin.c (machopic_indirection): New field to flag
8960 non-lazy-symbol-pointers in the data section.
8961 (machopic_indirection_name): Compute if an indirection should
8962 appear in the data section.
8963 (machopic_output_data_section_indirection): New callback split
8964 from machopic_output_indirection.
8965 (machopic_output_stub_indirection): Likewise.
8966 (machopic_output_indirection): Retain the code for non-lazy
8967 symbol pointers in their regular section.
8968 (machopic_finish): Use the new callbacks to order the indirection
8969 output.
8970
8971 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8972
8973 * config/darwin-protos.h (machopic_finish): Delete.
8974 * config/darwin.c (machopic_finish): Make static.
8975
8976 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8977
8978 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8979 sections when building kernel extension code.
8980
8981 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8982
8983 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8984 later standard."
8985
8986 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8987
8988 * config/pa/pa.c (pa_option_override): Remove trailing comma
8989 from warning.
8990
8991 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8992
8993 PR middle-end/92063
8994 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8995 <case VEC_COND_EXPR>: Return false with *handled = false.
8996 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8997 recursing on the first operand.
8998 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8999 instead of tree_could_trap_p.
9000 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9001
9002 2019-10-11 Jim Wilson <jimw@sifive.com>
9003
9004 PR rtl-optimization/91860
9005 * combine.c (subst): If new_rtx is a constant, also check for
9006 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9007
9008 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9009
9010 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9011 INTVAL when calling store_bit_field.
9012
9013 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9014
9015 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9016 size.
9017
9018 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9019
9020 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9021 vectorizable_live_operation.
9022 (vectorizable_live_operation): Adjust parameters.
9023 * tree-vect-stmts.c (vect_init_vector,
9024 vect_gen_widened_results_half): Fix typo in function comment.
9025 (can_vectorize_live_stmts): Adjust function comment.
9026 Adjust parameters. Adjust call to vectorizable_live_operation.
9027 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9028 (vect_transform_stmt): Adjust function comment. Adjust call to
9029 can_vectorize_live_stmts.
9030 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9031
9032 2019-10-11 Richard Biener <rguenther@suse.de>
9033
9034 PR tree-optimization/90883
9035 PR tree-optimization/91091
9036 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9037 alias-sets both for recording VN table entries and continuing
9038 walking after translating through copies. Handle same-sized
9039 reads from SSA names by returning the plain SSA name.
9040 (eliminate_dom_walker::eliminate_stmt): Properly handle
9041 non-size precision stores in redundant store elimination.
9042
9043 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9044
9045 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9046 (ggc_collect): Dump later to not interfere with release_page dump.
9047 (ggc_trim): New function.
9048 * ggc-none.c (ggc_trim): New.
9049 * ggc.h (ggc_trim): Declare.
9050
9051 2019-10-11 Richard Biener <rguenther@suse.de>
9052
9053 PR tree-optimization/92066
9054 PR tree-optimization/92046
9055 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9056 Fix bogus cost model check.
9057
9058 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9059
9060 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9061 (LANG_HOOKS_DECLS): Add it.
9062 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9063 update comment for omp_is_optional_argument.
9064 * omp-general.c (omp_is_allocatable_or_ptr): New.
9065 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9066 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9067 Fortran's optional arguments and allocatable/pointer scalars
9068 with use_device_addr.
9069
9070 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9071
9072 PR target/77918
9073 * config/s390/2827.md: Add new opcodes.
9074 * config/s390/2964.md: Likewise.
9075 * config/s390/3906.md: Likewise.
9076 * config/s390/8561.md: Likewise.
9077 * config/s390/s390-builtins.def (s390_vfchesb): Use
9078 the new vec_cmpgev4sf_quiet_nocc.
9079 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9080 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9081 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9082 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9083 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9084 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9085 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9086 * config/s390/s390-modes.def (CCSFPS): New mode.
9087 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9088 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9089 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9090 (s390_expand_vec_compare): Use non-signaling patterns where
9091 necessary.
9092 (s390_reverse_condition): Support CCSFPS.
9093 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9094 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9095 (asm_fcmp_op): Likewise.
9096 (*smaxv2df3_vx): Use pattern for quiet comparison.
9097 (*sminv2df3_vx): Likewise.
9098 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9099 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9100 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9101 (vec_cmplt<mode>_quiet_nocc): New expander.
9102 (vec_cmpge<mode>_quiet_nocc): New pattern.
9103 (vec_cmple<mode>_quiet_nocc): New expander.
9104 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9105 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9106 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9107 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9108 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9109 (vec_cmpungt<mode>): New expander.
9110 (vec_cmpunge<mode>): Likewise.
9111 (vec_cmpuneq<mode>): Use quiet patterns.
9112 (vec_cmpltgt<mode>): Allow only on z14+.
9113 (vec_cmpordered<mode>): Use quiet patterns.
9114 (vec_cmpunordered<mode>): Likewise.
9115 (VEC_CMP_EXPAND): Add ungt and unge.
9116
9117 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9118
9119 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9120 parameter.
9121 * lto-streamer-out.c: Include tree-dfa.h.
9122 (output_cfg): Do not use cfun.
9123 (lto_prepare_function_for_streaming): New.
9124 (output_function): Do not push cfun; do not initialize loop optimizer.
9125 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9126 * passes.c (ipa_write_summaries): Use it.
9127 (ipa_write_optimization_summaries): Do not modify bodies.
9128 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9129 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9130 * tree-ssa-dse.c (pass_dse::execute): Update use of
9131 renumber_gimple_stmt_uids.
9132 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9133
9134 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9135
9136 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9137 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9138
9139 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9140
9141 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9142 macros.
9143 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9144 Also define DFP macros for these conditions.
9145 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9146 DEC128_SUBNORMAL_MIN): Do not define.
9147 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9148 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9149
9150 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9151 Sandra Loosemore <sandra@codesourcery.com>
9152
9153 PR middle-end/26241
9154 * doc/lto.texi (IPA): Reference to the IPA passes.
9155 * doc/passes.texi (Pass manager): Add node IPA passes and
9156 description for each IPA pass.
9157
9158 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9159
9160 * ipa-reference.c: Do not include splay-tree.h
9161 (reference_vars_to_consider): Turn to hash map.
9162 (get_static_name, ipa_init, analyze_function, propagate,
9163 stream_out_bitmap, ipa_reference_write_optimization_summary,
9164 ipa_reference_write_optimization_summary): Update.
9165
9166 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9167
9168 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9169
9170 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9171
9172 * config/darwin.c: Lookup Objective C metadata and force indirection
9173 for IVAR refs.
9174
9175 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9176
9177 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9178 addresses.
9179 (mem_operand_gpr): Add check for prefixed addresses.
9180 (mem_operand_ds_form): Add check for prefixed addresses.
9181 (rs6000_legitimate_offset_address_p): If we support prefixed
9182 addresses, check for a 34-bit offset instead of 16-bit.
9183 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9184 Do not allow load/store with update if the address is prefixed.
9185 (rs6000_mode_dependent_address): If we support prefixed
9186 addresses, check for a 34-bit offset instead of 16-bit.
9187
9188 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9189
9190 PR target/77918
9191 * config/s390/vector.md (vcond_comparison_operator): New
9192 predicate.
9193 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9194
9195 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9196
9197 PR 87488
9198 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9199 -D.
9200 * configure.ac (--with-documentation-root-url): New option.
9201 * configure: Regenerate.
9202 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9203 option URL, add it as a new string field of the diagnostic option.
9204 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9205 (print_option_information): If get_option_url is non-NULL, call
9206 it, and if the result is non-NULL, potentially emit an escape
9207 sequence to markup the option text with the resulting URL.
9208 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9209 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9210 example of JSON output.
9211 * opts-diagnostic.h (get_option_url): New decl.
9212 * opts.c (get_option_url): New function.
9213 * toplev.c (general_init): Initialize the get_option_url callback.
9214
9215 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9216
9217 PR 87488
9218 * common.opt (fdiagnostics-urls=): New option.
9219 (diagnostic-url.h): Add SourceInclude.
9220 (diagnostic_url_rule): New enum.
9221 * diagnostic-color.c: Include "diagnostic-url.h".
9222 (diagnostic_urls_enabled_p): New function.
9223 * diagnostic-url.h: New file.
9224 * diagnostic.c: Include "diagnostic-url.h".
9225 (diagnostic_urls_init): New function.
9226 * diagnostic.h (diagnostic_urls_init): New decl.
9227 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9228 -fdiagnostics-urls to the list.
9229 (-fdiagnostics-urls): New option.
9230 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9231 (driver::global_initializations): Call diagnostic_urls_init.
9232 * opts-global.c (init_options_once): Likewise.
9233 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9234 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9235 show_urls.
9236 (pp_begin_url): New function.
9237 (pp_end_url): New function.
9238 (selftest::test_urls): New selftest.
9239 (selftest::pretty_print_c_tests): Call it.
9240 * pretty-print.h (pretty_printer::show_urls): New field.
9241 (pp_begin_url): New decl.
9242 (pp_end_url): New decl.
9243
9244 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9245
9246 PR target/92022
9247 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9248
9249 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9250
9251 PR target/88630
9252 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9253 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9254 also for TARGET_FPU_SH4_300.
9255 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9256 TARGET_SH4_300.
9257 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9258 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9259 (*negsf2_i): Split into ...
9260 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9261 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9262 (**abssf2_i): Split into ...
9263 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9264 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9265 (*negdf2_i): Split into ...
9266 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9267 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9268 (**abssf2_i): Split into ...
9269 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9270
9271 2019-10-10 Richard Biener <rguenther@suse.de>
9272
9273 PR middle-end/92046
9274 * opts.c (finish_options): Do not influence global --params
9275 from options that are adjustable per function.
9276 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9277 Apply --param adjustment based on active cost-model.
9278 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9279 further store-sinking when vectorization or if-conversion
9280 are not enabled.
9281
9282 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9283
9284 PR middle-end/92037
9285 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9286 rather than ggc_alloc_cleared to alloc symbol table.
9287 * toplev.c (general_init): Likewise.
9288 * cgraph.h (symbol_table): Explicitly construct every field.
9289
9290 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9291
9292 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9293 (PF_Z15): ... this.
9294 * config.gcc: Add z15 as option for --with-arch and --with-tune
9295 configure switches.
9296 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9297 error reporting for unsupported builtins.
9298 * config/s390/s390-opts.h (enum processor_type): Rename
9299 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9300 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9301 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9302 Likewise.
9303 * config/s390/s390-builtins.def: Likewise.
9304 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9305 (s390_expand_builtin): Add missing check for unsupported builtins.
9306 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9307 (s390_rtx_costs): Likewise.
9308 (s390_get_sched_attrmask): Rename arch13 to z15.
9309 (s390_get_unit_mask): Likewise.
9310 (s390_is_fpd): Likewise.
9311 (s390_is_fxd): Likewise.
9312 * config/s390/s390.h (enum processor_flags): Likewise.
9313 * config/s390/s390.md: Likewise.
9314 * config/s390/vector.md: Likewise.
9315 * config/s390/vx-builtins.md: Likewise.
9316 * config/s390/s390.opt: Add z15 to processor_type value.
9317
9318 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9319
9320 PR target/91035
9321 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9322 prototype.
9323 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9324 ("split_stack_data", "split_stack_call")
9325 ("split_stack_call_<mode>", "split_stack_cond_call")
9326 ("split_stack_cond_call_<mode>"): Remove.
9327 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9328 insn definition.
9329 * config/s390/s390.c (s390_output_split_stack_data): New function.
9330 (s390_expand_split_stack_prologue): Use the merged expander.
9331
9332 2019-10-09 Martin Sebor <msebor@redhat.com>
9333
9334 PR tree-optimization/90879
9335 * builtins.c (check_access): Avoid using maxbound when null.
9336 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9337 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9338 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9339 conditional.
9340 (get_range_strlen): Overwrite initial maxbound when non-null.
9341 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9342 changes.
9343 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9344 (used_only_for_zero_equality): New function.
9345 (handle_builtin_memcmp): Call it.
9346 (determine_min_objsize): Return an integer instead of tree.
9347 (get_len_or_size, strxcmp_eqz_result): New functions.
9348 (maybe_warn_pointless_strcmp): New function.
9349 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9350 between a longer string and a smaller array.
9351 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9352
9353 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9354
9355 * config/darwin.c (darwin_override_options): Make the check for
9356 Objective-C ABI version more specific for 64bit code.
9357
9358 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9359
9360 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9361 indicate that the new symbol is an indirection.
9362 (machopic_indirect_call_target): Likewise.
9363 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9364 (MACHO_SYMBOL_INDIRECTION_P): New.
9365 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9366
9367 2019-10-08 Jason Merrill <jason@redhat.com>
9368
9369 * doc/invoke.texi: Document -fconcepts-ts.
9370
9371 2019-10-09 Richard Biener <rguenther@suse.de>
9372
9373 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9374 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9375
9376 2019-10-08 Richard Biener <rguenther@suse.de>
9377
9378 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9379 (_stmt_vec_info::force_single_cycle): Likewise.
9380 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9381 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9382 * tree-vect-loop.c (vectorizable_reduction): Set
9383 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9384 (vect_transform_reduction): Use them to remove redundant code.
9385 (vect_transform_cycle_phi): Likewise.
9386
9387 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9388
9389 PR tree-optimization/90836
9390 * match.pd (popcount): New pattern.
9391
9392 2019-10-08 Martin Sebor <msebor@redhat.com>
9393
9394 PR middle-end/92026
9395 PR middle-end/92014
9396 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9397 again once nbytes has been set. Set the access size when not yet set.
9398
9399 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9400
9401 * config/darwin.c (machopic_select_section): Remove dead code for
9402 old Objective-C section selection method, replace with unreachable.
9403
9404 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9405
9406 * config/darwin.c (machopic_indirect_data_reference): Check for
9407 required indirections before making direct access to defined
9408 values.
9409 (machopic_output_indirection): Place the indirected pointes for
9410 required indirections into the non-lazy symbol pointers section.
9411 (darwin_encode_section_info):
9412 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9413 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9414
9415 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9416
9417 PR target/91994
9418 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9419 instead of ALL_SSE_REG to check if function call preserves some
9420 256-bit SSE registers.
9421
9422 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9423
9424 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9425 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9426 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9427
9428 2019-10-08 Richard Biener <rguenther@suse.de>
9429
9430 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9431 (_stmt_vec_info::is_reduc_info): Add.
9432 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9433 (vectorizable_condition): Remove.
9434 (vectorizable_shift): Likewise.
9435 (vectorizable_reduction): Adjust.
9436 (info_for_reduction): New.
9437 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9438 (vect_analyze_scalar_cycles_1): ... here.
9439 (vect_analyze_loop_operations): Adjust.
9440 (needs_fold_left_reduction_p): Simplify for single caller.
9441 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9442 for nested cycles not part of double reductions.
9443 (vect_model_reduction_cost): Pass in the reduction type.
9444 (info_for_reduction): New function.
9445 (vect_create_epilog_for_reduction): Use it, access reduction
9446 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9447 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9448 (vectorize_fold_left_reduction): Remove pointless assert.
9449 (vectorizable_reduction): Analyze the full reduction when
9450 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9451 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9452 stmt code-generation to vectorizable_* in most cases. Verify
9453 code-generation only for cases handled by
9454 vect_transform_reductuon.
9455 (vect_transform_reduction): Use info_for_reduction to get at
9456 reduction meta. Simplify.
9457 (vect_transform_cycle_phi): Likewise.
9458 (vectorizable_live_operation): Likewise.
9459 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9460 at the PHI node for STMT_VINFO_REDUC_TYPE.
9461 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9462 longer necessary code.
9463 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9464 (vectorizable_condition): Likewise. Get at reduction related
9465 info via info_for_reduction.
9466 (vect_analyze_stmt): Adjust.
9467 (vect_transform_stmt): Likewise.
9468 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9469 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9470
9471 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9472
9473 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9474 -fno-fp-int-builtin-inexact default for C2X.
9475
9476 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9477 Richard Biener <rguenther@suse.de>
9478
9479 PR tree-optimization/91532
9480 * tree-if-conv.c: Include tree-ssa-dse.h.
9481 (ifcvt_local_dce): Change param from bb to loop,
9482 and call dse_classify_store.
9483 (tree_if_conversion): Pass loop instead of loop->header as arg
9484 to ifcvt_local_dce.
9485 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9486 (delete_dead_or_redundant_assignment): Remove static qualifier from
9487 declaration, and add prototype in tree-ssa-dse.h.
9488 (dse_store_status): Move to tree-ssa-dse.h.
9489 (dse_classify_store): Remove static qualifier and add new tree param
9490 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9491 * tree-ssa-dse.h: New header.
9492
9493 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9494
9495 * config/darwin.c (machopic_output_indirection): Don't put
9496 hidden symbol indirections into the .data section, use the
9497 non-lazy symbol pointers section as normal.
9498 (darwin_encode_section_info): Record if a symbol is hidden.
9499 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9500 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9501
9502 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9503
9504 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9505 predicates instead of accessing bits directly.
9506 (machopic_indirect_call_target): Likewise.
9507 (machopic_output_indirection): Likewise.
9508 (darwin_encode_section_info): Improve description. Use renamed
9509 symbol flags. Use predicate macros for variables and functions.
9510 * config/darwin.h:
9511 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9512 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9513 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9514 (MACHO_SYMBOL_VARIABLE_P): New.
9515 (MACHO_SYMBOL_DEFINED_P):New.
9516 (MACHO_SYMBOL_STATIC_P): New.
9517 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9518 (SYMBOL_FLAG_SUBT_DEP): New.
9519 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9520
9521 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9522
9523 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9524 (msp430_expand_epilogue): Likewise.
9525 * config/msp430/predicates.md: Likewise.
9526 * config/msp430/msp430.md: Likewise.
9527 Replace blocks of 8 spaces with tabs.
9528
9529 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9530
9531 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9532 * config/msp430/msp430.c (msp430_split_addsi): New.
9533 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9534 a block of C code for splitting addsi.
9535
9536 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9537
9538 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9539 ix86_expand_rounddf_32): Reorder functions.
9540 * config/i386/i386-protos.h: Update.
9541
9542 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9543
9544 * config.in: Regenerate.
9545 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9546 Add new "Yx" constraint.
9547 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9548 function.
9549 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9550 prototype.
9551 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9552 code/data region to be selected in the small memory model.
9553 (msp430_section_attr): Don't warn if the "section" and "lower"
9554 attributes are used together.
9555 (msp430_handle_generic_attribute): Likewise.
9556 (msp430_var_in_low_mem): New function.
9557 (TARGET_ENCODE_SECTION_INFO): Define.
9558 (msp430_encode_section_info): New function.
9559 (gen_prefix): Return early in the small memory model.
9560 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9561 ".lower" prefix if -m{code,data}-region=lower have been passed.
9562 (msp430_output_aligned_decl_common): Emit common symbols when
9563 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9564 set.
9565 (TARGET_ASM_FILE_END): Define.
9566 (msp430_file_end): New function.
9567 (msp430_do_not_relax_short_jumps): Allow relaxation when
9568 function will be in the lower region.
9569 (msp430_op_not_in_high_mem): New function.
9570 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9571 the 'X' operand selector.
9572 Clarify comment for 'x' operand selector.
9573 * config/msp430/msp430.h (LINK_SPEC): Propagate
9574 -m{code,data}-region to the linker via spec function
9575 msp430_propagate_region_opt.
9576 (msp430_propagate_region_opt): New prototype.
9577 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9578 (SYMBOL_FLAG_LOW_MEM): Define.
9579 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9580 selector.
9581 (zero_extendqihi2): Fix operand number used by "%X" selector.
9582 (zero_extendqisi2): Likewise.
9583 (zero_extendhisi2): Likewise.
9584 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9585 (movhi): Likewise.
9586 (addqi3): Likewise.
9587 (addhi3): Likewise.
9588 (addsi3): Likewise.
9589 (addhi3_cy): Likewise.
9590 (addchi4_cy): Likewise.
9591 (subqi3): Likewise.
9592 (subhi3): Likewise.
9593 (subsi3): Likewise.
9594 (bic<mode>3): Likewise.
9595 (and<mode>3): Likewise.
9596 (ior<mode>3): Likewise.
9597 (xor<mode>3): Likewise.
9598 (slli_1): Add missing "%X" operand selector.
9599 (slll_1): Likewise.
9600 (slll_2): Likewise.
9601 (srai_1): Likewise.
9602 (sral_1): Likewise.
9603 (sral_2): Likewise.
9604 (srli_1): Likewise.
9605 (srll_1): Likewise.
9606 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9607 selector.
9608 (cbranchhi4_real): Likewise.
9609 (cbranchqi4_reversed): Likewise.
9610 (cbranchhi4_reversed): Likewise.
9611 (*bitbranch<mode>4): Likewise.
9612 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9613 * config/msp430/msp430.opt (mcode-region=): Set default to
9614 MSP430_REGION_LOWER. Improve docstring.
9615 (mdata-region=): Likewise.
9616 (muse-lower-region-prefix): New option.
9617 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9618 mdata-region=none multilib.
9619 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9620 mdata-region=none multilib.
9621 MULTILIB_EXCEPTIONS: Remove.
9622 MULTILIB_REQUIRED: Define.
9623 * configure: Regenerate.
9624 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9625 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9626 * doc/extend.texi: Clarify comment for {upper,lower,either}
9627 function attributes.
9628 Add separate description for "lower" variable attribute.
9629
9630 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9631
9632 PR target/77918
9633 * optabs-tree.c (vcond_icode_p): New function.
9634 (vcond_eq_icode_p): Likewise.
9635 (expand_vec_cond_expr_p): Use vcond_icode_p and
9636 vcond_eq_icode_p.
9637 * optabs.c (can_vcond_compare_p): New function.
9638 * optabs.h (can_vcond_compare_p): Likewise.
9639
9640 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9641
9642 PR target/77918
9643 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9644 caller passes a non-trapping condition.
9645 (is_gimple_condexpr): Allow trapping conditions.
9646 (is_gimple_condexpr_1): New helper function.
9647 (is_gimple_condexpr_for_cond): New function, acts like old
9648 is_gimple_condexpr.
9649 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9650 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9651 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9652 * gimplify.c (gimplify_cond_expr): Use
9653 is_gimple_condexpr_for_cond.
9654 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9655 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9656 VEC_COND_EXPR.
9657 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9658 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9659 is_gimple_condexpr_for_cond, remove pointless tmp check
9660 (forward_propagate_into_cond): Remove pointless tmp check.
9661
9662 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9663
9664 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9665 match that of other gsi_next_* functions. Adjust the comment.
9666 (gsi_start_nonvirtual_phis): New function.
9667 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9668 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9669
9670 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9671
9672 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9673 setjmp situation here. Fix a verb's ending: "the exact variables or
9674 elements for which there are warnings depends" -> "... depend".
9675
9676 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9677
9678 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9679
9680 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9681
9682 * ipa-prop.c (ipa_vr::nonzero_p): New.
9683 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9684 non-zero range.
9685 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9686 * tree-vrp.c (range_has_numeric_bounds_p): New.
9687 (range_int_cst_p): Use range_has_numeric_bounds_p.
9688 (get_range_op_handler): New.
9689 (supported_types_p): New.
9690 (defined_ranges_p): New.
9691 (drop_undefines_to_varying): New.
9692 (range_fold_binary_symbolics_p): New.
9693 (range_fold_unary_symbolics_p): New.
9694 (range_fold_unary_expr): Extract out into above functions.
9695 (range_fold_binary_expr): Same.
9696 (value_range_base::normalize_addresses): New.
9697 (value_range_base::normalize_symbolics): Normalize addresses.
9698 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9699
9700 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9701
9702 * tree-vrp.c (value_range_base::singleton_p): Use
9703 value_range_base::num_pairs instead of vrp_val_is* to check
9704 if a range has one sub-range.
9705
9706 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9707
9708 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9709 DEF is not a true earlyclobber but is tied to a specific input
9710 operand, and so is effectively earlyclobber wrt inputs that have
9711 different values.
9712 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9713
9714 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9715
9716 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9717 (pod_mode): Mark operators likewise.
9718 (scalar_int_mode): Mark non-default constructors and
9719 operators with CONSTEXPR.
9720 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9721 (fixed_size_mode): Likewise.
9722
9723 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9724
9725 PR target/91994
9726 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9727 and wrap the unspec_volatile in a parallel.
9728 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9729 the unspec_volatile.
9730 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9731 unspec_volatile to be wrapped in a parallel.
9732 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9733 (ix86_add_reg_usage_to_vzerouppers): New functions.
9734 (rest_of_handle_insert_vzeroupper): Use them to add register
9735 usage information to the vzeroupper instructions.
9736
9737 2019-10-07 Richard Biener <rguenther@suse.de>
9738
9739 PR tree-optimization/91975
9740 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9741 handle invariants.
9742
9743 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9744
9745 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9746 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9747
9748 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9749
9750 * config/darwin.c (darwin_override_options): Adjust objective-c
9751 ABI version error messages to avoid punctuation and contracted
9752 negations.
9753
9754 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9755
9756 * ipa-inline.c: Fix type; compute size rather than self_size
9757 for size of caller function.
9758
9759 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9760
9761 PR target/59888
9762 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9763 choose const_data section for constants with relocations.
9764 (machopic_select_section): Pass relocation flag to
9765 darwin_rodata_section ().
9766
9767 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9768
9769 PR tree-optimization/91734
9770 * generic-match-head.c: Include fold-const-call.h.
9771 * match.pd (sqrt(x) cmp c): Check the boundary value and
9772 in case inexact computation of c*c affects comparison of the boundary,
9773 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9774 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9775 for -frounding-math. For c2, try the next smaller or larger floating
9776 point constant depending on comparison code and if it has the same
9777 sqrt as c2, use it instead of c2.
9778
9779 2019-10-04 Martin Sebor <msebor@redhat.com>
9780
9781 PR middle-end/91977
9782 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9783 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9784 uninitialized objects.
9785
9786 2019-10-04 Martin Sebor <msebor@redhat.com>
9787
9788 * builtins.c (compute_objsize): Add an argument.
9789 * tree-object-size.c (addr_object_size): Same.
9790 (compute_builtin_object_size): Same.
9791 * tree-object-size.h (compute_builtin_object): Same.
9792
9793 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9794
9795 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9796
9797 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9798
9799 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9800
9801 2019-10-04 Martin Jambor <mjambor@suse.cz>
9802
9803 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9804 fntype when switching to calling memcpy instead of memset.
9805
9806 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9807
9808 * hash-table.h (hash_table::empty_slow): Don't assign
9809 size_t values to int variables.
9810
9811 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9812
9813 * expr.c (convert_mode_scalar): Remove shadowing local var.
9814 (emit_block_move): Rename local vars.
9815 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9816 (emit_push_insn): Rename local vars.
9817 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9818 shadowing local vars.
9819 (store_constructor): Remove shadowing local vars. Rename local var.
9820 (store_field, expand_cond_expr_using_cmove,
9821 expand_expr_real_2): Remove shadowing local vars.
9822 (expand_expr_real_1,
9823 do_store_flag): Remove shadowing local vars. Rename local vars.
9824
9825 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9826
9827 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9828
9829 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9830
9831 * genmatch.c (commutate): Rename local var.
9832 (lower_cond): Reuse local var.
9833 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9834 dt_operand::gen, dt_operand::gen_gimple_expr,
9835 dt_simplify::gen): Add a param. Rename generated vars.
9836 (decision_tree::insert_operand,
9837 (capture_info::walk_match, capture_info::walk_result,
9838 capture_info::walk_c_expr): Rename local vars.
9839 (expr::gen_transform): Rename generated vars.
9840 Use snprintf. Rename local vars.
9841 (capture::gen_transform, dt_operand::get_name,
9842 dt_operand::gen_opname): Rename generated vars.
9843 (write_predicate): Adjust call to gen_kids.
9844 (parser::get_internal_capture_id): Rename generated vars.
9845 (parser::parse_expr): Rename local vars.
9846 (parser::parse_if): Remove local var.
9847 (parser::parse_pattern, add_operator): Rename local vars.
9848
9849 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9850
9851 * builtins.def (DEF_C2X_BUILTIN): New macro.
9852 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9853 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9854 (strndup): Use DEF_C2X_BUILTIN.
9855 * coretypes.h (enum function_class): Add function_c2x_misc.
9856
9857 2019-10-04 Maya Rashish <coypu@sdf.org>
9858
9859 * ira-color.c (update_costs_from_allocno): Call
9860 ira_init_register_move_cost_if_necessary.
9861
9862 2019-10-04 Jeff Law <law@redhat.com>
9863
9864 * config/h8300/h8300.md (cpymemsi): Disable.
9865 (movmd, movmd_internal_<mode>, movstr, movsd):
9866 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9867 (movmd splitter, movsd splitter): Likewise.
9868
9869 * range-op.cc (range_tests): Avoid two tests when ints and
9870 shorts are the same size.
9871
9872 2019-10-04 Richard Biener <rguenther@suse.de>
9873
9874 PR lto/91968
9875 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9876 BLOCK_VARS.
9877
9878 2019-10-04 Richard Biener <rguenther@suse.de>
9879
9880 PR tree-optimization/91982
9881 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9882 against EXTRACT_LAST_REDUCTION.
9883 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9884
9885 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9886
9887 * range-op.o (value_range_from_overflowed_bounds): Rename from
9888 adjust_overflow_bound.
9889 (value_range_with_overflow): Rename from
9890 create_range_with_overflow.
9891 (create_possibly_reversed_range): Adjusted for above renames.
9892 (operator_*::wi_fold): Same.
9893 (cross_product_operator::wi_cross_productor): Same.
9894
9895 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9896
9897 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9898 -Wshadow=compatible-local): Fix description.
9899 Add an example where -Wshadow=compatible-local does not
9900 warn.
9901
9902 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9903
9904 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9905
9906 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9907 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9908
9909 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9910
9911 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9912 can_move_by_pieces issue.
9913
9914 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9915
9916 PR target/87243
9917 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9918 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9919 is available and the user has not set one on the command line.
9920
9921 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9922
9923 PR target/91769
9924 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9925 instead of REGNO equality check on addr.reg.
9926
9927 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9928
9929 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9930 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9931 * doc/invoke.texi (inline-heuristics-hint-percent,
9932 inline-heuristics-hint-percent-O2): Document.
9933 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9934 hint attribute.
9935 (can_inline_edge_by_limits_p): Use it.
9936
9937 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9938
9939 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9940 to print CONST_DOUBLEs.
9941
9942 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9943
9944 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9945 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9946 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9947
9948 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9949
9950 * Makefile.in (OBJS): Add range.o and range-op.o.
9951 Remove wide-int-range.o.
9952 * function-tests.c (test_ranges): New.
9953 (function_tests_c_tests): Call test_ranges.
9954 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9955 range_fold_unary_expr instead of extract_range_from_unary_expr.
9956 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9957 * range-op.cc: New file.
9958 * range-op.h: New file.
9959 * range.cc: New file.
9960 * range.h: New file.
9961 * selftest.h (range_tests): New prototype.
9962 * ssa.h: Include range.h.
9963 * tree-vrp.c (value_range_base::value_range_base): New
9964 constructors.
9965 (value_range_base::singleton_p): Do not call
9966 ranges_from_anti_range until sure we will need to.
9967 (value_range_base::type): Rename gcc_assert to
9968 gcc_checking_assert.
9969 (vrp_val_is_max): New argument.
9970 (vrp_val_is_min): Same.
9971 (wide_int_range_set_zero_nonzero_bits): Move from
9972 wide-int-range.cc.
9973 (extract_range_into_wide_ints): Remove.
9974 (extract_range_from_multiplicative_op): Remove.
9975 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9976 from extract_range_from_binary_expr.
9977 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9978 from extract_range_from_binary_expr.
9979 (extract_range_from_binary_expr): Remove.
9980 (normalize_for_range_ops): New.
9981 (range_fold_binary_expr): New.
9982 (range_fold_unary_expr): New.
9983 (value_range_base::num_pairs): New.
9984 (value_range_base::lower_bound): New.
9985 (value_range_base::upper_bound): New.
9986 (value_range_base::upper_bound): New.
9987 (value_range_base::contains_p): New.
9988 (value_range_base::invert): New.
9989 (value_range_base::union_): New.
9990 (value_range_base::intersect): New.
9991 (range_compatible_p): New.
9992 (value_range_base::operator==): New.
9993 (determine_value_range_1): Call range_fold_*expr instead of
9994 extract_range_from_*expr.
9995 * tree-vrp.h (class value_range_base): Add new constructors.
9996 Add methods for union_, intersect, operator==, contains_p,
9997 num_pairs, lower_bound, upper_bound, invert.
9998 (vrp_val_is_min): Add handle_pointers argument.
9999 (vrp_val_is_max): Same.
10000 (extract_range_from_unary_expr): Remove.
10001 (extract_range_from_binary_expr): Remove.
10002 (range_fold_unary_expr): New.
10003 (range_fold_binary_expr): New.
10004 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10005 range_fold_binary_expr instead of extract_range_from_binary_expr.
10006 (vr_values::extract_range_basic): Same.
10007 (vr_values::extract_range_from_unary_expr): Call
10008 range_fold_unary_expr instead of extract_range_from_unary_expr.
10009 * wide-int-range.cc: Remove.
10010 * wide-int-range.h: Remove.
10011
10012 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10013
10014 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10015 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10016 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10017 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10018 macro.
10019
10020 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10021
10022 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10023 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10024 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10025 * glimits.h: Likewise.
10026
10027 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10028
10029 PR rtl-optimization/91976
10030 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10031 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10032 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10033
10034 2019-10-02 Martin Sebor <msebor@redhat.com>
10035
10036 PR tree-optimization/80936
10037 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10038
10039 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10040
10041 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10042 instead of reg_class_contents[ALL_REGS].
10043
10044 2019-09-30 Jason Merrill <jason@redhat.com>
10045
10046 Add some hash_map_safe_* functions like vec_safe_*.
10047 * hash-map.h (default_hash_map_size): New variable.
10048 (create_ggc): Use it as default argument.
10049 (hash_map_maybe_create, hash_map_safe_get)
10050 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10051
10052 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10053
10054 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10055 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10056 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10057 (can_inline_edge_by_limits_p): Use it.
10058 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10059 (want_inline_small_function_p): Use O2 bounds.
10060 (edge_badness): LIkewise.
10061 * opts.c (default_options): Add OPT_finline_functions.
10062 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10063 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10064 New parameters.
10065 * doc/invoke.texi (-finline-functions): Update documentation.
10066 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10067 inline-min-speedup-O2): Document.
10068 (early-inlining-insns-O2): Simplify docs.
10069
10070 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10071
10072 PR rtl-optimization/87047
10073 * ifcvt.c (average_cost): New static function. Use it...
10074 (noce_process_if_block): ... here.
10075
10076 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10077
10078 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10079 * config/rs6000/rs6000-string.c (expand_block_move): Add
10080 might_overlap parm.
10081 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10082 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10083
10084 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10085
10086 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10087 (expand_builtin_memcpy): Use might_overlap parm.
10088 (expand_builtin_mempcpy_args): Use might_overlap parm.
10089 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10090 (expand_builtin_memory_copy_args): Add might_overlap parm.
10091 * expr.c (emit_block_move_via_cpymem): Rename to
10092 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10093 or movmem optab as appropriate.
10094 (emit_block_move_hints): Add might_overlap parm, do the right
10095 thing for might_overlap==true.
10096 * expr.h (emit_block_move_hints): Update prototype.
10097
10098 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10099
10100 * tree-eh.h (unsplit_eh_edges): Declare.
10101 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10102 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10103 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10104 (struct store_immediate_info): Add lp_nr field.
10105 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10106 initialize lp_nr with it.
10107 (struct merged_store_group): Add lp_nr and only_constants fields.
10108 (merged_store_group::merged_store_group): Initialize them.
10109 (merged_store_group::can_be_merged_into): Deal with them.
10110 (pass_store_merging): Rename terminate_and_release_chain into
10111 terminate_and_process_chain.
10112 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10113 renaming and remove useless assertions.
10114 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10115 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10116 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10117 instead of always recomputing it and compare lp_nr.
10118 (imm_store_chain_info::output_merged_store): If the group is in an
10119 active EH region, register new stores if they can throw. Moreover,
10120 if the insertion has created new basic blocks, adjust the PHI nodes
10121 of the post landing pad.
10122 (imm_store_chain_info::output_merged_stores): If the original stores
10123 are in an active EH region, deregister them.
10124 (lhs_valid_for_store_merging_p): Prettify.
10125 (adjust_bit_pos): New function extracted from...
10126 (mem_valid_for_store_merging): ...here. Use it for the base address
10127 and also for the offset if it is the addition of a constant.
10128 (lp_nr_for_store): New function.
10129 (pass_store_merging::process_store): Change return type to bool.
10130 Call lp_nr_for_store to initialize the store info. Propagate the
10131 return status of various called functions to the return value.
10132 (store_valid_for_store_merging_p): New predicate.
10133 (enum basic_block_status): New enumeration.
10134 (get_status_for_store_merging): New function.
10135 (pass_store_merging::execute): If the function can throw and catch
10136 non-call exceptions, unsplit the EH edges on entry and clean up the
10137 CFG on exit if something changed. Call get_status_for_store_merging
10138 for every basic block and keep the chains open across basic blocks
10139 when possible. Terminate and process open chains at the end, if any.
10140
10141 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10142
10143 * reginfo.c (globalize_reg): Fix shadowed variable in
10144 function_abis walk.
10145
10146 2019-10-02 Martin Jambor <mjambor@suse.cz>
10147
10148 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10149 do not compute some stuff when set.
10150 (cgraph_node::create_edge): Likewise.
10151 (cgraph_node::create_indirect_edge): Renamed last parameter to
10152 coning_p and flipped its meaning, don't even calculate
10153 inline_failed when set.
10154 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10155 (symbol_table::::create_edge): Likewise.
10156 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10157 the default value.
10158 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10159 call graph edge creating functions.
10160
10161 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10162
10163 PR c++/91222
10164 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10165 namespace types.
10166
10167 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10168
10169 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10170
10171 2019-10-02 Richard Biener <rguenther@suse.de>
10172
10173 * tree-vectorizer.h (vect_transform_reduction): Declare.
10174 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10175 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10176 stmt transform to ...
10177 (vect_transform_reduction): ... this.
10178
10179 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10180
10181 * omp-low.c (lower_omp_target): Dereference optional argument
10182 to work with the right pointer.
10183
10184 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10185
10186 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10187 false.
10188 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10189 * langhooks.h (omp_is_optional_argument): New hook.
10190 * omp-general.c (omp_is_optional_argument): New.
10191 * omp-general.h (omp_is_optional_argument): New declaration.
10192 * omp-low.c (lower_omp_target): Create temporary for received value
10193 and take the address for new_var if the original variable was a
10194 DECL_BY_REFERENCE. Use size of referenced object when a
10195 pass-by-reference optional argument used as argument to firstprivate.
10196
10197 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10198
10199 PR tree-optimization/91940
10200 * tree-vect-patterns.c: Include tree-vector-builder.h and
10201 vec-perm-indices.h.
10202 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10203 unpromoting the argument back to uint16_t, or by converting into a
10204 rotate, or into shifts plus ior.
10205
10206 2019-10-02 Richard Biener <rguenther@suse.de>
10207
10208 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10209 New.
10210 (vect_transform_cycle_phi): Declare.
10211 * tree-vect-stmts.c (vect_transform_stmt): Call
10212 vect_transform_cycle_phi.
10213 * tree-vect-loop.c (vectorizable_reduction): Split out
10214 PHI transformation stage to ...
10215 (vect_transform_cycle_phi): ... here.
10216
10217 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10218
10219 PR middle-end/91957
10220 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10221 eliminable registers.
10222 (make_hard_regno_live): Likewise, and don't make them live.
10223
10224 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10225
10226 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10227 Call pp_emit_prefix.
10228 (layout::print_source_line): Likewise.
10229 (layout::start_annotation_line): Likewise.
10230 (diagnostic_show_locus): Remove call to temporarily clear the
10231 prefix.
10232 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10233 interaction of pp_set_prefix with rulers and fix-it hints.
10234 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10235 prefix when calling diagnostic_show_locus, rather than destroying
10236 it afterwards.
10237 (print_parseable_fixits): Temporarily clear prefix.
10238 * pretty-print.c (pp_format): Save and restore line_length, rather
10239 than assuming it is zero.
10240 (pp_output_formatted_text): Remove assertion that line_length is
10241 zero.
10242
10243 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10244
10245 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10246 Rename to ...
10247 (nonoverlapping_refs_since_match_p): ... this; handle also
10248 ARRAY_REFs.
10249 (alias_stats): Update stats.
10250 (dump_alias_stats): Likewise.
10251 (cheap_array_ref_low_bound): New function.
10252 (aliasing_matching_component_refs_p): Add partial_overlap
10253 argument;
10254 pass it to nonoverlapping_refs_since_match_p.
10255 (aliasing_component_refs_walk): Update call of
10256 aliasing_matching_component_refs_p
10257 (nonoverlapping_array_refs_p): New function.
10258 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10259 indirect_refs_may_alias_p): Update calls of
10260 nonoverlapping_refs_since_match_p.
10261
10262 2019-10-01 Maya Rashish <coypu@sdf.org>
10263
10264 PR target/85401
10265 * ira-color.c (allocno_copy_cost_saving): Call
10266 ira_init_register_move_cost_if_necessary.
10267
10268 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10269
10270 * Makefile.in (gnat_install_lib): New variable.
10271 * configure.ac: Substitute it.
10272 * configure: Regenerate.
10273
10274 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10275
10276 PR lto/91222
10277 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10278 is matched with non-C++ type
10279
10280 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10281
10282 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10283 after local CSE.
10284
10285 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10286
10287 * doc/invoke.texi (early-inlining-insns-O2): Document.
10288 (early-inlining-insns): Update.
10289 * params.def (early-inlining-insns-O2): New bound.
10290 (early-inlining-insns): Update docs.
10291 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10292
10293 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10294
10295 PR target/88562
10296 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10297 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10298 a memory access insn.
10299
10300 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10301
10302 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10303 vpmsumd.
10304
10305 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10306
10307 PR target/77918
10308 * config/s390/s390.c (s390_expand_vec_compare): Use
10309 gen_vec_cmpordered and gen_vec_cmpunordered.
10310 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10311 vec_unordered): Delete.
10312 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10313 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10314 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10315 (vec_cmp<code>): Generic dispatcher.
10316
10317 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10318
10319 PR target/77918
10320 * config/s390/vector.md (V_HW): Add V1TI in order to make
10321 vcond$a$b generate vcondv1tiv1tf.
10322
10323 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10324
10325 PR rtl-optimization/91948
10326 * ira-build.c (ira_create_allocno): Initialize
10327 ALLOCNO_CROSSED_CALLS_ABIS.
10328 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10329 than regno to ira_need_caller_save_p.
10330
10331 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10332
10333 * config/i386/i386-options.c
10334 (ix86_recompute_optlev_based_flags): New, moved out of...
10335 (ix86_option_override_internal): ... this. Call it.
10336 (ix86_override_options_after_change): Call it here too.
10337
10338 PR debug/91507
10339 * dwarf2out.c (override_type_for_decl_p): New.
10340 (gen_variable_die): Use it.
10341
10342 2019-10-01 Richard Biener <rguenther@suse.de>
10343
10344 * tree-vect-loop.c (vectorizable_reduction): Move variables
10345 to where they are used.
10346
10347 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10348
10349 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10350 (build_def_use): Use PC instead of CC0 in a comment.
10351
10352 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10353
10354 * rtl.def (CLOBBER_HIGH): Delete.
10355 * doc/rtl.texi (clobber_high): Remove documentation.
10356 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10357 (reg_is_clobbered_by_clobber_high): Delete.
10358 (gen_hard_reg_clobber_high): Likewise.
10359 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10360 * cfgexpand.c (expand_gimple_stmt): Likewise.
10361 * combine-stack-adj.c (single_set_for_csa): Likewise.
10362 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10363 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10364 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10365 * cse.c (invalidate_reg): Remove clobber_high parameter.
10366 (invalidate): Update call accordingly.
10367 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10368 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10369 (count_reg_usage, insn_live_p): Likewise.
10370 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10371 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10372 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10373 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10374 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10375 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10376 (mark_nonreg_stores_2): Likewise.
10377 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10378 (df_get_call_refs): Likewise.
10379 * dwarf2out.c (mem_loc_descriptor): Likewise.
10380 * emit-rtl.c (verify_rtx_sharing): Likewise.
10381 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10382 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10383 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10384 * genemit.c (gen_exp, gen_insn): Likewise.
10385 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10386 * haifa-sched.c (haifa_classify_rtx): Likewise.
10387 * ira-build.c (create_insn_allocnos): Likewise.
10388 * ira-costs.c (scan_one_insn): Likewise.
10389 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10390 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10391 * jump.c (mark_jump_label_1): Likewise.
10392 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10393 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10394 handling.
10395 (mark_not_eliminable): Likewise.
10396 * lra-lives.c (process_bb_lives): Likewise.
10397 * lra.c (new_insn_reg): Remove clobber_high parameter.
10398 (collect_non_operand_hard_regs): Likewise. Update call to new
10399 insn_reg. Remove CLOBBER_HIGH handling.
10400 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10401 to collect_non_operand_hard_regs.
10402 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10403 Update call to new_insn_reg.
10404 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10405 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10406 (move2add_note_store): Likewise.
10407 * print-rtl.c (print_pattern): Likewise.
10408 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10409 (if_test_bypass_p): Likewise.
10410 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10411 * reginfo.c (reg_scan_mark_refs): Likewise.
10412 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10413 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10414 (forget_old_reloads_1): Likewise.
10415 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10416 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10417 (dbr_schedule): Likewise.
10418 * resource.c (update_live_status, mark_referenced_resources)
10419 (mark_set_resources): Likewise.
10420 * rtl.c (copy_rtx): Likewise.
10421 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10422 (note_pattern_stores): Likewise.
10423 (reg_is_clobbered_by_clobber_high): Delete.
10424 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10425 CLOBBER_HIGH handling.
10426
10427 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10428
10429 PR target/91452
10430 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10431 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10432 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10433 Handle ARM_PCS_TLSDESC.
10434 (aarch64_tlsdesc_abi_id): New function.
10435 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10436 rtx instead of a list of clobbers and clobber_highs.
10437 (tlsdesc_small_<mode>): Update accordingly.
10438
10439 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10440
10441 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10442 extra callee_abi argument.
10443 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10444 Insert a CALLEE_ABI unspec into the call pattern as the second
10445 element in the PARALLEL.
10446 (aarch64_simd_call_p): Delete.
10447 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10448 the new CALLEE_ABI element of the PARALLEL.
10449 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10450 from the function type, if given.
10451 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10452 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10453 when passed the function_arg_info end marker.
10454 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10455 final argument of gen_sibcall.
10456 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10457 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10458 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10459 pattern.
10460 (call_value): Likewise operand 3.
10461 (sibcall): Likewise operand 2. Place the unspec before rather than
10462 after the return.
10463 (sibcall_value): Likewise operand 3.
10464 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10465 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10466 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10467 constraint strings.
10468 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10469
10470 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10471
10472 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10473 choose_hard_reg_mode.
10474 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10475
10476 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10477
10478 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10479 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10480 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10481
10482 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10483
10484 * diagnostic-show-locus.c (line_label::line_label): Initialize
10485 m_has_vbar.
10486 (line_label::comparator): Reverse the sort order by m_state_idx,
10487 so that when the list is walked backwards the labels appear in
10488 order of insertion into the rich_location.
10489 (line_label::m_has_vbar): New field.
10490 (layout::print_any_labels): When dealing with multiple labels at
10491 the same line and column, only print vertical bars for the one
10492 with the highest label_line.
10493 (selftest::test_one_liner_labels): Update test for multiple labels
10494 to expect the labels to be in the order of insertion into the
10495 rich_location. Add a test for many such labels, where the column
10496 numbers are out-of-order relative to the insertion order.
10497
10498 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10499
10500 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10501 (ix86_frame::expensive_count): Likewise.
10502 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10503 of use_fast_prologue_epilogue robust against incidental changes
10504 in function size.
10505
10506 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10507
10508 PR target/77918
10509 * config/s390/vector.md (vec_unordered<mode>): Call
10510 gen_vec_ordered<mode>.
10511
10512 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10513
10514 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10515 New pattern for ASRD.
10516 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10517 * internal-fn.def (IFN_DIV_POW2): New internal function.
10518 * optabs.def (sdiv_pow2_optab): New optab.
10519 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10520 Modify pattern to support new operation.
10521 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10522 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10523 Document new target selector.
10524
10525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10526
10527 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10528 to test whether we're compiling a vector PCS function and to test
10529 whether the function needs to save a particular register.
10530 Remove the vector PCS handling of df_set_regs_ever_live.
10531 (aarch64_components_for_bb): Use crtl->abi to test whether
10532 the function needs to save a particular register.
10533 (aarch64_process_components): Use crtl->abi to test whether
10534 we're compiling a vector PCS function.
10535 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10536 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10537
10538 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10539
10540 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10541 Delete.
10542 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10543 whether the block calls a function that clobbers more registers
10544 than the current function is allowed to.
10545 (aarch64_use_simple_return_insn_p): Delete.
10546 * config/aarch64/aarch64.md (simple_return): Remove condition.
10547
10548 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10549
10550 * function-abi.h (function_abi_aggregator): New class.
10551 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10552 function.
10553 * ira.c (update_equiv_regs_prescan): New function. Call
10554 set_paradoxical_subreg here rather than...
10555 (update_equiv_regs): ...here.
10556 (ira): Call update_equiv_regs_prescan.
10557
10558 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10559
10560 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10561 IN_TARGET_CODE.
10562 (call_used_or_fixed_regs): Likewise.
10563 (call_used_or_fixed_reg_p): Likewise.
10564 * reginfo.c (regs_invalidated_by_call): New macro.
10565
10566 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10567
10568 * shrink-wrap.c: Include function-abi.h.
10569 (requires_stack_frame_p): Use crtl->abi to test whether the
10570 current function can use a register without saving it first.
10571
10572 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10573
10574 * sel-sched-ir.h (_def::crosses_call): Replace with...
10575 (_def::crossed_call_abis): ..this new field.
10576 (def_list_add): Take a mask of ABIs instead of a crosses_call
10577 boolean.
10578 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10579 of _def accordingly.
10580 * sel-sched.c: Include function-abi.h.
10581 (hard_regs_data::regs_for_call_clobbered): Delete.
10582 (reg_rename::crosses_call): Replace with...
10583 (reg_rename::crossed_call_abis): ...this new field.
10584 (fur_static_params::crosses_call): Replace with...
10585 (fur_static_params::crossed_call_abis): ...this new field.
10586 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10587 (init_hard_regs_data): Use crtl->abi to test which registers the
10588 current function would need to save before it uses them.
10589 (mark_unavailable_hard_regs): Update handling of call-clobbered
10590 registers, using call_clobbers_in_region to find out which registers
10591 might be call-clobbered (but without taking -fipa-ra into account
10592 for now). Remove separate handling of partially call-clobbered
10593 registers.
10594 (verify_target_availability): Use crossed_call_abis instead of
10595 crosses_call.
10596 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10597 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10598
10599 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10600
10601 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10602 function to test whether a register is fully or partly clobbered.
10603
10604 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10605
10606 * rtlanal.c: Include function-abi.h.
10607 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10608 function and clobbers_reg_p to test whether the register
10609 is call-clobbered.
10610 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10611 to get the ABI of the called function and full_reg_clobbers to
10612 get the set of fully call-clobbered registers. Warn about the
10613 pitfalls of using this mode.
10614
10615 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10616
10617 * reload.c: Include function-abi.h.
10618 (find_equiv_reg): Use clobbers_reg_p to test whether either
10619 of the equivalent registers is clobbered by a call.
10620 * reload1.c: Include function-abi.h.
10621 (reg_reloaded_call_part_clobbered): Delete.
10622 (reload): Use crtl->abi to test which registers would need
10623 saving in the prologue before use.
10624 (find_reg): Likewise.
10625 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10626 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10627 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10628
10629 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10630
10631 * regrename.h (du_head::call_clobber_mask): New field.
10632 (du_head::need_caller_save_reg): Replace with...
10633 (du_head::call_abis): ...this new field.
10634 * regrename.c: Include function-abi.h.
10635 (call_clobbered_in_chain_p): New function.
10636 (check_new_reg_p): Use crtl->abi when deciding whether a register
10637 is free for use after RA. Use call_clobbered_in_chain_p to test
10638 whether a candidate register would be clobbered by a call.
10639 (find_rename_reg): Don't add call-clobber conflicts here.
10640 (rename_chains): Check call_abis instead of need_caller_save_reg.
10641 (merge_chains): Update for changes to du_head.
10642 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10643 target. Record the ABI identifier in call_abis and the set of
10644 fully or partially clobbered registers in call_clobber_mask.
10645 Add fully-clobbered registers to hard_conflicts here rather
10646 than in find_rename_reg.
10647 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10648 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10649 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10650 function-abi.h.
10651 * config/c6x/c6x.c: Likewise.
10652
10653 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10654
10655 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10656 mode of the register when deciding whether it is no longer
10657 available after a call.
10658
10659 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10660
10661 * recog.c: Include function-abi.h.
10662 (peep2_find_free_register): Use crtl->abi when deciding whether
10663 a register is free for use after RA.
10664
10665 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10666
10667 * postreload-gcse.c: Include regs.h and function-abi.h.
10668 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10669 call insn target. Conservatively assume that partially-clobbered
10670 registers are altered.
10671
10672 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10673
10674 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10675 when deciding whether a register is free for use after RA.
10676 (reload_combine): Remove unnecessary use of fixed_reg_set.
10677 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10678 call insn target. Use reg_mode when testing whether a register
10679 is no longer available.
10680
10681 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10682
10683 * target.def (return_call_with_max_clobbers): Delete.
10684 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10685 * doc/tm.texi: Regenerate.
10686 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10687 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10688 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10689 (lra_reg::call_insn): Delete.
10690 * lra.c: Include function-abi.h.
10691 (initialize_lra_reg_info_element): Don't initialize the fields above.
10692 (lra): Use crtl->abi to test whether the current function needs to
10693 save a register in the prologue. Remove special pre-inheritance
10694 lra_create_live_ranges pass for flag_ipa_ra.
10695 * lra-assigns.c: Include function-abi.h
10696 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10697 function needs to save a register in the prologue.
10698 (lra_assign): Assert that registers aren't allocated to a
10699 conflicting register, rather than checking only for overlaps
10700 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10701 and for registers that are not live across a call.
10702 * lra-constraints.c (last_call_for_abi): New variable.
10703 (full_and_partial_call_clobbers): Likewise.
10704 (setup_next_usage_insn): Remove the register from
10705 full_and_partial_call_clobbers.
10706 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10707 whether the register needs a caller save.
10708 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10709 of call_used_or_fixed_regs.
10710 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10711 full_and_partial_call_clobbers.
10712 * lra-lives.c (check_pseudos_live_through_calls): Replace
10713 last_call_used_reg_set and call_insn arguments with an abi argument.
10714 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10715 as the set of conflicting registers.
10716 (calls_have_same_clobbers_p): Delete.
10717 (process_bb_lives): Track the ABI of the last call instead of an
10718 insn/HARD_REG_SET pair. Update calls to
10719 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10720 the set of registers that could be clobbered by an EH edge.
10721 Include partially-clobbered as well as fully-clobbered registers.
10722 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10723 * lra-remat.c: Include function-abi.h.
10724 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10725 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10726 registers and bitmap_view to combine them into dead_regs.
10727 (call_used_input_regno_present_p): Take a function_abi argument
10728 and use it to test whether a register is call-clobbered.
10729 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10730 call insn target. Update tje call to call_used_input_regno_present_p.
10731 (do_remat): Likewise.
10732 (lra_remat): Remove the initialization of call_used_regs_arr_len
10733 and call_used_regs_arr.
10734
10735 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10736
10737 * loop-iv.c: Include regs.h and function-abi.h.
10738 (simplify_using_initial_values): Use insn_callee_abi to get the
10739 ABI of the call insn target. Conservatively assume that
10740 partially-clobbered registers are altered.
10741
10742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10743
10744 * function-abi.h (call_clobbers_in_region): Declare.
10745 (call_clobbered_in_region_p): New function.
10746 * function-abi.cc (call_clobbers_in_region): Likewise.
10747 * ira-int.h: Include function-abi.h.
10748 (ira_allocno::crossed_calls_abis): New field.
10749 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10750 (ira_need_caller_save_regs): New function.
10751 (ira_need_caller_save_p): Likewise.
10752 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10753 of call_used_or_fixed_regs.
10754 (do_reload): Use crtl->abi to test whether the current function
10755 needs to save a register in the prologue. Count registers that
10756 need to be saved rather than registers that don't.
10757 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10758 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10759 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10760 (propagate_some_info_from_allocno): Likewise.
10761 (copy_info_to_removed_store_destinations): Likewise.
10762 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10763 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10764 (ira_build): Use ira_need_caller_save_regs instead of
10765 call_used_or_fixed_regs.
10766 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10767 whether the current function would need to save a register
10768 before using it.
10769 (calculate_spill_cost): Likewise.
10770 (allocno_reload_assign): Use ira_need_caller_save_regs and
10771 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10772 * ira-conflicts.c (ira_build_conflicts): Use
10773 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10774 as the set of call-clobbered registers. Remove the
10775 call_used_or_fixed_regs mask from the calculation of
10776 temp_hard_reg_set and mask its use instead. Remove special
10777 handling of partially-clobbered registers.
10778 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10779 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10780 calculate the set of conflicting registers for calls that
10781 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10782 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10783 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10784 Use eh_edge_abi to calculate the set of registers that could
10785 be clobbered by an EH edge. Include partially-clobbered as
10786 well as fully-clobbered registers.
10787
10788 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10789
10790 * haifa-sched.c: Include function-abi.h.
10791 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10792 the function would need to save a register before using it.
10793
10794 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10795
10796 * gcse.c: Include function-abi.h.
10797 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10798 the call insn target. Invalidate partially call-clobbered
10799 registers as well as fully call-clobbered ones.
10800
10801 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10802
10803 * function.c (aggregate_value_p): Work out which ABI the
10804 function is using before testing which registers are at least
10805 partly preserved by a call.
10806
10807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10808
10809 * early-remat.c: Include regs.h and function-abi.h.
10810 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10811 registers here.
10812 (early_remat::restrict_remat_for_unavail_regs): New function.
10813 (early_remat::restrict_remat_for_call): Likewise.
10814 (early_remat::process_block): Before calling emit_remat_insns
10815 for a previous call in the block, invalidate any candidates
10816 that would clobber call-preserved registers.
10817 (early_remat::emit_remat_insns_for_block): Likewise for the
10818 final call in a block. Do the same thing for live-in registers
10819 when calling emit_remat_insns at the head of a block.
10820
10821 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10822
10823 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10824 whether the current function needs to save at least part of a
10825 register before using it.
10826 (df_get_exit_block_use_set): Likewise for epilogue restores.
10827
10828 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10829
10830 * df-problems.c: Include regs.h and function-abi.h.
10831 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10832 sparse_invalidated_by_eh and dense_invalidated_by_call to
10833 dense_invalidated_by_eh.
10834 (df_print_bb_index): Update accordingly.
10835 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10836 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10837 that are clobbered by an EH edge. Clobber partially-clobbered
10838 registers as well as fully-clobbered ones.
10839 (df_md_confluence_n): Likewise.
10840 (df_rd_local_compute): Likewise. Update for changes to
10841 df_rd_problem_data.
10842 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10843 of registers that are clobbered by an EH edge. Includde partially-
10844 clobbered registers as well as fully-clobbered ones.
10845
10846 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10847
10848 * cselib.c (cselib_process_insn): If we know what mode a
10849 register was set in, check whether it is clobbered in that
10850 mode by a call. Only fall back to reg_raw_mode if that fails.
10851
10852 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10853
10854 * cse.c: Include regs.h and function-abi.h.
10855 (invalidate_for_call): Take the call insn as an argument.
10856 Use insn_callee_abi to get the ABI of the call and invalidate
10857 partially clobbered registers as well as fully clobbered ones.
10858 (cse_insn): Update call accordingly.
10859
10860 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10861
10862 * combine.c: Include function-abi.h.
10863 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10864 of the target of call insns. Invalidate partially-clobbered
10865 registers as well as fully-clobbered ones.
10866
10867 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10868
10869 * cfgloopanal.c: Include regs.h and function-abi.h.
10870 (init_set_costs): Use default_function_abi to test whether
10871 a general register is call-clobbered.
10872
10873 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10874
10875 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10876 instead of the call-clobbered sets.
10877
10878 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10879
10880 * caller-save.c (setup_save_areas): Remove redundant |s of
10881 fixed_reg_set.
10882 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10883 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10884 value is useful.
10885
10886 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10887
10888 * rtl.h (predefined_function_abi): Declare.
10889 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10890 instead of a boolean call_save flag.
10891 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10892 accordingly.
10893 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10894 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10895 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10896 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10897 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10898 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10899 * reginfo.c (init_reg_modes_target): Likewise.
10900 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10901 instead of a boolean call_save flag.
10902 * targhooks.c: Include function-abi.h.
10903 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10904 using eh_edge_abi to choose the mode.
10905
10906 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10907
10908 * target.def (hard_regno_call_part_clobbered): Take an ABI
10909 identifier instead of an rtx_insn.
10910 * doc/tm.texi: Regenerate.
10911 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10912 (hook_bool_uint_uint_mode_false): New function.
10913 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10914 (hook_bool_uint_uint_mode_false): New function.
10915 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10916 Take an ABI identifier instead of an rtx_insn.
10917 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10918 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10919 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10920 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10921 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10922 Likewise.
10923 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10924 * cselib.c: Include function-abi.h.
10925 (cselib_process_insn): Update call to
10926 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10927 to get the appropriate ABI identifier.
10928 * function-abi.cc (predefined_function_abi::initialize): Update call
10929 to targetm.hard_regno_call_part_clobbered.
10930 * ira-conflicts.c (ira_build_conflicts): Likewise.
10931 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10932 * lra-constraints.c: Include function-abi.h.
10933 (need_for_call_save_p): Update call to
10934 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10935 to get the appropriate ABI identifier.
10936 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10937 * regcprop.c (copyprop_hardreg_forward_1): Update call
10938 to targetm.hard_regno_call_part_clobbered.
10939 * reginfo.c (choose_hard_reg_mode): Likewise.
10940 * regrename.c (check_new_reg_p): Likewise.
10941 * reload.c (find_equiv_reg): Likewise.
10942 * reload1.c (emit_reload_insns): Likewise.
10943 * sched-deps.c: Include function-abi.h.
10944 (deps_analyze_insn): Update call to
10945 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10946 to get the appropriate ABI identifier.
10947 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10948 call to targetm.hard_regno_call_part_clobbered.
10949 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10950
10951 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10952
10953 * config/i386/i386.c: Include function-abi.h.
10954 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10955 if they preserve some 256-bit or 512-bit SSE registers.
10956
10957 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10958
10959 * target.def (insn_callee_abi): New hook.
10960 (remove_extra_call_preserved_regs): Delete.
10961 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10962 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10963 * doc/tm.texi: Regenerate.
10964 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10965 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10966 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10967 insn argument.
10968 (aarch64_remove_extra_call_preserved_regs): Delete.
10969 (aarch64_insn_callee_abi): New function.
10970 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10971 (TARGET_INSN_CALLEE_ABI): New macro.
10972 * rtl.h (get_call_fndecl): Declare.
10973 (cgraph_rtl_info): Fix formatting. Tweak comment for
10974 function_used_regs. Remove function_used_regs_valid.
10975 * rtlanal.c (get_call_fndecl): Moved from final.c
10976 * function-abi.h (insn_callee_abi): Declare.
10977 (target_function_abi_info): Mention insn_callee_abi.
10978 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10979 way to get_call_reg_set_usage did.
10980 (insn_callee_abi): New function.
10981 * regs.h (get_call_reg_set_usage): Delete.
10982 * final.c: Include function-abi.h.
10983 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10984 function_used_regs before the main loop rather than afterwards.
10985 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10986 if function_used_regs ends up not being useful.
10987 (get_call_fndecl): Move to rtlanal.c
10988 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10989 * caller-save.c: Include function-abi.h.
10990 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10991 instead of get_call_reg_set_usage.
10992 * cfgcleanup.c: Include function-abi.h.
10993 (old_insns_match_p): Use insn_callee_abi instead of
10994 get_call_reg_set_usage.
10995 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10996 a tree.
10997 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10998 function_used_regs.
10999 * df-scan.c: Include function-abi.h.
11000 (df_get_call_refs): Use insn_callee_abi instead of
11001 get_call_reg_set_usage.
11002 * ira-lives.c: Include function-abi.h.
11003 (process_bb_node_lives): Use insn_callee_abi instead of
11004 get_call_reg_set_usage.
11005 * lra-lives.c: Include function-abi.h.
11006 (process_bb_lives): Use insn_callee_abi instead of
11007 get_call_reg_set_usage.
11008 * postreload.c: Include function-abi.h.
11009 (reload_combine): Use insn_callee_abi instead of
11010 get_call_reg_set_usage.
11011 * regcprop.c: Include function-abi.h.
11012 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11013 get_call_reg_set_usage.
11014 * resource.c: Include function-abi.h.
11015 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11016 instead of get_call_reg_set_usage.
11017 * var-tracking.c: Include function-abi.h.
11018 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11019 get_call_reg_set_usage.
11020
11021 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11022
11023 * target.def (fntype_abi): New target hook.
11024 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11025 * doc/tm.texi: Regenerate.
11026 * target.h (predefined_function_abi): Declare.
11027 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11028 if defined.
11029 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11030 * config/aarch64/aarch64.c: Include function-abi.h.
11031 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11032 (TARGET_FNTYPE_ABI): Define.
11033
11034 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11035
11036 * Makefile.in (OBJS): Add function-abi.o.
11037 (GTFILES): Add function-abi.h.
11038 * function-abi.cc: New file.
11039 * function-abi.h: Likewise.
11040 * emit-rtl.h (rtl_data::abi): New field.
11041 * function.c: Include function-abi.h.
11042 (prepare_function_start): Initialize crtl->abi.
11043 * read-rtl-function.c: Include regs.h and function-abi.h.
11044 (read_rtl_function_body): Initialize crtl->abi.
11045 (read_rtl_function_body_from_file_range): Likewise.
11046 * reginfo.c: Include function-abi.h.
11047 (init_reg_sets_1): Initialize default_function_abi.
11048 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11049 when making a register global.
11050 * target-globals.h (this_target_function_abi_info): Declare.
11051 (target_globals::function_abi_info): New field.
11052 (restore_target_globals): Copy it.
11053 * target-globals.c: Include function-abi.h.
11054 (default_target_globals): Initialize the function_abi_info field.
11055 (target_globals): Allocate it.
11056 (save_target_globals): Free it.
11057
11058 2019-09-30 Nick Clifton <nickc@redhat.com>
11059
11060 PR target/85978
11061 * config/frv/frv.c (frv_register_move_cost): Add break statements
11062 to avoid falling through to the wrong cases. Tidy code.
11063
11064 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11065
11066 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11067 For multi-registers modes, test how big each register part is.
11068
11069 2019-09-30 Nick Clifton <nickc@redhat.com>
11070
11071 PR target/59205
11072 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11073 (TARGET_ASM_SELECT_SECTION): Remove definition.
11074 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11075
11076 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11077
11078 * emit-rtl.c (init_raw_REG): New function.
11079 (gen_raw_REG): Use init_raw_REG.
11080 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11081 macros.
11082 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11083 * rtl.h (rtx_init): New function.
11084 (rtx_alloca): New function.
11085 (init_raw_REG): New function.
11086 (alloca_raw_REG): New macro.
11087
11088 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11089
11090 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11091 (pcrel_local_address): Replace pcrel_address predicate, use the
11092 new function address_to_insn_form.
11093 (pcrel_external_address): Replace with new implementation using
11094 address_to_insn_form..
11095 (prefixed_mem_operand): Delete predicate which is now unused.
11096 (pcrel_external_mem_operand): Delete predicate which is now
11097 unused.
11098 * config/rs6000/rs6000-protos.h (enum insn_form): New
11099 enumeration.
11100 (enum non_prefixed_form): New enumeration.
11101 (address_to_insn_form): New declaration.
11102 (prefixed_load_p): New declaration.
11103 (prefixed_store_p): New declaration.
11104 (prefixed_paddi_p): New declaration.
11105 (rs6000_asm_output_opcode): New declaration.
11106 (rs6000_final_prescan_insn): Move declaration and update calling
11107 signature.
11108 (address_is_prefixed): New helper inline function.
11109 * config/rs6000/rs6000.c(print_operand_address): Check for either
11110 PC-relative local symbols or PC-relative external symbols.
11111 (rs6000_emit_move): Support loading PC-relative addresses.
11112 (mode_supports_prefixed_address_p): Delete, no longer used.
11113 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11114 (address_to_insn_form): New function to decode an address format.
11115 (reg_to_non_prefixed): New function to identify what the
11116 non-prefixed memory instruction format is for a register.
11117 (prefixed_load_p): New function to identify prefixed loads.
11118 (prefixed_store_p): New function to identify prefixed stores.
11119 (prefixed_paddi_p): New function to identify prefixed load
11120 immediates.
11121 (next_insn_prefixed_p): New static state variable.
11122 (rs6000_final_prescan_insn): New function to determine if an insn
11123 uses a prefixed instruction.
11124 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11125 prefixed instruction.
11126 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11127 (ASM_OUTPUT_OPCODE): New target hook.
11128 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11129 prefixed instructions.
11130 (prefixed_length): New insn attribute for the size of prefixed
11131 instructions.
11132 (non_prefixed_length): New insn attribute for the size of
11133 non-prefixed instructions.
11134 (pcrel_local_addr): New insn to load up a local PC-relative
11135 address.
11136 (pcrel_extern_addr): New insn to load up an external PC-relative
11137 address.
11138 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11139 GPR and loading a 128-bit floating point type to a GPR.
11140
11141 2019-09-30 Richard Biener <rguenther@suse.de>
11142
11143 * gimple.c (gimple_get_lhs): For PHIs return the result.
11144 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11145 SLP instance as argument.
11146 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11147 double-reduction PHIs with vectorizable_lc_phi.
11148 (vect_analyze_loop_operations): Adjust.
11149 (vect_create_epilog_for_reduction): Remove all code not dealing
11150 with reduction LC PHI or epilogue generation.
11151 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11152 for live stmts of reductions.
11153 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11154 do not handle defs that are not vect_internal_def.
11155 (can_vectorize_live_stmts): Adjust.
11156 (vect_analyze_stmt): When the vectorized stmt defined a value
11157 used on backedges adjust the backedge uses of vectorized PHIs.
11158
11159 2019-09-30 Martin Jambor <mjambor@suse.cz>
11160
11161 PR ipa/91853
11162 * tree-inline.c (force_value_to_type): New function.
11163 (setup_one_parameter): Use force_value_to_type to convert type.
11164 * tree-inline.c (force_value_to_type): Declare.
11165 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11166 with register type mismatches.
11167
11168 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11169
11170 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11171 32-bit PowerPC.
11172 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11173 * config/rs6000/t-freebsd64: Make use of the above define and build
11174 the 32-bit libraries with secure-plt.
11175
11176 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11177
11178 PR target/91931
11179 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11180 gen_int_mode instead of GEN_INT.
11181
11182 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11183
11184 * config/darwin.c (gen_macho_low): Amend to include the mode
11185 argument.
11186 (machopic_indirect_data_reference): Amend gen_macho_low call
11187 to include mode argument
11188 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11189 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11190 the macho_high expander and two define_insn entries.
11191
11192 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11193
11194 PR bootstrap/90543
11195 * optc-save-gen.awk: Fix up printing string option differences.
11196
11197 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11198
11199 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11200 vec_perm cost to 1 for non-Power7 VSX architectures.
11201
11202 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11203
11204 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11205 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11206 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11207
11208 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11209
11210 * config/darwin.c (gen_macho_high): Amend to include the mode
11211 argument.
11212 (machopic_indirect_data_reference): Amend gen_macho_high call
11213 to include mode argument.
11214 (machopic_legitimize_pic_address): Likewise.
11215 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11216 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11217 the macho_high expander and two define_insn entries.
11218
11219 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11220
11221 PR target/86805
11222 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11223
11224 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11225
11226 PR target/80672
11227 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11228 std::string::compare instead of std::string::find.
11229
11230 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11231
11232 * configure: Regenerate.
11233
11234 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11235
11236 PR middle-end/91920
11237 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11238 variables as shared.
11239
11240 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11241
11242 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11243 replaces the expander and two define_insn entries.
11244 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11245 call.
11246 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11247
11248 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11249
11250 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11251 (fibonacci_heap::nodes): Likewise.
11252 (fibonacci_heap::min_key): Likewise.
11253 (fibonacci_heap::min): Likewise.
11254
11255 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11256
11257 * cgraph.c (cgraph_node::get_fun): Make const.
11258 * cgraph.h (cgraph_node::get_fun): Likewise.
11259
11260 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11261
11262 PR target/91919
11263 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11264 of SImode MULT.
11265
11266 2019-09-27 Richard Biener <rguenther@suse.de>
11267
11268 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11269 (STMT_VINFO_REDUC_FN): Likewise.
11270 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11271 STMT_VINFO_REDUC_FN.
11272 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11273 for condition reductions.
11274 (vect_create_epilog_for_reduction): Compute all required state
11275 from the stmt to be vectorized.
11276 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11277 invocation and remove then dead code. For single def-use chains
11278 record only a single vector stmt.
11279
11280 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11281
11282 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11283 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11284 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11285 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11286 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11287 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11288 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11289 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11290 (aarch64_general_builtin_rsqrt): Declare.
11291 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11292 New function.
11293 (aarch64_mangle_builtin_type): Rename to...
11294 (aarch64_general_mangle_builtin_type): ...this.
11295 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11296 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11297 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11298 aarch64_general_add_builtin instead of add_builtin_function.
11299 (aarch64_init_builtins): Rename to...
11300 (aarch64_general_init_builtins): ...this. Use
11301 aarch64_general_add_builtin instead of add_builtin_function.
11302 (aarch64_builtin_decl): Rename to...
11303 (aarch64_general_builtin_decl): ...this and remove the unused
11304 arguments.
11305 (aarch64_expand_builtin): Rename to...
11306 (aarch64_general_expand_builtin): ...this and remove the unused
11307 arguments.
11308 (aarch64_builtin_rsqrt): Rename to...
11309 (aarch64_general_builtin_rsqrt): ...this.
11310 (aarch64_fold_builtin): Rename to...
11311 (aarch64_general_fold_builtin): ...this. Take the function subcode
11312 and return type as arguments. Remove the "ignored" argument.
11313 (aarch64_gimple_fold_builtin): Rename to...
11314 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11315 subcode and gcall as arguments, and return the new function call.
11316 * config/aarch64/aarch64.c (aarch64_init_builtins)
11317 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11318 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11319 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11320 instead of aarch64_builtin_rsqrt.
11321 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11322 instead of aarch64_mangle_builtin_type.
11323
11324 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11325
11326 * target.def (check_builtin_call): New target hook.
11327 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11328 * doc/tm.texi: Regenerate.
11329
11330 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11331
11332 PR tree-optimization/91909
11333 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11334 reduc_index parameter. When handling COND_REDUCTION, make sure
11335 that the reduction phi operand is in the correct arm of the
11336 VEC_COND_EXPR.
11337 (vectorizable_reduction): Pass reduc_index to the above.
11338
11339 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11340
11341 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11342 New combine pattern.
11343
11344 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11345
11346 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11347 loop instruction into new basic block before the loop when basic
11348 block that precedes the loop is empty.
11349
11350 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11351
11352 * function.c (gimplify_parameters): Use build_clobber function.
11353 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11354 * tree-inline.c (expand_call_inline): Likewise.
11355 * tree-sra.c (clobber_subtree): Likewise.
11356 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11357 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11358 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11359 lower_omp_target): Likewise.
11360 * omp-expand.c (expand_omp_for_generic): Likewise.
11361 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11362
11363 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11364
11365 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11366 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11367 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11368 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11369 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11370 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11371 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11372 LD_ELEMREV_V16QI): Use the PURE attribute.
11373
11374 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11375
11376 * config/rs6000/darwin.md: Replace the expanders for
11377 load_macho_picbase and reload_macho_picbase with use of '@'
11378 and <mode> in their respective define_insns.
11379 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11380 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11381 Pmode to gen_load_macho_picbase.
11382 * config/rs6000/rs6000.md: Likewise.
11383
11384 2019-09-25 Richard Biener <rguenther@suse.de>
11385
11386 PR tree-optimization/91896
11387 * tree-vect-loop.c (vectorizable_reduction): The single
11388 def-use cycle optimization cannot apply when there's more
11389 than one pattern stmt involved.
11390
11391 2019-09-26 Richard Biener <rguenther@suse.de>
11392
11393 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11394 loop-closed PHIs that are vect_internal_def.
11395 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11396 Simplify.
11397 (vectorizable_lc_phi): New.
11398 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11399 (vect_transform_stmt): Likewise.
11400 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11401 (vectorizable_lc_phi): Declare.
11402
11403 2019-09-26 Richard Biener <rguenther@suse.de>
11404
11405 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11406 vectorizable_reduction for vect_double_reduction_def.
11407 (vect_transform_loop): Likewise.
11408 (vect_create_epilog_for_reduction): Move double-reduction
11409 PHI creation and preheader argument setting of PHIs ...
11410 (vectorizable_reduction): ... here. Also process
11411 vect_double_reduction_def PHIs, creating the vectorized
11412 PHI nodes, remembering the scalar adjustment computed for
11413 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11414 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11415 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11416 Initialize STMT_VINFO_REDUC_CODE.
11417 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11418 (_stmt_vec_info::reduc_code): Likewise.
11419 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11420 (STMT_VINFO_REDUC_CODE): Likewise.
11421
11422 2019-09-26 Matt Turner <mattst88@gmail.com>
11423
11424 PR driver/69471
11425 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11426 (mtune=): Add Negative(mtune=).
11427 (mcpu=): Add Negative(mcpu=).
11428 * config/arm/arm.opt: Likewise.
11429
11430 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11431
11432 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11433 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11434 Define.
11435 * config/arm/arm_acle.h: Define builtins for the above.
11436 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11437 (simd32_op): Handle the above.
11438 * config/arm/unspecs.md: Define unspecs for the above.
11439
11440 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11441
11442 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11443 (arm_<sup>xtb16): Likewise.
11444 (arm_usada8): Likewise.
11445 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11446 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11447 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11448 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11449 __sxtb16, __uxtab16, __uxtb16): Define.
11450 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11451 * config/arm/unspecs.md: Define unspecs for the above.
11452 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11453 (USXTB16): Likewise.
11454 (simd32_op): New int_attribute.
11455 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11456 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11457
11458 2019-09-26 Martin Jambor <mjambor@suse.cz>
11459
11460 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11461 internal_error.
11462
11463 2019-09-26 Martin Jambor <mjambor@suse.cz>
11464
11465 * ipa-sra.c (process_scan_results): Fix continue condition.
11466
11467 2019-09-26 Martin Liska <mliska@suse.cz>
11468
11469 PR tree-optimization/91885
11470 * tree-vectorizer.c (try_vectorize_loop_1): Add
11471 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11472
11473 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11474
11475 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11476 aarch64_plus_immediate rather than aarch64_uimm12_shift
11477 to test for valid PLUS immediates.
11478
11479 2019-09-25 Martin Jambor <mjambor@suse.cz>
11480
11481 * tree-sra.c (no_accesses_p): Remove.
11482 (no_accesses_representant): Likewise.
11483
11484 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11485
11486 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11487 consistenly.
11488 (vaba_s16): Likewise.
11489 (vaba_s32): Likewise.
11490 (vaba_u8): Likewise.
11491 (vaba_u16): Likewise.
11492 (vaba_u32): Likewise.
11493 (vabal_high_s8): Likewise.
11494 (vabal_high_s16): Likewise.
11495 (vabal_high_s32): Likewise.
11496 (vabal_high_u8): Likewise.
11497 (vabal_high_u16): Likewise.
11498 (vabal_high_u32): Likewise.
11499 (vabal_s8): Likewise.
11500 (vabal_s16): Likewise.
11501 (vabal_s32): Likewise.
11502 (vabal_u8): Likewise.
11503 (vabal_u16): Likewise.
11504 (vabal_u32): Likewise.
11505 (vabaq_s8): Likewise.
11506 (vabaq_s16): Likewise.
11507 (vabaq_s32): Likewise.
11508 (vabaq_u8): Likewise.
11509 (vabaq_u16): Likewise.
11510 (vabaq_u32): Likewise.
11511 (vabd_s8): Likewise.
11512 (vabd_s16): Likewise.
11513 (vabd_s32): Likewise.
11514 (vabd_u8): Likewise.
11515 (vabd_u16): Likewise.
11516 (vabd_u32): Likewise.
11517 (vabdl_high_s8): Likewise.
11518 (vabdl_high_s16): Likewise.
11519 (vabdl_high_s32): Likewise.
11520 (vabdl_high_u8): Likewise.
11521 (vabdl_high_u16): Likewise.
11522 (vabdl_high_u32): Likewise.
11523 (vabdl_s8): Likewise.
11524 (vabdl_s16): Likewise.
11525 (vabdl_s32): Likewise.
11526 (vabdl_u8): Likewise.
11527 (vabdl_u16): Likewise.
11528 (vabdl_u32): Likewise.
11529 (vabdq_s8): Likewise.
11530 (vabdq_s16): Likewise.
11531 (vabdq_s32): Likewise.
11532 (vabdq_u8): Likewise.
11533 (vabdq_u16): Likewise.
11534 (vabdq_u32): Likewise.
11535 (vaddlv_s8): Likewise.
11536 (vaddlv_s16): Likewise.
11537 (vaddlv_u8): Likewise.
11538 (vaddlv_u16): Likewise.
11539 (vaddlvq_s8): Likewise.
11540 (vaddlvq_s16): Likewise.
11541 (vaddlvq_s32): Likewise.
11542 (vaddlvq_u8): Likewise.
11543 (vaddlvq_u16): Likewise.
11544 (vaddlvq_u32): Likewise.
11545 (vcvtx_f32_f64): Likewise.
11546 (vcvtx_high_f32_f64): Likewise.
11547 (vcvtxd_f32_f64): Likewise.
11548 (vmla_n_f32): Likewise.
11549 (vmla_n_s16): Likewise.
11550 (vmla_n_s32): Likewise.
11551 (vmla_n_u16): Likewise.
11552 (vmla_n_u32): Likewise.
11553 (vmla_s8): Likewise.
11554 (vmla_s16): Likewise.
11555 (vmla_s32): Likewise.
11556 (vmla_u8): Likewise.
11557 (vmla_u16): Likewise.
11558 (vmla_u32): Likewise.
11559 (vmlal_high_n_s16): Likewise.
11560 (vmlal_high_n_s32): Likewise.
11561 (vmlal_high_n_u16): Likewise.
11562 (vmlal_high_n_u32): Likewise.
11563 (vmlal_high_s8): Likewise.
11564 (vmlal_high_s16): Likewise.
11565 (vmlal_high_s32): Likewise.
11566 (vmlal_high_u8): Likewise.
11567 (vmlal_high_u16): Likewise.
11568 (vmlal_high_u32): Likewise.
11569 (vmlal_n_s16): Likewise.
11570 (vmlal_n_s32): Likewise.
11571 (vmlal_n_u16): Likewise.
11572 (vmlal_n_u32): Likewise.
11573 (vmlal_s8): Likewise.
11574 (vmlal_s16): Likewise.
11575 (vmlal_s32): Likewise.
11576 (vmlal_u8): Likewise.
11577 (vmlal_u16): Likewise.
11578 (vmlal_u32): Likewise.
11579 (vmlaq_n_f32): Likewise.
11580 (vmlaq_n_s16): Likewise.
11581 (vmlaq_n_s32): Likewise.
11582 (vmlaq_n_u16): Likewise.
11583 (vmlaq_n_u32): Likewise.
11584 (vmlaq_s8): Likewise.
11585 (vmlaq_s16): Likewise.
11586 (vmlaq_s32): Likewise.
11587 (vmlaq_u8): Likewise.
11588 (vmlaq_u16): Likewise.
11589 (vmlaq_u32): Likewise.
11590 (vmls_n_f32): Likewise.
11591 (vmls_n_s16): Likewise.
11592 (vmls_n_s32): Likewise.
11593 (vmls_n_u16): Likewise.
11594 (vmls_n_u32): Likewise.
11595 (vmls_s8): Likewise.
11596 (vmls_s16): Likewise.
11597 (vmls_s32): Likewise.
11598 (vmls_u8): Likewise.
11599 (vmls_u16): Likewise.
11600 (vmls_u32): Likewise.
11601 (vmlsl_high_n_s16): Likewise.
11602 (vmlsl_high_n_s32): Likewise.
11603 (vmlsl_high_n_u16): Likewise.
11604 (vmlsl_high_n_u32): Likewise.
11605 (vmlsl_high_s8): Likewise.
11606 (vmlsl_high_s16): Likewise.
11607 (vmlsl_high_s32): Likewise.
11608 (vmlsl_high_u8): Likewise.
11609 (vmlsl_high_u16): Likewise.
11610 (vmlsl_high_u32): Likewise.
11611 (vmlsl_n_s16): Likewise.
11612 (vmlsl_n_s32): Likewise.
11613 (vmlsl_n_u16): Likewise.
11614 (vmlsl_n_u32): Likewise.
11615 (vmlsl_s8): Likewise.
11616 (vmlsl_s16): Likewise.
11617 (vmlsl_s32): Likewise.
11618 (vmlsl_u8): Likewise.
11619 (vmlsl_u16): Likewise.
11620 (vmlsl_u32): Likewise.
11621 (vmlsq_n_f32): Likewise.
11622 (vmlsq_n_s16): Likewise.
11623 (vmlsq_n_s32): Likewise.
11624 (vmlsq_n_u16): Likewise.
11625 (vmlsq_n_u32): Likewise.
11626 (vmlsq_s8): Likewise.
11627 (vmlsq_s16): Likewise.
11628 (vmlsq_s32): Likewise.
11629 (vmlsq_u8): Likewise.
11630 (vmlsq_u16): Likewise.
11631 (vmlsq_u32): Likewise.
11632 (vmovl_high_s8): Likewise.
11633 (vmovl_high_s16): Likewise.
11634 (vmovl_high_s32): Likewise.
11635 (vmovl_high_u8): Likewise.
11636 (vmovl_high_u16): Likewise.
11637 (vmovl_high_u32): Likewise.
11638 (vmovl_s8): Likewise.
11639 (vmovl_s16): Likewise.
11640 (vmovl_s32): Likewise.
11641 (vmovl_u8): Likewise.
11642 (vmovl_u16): Likewise.
11643 (vmovl_u32): Likewise.
11644 (vmovn_high_s16): Likewise.
11645 (vmovn_high_s32): Likewise.
11646 (vmovn_high_s64): Likewise.
11647 (vmovn_high_u16): Likewise.
11648 (vmovn_high_u32): Likewise.
11649 (vmovn_high_u64): Likewise.
11650 (vmovn_s16): Likewise.
11651 (vmovn_s32): Likewise.
11652 (vmovn_s64): Likewise.
11653 (vmovn_u16): Likewise.
11654 (vmovn_u32): Likewise.
11655 (vmovn_u64): Likewise.
11656 (vmull_high_n_s16): Likewise.
11657 (vmull_high_n_s32): Likewise.
11658 (vmull_high_n_u16): Likewise.
11659 (vmull_high_n_u32): Likewise.
11660 (vmull_high_p8): Likewise.
11661 (vmull_high_s8): Likewise.
11662 (vmull_high_s16): Likewise.
11663 (vmull_high_s32): Likewise.
11664 (vmull_high_u8): Likewise.
11665 (vmull_high_u16): Likewise.
11666 (vmull_high_u32): Likewise.
11667 (vmull_n_s16): Likewise.
11668 (vmull_n_s32): Likewise.
11669 (vmull_n_u16): Likewise.
11670 (vmull_n_u32): Likewise.
11671 (vmull_p8): Likewise.
11672 (vmull_s8): Likewise.
11673 (vmull_s16): Likewise.
11674 (vmull_s32): Likewise.
11675 (vmull_u8): Likewise.
11676 (vmull_u16): Likewise.
11677 (vmull_u32): Likewise.
11678 (vpadal_s8): Likewise.
11679 (vpadal_s16): Likewise.
11680 (vpadal_s32): Likewise.
11681 (vpadal_u8): Likewise.
11682 (vpadal_u16): Likewise.
11683 (vpadal_u32): Likewise.
11684 (vpadalq_s8): Likewise.
11685 (vpadalq_s16): Likewise.
11686 (vpadalq_s32): Likewise.
11687 (vpadalq_u8): Likewise.
11688 (vpadalq_u16): Likewise.
11689 (vpadalq_u32): Likewise.
11690 (vpaddl_s8): Likewise.
11691 (vpaddl_s16): Likewise.
11692 (vpaddl_s32): Likewise.
11693 (vpaddl_u8): Likewise.
11694 (vpaddl_u16): Likewise.
11695 (vpaddl_u32): Likewise.
11696 (vpaddlq_s8): Likewise.
11697 (vpaddlq_s16): Likewise.
11698 (vpaddlq_s32): Likewise.
11699 (vpaddlq_u8): Likewise.
11700 (vpaddlq_u16): Likewise.
11701 (vpaddlq_u32): Likewise.
11702 (vpaddq_s8): Likewise.
11703 (vpaddq_s16): Likewise.
11704 (vpaddq_s32): Likewise.
11705 (vpaddq_s64): Likewise.
11706 (vpaddq_u8): Likewise.
11707 (vpaddq_u16): Likewise.
11708 (vpaddq_u32): Likewise.
11709 (vpaddq_u64): Likewise.
11710 (vqdmulh_n_s16): Likewise.
11711 (vqdmulh_n_s32): Likewise.
11712 (vqdmulhq_n_s16): Likewise.
11713 (vqdmulhq_n_s32): Likewise.
11714 (vqmovn_high_s16): Likewise.
11715 (vqmovn_high_s32): Likewise.
11716 (vqmovn_high_s64): Likewise.
11717 (vqmovn_high_u16): Likewise.
11718 (vqmovn_high_u32): Likewise.
11719 (vqmovn_high_u64): Likewise.
11720 (vqmovun_high_s16): Likewise.
11721 (vqmovun_high_s32): Likewise.
11722 (vqmovun_high_s64): Likewise.
11723 (vqrdmulh_n_s16): Likewise.
11724 (vqrdmulh_n_s32): Likewise.
11725 (vqrdmulhq_n_s16): Likewise.
11726 (vqrdmulhq_n_s32): Likewise.
11727 (vrsqrte_u32): Likewise.
11728 (vrsqrteq_u32): Likewise.
11729 (vtst_p8): Likewise.
11730 (vtst_p16): Likewise.
11731 (vtst_p64): Likewise.
11732 (vtstq_p8): Likewise.
11733 (vtstq_p16): Likewise.
11734 (vtstq_p64): Likewise.
11735 (vaddlv_s32): Likewise.
11736 (vaddlv_u32): Likewise.
11737 (vqtbl1_p8): Likewise.
11738 (vqtbl1_s8): Likewise.
11739 (vqtbl1_u8): Likewise.
11740 (vqtbl1q_p8): Likewise.
11741 (vqtbl1q_s8): Likewise.
11742 (vqtbl1q_u8): Likewise.
11743 (vqtbx1_s8): Likewise.
11744 (vqtbx1_u8): Likewise.
11745 (vqtbx1_p8): Likewise.
11746 (vqtbx1q_s8): Likewise.
11747 (vqtbx1q_u8): Likewise.
11748 (vqtbx1q_p8): Likewise.
11749 (vtbl1_s8): Likewise.
11750 (vtbl1_u8): Likewise.
11751 (vtbl1_p8): Likewise.
11752 (vtbl2_s8): Likewise.
11753 (vtbl2_u8): Likewise.
11754 (vtbl2_p8): Likewise.
11755 (vtbl3_s8): Likewise.
11756 (vtbl3_u8): Likewise.
11757 (vtbl3_p8): Likewise.
11758 (vtbl4_s8): Likewise.
11759 (vtbl4_u8): Likewise.
11760 (vtbl4_p8): Likewise.
11761 (vtbx2_s8): Likewise.
11762 (vtbx2_u8): Likewise.
11763 (vtbx2_p8): Likewise.
11764 (vld1_f32): Likewise.
11765 (vld1_f64): Likewise.
11766 (vld1_p8): Likewise.
11767 (vld1_p16): Likewise.
11768 (vld1_p64): Likewise.
11769 (vld1_s8): Likewise.
11770 (vld1_s16): Likewise.
11771 (vld1_s32): Likewise.
11772 (vld1_s64): Likewise.
11773 (vld1_u8): Likewise.
11774 (vld1_u16): Likewise.
11775 (vld1_u32): Likewise.
11776 (vld1_u64): Likewise.
11777 (vld1q_f32): Likewise.
11778 (vld1q_f64): Likewise.
11779 (vld1q_p8): Likewise.
11780 (vld1q_p16): Likewise.
11781 (vld1q_p64): Likewise.
11782 (vld1q_s8): Likewise.
11783 (vld1q_s16): Likewise.
11784 (vld1q_s32): Likewise.
11785 (vld1q_s64): Likewise.
11786 (vld1q_u8): Likewise.
11787 (vld1q_u16): Likewise.
11788 (vld1q_u32): Likewise.
11789 (vld1q_u64): Likewise.
11790 (vpmax_s8): Likewise.
11791 (vpmax_s16): Likewise.
11792 (vpmax_s32): Likewise.
11793 (vpmax_u8): Likewise.
11794 (vpmax_u16): Likewise.
11795 (vpmax_u32): Likewise.
11796 (vpmaxq_s8): Likewise.
11797 (vpmaxq_s16): Likewise.
11798 (vpmaxq_s32): Likewise.
11799 (vpmaxq_u8): Likewise.
11800 (vpmaxq_u16): Likewise.
11801 (vpmaxq_u32): Likewise.
11802 (vpmax_f32): Likewise.
11803 (vpmaxq_f32): Likewise.
11804 (vpmaxq_f64): Likewise.
11805 (vpmaxqd_f64): Likewise.
11806 (vpmaxs_f32): Likewise.
11807 (vpmaxnm_f32): Likewise.
11808 (vpmaxnmq_f32): Likewise.
11809 (vpmaxnmq_f64): Likewise.
11810 (vpmaxnmqd_f64): Likewise.
11811 (vpmaxnms_f32): Likewise.
11812 (vpmin_s8): Likewise.
11813 (vpmin_s16): Likewise.
11814 (vpmin_s32): Likewise.
11815 (vpmin_u8): Likewise.
11816 (vpmin_u16): Likewise.
11817 (vpmin_u32): Likewise.
11818 (vpminq_s8): Likewise.
11819 (vpminq_s16): Likewise.
11820 (vpminq_s32): Likewise.
11821 (vpminq_u8): Likewise.
11822 (vpminq_u16): Likewise.
11823 (vpminq_u32): Likewise.
11824 (vpmin_f32): Likewise.
11825 (vpminq_f32): Likewise.
11826 (vpminq_f64): Likewise.
11827 (vpminqd_f64): Likewise.
11828 (vpmins_f32): Likewise.
11829 (vpminnm_f32): Likewise.
11830 (vpminnmq_f32): Likewise.
11831 (vpminnmq_f64): Likewise.
11832 (vpminnmqd_f64): Likewise.
11833 (vpminnms_f32): Likewise.
11834 (vmla_f32): Likewise.
11835 (vmlaq_f32): Likewise.
11836 (vmlaq_f64): Likewise.
11837 (vmls_f32): Likewise.
11838 (vmlsq_f32): Likewise.
11839 (vmlsq_f64): Likewise.
11840 (vqtbl2_s8): Likewise.
11841 (vqtbl2_u8): Likewise.
11842 (vqtbl2_p8): Likewise.
11843 (vqtbl2q_s8): Likewise.
11844 (vqtbl2q_u8): Likewise.
11845 (vqtbl2q_p8): Likewise.
11846 (vqtbl3_s8): Likewise.
11847 (vqtbl3_u8): Likewise.
11848 (vqtbl3_p8): Likewise.
11849 (vqtbl3q_s8): Likewise.
11850 (vqtbl3q_u8): Likewise.
11851 (vqtbl3q_p8): Likewise.
11852 (vqtbl4_s8): Likewise.
11853 (vqtbl4_u8): Likewise.
11854 (vqtbl4_p8): Likewise.
11855 (vqtbl4q_s8): Likewise.
11856 (vqtbl4q_u8): Likewise.
11857 (vqtbl4q_p8): Likewise.
11858 (vqtbx2_s8): Likewise.
11859 (vqtbx2_u8): Likewise.
11860 (vqtbx2_p8): Likewise.
11861 (vqtbx2q_s8): Likewise.
11862 (vqtbx2q_u8): Likewise.
11863 (vqtbx2q_p8): Likewise.
11864 (vqtbx3_s8): Likewise.
11865 (vqtbx3_u8): Likewise.
11866 (vqtbx3_p8): Likewise.
11867 (vqtbx3q_s8): Likewise.
11868 (vqtbx3q_u8): Likewise.
11869 (vqtbx3q_p8): Likewise.
11870 (vqtbx4_s8): Likewise.
11871 (vqtbx4_u8): Likewise.
11872 (vqtbx4_p8): Likewise.
11873 (vqtbx4q_s8): Likewise.
11874 (vqtbx4q_u8): Likewise.
11875 (vqtbx4q_p8): Likewise.
11876 (vrev16_p8): Likewise.
11877 (vrev16_s8): Likewise.
11878 (vrev16_u8): Likewise.
11879 (vrev16q_p8): Likewise.
11880 (vrev16q_s8): Likewise.
11881 (vrev16q_u8): Likewise.
11882 (vrev32_p8): Likewise.
11883 (vrev32_p16): Likewise.
11884 (vrev32_s8): Likewise.
11885 (vrev32_s16): Likewise.
11886 (vrev32_u8): Likewise.
11887 (vrev32_u16): Likewise.
11888 (vrev32q_p8): Likewise.
11889 (vrev32q_p16): Likewise.
11890 (vrev32q_s8): Likewise.
11891 (vrev32q_s16): Likewise.
11892 (vrev32q_u8): Likewise.
11893 (vrev32q_u16): Likewise.
11894 (vrev64_f32): Likewise.
11895 (vrev64_p8): Likewise.
11896 (vrev64_p16): Likewise.
11897 (vrev64_s8): Likewise.
11898 (vrev64_s16): Likewise.
11899 (vrev64_s32): Likewise.
11900 (vrev64_u8): Likewise.
11901 (vrev64_u16): Likewise.
11902 (vrev64_u32): Likewise.
11903 (vrev64q_f32): Likewise.
11904 (vrev64q_p8): Likewise.
11905 (vrev64q_p16): Likewise.
11906 (vrev64q_s8): Likewise.
11907 (vrev64q_s16): Likewise.
11908 (vrev64q_s32): Likewise.
11909 (vrev64q_u8): Likewise.
11910 (vrev64q_u16): Likewise.
11911 (vrev64q_u32): Likewise.
11912 (vsha1cq_u32): Likewise.
11913 (vsha1mq_u32): Likewise.
11914 (vsha1pq_u32): Likewise.
11915 (vsha1h_u32): Likewise.
11916 (vsha1su0q_u32): Likewise.
11917 (vsha1su1q_u32): Likewise.
11918 (vsha256hq_u32): Likewise.
11919 (vsha256h2q_u32): Likewise.
11920 (vsha256su0q_u32): Likewise.
11921 (vsha256su1q_u32): Likewise.
11922 (vmull_p64): Likewise.
11923 (vmull_high_p64): Likewise.
11924 (vsqrt_f32): Likewise.
11925 (vsqrtq_f32): Likewise.
11926 (vsqrt_f64): Likewise.
11927 (vsqrtq_f64): Likewise.
11928 (vst1_f32): Likewise.
11929 (vst1_f64): Likewise.
11930 (vst1_p8): Likewise.
11931 (vst1_p16): Likewise.
11932 (vst1_p64): Likewise.
11933 (vst1_s8): Likewise.
11934 (vst1_s16): Likewise.
11935 (vst1_s32): Likewise.
11936 (vst1_s64): Likewise.
11937 (vst1_u8): Likewise.
11938 (vst1_u16): Likewise.
11939 (vst1_u32): Likewise.
11940 (vst1_u64): Likewise.
11941 (vst1q_f32): Likewise.
11942 (vst1q_f64): Likewise.
11943 (vst1q_p8): Likewise.
11944 (vst1q_p16): Likewise.
11945 (vst1q_p64): Likewise.
11946 (vst1q_s8): Likewise.
11947 (vst1q_s16): Likewise.
11948 (vst1q_s32): Likewise.
11949 (vst1q_s64): Likewise.
11950 (vst1q_u8): Likewise.
11951 (vst1q_u16): Likewise.
11952 (vst1q_u32): Likewise.
11953 (vst1q_u64): Likewise.
11954 (vst1_s64_x2): Likewise.
11955 (vst1_u64_x2): Likewise.
11956 (vst1_f64_x2): Likewise.
11957 (vst1_s8_x2): Likewise.
11958 (vst1_p8_x2): Likewise.
11959 (vst1_s16_x2): Likewise.
11960 (vst1_p16_x2): Likewise.
11961 (vst1_s32_x2): Likewise.
11962 (vst1_u8_x2): Likewise.
11963 (vst1_u16_x2): Likewise.
11964 (vst1_u32_x2): Likewise.
11965 (vst1_f16_x2): Likewise.
11966 (vst1_f32_x2): Likewise.
11967 (vst1_p64_x2): Likewise.
11968 (vst1q_s8_x2): Likewise.
11969 (vst1q_p8_x2): Likewise.
11970 (vst1q_s16_x2): Likewise.
11971 (vst1q_p16_x2): Likewise.
11972 (vst1q_s32_x2): Likewise.
11973 (vst1q_s64_x2): Likewise.
11974 (vst1q_u8_x2): Likewise.
11975 (vst1q_u16_x2): Likewise.
11976 (vst1q_u32_x2): Likewise.
11977 (vst1q_u64_x2): Likewise.
11978 (vst1q_f16_x2): Likewise.
11979 (vst1q_f32_x2): Likewise.
11980 (vst1q_f64_x2): Likewise.
11981 (vst1q_p64_x2): Likewise.
11982 (vst1_s64_x3): Likewise.
11983 (vst1_u64_x3): Likewise.
11984 (vst1_f64_x3): Likewise.
11985 (vst1_s8_x3): Likewise.
11986 (vst1_p8_x3): Likewise.
11987 (vst1_s16_x3): Likewise.
11988 (vst1_p16_x3): Likewise.
11989 (vst1_s32_x3): Likewise.
11990 (vst1_u8_x3): Likewise.
11991 (vst1_u16_x3): Likewise.
11992 (vst1_u32_x3): Likewise.
11993 (vst1_f16_x3): Likewise.
11994 (vst1_f32_x3): Likewise.
11995 (vst1_p64_x3): Likewise.
11996 (vst1q_s8_x3): Likewise.
11997 (vst1q_p8_x3): Likewise.
11998 (vst1q_s16_x3): Likewise.
11999 (vst1q_p16_x3): Likewise.
12000 (vst1q_s32_x3): Likewise.
12001 (vst1q_s64_x3): Likewise.
12002 (vst1q_u8_x3): Likewise.
12003 (vst1q_u16_x3): Likewise.
12004 (vst1q_u32_x3): Likewise.
12005 (vst1q_u64_x3): Likewise.
12006 (vst1q_f16_x3): Likewise.
12007 (vst1q_f32_x3): Likewise.
12008 (vst1q_f64_x3): Likewise.
12009 (vst1q_p64_x3): Likewise.
12010 (vst2_s64): Likewise.
12011 (vst2_u64): Likewise.
12012 (vst2_f64): Likewise.
12013 (vst2_s8): Likewise.
12014 (vst2_p8): Likewise.
12015 (vst2_s16): Likewise.
12016 (vst2_p16): Likewise.
12017 (vst2_s32): Likewise.
12018 (vst2_u8): Likewise.
12019 (vst2_u16): Likewise.
12020 (vst2_u32): Likewise.
12021 (vst2_f16): Likewise.
12022 (vst2_f32): Likewise.
12023 (vst2_p64): Likewise.
12024 (vst2q_s8): Likewise.
12025 (vst2q_p8): Likewise.
12026 (vst2q_s16): Likewise.
12027 (vst2q_p16): Likewise.
12028 (vst2q_s32): Likewise.
12029 (vst2q_s64): Likewise.
12030 (vst2q_u8): Likewise.
12031 (vst2q_u16): Likewise.
12032 (vst2q_u32): Likewise.
12033 (vst2q_u64): Likewise.
12034 (vst2q_f16): Likewise.
12035 (vst2q_f32): Likewise.
12036 (vst2q_f64): Likewise.
12037 (vst2q_p64): Likewise.
12038 (vst3_s64): Likewise.
12039 (vst3_u64): Likewise.
12040 (vst3_f64): Likewise.
12041 (vst3_s8): Likewise.
12042 (vst3_p8): Likewise.
12043 (vst3_s16): Likewise.
12044 (vst3_p16): Likewise.
12045 (vst3_s32): Likewise.
12046 (vst3_u8): Likewise.
12047 (vst3_u16): Likewise.
12048 (vst3_u32): Likewise.
12049 (vst3_f16): Likewise.
12050 (vst3_f32): Likewise.
12051 (vst3_p64): Likewise.
12052 (vst3q_s8): Likewise.
12053 (vst3q_p8): Likewise.
12054 (vst3q_s16): Likewise.
12055 (vst3q_p16): Likewise.
12056 (vst3q_s32): Likewise.
12057 (vst3q_s64): Likewise.
12058 (vst3q_u8): Likewise.
12059 (vst3q_u16): Likewise.
12060 (vst3q_u32): Likewise.
12061 (vst3q_u64): Likewise.
12062 (vst3q_f16): Likewise.
12063 (vst3q_f32): Likewise.
12064 (vst3q_f64): Likewise.
12065 (vst3q_p64): Likewise.
12066 (vst4_s64): Likewise.
12067 (vst4_u64): Likewise.
12068 (vst4_f64): Likewise.
12069 (vst4_s8): Likewise.
12070 (vst4_p8): Likewise.
12071 (vst4_s16): Likewise.
12072 (vst4_p16): Likewise.
12073 (vst4_s32): Likewise.
12074 (vst4_u8): Likewise.
12075 (vst4_u16): Likewise.
12076 (vst4_u32): Likewise.
12077 (vst4_f16): Likewise.
12078 (vst4_f32): Likewise.
12079 (vst4_p64): Likewise.
12080 (vst4q_s8): Likewise.
12081 (vst4q_p8): Likewise.
12082 (vst4q_s16): Likewise.
12083 (vst4q_p16): Likewise.
12084 (vst4q_s32): Likewise.
12085 (vst4q_s64): Likewise.
12086 (vst4q_u8): Likewise.
12087 (vst4q_u16): Likewise.
12088 (vst4q_u32): Likewise.
12089 (vst4q_u64): Likewise.
12090 (vst4q_f16): Likewise.
12091 (vst4q_f32): Likewise.
12092 (vst4q_f64): Likewise.
12093 (vst4q_p64): Likewise.
12094 (vtbx4_s8): Likewise.
12095 (vtbx4_u8): Likewise.
12096 (vtbx4_p8): Likewise.
12097 (vtrn_f32): Likewise.
12098 (vtrn_p8): Likewise.
12099 (vtrn_p16): Likewise.
12100 (vtrn_s8): Likewise.
12101 (vtrn_s16): Likewise.
12102 (vtrn_s32): Likewise.
12103 (vtrn_u8): Likewise.
12104 (vtrn_u16): Likewise.
12105 (vtrn_u32): Likewise.
12106 (vtrnq_f32): Likewise.
12107 (vtrnq_p8): Likewise.
12108 (vtrnq_p16): Likewise.
12109 (vtrnq_s8): Likewise.
12110 (vtrnq_s16): Likewise.
12111 (vtrnq_s32): Likewise.
12112 (vtrnq_u8): Likewise.
12113 (vtrnq_u16): Likewise.
12114 (vtrnq_u32): Likewise.
12115 (vrsqrte_f16): Likewise.
12116 (vrsqrteq_f16): Likewise.
12117 (vsqrt_f16): Likewise.
12118 (vsqrtq_f16): Likewise.
12119 (vabd_f16): Likewise.
12120 (vabdq_f16): Likewise.
12121 (vpadd_f16): Likewise.
12122 (vpaddq_f16): Likewise.
12123 (vpmax_f16): Likewise.
12124 (vpmaxq_f16): Likewise.
12125 (vpmaxnm_f16): Likewise.
12126 (vpmaxnmq_f16): Likewise.
12127 (vpmin_f16): Likewise.
12128 (vpminq_f16): Likewise.
12129 (vpminnm_f16): Likewise.
12130 (vpminnmq_f16): Likewise.
12131 (vrsqrts_f16): Likewise.
12132 (vrsqrtsq_f16): Likewise.
12133
12134 2019-09-25 Richard Biener <rguenther@suse.de>
12135
12136 PR tree-optimization/91896
12137 * tree-vect-loop.c (vectorizable_reduction): The single
12138 def-use cycle optimization cannot apply when there's more
12139 than one pattern stmt involved.
12140
12141 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12142
12143 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12144 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12145 (reload_macho_picbase_<mode>): Likewise.
12146
12147 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12148
12149 * config/rs6000/rs6000.md: Move darwin.md include until
12150 after the definition of the mode iterators.
12151
12152 2019-09-23 Martin Sebor <msebor@redhat.com>
12153
12154 PR tree-optimization/91570
12155 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12156 non-constant minlen, maxlen and maxbound.
12157
12158 2019-09-24 Richard Biener <rguenther@suse.de>
12159
12160 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12161 Rename to...
12162 (_stmt_vec_info::cond_reduc_code): ... this.
12163 (_stmt_vec_info::induc_cond_initial_val): Add.
12164 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12165 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12166 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12167 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12168 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12169 the reduction code.
12170 (vect_create_epilog_for_reduction): Drop special
12171 induction condition reduction params, pass in reduction code
12172 and simplify.
12173 (vectorizable_reduction): Perform condition reduction kind
12174 selection only at analysis time. Adjust passing on state.
12175
12176 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12177
12178 * config/aarch64/aarch64.md (mov<mode>): Don't call
12179 aarch64_split_dimode_const_store on volatile MEM.
12180
12181 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12182
12183 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12184 Update hwcap string for fp16fml.
12185
12186 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12187
12188 PR middle-end/91866
12189 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12190 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12191
12192 2019-09-24 Martin Liska <mliska@suse.cz>
12193
12194 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12195 instead of if-elseif-elseif-...
12196 * gimple-expr.c (extract_ops_from_tree): Likewise.
12197 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12198 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12199
12200 2019-09-24 Martin Jambor <mjambor@suse.cz>
12201
12202 PR ipa/91831
12203 * ipa-param-manipulation.c (carry_over_param): Make a method of
12204 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12205 in case of a context mismatch.
12206 (ipa_param_body_adjustments::common_initialization): Adjust call to
12207 carry_over_param.
12208 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12209 private method carry_over_param.
12210
12211 2019-09-24 Martin Jambor <mjambor@suse.cz>
12212
12213 PR ipa/91832
12214 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12215
12216 2019-09-24 Richard Biener <rguenther@suse.de>
12217
12218 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12219 base.
12220
12221 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12222
12223 * config/arm/t-arm (arm-builtins.o): Add dependency on
12224 arm_acle_builtins.def.
12225
12226 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12227
12228 PR target/91823
12229 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12230 canonical CONST_INTs. Use gen_rtvec.
12231
12232 2019-09-23 Richard Biener <rguenther@suse.de>
12233
12234 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12235 avoid adjusting by + 0 or * 1.
12236 (vect_create_epilog_for_reduction): Get reduction code only
12237 when necessary. Deal with adjustment_def only when necessary.
12238
12239 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12240
12241 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12242 memmodel index.
12243
12244 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12245
12246 PR ipa/91835
12247 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12248 "ipa-sra".
12249
12250 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12251
12252 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12253 code. Merge code blocks with common conditionals. Use declared
12254 macro instead of a magic number for PIC level.
12255
12256 2019-09-21 Martin Sebor <msebor@redhat.com>
12257
12258 PR middle-end/91830
12259 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12260 Simplify computation of the offset of the referenced subobject.
12261
12262 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12263
12264 * config/darwin.c (machopic_legitimize_pic_address): Check
12265 for lra not reload.
12266
12267 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12268
12269 * ira-conflicts.c (can_use_same_reg_p): New function.
12270 (process_reg_shuffles): Take an insn parameter. Ignore cases
12271 in which input operand op_num could seemingly never be allocated
12272 to the same register as the destination.
12273 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12274
12275 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12276
12277 * simplify-rtx.c (neg_const_int): Replace with...
12278 (neg_poly_int_rtx): ...this new function.
12279 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12280 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12281 (simplify_plus_minus): Likewise for constant terms here.
12282
12283 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12284
12285 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12286 HOST_WIDE_PRINT_UNSIGNED.
12287
12288 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12289
12290 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12291 character.
12292
12293 2019-09-20 Maya Rashish <coypu@sdf.org>
12294
12295 PR target/86811
12296 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12297 Define to speculation_safe_value_not_needed.
12298
12299 2019-09-20 Richard Biener <rguenther@suse.de>
12300 Uros Bizjak <ubizjak@gmail.com>
12301
12302 PR target/91814
12303 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12304 previous change.
12305 (general_scalar_chain::convert_op): Force not suitable memory
12306 operands to a register.
12307
12308 2019-09-20 Richard Biener <rguenther@suse.de>
12309
12310 PR tree-optimization/91821
12311 * tree-vect-loop.c (check_reduction_path): Check we can compute
12312 reduc_idx.
12313 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12314 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12315 operands in canonical order.
12316 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12317 STMT_VINFO_REDUC_IDX.
12318 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12319 (STMT_VINFO_REDUC_IDX): Likewise.
12320
12321 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12322
12323 PR target/91269
12324 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12325
12326 2019-09-20 Richard Biener <rguenther@suse.de>
12327
12328 PR tree-optimization/91822
12329 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12330 parameter.
12331 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12332 for reduc_index in nested cycles, adjust vectorizable_condition
12333 calls.
12334 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12335 parameter.
12336 (vect_analyze_stmt): Adjust.
12337 (vect_transform_stmt): Likewise.
12338
12339 2019-09-20 Richard Biener <rguenther@suse.de>
12340
12341 PR target/91767
12342 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12343 Ensure there's a sequence point between allocating the new register
12344 and passing a reference to a reg via regno_reg_rtx.
12345
12346 2019-09-20 Martin Jambor <mjambor@suse.cz>
12347
12348 * coretypes.h (cgraph_edge): Declare.
12349 * ipa-param-manipulation.c: Rewrite.
12350 * ipa-param-manipulation.h: Likewise.
12351 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12352 (OBJS): Added ipa-sra.o.
12353 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12354 and ref_p, added fields param_adjustments and performed_splits.
12355 (struct cgraph_clone_info): Remove ags_to_skip and
12356 combined_args_to_skip, new field param_adjustments.
12357 (cgraph_node::create_clone): Changed parameters to use
12358 ipa_param_adjustments.
12359 (cgraph_node::create_virtual_clone): Likewise.
12360 (cgraph_node::create_virtual_clone_with_body): Likewise.
12361 (tree_function_versioning): Likewise.
12362 (cgraph_build_function_type_skip_args): Removed.
12363 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12364 using ipa_param_adjustments.
12365 (clone_of_p): Likewise.
12366 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12367 (build_function_decl_skip_args): Likewise.
12368 (duplicate_thunk_for_node): Adjust parameters using
12369 ipa_param_body_adjustments, copy param_adjustments instead of
12370 args_to_skip.
12371 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12372 (cgraph_node::create_virtual_clone): Likewise.
12373 (cgraph_node::create_version_clone_with_body): Likewise.
12374 (cgraph_materialize_clone): Likewise.
12375 (symbol_table::materialize_all_clones): Likewise.
12376 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12377 ipa_replace_map check.
12378 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12379 (initialize_node_lattices): Make aware that some parameters might have
12380 already been removed.
12381 (want_remove_some_param_p): New function.
12382 (create_specialized_node): Convert to using ipa_param_adjustments and
12383 deal with possibly pre-existing adjustments.
12384 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12385 (output_node_opt_summary): Do not stream removed fields. Stream
12386 parameter adjustments instead of argumetns to skip.
12387 (input_node_opt_summary): Likewise.
12388 (input_node_opt_summary): Likewise.
12389 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12390 * lto-streamer.h (lto_section_type): Likewise.
12391 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12392 param_body_adjs.
12393 (copy_decl_to_var): Declare.
12394 * tree-inline.c (update_clone_info): Do not remap old_tree.
12395 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12396 statements, walk all extra generated statements and remap their
12397 operands.
12398 (redirect_all_calls): Add killed SSA names to a hash set.
12399 (remap_ssa_name): Do not remap killed SSA names.
12400 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12401 half of functionality moved to ipa_param_body_adjustments.
12402 (copy_decl_to_var): Make exported.
12403 (copy_body): Destroy killed_new_ssa_names hash set.
12404 (expand_call_inline): Remap performed splits.
12405 (update_clone_info): Likewise.
12406 (tree_function_versioning): Simplify tree_map processing. Updated to
12407 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12408 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12409 for the new interface.
12410 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12411 (simd_clone_compute_base_data_type): Likewise.
12412 (simd_clone_init_simd_arrays): Adjust for the new interface.
12413 (simd_clone_adjust_argument_types): Likewise.
12414 (struct modify_stmt_info): Likewise.
12415 (ipa_simd_modify_stmt_ops): Likewise.
12416 (ipa_simd_modify_function_body): Likewise.
12417 (simd_clone_adjust): Likewise.
12418 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12419 (type_internals_preclude_sra_p): Make public.
12420 * tree-sra.h: New file.
12421 * ipa-inline-transform.c (save_inline_function_body): Update to
12422 refelct new tree_function_versioning signature.
12423 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12424 ipa_param_adjustments to get current parameter indices.
12425 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12426 (ipcp_update_bits): Likewise.
12427 (ipcp_update_vr): Likewise.
12428 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12429 * ipa-sra.c: New file.
12430 * multiple_target.c (create_target_clone): Update to reflet new type
12431 of create_version_clone_with_body.
12432 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12433 tree_function_versioning.
12434 (modify_function): Update to reflect new type of
12435 tree_function_versioning.
12436 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12437 * passes.def: Remove old IPA-SRA and add new one.
12438 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12439 (make_pass_ipa_sra): Declare.
12440 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12441 ipa_sra_retvalues.
12442 * doc/invoke.texi (ipa-sra-max-replacements): New.
12443
12444 2019-09-19 Martin Sebor <msebor@redhat.com>
12445
12446 PR middle-end/91631
12447 * builtins.c (component_size): Correct trailing array computation,
12448 rename to component_ref_size and move...
12449 (compute_objsize): Adjust.
12450 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12451 (builtin_access::strict): Do not consider memmove.
12452 (builtin_access::write_off): New function.
12453 (builtin_memref::builtin_memref): Initialize refsize.
12454 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12455 refsize.
12456 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12457 Handle refsize.
12458 (builtin_access::builtin_access): Initialize dstoff to destination
12459 refeence offset here instead of in maybe_diag_overlap. Adjust
12460 referencess even to unrelated objects. Adjust sizrange of bounded
12461 string functions to reflect bound. For strcat, adjust destination
12462 sizrange by that of source.
12463 (builtin_access::strcat_overlap): Adjust offsets and sizes
12464 to reflect the increase in destination sizrange above.
12465 (builtin_access::overlap): Do not set dstoff here but instead
12466 in builtin_access::builtin_access.
12467 (check_bounds_or_overlap): Use builtin_access::write_off.
12468 (maybe_diag_access_bounds): Add argument. Add informational notes.
12469 (dump_builtin_memref, dump_builtin_access): New functions.
12470 * tree.c (component_ref_size): ...to here.
12471 * tree.h (component_ref_size): Declare.
12472 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12473 nul in the size of the source string.
12474
12475 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12476
12477 PR c/67224
12478 * doc/cpp.texi: Document support for extended characters in
12479 identifiers.
12480 * doc/cppopts.texi: Likewise.
12481
12482 2019-09-19 Richard Biener <rguenther@suse.de>
12483
12484 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12485 (check_reduction_path): New overload having the path as result.
12486 (vect_is_simple_reduction): From the detected reduction
12487 path build a SLP reduction chain if possible.
12488
12489 2019-09-19 Richard Biener <rguenther@suse.de>
12490
12491 PR target/91814
12492 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12493 Force operand to a register if it isn't nonimmediate_operand.
12494
12495 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12496
12497 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12498 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12499 (logical_op): Remove code attribute.
12500 (logical_OP): Likewise.
12501
12502 2019-09-19 Martin Liska <mliska@suse.cz>
12503
12504 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12505 Use proper casting.
12506
12507 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12508
12509 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12510 registers with %R.
12511
12512 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12513 for NE comparison of TImode values.
12514 (aarch64_emit_load_exclusive): Add support for TImode.
12515 (aarch64_emit_store_exclusive): Likewise.
12516 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12517 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12518 Change iterator from ALLI to ALLI_TI.
12519 (@atomic_compare_and_swap<JUST_TI>): New.
12520 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12521 (aarch64_load_exclusive_pair): New.
12522 (aarch64_store_exclusive_pair): New.
12523 * config/aarch64/iterators.md (JUST_TI): New.
12524
12525 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12526 strong_zero_p for aarch64_track_speculation; unify some code paths;
12527 use aarch64_gen_compare_reg instead of open-coding.
12528
12529 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12530 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12531 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12532 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12533 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12534 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12535 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12536 (atomic_<atomic_op><ALLI>): Likewise.
12537 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12538 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12539 * doc/invoke.texi: Document -moutline-atomics.
12540
12541 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12542
12543 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12544 trivial predicate for condition branch.
12545 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12546 for switch case.
12547 (compute_bb_predicates): Update predicate based on post-dominating
12548 relationship.
12549 (analyze_function_body): Calculate post-dominating information.
12550
12551 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12552
12553 * tree-vectorizer.h (vectorizable_condition): Take an int
12554 reduction index instead of a boolean flag.
12555 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12556 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12557 reductions if the reduction accumulator is the "then" rather
12558 than the "else" value.
12559 (vect_analyze_stmt): Update call accordingly.
12560 (vect_transform_stmt): Likewise.
12561 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12562 asserting that the index is > 0.
12563
12564 2019-09-19 Martin Liska <mliska@suse.cz>
12565
12566 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12567 (sort_congruence_classes_by_decl_uid): Likewise.
12568 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12569 easier sorting.
12570 (sem_item_optimizer::merge_classes): Likewise.
12571
12572 2019-09-19 Richard Biener <rguenther@suse.de>
12573
12574 PR tree-optimization/91812
12575 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12576 volatile loads.
12577
12578 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12579
12580 * defaults.h (TARGET_UNIT): New macro.
12581 (target_unit): New type.
12582 * rtl.h (native_encode_rtx, native_decode_rtx)
12583 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12584 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12585 * rtlanal.c (subreg_lsb_1): Delete.
12586 (subreg_size_lsb): New function.
12587 * simplify-rtx.c: Include rtx-vector-builder.h
12588 (simplify_immed_subreg): Delete.
12589 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12590 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12591 functions.
12592 (simplify_subreg): Use them.
12593 (test_vector_subregs_modes, test_vector_subregs_repeating)
12594 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12595 (test_vector_subregs): New functions.
12596 (test_vector_ops): Call test_vector_subregs for integer vector
12597 modes with at least 2 elements.
12598
12599 2019-09-19 Richard Biener <rguenther@suse.de>
12600
12601 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12602 LOOP_VINFO_OPERANDS_SWAPPED.
12603 (parloops_is_simple_reduction): Likewise.
12604 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12605 initialize operands_swapped.
12606 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12607 (vect_is_slp_reduction): Do not swap operands.
12608 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12609 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12610
12611 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12612
12613 PR target/87007
12614 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12615 Add avx_partial_xmm_update.
12616
12617 2019-09-18 Jim Wilson <jimw@sifive.com>
12618
12619 PR target/91683
12620 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12621 (riscv_move_integer): Likewise.
12622 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12623 riscv_move_integer arg.
12624 (riscv_legitimize_move): Likewise.
12625 (riscv_force_temporary): New parameter in_splitter. Don't call
12626 force_reg if true.
12627 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12628 arg.
12629 (riscv_add_offset): Likewise.
12630 (riscv_split_symbol): New parameter in_splitter. Pass to
12631 riscv_force_temporary.
12632 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12633 arg.
12634 (riscv_move_integer): New parameter in_splitter. New local
12635 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12636 in_splitter TRUE.
12637 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12638 riscv_split_symbol, and riscv_force_temporary args.
12639 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12640 riscv_move_integer arg.
12641 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12642
12643 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12644
12645 PR target/90878
12646 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12647 hard register store cost to 6.
12648
12649 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12650
12651 PR target/91446
12652 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12653 pseudo register store cost from 3 to 6 to make it the same as
12654 QImode and HImode.
12655
12656 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12657
12658 PR target/91738
12659 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12660 (one_cmpldi2): Likewise.
12661 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12662 of the constant parts is simple.
12663 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12664 (logical_op): Add new code attribute.
12665 (logical_OP): Likewise.
12666 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12667 (arm_iordi_operand): Add predicate.
12668 (arm_xordi_operand): Add predicate.
12669
12670 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12671
12672 * config/arm/arm.md (maddsidi4): Remove expander.
12673 (mulsidi3adddi): Remove pattern.
12674 (mulsidi3adddi_v6): Likewise.
12675 (mulsidi3_nov6): Likewise.
12676 (mulsidi3_v6): Likewise.
12677 (umulsidi3): Remove expander.
12678 (umulsidi3_nov6): Remove pattern.
12679 (umulsidi3_v6): Likewise.
12680 (umulsidi3adddi): Likewise.
12681 (umulsidi3adddi_v6): Likewise.
12682 (<Us>mulsidi3): Add combined expander.
12683 (<Us>maddsidi4): Likewise.
12684 (<US>mull): Add combined umull and smull pattern.
12685 (<US>mlal): Likewise.
12686 * config/arm/iterators.md (Us): Add new iterator.
12687
12688 2019-09-18 Richard Biener <rguenther@suse.de>
12689
12690 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12691 swapping.
12692 (vectorize_fold_left_reduction): Remove assert.
12693 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12694 operand in position 2. Remove assert.
12695
12696 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12697
12698 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12699 (smulsi3_highpart_nov6): Remove pattern.
12700 (smulsi3_highpart_v6): Likewise.
12701 (umulsi3_highpart): Likewise.
12702 (umulsi3_highpart_nov6): Likewise.
12703 (umulsi3_highpart_v6): Likewise.
12704 (<US>mull_high): Add new combined multiply pattern.
12705
12706 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12707
12708 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12709 (arm_mulsi3_v6): Likewise.
12710 (mulsi3addsi_v6): Likewise.
12711 (mulsi3subsi): Likewise.
12712 (mul): Add new multiply pattern.
12713 (mla): Likewise.
12714 (mls): Likewise.
12715
12716 2019-09-18 Richard Biener <rguenther@suse.de>
12717
12718 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12719 (parloops_valid_reduction_input_p): Copy from
12720 valid_reduction_input_p.
12721 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12722 (parloops_needs_fold_left_reduction_p): Copy from
12723 needs_fold_left_reduction_p.
12724 (parloops_is_simple_reduction): Copy from
12725 vect_is_simple_reduction.
12726 (parloops_force_simple_reduction): Copy from
12727 vect_force_simple_reduction.
12728 (gather_scalar_reductions): Adjust.
12729 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12730 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12731
12732 2019-09-18 Richard Biener <rguenther@suse.de>
12733
12734 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12735 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12736 static.
12737 (vect_create_epilog_for_reduction): Remove dead code.
12738
12739 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12740
12741 * varasm.c (assemble_real): Generate canonical const_ints.
12742
12743 2019-09-18 Richard Biener <rguenther@suse.de>
12744
12745 PR lto/91763
12746 * lto-streamer-in.c (input_eh_regions): Move EH init to
12747 lto_materialize_function.
12748 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12749 Likewise.
12750
12751 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12752
12753 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12754 are INTEGER_CSTs.
12755
12756 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12757
12758 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12759 of checking specifically for INTEGER_CST.
12760
12761 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12762
12763 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12764 sizes instead of uhwi sizes.
12765
12766 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12767
12768 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12769 (add_const_value_attribute): Handle CONST_POLY_INT.
12770
12771 2019-09-18 Martin Liska <mliska@suse.cz>
12772
12773 * dbgcnt.def (store_merging): New counter.
12774 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12775 Use it in store merging.
12776
12777 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12778
12779 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12780 function.
12781 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12782 * config/arm/arm.c (arm_sched_variable_issue): New function.
12783 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12784
12785 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12786
12787 * config/arm/types.md (no_reservation): New reservation.
12788 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12789 no_insn here.
12790 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12791 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12792 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12793 * config/arm/arm1020e.md (1020alu_op): Likewise.
12794 * config/arm/arm1026ejs.md (alu_op): Likewise.
12795 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12796 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12797 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12798 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12799 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12800 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12801 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12802 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12803 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12804 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12805 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12806 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12807 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12808 * config/arm/fa526.md (526_alu_op): Likewise.
12809 * config/arm/fa606te.md (606te_alu_op): Likewise.
12810 * config/arm/fa626te.md (626te_alu_op): Likewise.
12811 * config/arm/fa726te.md (726te_alu_op): Likewise.
12812 * config/arm/xgene1.md (xgene1_nop): Likewise.
12813
12814 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12815
12816 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12817 "no_insn" to "branch".
12818
12819 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12820
12821 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12822
12823 2019-09-17 Richard Biener <rguenther@suse.de>
12824
12825 PR debug/91772
12826 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12827 was missing generate locations only once.
12828
12829 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12830
12831 PR ipa/91089
12832 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12833 option.
12834 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12835 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12836 for switch default case using range analysis information.
12837
12838 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12839
12840 PR target/91749
12841 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12842 mode attributed is supported by FDPIC.
12843
12844 2019-09-17 Richard Biener <rguenther@suse.de>
12845
12846 PR tree-optimization/91790
12847 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12848 use the correct DR for setting up realignment.
12849
12850 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12851
12852 PR target/91719
12853 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12854 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12855 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12856 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12857
12858 2019-09-16 Jason Merrill <jason@redhat.com>
12859
12860 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12861
12862 2019-09-16 Martin Liska <mliska@suse.cz>
12863
12864 * gimple-fold.c (or_comparisons_1): Remove rules moved
12865 to ...
12866 * match.pd: ... here.
12867
12868 2019-09-16 Martin Liska <mliska@suse.cz>
12869
12870 * gimple-fold.c (or_comparisons_1): Remove rules
12871 moved to ...
12872 * match.pd: ... here.
12873
12874 2019-09-16 Martin Liska <mliska@suse.cz>
12875
12876 * genmatch.c (dt_node::append_simplify): Do not print
12877 warning when we have duplicate patterns belonging
12878 to a same simplify rule.
12879 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12880 (maybe_fold_comparisons_from_match_pd): Handle
12881 tcc_comparison as a results.
12882 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12883
12884 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12885 Qi Feng <ffengqi@linux.ibm.com>
12886
12887 PR middle-end/88784
12888 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12889 (x > y && x == XXX_MIN): Optimize into 'false'.
12890 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12891 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12892 (x < y && x == XXX_MAX): Optimize into 'false'.
12893 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12894 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12895 (x <= y || x != XXX_MIN): Optimize into 'true'.
12896 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12897 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12898 (x >= y || x != XXX_MAX): Optimize into 'true'.
12899 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12900
12901 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12902 Martin Liska <mliska@suse.cz>
12903
12904 * gimple-fold.c (and_comparisons_1): Add type as first
12905 argument.
12906 (and_var_with_comparison): Likewise.
12907 (and_var_with_comparison_1): Likewise.
12908 (or_comparisons_1): Likewise.
12909 (or_var_with_comparison): Likewise.
12910 (or_var_with_comparison_1): Likewise.
12911 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12912 (maybe_fold_or_comparisons): Likewise.
12913 (maybe_fold_comparisons_from_match_pd): New.
12914 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12915 (maybe_fold_or_comparisons): Likewise.
12916 * gimple.c (gimple_size): Make it public and add num_ops argument.
12917 (gimple_init): New function.
12918 (gimple_alloc): Call gimple_init.
12919 * gimple.h (gimple_size): New.
12920 (gimple_init): Likewise.
12921 * tree-if-conv.c (fold_or_predicates): Pass type.
12922 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12923 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12924 (optimize_vec_cond_expr): Likewise.
12925 (ovce_extract_ops): Return type of conditional expression.
12926 * tree-ssanames.c (init_ssa_name_imm_use): New.
12927 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12928 * tree-ssanames.h (init_ssa_name_imm_use): New.
12929
12930 2019-09-16 Richard Biener <rguenther@suse.de>
12931
12932 PR tree-optimization/91756
12933 PR tree-optimization/87132
12934 * tree-ssa-alias.h (enum translate_flags): New.
12935 (get_continuation_for_phi): Use it instead of simple bool flag.
12936 (walk_non_aliased_vuses): Likewise.
12937 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12938 (get_continuation_for_phi): When looking across backedges only
12939 disallow valueization.
12940 (walk_non_aliased_vuses): Adjust.
12941 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12942 if requested.
12943
12944 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12945
12946 PR middle-end/80791
12947 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12948 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12949 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12950 * target.def (have_count_reg_decr_p): New hook.
12951 (doloop_cost_for_generic): Likewise.
12952 (doloop_cost_for_address): Likewise.
12953 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12954 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12955 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12956 * doc/tm.texi: Regenerate.
12957 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12958 addend.
12959 (record_group): Init doloop_p.
12960 (add_candidate_1): Add optional argument doloop, change the handlings
12961 accordingly.
12962 (add_candidate): Likewise.
12963 (generic_predict_doloop_p): Update attribute.
12964 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12965 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12966 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12967 MIN_EXPR.
12968 (get_computation_cost): Update for doloop IV cand extra cost.
12969 (determine_group_iv_cost_cond): Update for doloop IV cand.
12970 (determine_iv_cost): Likewise.
12971 (ivopts_estimate_reg_pressure): Likewise.
12972 (may_eliminate_iv): Update handlings for doloop IV cand.
12973 (add_iv_candidate_for_doloop): New function.
12974 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12975 (iv_ca_set_no_cp): Update for doloop IV cand.
12976 (iv_ca_set_cp): Likewise.
12977 (iv_ca_dump): Dump register cost.
12978 (find_doloop_use): New function.
12979 (analyze_and_mark_doloop_use): Likewise.
12980 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12981
12982 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12983
12984 PR middle-end/91708
12985 * cse.c (cse_insn): Do not replace anything with a
12986 MEM.
12987
12988 2019-09-13 Ian Lance Taylor <iant@golang.org>
12989
12990 * doc/invoke.texi (Optimize Options): Fix typo.
12991
12992 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12993
12994 PR tree-optimization/89386
12995 * config/i386/sse.md (smulhrs<mode>3): New expander.
12996 (smulhrsv4hi3): Ditto.
12997
12998 2019-09-12 Richard Biener <rguenther@suse.de>
12999
13000 PR tree-optimization/91750
13001 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13002 in the type of the evolution.
13003
13004 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13005
13006 PR tree-optimization/89386
13007 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13008 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13009 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13010 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13011 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13012 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13013 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13014 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13015 (su, r): Handle the unspecs above.
13016 (bt): New int attribute.
13017 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13018 * internal-fn.c (first_commutative_argument): Commutativity info for
13019 above.
13020 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13021 (umulhrs_optab): New optabs.
13022 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13023 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13024 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13025 function.
13026 (vect_vect_recog_func_ptrs): Add it.
13027
13028 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13029
13030 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13031 code.
13032
13033 2019-09-11 Nathan Sidwell <nathan@acm.org>
13034
13035 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13036 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13037
13038 2019-09-11 Richard Biener <rguenther@suse.de>
13039
13040 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13041 * lto-wrapper.c (merge_and_complain): Pick up -g.
13042 (append_compiler_options): Likewise.
13043 (run_gcc): Re-instantiate handling -g0 at link-time.
13044 * doc/invoke.texi (flto): Document debug info generation.
13045
13046 2019-09-11 Richard Biener <rguenther@suse.de>
13047
13048 PR tree-optimization/90387
13049 * vr-values.c (vr_values::extract_range_basic): After inlining
13050 simplify non-constant __builtin_constant_p to false.
13051
13052 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13053
13054 PR rtl-optimization/89795
13055 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13056 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13057
13058 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13059
13060 PR tree-optimization/91723
13061 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13062 instead of pointer equality when checking if argument vectypes are
13063 the same.
13064
13065 PR middle-end/91725
13066 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13067 of get_nonzero_bits, only call it for integral types.
13068
13069 2019-09-11 Richard Biener <rguenther@suse.de>
13070
13071 Revert
13072 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13073
13074 * match.pd: Add flag_unsafe_math_optimizations check
13075 before deciding on the widest type in a binary math operation.
13076
13077 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13078
13079 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13080 and CALL_REALLY_USED_REGISTERS must be defined, and that
13081 CALL_REALLY_USED_REGISTERS is preferred.
13082 * doc/tm.texi: Regenerate.
13083 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13084 (call_really_used_regs): Likewise.
13085 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13086 CALL_REALLY_USED_REGISTERS are defined.
13087 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13088 initial value if defined.
13089 (initial_call_really_used_regs): Delete.
13090 (saved_call_really_used_regs): Likewise.
13091 (CALL_REALLY_USED_REGNO_P): Likewise.
13092 (init_reg_sets): Remove handling of call_really_used_regs.
13093 (save_register_info, restore_register_info, globalize_reg): Likewise.
13094 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13095 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13096 outside operand_reg_set.
13097 (fix_register): Don't change call_used_regs if
13098 CALL_REALLY_USED_REGISTERS is defined.
13099 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13100 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13101 instead of call_really_used_regs.
13102 (csky_conditional_register_usage): Remove the old handling of
13103 call_used_regs and change the handling of call_really_used_regs
13104 to use call_used_regs instead.
13105 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13106 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13107 making a register fixed.
13108 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13109 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13110 instead of call_really_used_regs.
13111 (m32r_conditional_register_usage): Don't set call_used_regs when
13112 making a register fixed.
13113 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13114 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13115 instead of call_really_used_regs.
13116 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13117 (mips_cfun_call_saved_reg_p): Likewise.
13118 (mips_swap_registers): Remove the old handling of call_used_regs
13119 and change the handling of call_really_used_regs to use call_used_regs
13120 instead.
13121 (mips_conditional_register_usage): Likewise.
13122 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13123 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13124 instead of call_really_used_regs.
13125 (mn10300_get_live_callee_saved_regs): Likewise.
13126 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13127 (mn10300_conditional_register_usage): Don't set call_used_regs when
13128 making a register fixed.
13129 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13130 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13131 Remove the old handling of call_used_regs and change the handling
13132 of call_really_used_regs to use call_used_regs instead.
13133 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13134 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13135 instead of call_really_used_regs.
13136 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13137 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13138 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13139 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13140 (s390_conditional_register_usage): Remove the old handling of
13141 call_used_regs and change the handling of call_really_used_regs
13142 to use call_used_regs instead.
13143 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13144 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13145 (sh_fix_range, reg_unused_after): Likewise.
13146 (sh_conditional_register_usage): Remove the old handling of
13147 call_used_regs and change the handling of call_really_used_regs
13148 to use call_used_regs instead.
13149 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13150 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13151 call_used_regs when making a register fixed.
13152 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13153 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13154 call_used_regs when making a register fixed.
13155 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13156 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13157 set call_used_regs when making a register fixed.
13158 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13159 * config/visium/visium.c (visium_conditional_register_usage): Remove
13160 the old handling of call_used_regs and change the handling of
13161 call_really_used_regs to use call_used_regs instead.
13162
13163 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13164
13165 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13166 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13167 * reginfo.c (call_used_regs): New macro.
13168
13169 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13170
13171 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13172 fixed_regs test.
13173 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13174 (bpf_expand_epilogue): Likewise.
13175 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13176 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13177 (ft32_expand_epilogue): Likewise.
13178 * config/i386/i386.c (ix86_save_reg): Likewise.
13179 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13180 (moxie_expand_epilogue): Likewise.
13181 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13182 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13183 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13184
13185 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13186
13187 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13188 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13189 instead of testing call_used_regs directly.
13190 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13191 (aarch64_components_for_bb): Likewise.
13192 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13193 * config/arc/arc.c (arc_must_save_register): Likewise.
13194 (arc_epilogue_uses): Likewise.
13195 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13196 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13197 (arm_compute_save_reg0_reg12_mask): Likewise.
13198 (arm_compute_save_core_reg_mask): Likewise.
13199 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13200 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13201 (cmse_nonsecure_entry_clear_before_return): Likewise.
13202 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13203 (arm_expand_epilogue): Likewise.
13204 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13205 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13206 (_reg_unused_after): Likewise.
13207 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13208 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13209 (add_to_reg, hwloop_optimize): Likewise.
13210 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13211 (bpf_expand_epilogue): Likewise.
13212 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13213 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13214 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13215 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13216 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13217 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13218 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13219 * config/frv/frv.c (frv_stack_info): Likewise.
13220 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13221 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13222 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13223 (move_callee_saved_registers): Likewise.
13224 * config/h8300/h8300.c (byte_reg): Likewise.
13225 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13226 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13227 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13228 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13229 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13230 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13231 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13232 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13233 * config/m32c/m32c.c (need_to_save): Likewise.
13234 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13235 * config/mcore/mcore.c (calc_live_regs): Likewise.
13236 * config/microblaze/microblaze.c (microblaze_must_save_register):
13237 Likewise.
13238 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13239 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13240 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13241 (mmix_expand_epilogue): Likewise.
13242 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13243 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13244 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13245 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13246 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13247 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13248 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13249 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13250 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13251 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13252 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13253 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13254 * config/rl78/rl78.c (need_to_save): Likewise.
13255 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13256 (rs6000_stack_info, generate_set_vrsave): Likewise.
13257 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13258 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13259 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13260 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13261 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13262 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13263 (save_local_or_in_reg_p): Likewise.
13264 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13265 (xstormy16_epilogue_uses): Likewise.
13266 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13267 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13268 * config/v850/v850.c (compute_register_save_size): Likewise.
13269 * config/vax/vax.c (vax_expand_prologue): Likewise.
13270 * config/visium/visium.c (visium_save_reg_p): Likewise.
13271 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13272 * cselib.c (cselib_process_insn): Likewise.
13273 * df-scan.c (df_get_entry_block_def_set): Likewise.
13274 * function.c (aggregate_value_p): Likewise.
13275 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13276 * ira-lives.c (process_bb_node_lives): Likewise.
13277 * ira.c (do_reload): Likewise.
13278 * lra-lives.c (process_bb_lives): Likewise.
13279 * lra-remat.c (lra_remat): Likewise.
13280 * lra.c (lra): Likewise.
13281 * postreload.c (reload_combine_recognize_pattern): Likewise.
13282 (reload_cse_move2add): Likewise.
13283 * recog.c (peep2_find_free_register): Likewise.
13284 * regrename.c (check_new_reg_p): Likewise.
13285 * reload.c (find_equiv_reg): Likewise.
13286 * reload1.c (reload, find_reg): Likewise.
13287 * sel-sched.c (init_hard_regs_data): Likewise.
13288
13289 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13290
13291 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13292 regs_invalidated_by_call & ~fixed_reg_set instead of
13293 call_used_or_fixed_regs & ~fixed_reg_set.
13294 * config/sh/sh.c (output_stack_adjust): Likewise.
13295
13296 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13297
13298 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13299 (call_used_reg_set): Delete.
13300 (call_used_or_fixed_regs): New macro.
13301 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13302 of call_used_reg_set.
13303 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13304 instead of call_used_regs.
13305 (save_call_clobbered_regs): Likewise.
13306 * cfgcleanup.c (old_insns_match_p): Likewise.
13307 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13308 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13309 Likewise.
13310 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13311 * config/sh/sh.c (output_stack_adjust): Likewise.
13312 * final.c (collect_fn_hard_reg_usage): Likewise.
13313 * ira-build.c (ira_build): Likewise.
13314 * ira-color.c (calculate_saved_nregs): Likewise.
13315 (allocno_reload_assign, calculate_spill_cost): Likewise.
13316 * ira-conflicts.c (ira_build_conflicts): Likewise.
13317 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13318 * ira-lives.c (process_bb_node_lives): Likewise.
13319 * ira.c (setup_reg_renumber): Likewise.
13320 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13321 * lra-constraints.c (need_for_call_save_p): Likewise.
13322 (need_for_split_p, inherit_in_ebb): Likewise.
13323 * lra-lives.c (process_bb_lives): Likewise.
13324 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13325 * postreload.c (reload_combine): Likewise.
13326 * regrename.c (find_rename_reg): Likewise.
13327 * reload1.c (reload_as_needed): Likewise.
13328 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13329 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13330 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13331
13332 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13333
13334 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13335 (no_caller_save_reg_set): Delete.
13336 * caller-save.c (init_caller_save): Don't initialize it.
13337 * ira-conflicts.c (ira_build_conflicts): Calculate
13338 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13339
13340 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13341
13342 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13343 (target_hard_regs::x_savable_regs): New field.
13344 (call_fixed_reg_set): Delete.
13345 (savable_regs): New macro,
13346 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13347 (init_reg_sets_1): Likewise. Initialize savable_regs.
13348 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13349 for all registers. Set savable_regs instead of call_fixed_reg_set.
13350 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13351 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13352 * config/sh/sh.c (output_stack_adjust): Likewise.
13353
13354 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13355
13356 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13357 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13358 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13359
13360 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13361
13362 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13363 * rtlanal.c (get_call_rtx_from): Likewise.
13364 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13365 than the pattern to get_call_rtx_from.
13366 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13367 an rtx_insn * instead of an rtx.
13368 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13369
13370 2019-09-10 Martin Liska <mliska@suse.cz>
13371
13372 * common.opt: Use newly added WarnRemoved.
13373 * config/aarch64/aarch64.opt: Likewise.
13374 * config/arm/arm.opt: Likewise.
13375 * config/i386/i386.opt: Likewise.
13376 * config/ia64/ia64.opt: Likewise.
13377 * config/rs6000/rs6000.opt: Likewise.
13378 * doc/options.texi: Document WarnRemoved properly.
13379 * dwarf2out.c (gen_producer_string): Handle renamed
13380 OPT_SPECIAL_warn_removed.
13381 * lto-opts.c (lto_write_options): Likewise.
13382 * lto-wrapper.c (merge_and_complain): Likewise.
13383 * opts-common.c (decode_cmdline_option): Likewise.
13384 (prune_options): Likewise.
13385 (read_cmdline_option): Likewise.
13386 (control_warning_option): Likewise.
13387 * opts.c (print_filtered_help): Likewise.
13388 * optc-gen.awk: Parse for WarnRemoved and make usage
13389 of Deprecated an error.
13390 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13391
13392 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13393
13394 * doc/install.texi: Fix syntax for html generation.
13395
13396 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13397
13398 PR middle-end/91680
13399 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13400 the shift type to type.
13401
13402 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13403
13404 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13405 FDPIC mode.
13406 (stack_protect_combined_test_insn): Likewise.
13407
13408 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13409 Mickaël Guêné <mickael.guene@st.com>
13410
13411 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13412 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13413 (load_tp_soft_fdpic): New pattern.
13414 (load_tp_soft): Disable in FDPIC mode.
13415
13416 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13417 Mickaël Guêné <mickael.guene@st.com>
13418
13419 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13420 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13421 (arm_call_tls_get_addr): Add FDPIC support.
13422 (legitimize_tls_address): Likewise.
13423 (arm_emit_tls_decoration): Likewise.
13424
13425 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13426 Mickaël Guêné <mickael.guene@st.com>
13427
13428 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13429 support.
13430 (arm_trampoline_init): Likewise.
13431 (arm_trampoline_adjust_address): Likewise.
13432 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13433
13434 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13435 Mickaël Guêné <mickael.guene@st.com>
13436
13437 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13438 (legitimize_pic_address): Enforce binding rules on function
13439 pointers in FDPIC mode.
13440 (arm_assemble_integer): Likewise.
13441
13442 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13443 Mickaël Guêné <mickael.guene@st.com>
13444
13445 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13446 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13447 FDPIC.
13448
13449 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13450 Mickaël Guêné <mickael.guene@st.com>
13451
13452 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13453 field.
13454
13455 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13456 Mickaël Guêné <mickael.guene@st.com>
13457
13458 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13459 in FDPIC mode.
13460 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13461 new function.
13462 * config/arm/arm.c (arm_option_override): Define pic register to
13463 FDPIC_REGNUM.
13464 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13465 have no decl or go through PLT.
13466 (calculate_pic_address_constant): New function.
13467 (legitimize_pic_address): Call calculate_pic_address_constant.
13468 (arm_load_pic_register): Handle TARGET_FDPIC.
13469 (arm_is_segment_info_known): New function.
13470 (arm_pic_static_addr): Add support for FDPIC.
13471 (arm_load_function_descriptor): New function.
13472 (arm_emit_call_insn): Add support for FDPIC.
13473 (arm_assemble_integer): Add support for FDPIC.
13474 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13475 Define. (FDPIC_REGNUM): New define.
13476 * config/arm/arm.md (call): Add support for FDPIC.
13477 (call_value): Likewise.
13478 (restore_pic_register_after_call): New pattern.
13479 (untyped_call): Disable if FDPIC.
13480 (untyped_return): Likewise.
13481 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13482
13483 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13484 Mickaël Guêné <mickael.guene@st.com>
13485
13486 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13487 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13488 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13489 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13490 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13491 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13492 * config/arm/uclinuxfdpiceabi.h: New file.
13493
13494 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13495
13496 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13497
13498 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13499 Mickaël Guêné <mickael.guene@st.com>
13500
13501 * config/arm/arm.opt: Add -mfdpic option.
13502 * doc/invoke.texi: Add documentation for -mfdpic.
13503
13504 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13505
13506 * expmed.c (extract_bit_field): Update function comment
13507 regarding alt_rtl.
13508 * expr.c (expand_expr_real): Update function comment
13509 regarding alt_rtl.
13510 (expand_misaligned_mem_ref): New helper function.
13511 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13512 Remove duplicate assignment to "base" at case MEM_REF.
13513 Remove a shadowed variable "unsignedp" at case VCE.
13514
13515 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13516
13517 * regset.h (regs_invalidated_by_call_regset): Delete.
13518 (fixed_reg_set_regset): Likewise.
13519 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13520 (fixed_reg_set_regset, persistent_obstack): Likewise.
13521 (init_reg_sets_1, globalize_reg): Update accordingly.
13522 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13523 instead of a bitmap.
13524 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13525 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13526 instead of regs_invalidated_by_call_regset.
13527 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13528 * df-scan.c (df_scan_start_dump): Likewise.
13529 * dse.c (copy_fixed_regs): Likewise.
13530 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13531
13532 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13533
13534 * array-traits.h: New file.
13535 * coretypes.h (array_traits, bitmap_view): New types.
13536 * bitmap.h: Include "array-traits.h"
13537 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13538 (base_bitmap_view, bitmap_view): New classes.
13539 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13540 * hard-reg-set.h: Include array-traits.h.
13541 (array_traits<HARD_REG_SET>): New struct.
13542 * regset.h (IOR_REG_SET_HRS): New macro.
13543 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13544 rather than iterating over each hard register.
13545 * sched-deps.c (sched_analyze_insn): Likewise.
13546 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13547
13548 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13549
13550 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13551 instead of a HARD_REG_SET *.
13552 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13553 (ira_build): Update call accordingly.
13554 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13555
13556 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13557
13558 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13559 (HARD_REG_SET::operator!=): Likewise.
13560 (hard_reg_set_equal_p): Delete.
13561 * cfgcleanup.c (old_insns_match_p): Use == instead of
13562 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13563 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13564 (add_allocno_hard_regs_to_forest): Likewise.
13565 (setup_allocno_available_regs_num): Likewise.
13566 * ira.c (setup_pressure_classes): Likewise.
13567 (setup_allocno_and_important_classes): Likewise.
13568 (setup_reg_class_relations): Likewise.
13569 * lra-lives.c (process_bb_lives): Likewise.
13570 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13571
13572 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13573
13574 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13575 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13576 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13577 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13578 Likewise.
13579 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13580 * ira.c (setup_reg_renumber): Likewise.
13581 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13582 * regrename.c (regrename_find_superclass): Likewise.
13583 * reload1.c (find_reg): Likewise.
13584
13585 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13586
13587 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13588 * caller-save.c (setup_save_areas): Use "&~" instead of
13589 AND_COMPL_HARD_REG_SET.
13590 (save_call_clobbered_regs): Likewise.
13591 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13592 Likewise.
13593 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13594 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13595 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13596 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13597 (mips_conditional_register_usage): Likewise.
13598 * config/sh/sh.c (output_stack_adjust): Likewise.
13599 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13600 (setup_profitable_hard_regs): Likewise.
13601 (get_conflict_and_start_profitable_regs): Likewise.
13602 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13603 (ira_build_conflicts): Likewise.
13604 * ira-costs.c (restrict_cost_classes): Likewise.
13605 (setup_regno_cost_classes_by_aclass): Likewise.
13606 * ira-lives.c (process_bb_node_lives): Likewise.
13607 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13608 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13609 (setup_allocno_and_important_classes, setup_class_translate_array)
13610 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13611 Likewise.
13612 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13613 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13614 (process_alt_operands, inherit_in_ebb): Likewise.
13615 * lra-eliminations.c (update_reg_eliminate): Likewise.
13616 * lra-lives.c (process_bb_lives): Likewise.
13617 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13618 * resource.c (find_dead_or_set_registers): Likewise.
13619 (mark_target_live_regs): Likewise.
13620 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13621 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13622 (implicit_clobber_conflict_p): Likewise.
13623 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13624 (try_shrink_wrapping): Likewise.
13625
13626 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13627
13628 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13629 (HARD_REG_SET::operator|=): Likewise.
13630 (IOR_HARD_REG_SET): Delete.
13631 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13632 IOR_HARD_REG_SET.
13633 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13634 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13635 * final.c (collect_fn_hard_reg_usage): Likewise.
13636 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13637 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13638 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13639 (propagate_some_info_from_allocno): Likewise.
13640 (copy_info_to_removed_store_destinations): Likewise.
13641 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13642 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13643 (fast_allocation): Likewise.
13644 * ira-conflicts.c (ira_build_conflicts): Likewise.
13645 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13646 (process_bb_node_lives): Likewise.
13647 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13648 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13649 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13650 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13651 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13652 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13653 (process_bb_lives): Likewise.
13654 * lra-spills.c (assign_spill_hard_regs): Likewise.
13655 * postreload.c (reload_combine): Likewise.
13656 * reginfo.c (init_reg_sets_1): Likewise.
13657 * regrename.c (merge_overlapping_regs, find_rename_reg)
13658 (merge_chains): Likewise.
13659 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13660 (find_reload_regs, finish_spills, choose_reload_regs_init)
13661 (emit_reload_insns): Likewise.
13662 * reorg.c (redundant_insn): Likewise.
13663 * resource.c (find_dead_or_set_registers, mark_set_resources)
13664 (mark_target_live_regs): Likewise.
13665 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13666 * sched-deps.c (sched_analyze_insn): Likewise.
13667 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13668 (find_best_reg_for_expr): Likewise.
13669 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13670
13671 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13672
13673 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13674 (HARD_REG_SET::operator&): Likewise.
13675 (AND_HARD_REG_SET): Delete.
13676 * caller-save.c (setup_save_areas): Use "&" instead of
13677 AND_HARD_REG_SET.
13678 (save_call_clobbered_regs): Likewise.
13679 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13680 * config/m32c/m32c.c (reduce_class): Likewise.
13681 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13682 * final.c (get_call_reg_set_usage): Likewise.
13683 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13684 (setup_left_conflict_sizes_p): Likewise.
13685 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13686 (ira_build_conflicts): Likewise.
13687 * ira-costs.c (restrict_cost_classes): Likewise.
13688 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13689 (setup_reg_class_relations): Likewise.
13690 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13691 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13692 * resource.c (find_dead_or_set_registers): Likewise.
13693 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13694
13695 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13696
13697 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13698 (COMPL_HARD_REG_SET): Delete.
13699 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13700 of COMPL_HARD_REG_SET.
13701 (try_rename_operands): Likewise.
13702 * config/sh/sh.c (push_regs): Likewise.
13703 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13704 * lra-constraints.c (contains_reg_p): Likewise.
13705 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13706
13707 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13708
13709 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13710 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13711 of COPY_HARD_REG_SET.
13712 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13713 (epiphany_conditional_register_usage): Likewise.
13714 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13715 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13716 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13717 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13718 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13719 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13720 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13721 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13722 * config/sh/sh.c (output_stack_adjust): Likewise.
13723 * final.c (collect_fn_hard_reg_usage): Likewise.
13724 (get_call_reg_set_usage): Likewise.
13725 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13726 (ira_flattening): Likewise.
13727 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13728 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13729 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13730 (ira_reassign_pseudos): Likewise.
13731 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13732 (ira_build_conflicts): Likewise.
13733 * ira-costs.c (restrict_cost_classes): Likewise.
13734 (setup_regno_cost_classes_by_aclass): Likewise.
13735 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13736 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13737 (setup_stack_reg_pressure_class, setup_pressure_classes)
13738 (setup_allocno_and_important_classes, setup_class_translate_array)
13739 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13740 (ira_setup_eliminable_regset): Likewise.
13741 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13742 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13743 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13744 (process_alt_operands, inherit_in_ebb): Likewise.
13745 * lra-lives.c (process_bb_lives): Likewise.
13746 * lra-spills.c (assign_spill_hard_regs): Likewise.
13747 * lra.c (lra): Likewise.
13748 * mode-switching.c (new_seginfo): Likewise.
13749 * postreload.c (reload_combine): Likewise.
13750 * reg-stack.c (straighten_stack): Likewise.
13751 * reginfo.c (save_register_info, restore_register_info): Likewise.
13752 (init_reg_sets_1, record_subregs_of_mode): Likewise
13753 * regrename.c (create_new_chain, rename_chains): Likewise.
13754 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13755 (find_reload_regs): Likewise.
13756 * resource.c (find_dead_or_set_registers): Likewise.
13757 (mark_target_live_regs): Likewise.
13758 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13759
13760 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13761
13762 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13763 (note_pattern_stores): Declare.
13764 (note_stores): Take an rtx_insn *.
13765 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13766 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13767 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13768 (note_stores): Take an rtx_insn * as argument and process
13769 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13770 (note_pattern_stores): ...this.
13771 (find_first_parameter_load): Pass the insn rather than
13772 its pattern to note_stores.
13773 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13774 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13775 (insert_one_insn): Likewise.
13776 * combine.c (combine_instructions): Likewise.
13777 (likely_spilled_retval_p): Likewise.
13778 (try_combine): Use note_pattern_stores instead of note_stores.
13779 (record_dead_and_set_regs): Pass the insn rather than its pattern
13780 to note_stores.
13781 (reg_dead_at_p): Likewise.
13782 * config/bfin/bfin.c (workaround_speculation): Likewise.
13783 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13784 rather than an rtx.
13785 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13786 instead of note_stores.
13787 (frv_optimize_membar_local): Pass the insn rather than its pattern
13788 to note_stores.
13789 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13790 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13791 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13792 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13793 (mips_reorg_process_insns): Likewise.
13794 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13795 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13796 rather than rtxes.
13797 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13798 its pattern to note_stores.
13799 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13800 of note_stores.
13801 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13802 the insn to note_stores.
13803 (prescan_insns_for_dce): Update call accordingly.
13804 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13805 to note_stores.
13806 * df-problems.c (can_move_insns_across): Likewise.
13807 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13808 * function.c (assign_parm_setup_reg): Likewise.
13809 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13810 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13811 (single_set_gcse): Likewise.
13812 * ira.c (validate_equiv_mem): Likewise.
13813 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13814 for no_equiv.
13815 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13816 pattern to note_stores.
13817 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13818 * loop-iv.c (simplify_using_initial_values): Likewise.
13819 * mode-switching.c (optimize_mode_switching): Likewise.
13820 * optabs.c (emit_libcall_block_1): Likewise.
13821 (expand_atomic_compare_and_swap): Likewise.
13822 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13823 (record_opr_changes): Likewise. Remove explicit handling of
13824 CALL_INSN_FUNCTION_USAGE.
13825 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13826 * regcprop.c (kill_clobbered_values): Likewise.
13827 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13828 to note_stores.
13829 * regrename.c (build_def_use): Likewise.
13830 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13831 for mark_not_eliminable.
13832 (reload_as_needed): Pass the insn rather than its pattern
13833 to note_stores.
13834 (emit_output_reload_insns): Likewise.
13835 * resource.c (mark_target_live_regs): Likewise.
13836 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13837 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13838 instead of note_stores.
13839 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13840 its pattern to note_stores.
13841 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13842 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13843
13844 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13845
13846 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13847 than a #define. Use a structure rather than an array as the
13848 fallback definition. Remove special cases for low array sizes.
13849 (const_hard_reg_set): New typedef.
13850 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13851 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13852 (hard_reg_set_empty_p): Likewise.
13853 (SET_HARD_REG_BIT): Use a function rather than a macro to
13854 handle the case in which HARD_REG_SET is a structure.
13855 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13856 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13857 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13858 (IOR_COMPL_HARD_REG_SET): Likewise.
13859 (hard_reg_set_iterator::pset): Constify the pointer target.
13860 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13861 of a "const HARD_REG_SET". Update the handling of non-integer
13862 HARD_REG_SETs.
13863 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13864 * reload.h: Likewise.
13865 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13866 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13867 of a "const HARD_REG_SET".
13868 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13869 (range_in_hard_reg_set_p): Likewise.
13870 * ira-costs.c (restrict_cost_classes): Likewise.
13871 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13872 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13873 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13874 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13875 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13876 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13877 take an unsigned int and open-code the HARD_REG_SET operations.
13878
13879 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13880
13881 * Makefile.in (OBJS): Remove bt-load.o.
13882 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13883 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13884 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13885 document that the option no longer does anything.
13886 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13887 * target.def (branch_target_register_class): Delete.
13888 (branch_target_register_callee_saved): Likewise.
13889 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13890 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13891 * doc/tm.texi: Regenerate.
13892 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13893 (make_pass_branch_target_load_optimize2): Likewise.
13894 * passes.def (pass_branch_target_load_optimize1): Likewise.
13895 (pass_branch_target_load_optimize2): Likewise.
13896 * targhooks.h (default_branch_target_register_class): Likewise.
13897 * targhooks.c (default_branch_target_register_class): Likewise.
13898 * opt-suggestions.c (test_completion_valid_options): Remove
13899 -fbtr-bb-exclusive from the list of test options.
13900 * bt-load.c: Remove.
13901
13902 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13903
13904 * match.pd: Add flag_unsafe_math_optimizations check
13905 before deciding on the widest type in a binary math operation.
13906
13907 2019-09-09 Martin Liska <mliska@suse.cz>
13908
13909 * config/i386/i386.opt: Update comment of removed
13910 options that are preserved only for backward
13911 compatibility.
13912
13913 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13914
13915 PR target/87853
13916 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13917 instead of __v16qs.
13918
13919 PR target/91704
13920 * config/i386/avxintrin.h (__v32qs): New typedef.
13921 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13922 instead of __v32qi.
13923
13924 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13925
13926 * doc/invoke.texi (Option Summary): Cover eBPF.
13927 (eBPF Options): New section.
13928 * doc/extend.texi (BPF Built-in Functions): Likewise.
13929 (BPF Kernel Helpers): Likewise.
13930
13931 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13932
13933 * config.gcc: Support for bpf-*-* targets.
13934 * common/config/bpf/bpf-common.c: New file.
13935 * config/bpf/t-bpf: Likewise.
13936 * config/bpf/predicates.md: Likewise.
13937 * config/bpf/constraints.md: Likewise.
13938 * config/bpf/bpf.opt: Likewise.
13939 * config/bpf/bpf.md: Likewise.
13940 * config/bpf/bpf.h: Likewise.
13941 * config/bpf/bpf.c: Likewise.
13942 * config/bpf/bpf-protos.h: Likewise.
13943 * config/bpf/bpf-opts.h: Likewise.
13944 * config/bpf/bpf-helpers.h: Likewise.
13945 * config/bpf/bpf-helpers.def: Likewise.
13946
13947 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13948
13949 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13950 indirect_calls.
13951
13952 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13953
13954 * opt-functions.awk (integer_range_info): Make sure values are in
13955 numeric context before operating with them.
13956
13957 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13958
13959 * genemit.c (gen_split): Print the filename and line number where the
13960 splitter (or peephole2) was defined, to the dump file.
13961
13962 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13963
13964 PR tree-optimization/91665
13965 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13966 incompatible with the type of PHI result.
13967
13968 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13969
13970 PR target/91684
13971 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13972 gen_unaligned_storedi for 4-byte aligned addresses.
13973
13974 2019-09-06 Jim Wilson <jimw@sifive.com>
13975
13976 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13977 change.
13978
13979 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13980
13981 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13982
13983 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13984
13985 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13986 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13987
13988 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13989
13990 PR target/91654
13991 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13992 cost of SSE->integer and integer->SSE moves from 2 to 6.
13993 (core_cost): Ditto.
13994
13995 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13996
13997 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13998 before testing TYPE_TRANSPARENT_AGGR.
13999 * calls.c (initialize_argument_information, load_register_parameters):
14000 Likewise.
14001
14002 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14003
14004 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14005 high regs.
14006 (cmp_ior): Likewise.
14007
14008 2019-09-06 Martin Liska <mliska@suse.cz>
14009
14010 * doc/match-and-simplify.texi: Separate tuples with ;.
14011
14012 2019-09-06 Martin Liska <mliska@suse.cz>
14013
14014 PR c++/91125
14015 * Makefile.in: Remove tlink.o.
14016 * collect2.c (do_link): New function isolated
14017 from do_tlink.
14018 (main): Use.
14019 * collect2.h (do_tlink): Remove declaration of do_tlink.
14020 * doc/extend.texi: Remove documentation of -frepo.
14021 * doc/invoke.texi: Likewise.
14022 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14023 * tlink.c: Remove.
14024
14025 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14026 Jim Wilson <jimw@sifive.com>
14027
14028 PR target/91635
14029 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14030 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14031 paradoxical_subreg_p (operands[0]).
14032 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14033 use as intermediate value.
14034
14035 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14036
14037 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14038 (sync_compare_and_swap<mode>_insn): Likewise.
14039
14040 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14041
14042 PR middle-end/91615
14043 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14044 without movmisalign optab.
14045
14046 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14047
14048 PR middle-end/91001
14049 PR middle-end/91105
14050 PR middle-end/91106
14051 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14052 types, use type of their first field instead of type of
14053 args[i].tree_value.
14054
14055 2019-09-05 Richard Biener <rguenther@suse.de>
14056
14057 PR rtl-optimization/91656
14058 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14059 of early out.
14060
14061 2019-09-05 Richard Biener <rguenther@suse.de>
14062
14063 PR middle-end/90501
14064 * tree-inline.c (declare_return_variable): Mark the return
14065 slot as addressable after building an address of it.
14066
14067 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14068
14069 * doc/install.texi: Update and clarify requirements to build GNAT.
14070
14071 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14072
14073 PR middle-end/91577
14074 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14075 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14076 call to be in memory.
14077 (pass_expand::execute): Call discover_nonconstant_array_refs before
14078 setting currently_expanding_to_rtl.
14079
14080 2019-09-04 Caroline Tice <cmtice@google.com>
14081
14082 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14083 specified together.
14084
14085 2019-09-04 Marek Polacek <polacek@redhat.com>
14086
14087 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14088
14089 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14090
14091 PR target/32413
14092 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14093 for QI and HImode moves between SSE and general registers.
14094
14095 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14096
14097 PR c/78736
14098 * doc/invoke.texi: Document -Wenum-conversion.
14099
14100 2019-09-04 Richard Biener <rguenther@suse.de>
14101
14102 PR rtl-optimization/36262
14103 * postreload-gcse.c: Include intl.h and gcse.h.
14104 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14105 to avoid linear list walk.
14106 (record_last_mem_set_info): Gate off if not computing transparentness.
14107 (get_bb_avail_insn): If transparentness isn't computed give up
14108 early.
14109 (gcse_after_reload_main): Skip compute_transp and extended PRE
14110 if gcse_or_cprop_is_too_expensive says so.
14111
14112 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14113
14114 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14115 noinit section.
14116 (msp430_select_section): Handle decls with the "noinit" attribute with
14117 default_elf_select_section.
14118 Handle SECCAT_RODATA_MERGE_* section types with
14119 default_elf_select_section.
14120 Add comments about handling of unsupported section types.
14121 (msp430_section_type_flags): Remove handling of the noinit section.
14122
14123 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14124
14125 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14126 conflicting msp430-specific attributes.
14127 (msp430_section_attr): Likewise.
14128 Add warnings about conflicts with generic "noinit" and "section"
14129 attributes.
14130 Fix grammar in -mlarge error message.
14131 (msp430_data_attr): Rename to msp430_persist_attr.
14132 Add warnings about conflicts with generic "noinit" and "section"
14133 attributes.
14134 Add warning for when variable is not initialized.
14135 Chain conditionals which prevent the attribute being added.
14136 (ATTR_EXCL): New helper.
14137 (attr_reent_exclusions): New exclusion table.
14138 (attr_naked_exclusions): Likewise.
14139 (attr_crit_exclusions): Likewise.
14140 (attr_lower_exclusions): Likewise.
14141 (attr_upper_exclusions): Likewise.
14142 (attr_either_exclusions): Likewise.
14143 (attr_persist_exclusions): Likewise.
14144 (msp430_attribute_table): Update with exclusion rules.
14145 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14146 has a section.
14147
14148 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14149
14150 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14151 (msp430_handle_generic_attribute): New function.
14152 * doc/tm.texi: Regenerate.
14153 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14154 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14155 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14156 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14157
14158 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14159
14160 PR tree-optimization/91504
14161 * match.pd: Add ((~a & b) ^a) --> (a | b).
14162
14163 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14164
14165 PR target/91604
14166 * config/i386/i386-expand.c (split_double_mode): If there is more than
14167 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14168 already split matching MEM operand instead of calling adjust_address
14169 again.
14170
14171 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14172
14173 * config.gcc: Obsolete spu target. Remove references to spu.
14174 * configure.ac: Remove references to spu.
14175 * configure: Regenerate.
14176 * config/spu/: Remove directory.
14177 * common/config/spu/: Remove directory.
14178
14179 * doc/extend.texi: Remove references to spu.
14180 * doc/invoke.texi: Likewise.
14181 * doc/md.texi: Likewise.
14182 * doc/sourcebuild.texi: Likewise.
14183
14184 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14185
14186 PR middle-end/91603
14187 PR middle-end/91612
14188 PR middle-end/91613
14189 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14190 and SSA_NAME referring to CONSTANT_P correctly.
14191
14192 2019-09-03 Richard Biener <rguenther@suse.de>
14193
14194 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14195 (vn_nary_op_insert): Likewise.
14196 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14197 (vn_nary_op_lookup): Likewise.
14198 (vn_nary_op_insert): Likewise.
14199
14200 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14201
14202 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14203 (*op0, 1) instead of XEXP (*op1, 0).
14204
14205 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14206
14207 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14208 (aarch64_fjcvtzs): New define_insn.
14209 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14210 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14211 Add AARCH64_JSCVT.
14212 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14213 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14214 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14215 __ARM_FEATURE_JCVT where appropriate.
14216 * config/aarch64/arm_acle.h (__jcvt): Define.
14217
14218 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14219
14220 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14221 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14222 (aarch64_<frintnzs_op><mode>): New define_insn.
14223 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14224 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14225 __ARM_FEATURE_FRINT when appropriate.
14226 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14227 frint32x, frint64z, frint64x.
14228 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14229 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14230 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14231 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14232 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14233 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14234 * config/aarch64/iterators.md (VSFDF): Define.
14235 (FRINTNZX): Likewise.
14236 (frintnzs_op): Likewise.
14237
14238 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14239
14240 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14241 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14242 Cortex-A34.
14243 * config/aarch64/aarch64-tune.md: Regenerated.
14244 * doc/invoke.texi: Document the new processors.
14245
14246 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14247
14248 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14249 string.
14250 (ssbs): Likewise.
14251 (sve2): Likewise.
14252 (sve2-sm4): Likewise.
14253 (sveaes): Likewise.
14254 (svesha3): Likewise.
14255 (svebitperm): Likewise.
14256
14257 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14258 Richard Biener <rguenther@suse.de>
14259
14260 PR tree-optimization/91597
14261 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14262 BIT_AND_EXPR optimization for pointers, even if both operand
14263 ranges don't include NULL, the result can be NULL.
14264
14265 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14266
14267 PR middle-end/91605
14268 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14269 (non_mem_decl_p): ...this.
14270 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14271 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14272 unconditionally as before.
14273
14274 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14275
14276 PR target/91323
14277 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14278 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14279 * tree.def (LTGT_EXPR): Likewise.
14280 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14281
14282 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14283
14284 PR go/91617
14285 * fold-const.c (range_check_type): For enumeral and boolean
14286 type, pass 1 to type_for_size langhook instead of
14287 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14288 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14289 (build_range_check): Don't call unsigned_type_for for pointer types.
14290 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14291 range_check_type result.
14292
14293 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14294
14295 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14296 (replace_ref): Do not replace a chain of only two candidates which are
14297 valid memory references.
14298
14299 2019-09-02 Martin Liska <mliska@suse.cz>
14300
14301 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14302 Bail out when we'll end up with the same number of clusters as
14303 at the beginning.
14304 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14305 (jump_table_cluster::can_be_handled): Remove the guard
14306 as it's already handled in ::is_enabled. Allocate output
14307 after early bail out.
14308
14309 2019-09-02 Martin Liska <mliska@suse.cz>
14310
14311 PR gcov-profile/91601
14312 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14313 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14314 also negative edges.
14315 (circuit): Handle also negative edges as they can happen
14316 in some situations.
14317
14318 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14319
14320 PR target/91472
14321 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14322 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14323 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14324
14325 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14326
14327 PR middle-end/91623
14328 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14329 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14330 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14331 zero vector.
14332
14333 PR lto/91572
14334 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14335 GIMPLE_ASM TREE_LIST operands.
14336
14337 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14338
14339 * doc/generic.texi (Unary and Binary Expressions): Mark up
14340 an instance of TYPE_MIN.
14341
14342 2019-08-31 Stafford Horne <shorne@gmail.com>
14343
14344 * config/or1k/constraints.md (t): New constraint.
14345 * config/or1k/or1k.h (GOT_REGS): New register class.
14346 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14347
14348 2019-08-30 Jim Wilson <jimw@sifive.com>
14349
14350 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14351 and -fpic and -mplt then disable -msave-restore and warn.
14352
14353 2019-08-30 Martin Sebor <msebor@redhat.com>
14354
14355 PR middle-end/91599
14356 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14357 the statement doesn't have one.
14358 * gimple-pretty-print.c (percent_G_format): Same.
14359
14360 PR middle-end/91584
14361 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14362 before using them to validate MEM_REF offset.
14363
14364 2019-08-30 Marek Polacek <polacek@redhat.com>
14365
14366 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14367
14368 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14369
14370 * config/arm/arm.md (unaligned_loaddi,
14371 unaligned_storedi): New unspec insn patterns.
14372 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14373 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14374 and unaligned_storedi for 4-byte aligned memory.
14375 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14376 4-byte aligned memory.
14377
14378 2019-08-30 Martin Jambor <mjambor@suse.cz>
14379
14380 tree-optimization/91579
14381 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14382 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14383 appropriate.
14384 (arg_needs_copy_p): Removed.
14385 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14386 arg_needs_copy_p.
14387 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14388
14389 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14390
14391 * config/i386/i386-features.c
14392 (general_scalar_chain::compute_convert_gain):
14393 Correct cost for double-word shifts.
14394 (general_scalar_to_vector_candidate_p): Reject count operands
14395 greater or equal to mode bitsize.
14396
14397 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14398
14399 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14400 for moves between SSE and non-general registers and between
14401 mask and non-general registers.
14402 (ix86_register_move_cost): Remove stalled comment.
14403
14404 2019-08-29 Richard Biener <rguenther@suse.de>
14405
14406 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14407 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14408
14409 2019-08-29 Richard Biener <rguenther@suse.de>
14410
14411 PR bootstrap/91580
14412 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14413 Do not emit scalar copies for debug-insns, instead replace
14414 their uses with the reg copy used in the chain or reset them
14415 if there is a reaching definition outside of the chain as well.
14416
14417 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14418
14419 PR target/91560
14420 * config/i386/i386-expand.c (expand_vec_perm_movs,
14421 expand_vec_perm_blend, expand_vec_perm_vpermil,
14422 expand_vec_perm_pshufb, expand_vec_perm_1,
14423 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14424 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14425 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14426 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14427 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14428 comments - replace ix86_expand_vec_perm_builtin_1 with
14429 ix86_expand_vec_perm_const_1.
14430 (expand_vec_perm2_vperm2f128_vblend): New function.
14431 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14432 expand_vec_perm2_vperm2f128_vblend as last resort.
14433 (canonicalize_perm): Formatting fix.
14434
14435 PR tree-optimization/91351
14436 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14437 unsigned_type_for.
14438 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14439 range_check_type returns NULL.
14440 * tree-switch-conversion.c (switch_conversion::build_one_array):
14441 Use range_check_type instead of unsigned_type_for, don't perform
14442 linear opt if it returns NULL.
14443 (bit_test_cluster::find_bit_tests): Formatting fix.
14444 (bit_test_cluster::emit): Use range_check_type instead of
14445 unsigned_type_for.
14446 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14447 returns NULL.
14448
14449 2019-08-29 Richard Biener <rguenther@suse.de>
14450
14451 PR tree-optimization/91568
14452 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14453 (vect_update_max_nunits): Add overload for poly_uint64.
14454 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14455 (vect_build_slp_tree): Record max_nunits into the subtree
14456 and merge it upwards.
14457 (vect_print_slp_tree): Print max_nunits.
14458
14459 2019-08-28 Marek Polacek <polacek@redhat.com>
14460
14461 Implement P1152R4: Deprecating some uses of volatile.
14462 PR c++/91361
14463 * doc/invoke.texi: Document -Wvolatile.
14464
14465 2019-08-28 Marek Polacek <polacek@redhat.com>
14466
14467 PR c++/91360 - Implement C++20 P1143R2: constinit.
14468 * doc/invoke.texi: Document -Wc++20-compat.
14469
14470 2019-08-28 Martin Sebor <msebor@redhat.com>
14471
14472 PR tree-optimization/91457
14473 * builtins.c (component_size): New function.
14474 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14475 * builtins.h (compute_objsize): Add argument.
14476 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14477 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14478 (vrp_prop::check_mem_ref): Same.
14479 (vrp_prop::search_for_addr_array): Set no-warning bit.
14480 (check_array_bounds): Same.
14481
14482 2019-08-28 Martin Sebor <msebor@redhat.com>
14483
14484 PR driver/80545
14485 * opts-common.c (option_enabled): Correct checking for language
14486 options.
14487
14488 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14489
14490 * config/i386/i386.c (ix86_register_move_cost): Do not
14491 limit the cost of moves to/from XMM register to minimum 8.
14492
14493 2019-08-28 Martin Jambor <mjambor@suse.cz>
14494
14495 PR ipa/91468
14496 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14497 checking assert a normal assert to test it really is redundant.
14498 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14499 redundant test.
14500 (update_jump_functions_after_inlining): Removed combining unary
14501 arithmetic operations with an ancestor jump function.
14502 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14503 instead of t.
14504
14505 2019-08-28 Richard Biener <rguenther@suse.de>
14506
14507 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14508 add the MD problem.
14509
14510 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14511 Richard Biener <rguenther@suse.de>
14512
14513 * expr.c (expand_assignment): Handle misaligned DECLs.
14514 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14515 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14516 too.
14517 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14518 * varasm.c (build_constant_desc): Align constants of misaligned types.
14519 * config/arm/predicates.md (aligned_operand): New predicate.
14520 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14521 aligned_operand to check restrictions on memory addresses.
14522 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14523 * config/arm/vec-common.md (mov<VALL>): Likewise.
14524
14525 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14526
14527 PR libgomp/91530
14528 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14529 V_128 iterator instead of VI_128.
14530
14531 2019-08-28 Martin Liska <mliska@suse.cz>
14532
14533 PR tree-optimization/90970
14534 * builtins.c (check_access): Remove assignment to maxread
14535 as it hasn't been used since when it was introduced in r255755.
14536
14537 2019-08-27 Martin Sebor <msebor@redhat.com>
14538
14539 PR tree-optimization/91567
14540 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14541 of unknown strings.
14542 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14543 to PTRDIFF_MAX - 2.
14544
14545 2019-08-27 Jeff Law <law@redhat.com>
14546
14547 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14548 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14549
14550 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14551
14552 PR target/91528
14553 * config/i386/i386-features.c (convert_scalars_to_vector):
14554 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14555 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14556 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14557 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14558
14559 2019-08-27 Richard Biener <rguenther@suse.de>
14560
14561 * config/i386/i386-features.h
14562 (general_scalar_chain::~general_scalar_chain): Add.
14563 (general_scalar_chain::insns_conv): New bitmap.
14564 (general_scalar_chain::n_sse_to_integer): New.
14565 (general_scalar_chain::n_integer_to_sse): Likewise.
14566 (general_scalar_chain::make_vector_copies): Adjust signature.
14567 * config/i386/i386-features.c
14568 (general_scalar_chain::general_scalar_chain): Outline,
14569 initialize new members.
14570 (general_scalar_chain::~general_scalar_chain): New.
14571 (general_scalar_chain::mark_dual_mode_def): Record insns
14572 we need to insert conversions at and count them.
14573 (general_scalar_chain::compute_convert_gain): Account
14574 for conversion instructions at chain boundary.
14575 (general_scalar_chain::make_vector_copies): Generate a single
14576 copy for a def by a specific insn.
14577 (general_scalar_chain::convert_registers): First populate
14578 defs_map, then make copies at out-of chain insns.
14579
14580 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14581
14582 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14583 comment.
14584 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14585
14586 2019-08-27 Martin Liska <mliska@suse.cz>
14587
14588 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14589 loop.
14590 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14591 Enclose in anonymous namespace.
14592 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14593 hard_register initialization in braces.
14594 * tree-vrp.h (value_range_base::supports_type_p): Return false
14595 for function with boolean return type.
14596
14597 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14598
14599 * config/i386/i386.c (emit_i387_cw_initialization)
14600 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14601
14602 2019-08-26 Martin Sebor <msebor@redhat.com>
14603
14604 PR c++/83431
14605 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14606 (sprintf_dom_walker): Remove class.
14607 (get_int_range): Make argument const.
14608 (directive::fmtfunc, directive::set_precision): Same.
14609 (format_none): Same.
14610 (build_intmax_type_nodes): Same.
14611 (adjust_range_for_overflow): Same.
14612 (format_floating): Same.
14613 (format_character): Same.
14614 (format_string): Same.
14615 (format_plain): Same.
14616 (get_int_range): Cast away constness.
14617 (format_integer): Same.
14618 (get_string_length): Call get_range_strlen_dynamic. Handle
14619 null lendata.maxbound.
14620 (should_warn_p): Adjust argument scope qualifier.
14621 (maybe_warn): Same.
14622 (format_directive): Same.
14623 (parse_directive): Same.
14624 (is_call_safe): Same.
14625 (try_substitute_return_value): Same.
14626 (sprintf_dom_walker::handle_printf_call): Rename...
14627 (handle_printf_call): ...to this. Initialize target to host charmap
14628 here instead of in pass_sprintf_length::execute.
14629 (struct call_info): Make global.
14630 (sprintf_dom_walker::compute_format_length): Make global.
14631 (sprintf_dom_walker::handle_gimple_call): Same.
14632 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14633 * print-rtl.c (print_pattern): Reduce the number of spaces to
14634 avoid -Wformat-truncation.
14635 * tree-pass.h (make_pass_warn_printf): New function.
14636 * tree-ssa-strlen.c (strlen_optimize): New variable.
14637 (get_string_length): Add comments.
14638 (get_range_strlen_dynamic): New function.
14639 (check_and_optimize_call): New function.
14640 (handle_integral_assign): New function.
14641 (strlen_check_and_optimize_stmt): Factor code out into
14642 strlen_check_and_optimize_call and handle_integral_assign.
14643 (strlen_dom_walker::evrp): New member.
14644 (strlen_dom_walker::before_dom_children): Use evrp member.
14645 (strlen_dom_walker::after_dom_children): Use evrp member.
14646 (printf_strlen_execute): New function.
14647 (pass_strlen::gate): Update to handle printf calls.
14648 (dump_strlen_info): New function.
14649 (pass_data_warn_printf): New variable.
14650 (pass_warn_printf): New class.
14651 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14652 (handle_printf_call): Same.
14653 * tree-vrp.c (value_range_base::type): Adjust assertion.
14654 * vr-values.c (vr_values::update_value_range): Use type of the first
14655 argument rather than the second.
14656
14657 2019-08-26 Richard Biener <rguenther@suse.de>
14658
14659 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14660 Remove.
14661 (convert_scalars_to_vector): Do not call it.
14662
14663 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14664 Uros Bizjak <ubizjak@gmail.com>
14665
14666 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14667 CASE_MATHFN_FLOATN for roundeven.
14668 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14669 I387_ROUNDEVEN.
14670 (ix86_mode_needed): Likewise.
14671 (ix86_mode_after): Likewise.
14672 (ix86_mode_entry): Likewise.
14673 (ix86_mode_exit): Likewise.
14674 (ix86_emit_mode_set): Likewise.
14675 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14676 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14677 (ix86_entity): Add I387_ROUNDEVEN.
14678 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14679 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14680 (define_int_iterator): Likewise.
14681 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14682 (define_constant): Define ROUND_ROUNDEVEN mode.
14683 (define_attr): Add roundeven mode for i387_cw.
14684 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14685 * internal-fn.def (ROUNDEVEN): New builtin function.
14686 * optabs.def (roundeven_optab): New optab.
14687
14688 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14689
14690 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14691 for ROUNDEVEN.
14692 * builtins.def: Added function definitions for roundeven function
14693 variants.
14694 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14695 function call. Adjust condition for floor, ceil, trunc and round.
14696 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14697 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14698 (integer_valued_real_call_p): Added case for roundeven function.
14699 * real.c (is_even): New function. Returns true if real number is even,
14700 otherwise returns false.
14701 (is_halfway_below): New function. Returns true if real number is
14702 halfway between two integers, else return false.
14703 (real_roundeven): New function. Round real number to nearest integer,
14704 rounding halfway cases towards even.
14705 * real.h (real_value): Added descriptive comments. Added function
14706 declaration for roundeven function.
14707 * doc/extend.texi (Other Builtins): List roundeven variants among
14708 functions which can be handled as builtins.
14709
14710 2019-08-26 Richard Biener <rguenther@suse.de>
14711
14712 PR target/91522
14713 PR target/91527
14714 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14715 New member.
14716 (general_scalar_chain::replace_with_subreg): Remove.
14717 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14718 (general_scalar_chain::convert_reg): Adjust signature.
14719 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14720 iterate over all defs of a reg.
14721 (general_scalar_chain::replace_with_subreg): Remove.
14722 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14723 (general_scalar_chain::make_vector_copies): Populate defs_map,
14724 place copy only after defs that are used as vectors in the chain.
14725 (general_scalar_chain::convert_reg): Emit a copy for a specific
14726 def in a specific instruction.
14727 (general_scalar_chain::convert_op): All reg uses are converted here.
14728 (general_scalar_chain::convert_insn): Emit copies for scalar
14729 uses of defs here. Replace uses with the copies we created.
14730 Replace and convert the def. Adjust REG_DEAD notes, remove
14731 REG_EQUIV/EQUAL notes.
14732 (general_scalar_chain::convert_registers): Only handle copies
14733 into the chain here.
14734
14735 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14736
14737 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14738
14739 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14740
14741 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14742 Add nop_convert case.
14743 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14744 Fold all statements if requested.
14745 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14746 Allow to fold all statements.
14747 * tree-vrp.c (class vrp_folder):
14748 Let substitute_and_fold_engine fold all statements.
14749
14750 2019-08-26 Richard Biener <rguenther@suse.de>
14751
14752 PR tree-optimization/91526
14753 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14754 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14755 TODO_update_address_taken.
14756
14757 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14758
14759 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14760 __STDC_HOSTED__.
14761
14762 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14763
14764 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14765 machine mode for unspec_volatile operand.
14766
14767 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14768
14769 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14770 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14771 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14772 (prefer_neon_for_64bits): Remove.
14773 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14774 (tune_params): Remove PREF_NEON_64_FALSE uses.
14775 (arm_option_override): Remove prefer_neon selection code.
14776 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14777 * config/arm/arm-protos.h (tune_params): Remove
14778 prefer_neon_for_64bits.
14779 (prefer_neon_for_64bits): Remove.
14780
14781 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14782
14783 PR pch/61250
14784 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14785 and issue any diagnostics needed before collecting the pre-PCH
14786 state.
14787
14788 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14789
14790 PR middle-end/91283
14791 * common.opt (fexcess-precision=): Add Optimization flag. Use
14792 flag_excess_precision variable instead of
14793 flag_excess_precision_cmdline.
14794 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14795 member.
14796 (flag_excess_precision): Don't define.
14797 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14798 flag_excess_precision_cmdline. Remove comment.
14799 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14800 and x_flag_excess_precision instead of
14801 frontend_set_flag_excess_precision_cmdline and
14802 x_flag_excess_precision_cmdline.
14803 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14804 x_flag_excess_precision_cmdline.
14805 * toplev.c (init_excess_precision): Remove.
14806 (lang_dependent_init_target): Don't call it.
14807
14808 2019-08-23 Martin Liska <mliska@suse.cz>
14809
14810 * lto-wrapper.c (run_gcc): When setting jobserver
14811 set also parallel to 1. This was done so before r273908.
14812
14813 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14814
14815 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14816 (cortex-a76ae): Likewise.
14817 (cortex-a77): Likewise
14818 * config/arm/arm-tables.opt: Regenerate.
14819 * config/arm/arm-tune.md: Likewise.
14820 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14821 cortex-a77 CPU options.
14822
14823 2019-08-23 Martin Liska <mliska@suse.cz>
14824
14825 * profile.c (instrument_values): Do not set
14826 0 as last argument.
14827 * tree-profile.c (gimple_gen_interval_profiler): Remove
14828 last argument.
14829 (gimple_gen_pow2_profiler): Likewise.
14830 (gimple_gen_topn_values_profiler): Likewise.
14831 (gimple_gen_ic_profiler): Likewise.
14832 (gimple_gen_time_profiler): Likewise.
14833 (gimple_gen_average_profiler): Likewise.
14834 (gimple_gen_ior_profiler): Likewise.
14835 * value-prof.c (dump_histogram_value): Use default
14836 in switch statement instead of HIST_TYPE_MAX.
14837 (stream_in_histogram_value): Likewise.
14838 (gimple_duplicate_stmt_histograms): Do not
14839 use NULL for implicitly set arguments.
14840 (gimple_divmod_values_to_profile): Do not use
14841 reserve+quick_push.
14842 (gimple_indirect_call_to_profile): Likewise.
14843 (gimple_find_values_to_profile): Use implicit
14844 function call arguments.
14845 * value-prof.h (gimple_alloc_histogram_value):
14846 Set default values.
14847 (gimple_gen_interval_profiler): Remove last argument.
14848 (gimple_gen_pow2_profiler): Likewise.
14849 (gimple_gen_topn_values_profiler): Likewise.
14850 (gimple_gen_ic_profiler): Likewise.
14851 (gimple_gen_time_profiler): Likewise.
14852 (gimple_gen_average_profiler): Likewise.
14853 (gimple_gen_ior_profiler): Likewise.
14854
14855 2019-08-22 Martin Sebor <msebor@redhat.com>
14856
14857 PR middle-end/91490
14858 * builtins.c (c_strlen): Rename argument and introduce new local.
14859 Set no-warning bit on original argument.
14860 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14861 Fold empty and zero constructors into empty strings.
14862 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14863 for missing initializers.
14864 * tree.c (build_string_literal): Handle optional argument.
14865 * tree.h (build_string_literal): Add defaulted argument.
14866 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14867 no-warning bit on original expression.
14868
14869 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14870
14871 PR target/91481
14872 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14873 and UNSPEC_DARN_RAW.
14874 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14875 UNSPECV_DARN_RAW.
14876 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14877 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14878 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14879
14880 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14881
14882 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14883 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14884 * config/rs6000/rs6000.md (unspec): ... here.
14885 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14886 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14887 cmpeqb, *cmpeqb_internal): Delete, move to...
14888 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14889 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14890 cmpeqb, *cmpeqb_internal): ... here.
14891
14892 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14893
14894 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14895 intrinsics if __ARM_FP.
14896 Use __ARM_FEATURE_CRC32 ifdef guard.
14897
14898 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14899
14900 * config/arm/arm.md (neon_for_64bits): Remove.
14901 (avoid_neon_for_64bits): Remove.
14902 (arm_adddi3): Always split early.
14903 (arm_subdi3): Always split early.
14904 (negdi2): Remove Neon expansion.
14905 (split zero_extend): Split before reload.
14906 (split sign_extend): Split before reload.
14907
14908 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14909
14910 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14911 (qhs_extenddi_cstr): Likewise.
14912 * config/arm/arm.md (ashldi3): Always expand early.
14913 (ashlsi3): Likewise.
14914 (ashrsi3): Likewise.
14915 (zero_extend<mode>di2): Remove Neon variants.
14916 (extend<mode>di2): Likewise.
14917 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14918 (signed_shift_di3_neon): Likewise.
14919 (unsigned_shift_di3_neon): Likewise.
14920 (ashrdi3_neon_imm_noclobber): Likewise.
14921 (lshrdi3_neon_imm_noclobber): Likewise.
14922 (<shift>di3_neon): Likewise.
14923 (split extend): Remove DI extend split patterns.
14924
14925 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14926
14927 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14928 (split not): Add DImode not splitter.
14929 (anddi3): Remove pattern.
14930 (anddi3_insn): Likewise.
14931 (anddi_zesidi_di): Likewise.
14932 (anddi_sesdi_di): Likewise.
14933 (anddi_notdi_di): Likewise.
14934 (anddi_notzesidi_di): Likewise.
14935 (anddi_notsesidi_di): Likewise.
14936 (iordi3): Likewise.
14937 (iordi3_insn): Likewise.
14938 (iordi_zesidi_di): Likewise.
14939 (iordi_sesidi_di): Likewise.
14940 (xordi3): Likewise.
14941 (xordi3_insn): Likewise.
14942 (xordi_sesidi_di): Likewise.
14943 (xordi_zesidi_di): Likewise.
14944 (one_cmpldi2): Likewise.
14945 (one_cmpldi2_insn): Likewise.
14946 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14947 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14948 alternative.
14949 (iwmmxt_xordi3): Likewise.
14950 (iwmmxt_anddi3): Likewise.
14951 * config/arm/neon.md (orndi3_neon): Remove pattern.
14952 (anddi_notdi_di): Likewise.
14953 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14954 (arm_iordi_operand_neon): Likewise.
14955 (arm_xordi_operand_neon): Likewise.
14956 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14957 (iordi_notzesidi_di): Likewise.
14958 (iordi_notdi_zesidi): Likewise.
14959 (iordi_notsesidi_di): Likewise.
14960
14961 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14962
14963 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14964 insn.
14965 (iorsi3_compare0_scratch): Likewise.
14966
14967 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14968
14969 * config/aarch64/aarch64-simd-builtins.def:
14970 (ld1x4): New.
14971 (st1x4): Likewise.
14972 * config/aarch64/aarch64-simd.md:
14973 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14974 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14975 (aarch64_ld1_x4_<mode>): Likewise.
14976 (aarch64_st1_x4_<mode>): Likewise.
14977 * config/aarch64/arm_neon.h:
14978 (vld1_s8_x4): New function.
14979 (vld1q_s8_x4): Likewise.
14980 (vld1_s16_x4): Likewise.
14981 (vld1q_s16_x4): Likewise.
14982 (vld1_s32_x4): Likewise.
14983 (vld1q_s32_x4): Likewise.
14984 (vld1_u8_x4): Likewise.
14985 (vld1q_u8_x4): Likewise.
14986 (vld1_u16_x4): Likewise.
14987 (vld1q_u16_x4): Likewise.
14988 (vld1_u32_x4): Likewise.
14989 (vld1q_u32_x4): Likewise.
14990 (vld1_f16_x4): Likewise.
14991 (vld1q_f16_x4): Likewise.
14992 (vld1_f32_x4): Likewise.
14993 (vld1q_f32_x4): Likewise.
14994 (vld1_p8_x4): Likewise.
14995 (vld1q_p8_x4): Likewise.
14996 (vld1_p16_x4): Likewise.
14997 (vld1q_p16_x4): Likewise.
14998 (vld1_s64_x4): Likewise.
14999 (vld1_u64_x4): Likewise.
15000 (vld1_p64_x4): Likewise.
15001 (vld1q_s64_x4): Likewise.
15002 (vld1q_u64_x4): Likewise.
15003 (vld1q_p64_x4): Likewise.
15004 (vld1_f64_x4): Likewise.
15005 (vld1q_f64_x4): Likewise.
15006 (vst1_s8_x4): Likewise.
15007 (vst1q_s8_x4): Likewise.
15008 (vst1_s16_x4): Likewise.
15009 (vst1q_s16_x4): Likewise.
15010 (vst1_s32_x4): Likewise.
15011 (vst1q_s32_x4): Likewise.
15012 (vst1_u8_x4): Likewise.
15013 (vst1q_u8_x4): Likewise.
15014 (vst1_u16_x4): Likewise.
15015 (vst1q_u16_x4): Likewise.
15016 (vst1_u32_x4): Likewise.
15017 (vst1q_u32_x4): Likewise.
15018 (vst1_f16_x4): Likewise.
15019 (vst1q_f16_x4): Likewise.
15020 (vst1_f32_x4): Likewise.
15021 (vst1q_f32_x4): Likewise.
15022 (vst1_p8_x4): Likewise.
15023 (vst1q_p8_x4): Likewise.
15024 (vst1_p16_x4): Likewise.
15025 (vst1q_p16_x4): Likewise.
15026 (vst1_s64_x4): Likewise.
15027 (vst1_u64_x4): Likewise.
15028 (vst1_p64_x4): Likewise.
15029 (vst1q_s64_x4): Likewise.
15030 (vst1q_u64_x4): Likewise.
15031 (vst1q_p64_x4): Likewise.
15032 (vst1_f64_x4): Likewise.
15033 (vst1q_f64_x4): Likewise.
15034
15035 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15036
15037 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15038
15039 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15040 Richard Sandiford <richard.sandiford@arm.com>
15041
15042 PR target/88839
15043 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15044 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15045
15046 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15047
15048 PR target/90724
15049 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15050 in reg if it fails aarch64_plus_operand predicate.
15051
15052 2019-08-21 Richard Biener <rguenther@suse.de>
15053
15054 PR tree-optimization/91482
15055 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15056 BUILT_IN_ASSUME_ALIGNED calls.
15057
15058 2019-08-21 Richard Biener <rguenther@suse.de>
15059
15060 PR target/91498
15061 PR target/91503
15062 * config/i386/i386-features.c
15063 (general_scalar_chain::make_vector_copies): Copy stack temporary
15064 rtx when using it multiple times.
15065 (general_scalar_chain::convert_reg): Likewise.
15066
15067 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15068
15069 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15070
15071 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15072
15073 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15074 catch more redundant zero initialization cases.
15075 (dse_dom_walker::dse_optimize_stmt): Likewise.
15076
15077 2019-08-20 Richard Biener <rguenther@suse.de>
15078
15079 PR lto/91307
15080 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15081 by collect2 when targetm.have_ctors_dtors which avoids dragging
15082 in temporary filenames from LTO input objects.
15083
15084 2019-08-20 Richard Biener <rguenther@suse.de>
15085
15086 PR tree-optimization/37242
15087 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15088 to (T)a + (T)b if we know that a + b does not overflow.
15089
15090 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15091
15092 PR rtl-optimization/91347
15093 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15094 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15095
15096 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15097
15098 * calls.h (function_arg_info): Add a pass_by_reference field,
15099 defaulting to false.
15100 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15101 when applying pass-by-reference semantics.
15102 (initialize_argument_information): Likewise.
15103 (emit_library_call_value_1): Likewise.
15104 * function.c (assign_parm_data_one): Remove passed_pointer field.
15105 (assign_parm_find_data_types): Don't set it.
15106 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15107 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15108 arg.pass_by_reference instead of passed_pointer.
15109
15110 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15111
15112 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15113 into a single function_arg_info, updating its fields when we
15114 apply pass-by-reference and promotion semantics. Use the
15115 function_arg_info to track the mode rather than keeping it in
15116 a separate local variable.
15117 (initialize_argument_information): Likewise. Base the final
15118 arg_to_skip on this new function_arg_info rather than creating
15119 a new one from scratch.
15120
15121 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15122
15123 * function.c (assign_parm_data_one): Replace passed_type,
15124 promoted_mode and named_arg with a function_arg_info field.
15125 (assign_parm_find_data_types): Remove local variables and
15126 assign directly to "data". Make data->passed_mode shadow
15127 data->arg.mode until promotion, then assign the promoted
15128 mode to data->arg.mode.
15129 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15130 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15131 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15132 (assign_parm_setup_block, assign_parm_setup_reg)
15133 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15134 arg.mode instead of promoted_mode, arg.type instead of passed_type
15135 and arg.named instead of named_arg. Use data->arg for
15136 function_arg_info structures that had the field values passed_type,
15137 promoted_mode and named_arg. Base other function_arg_infos on
15138 data->arg, changing the necessary properties.
15139
15140 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15141
15142 * calls.h (apply_pass_by_reference_rules): Declare.
15143 * calls.c (apply_pass_by_reference_rules): New function.
15144 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15145 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15146 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15147 * function.c (assign_parm_find_data_types): Likewise.
15148 * var-tracking.c (prepare_call_arguments): Likewise.
15149
15150 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15151
15152 * target.def (must_pass_in_stack): Take a function_arg_info instead
15153 of a mode and a type.
15154 * doc/tm.texi: Regenerate.
15155 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15156 instead of a mode and a type.
15157 (must_pass_in_stack_var_size_or_pad): Likewise.
15158 * calls.c (must_pass_in_stack_var_size): Likewise.
15159 (must_pass_in_stack_var_size_or_pad): Likewise.
15160 (initialize_argument_information): Update call to
15161 targetm.calls.must_pass_in_stack.
15162 (must_pass_va_arg_on_stack): Likewise.
15163 * function.c (assign_parm_find_entry_rtl): Likewise.
15164 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15165 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15166 (alpha_function_arg_advance): Likewise.
15167 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15168 (cr16_function_arg_advance): Likewise.
15169 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15170 (cris_arg_partial_bytes): Likewise.
15171 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15172 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15173 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15174 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15175 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15176 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15177 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15178 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15179 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15180 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15181 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15182 instead of a mode and a type.
15183 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15184 (fr30_num_arg_regs): Likewise.
15185 (fr30_setup_incoming_varargs): Update calls accordingly.
15186 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15187 (fr30_function_arg_advance): Likewise.
15188 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15189 instead of a mode and a type.
15190 * config/gcn/gcn.c (num_arg_regs): Likewise.
15191 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15192 num_arg_regs and targetm.calls.must_pass_in_stack.
15193 (gcn_arg_partial_bytes): Likewise.
15194 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15195 function_arg_info instead of a mode and a type.
15196 (classify_argument): Update call accordingly.
15197 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15198 function_arg_info instead of a mode and a type.
15199 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15200 Likewise.
15201 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15202 (rs6000_parm_needs_stack): Update call accordingly.
15203 (setup_incoming_varargs): Likewise.
15204
15205 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15206
15207 * target.def (callee_copies): Take a function_arg_info instead
15208 of a mode, type and named flag.
15209 * doc/tm.texi: Regenerate.
15210 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15211 instead of a mode, type and named flag.
15212 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15213 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15214 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15215 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15216 instead of a mode, type and named flag.
15217 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15218 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15219 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15220 * calls.h (reference_callee_copied): Take a function_arg_info
15221 instead of a mode, type and named flag.
15222 * calls.c (reference_callee_copied): Likewise.
15223 (initialize_argument_information): Update call accordingly.
15224 (emit_library_call_value_1): Likewise.
15225 * function.c (gimplify_parameters): Likewise.
15226 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15227 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15228 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15229 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15230 (TARGET_CALLEE_COPIES): Define to
15231 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15232 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15233 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15234 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15235 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15236 instead of a mode, type and named flag.
15237 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15238 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15239 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15240 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15241 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15242 (TARGET_CALLEE_COPIES): Define to
15243 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15244 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15245 instead of a mode, type and named flag.
15246 * config/sh/sh.c (sh_callee_copies): Likewise.
15247 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15248 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15249 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15250
15251 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15252
15253 * target.def (function_arg_advance): Take a function_arg_info instead
15254 of a mode, type and named flag.
15255 * doc/tm.texi: Regenerate.
15256 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15257 instead of a mode, type and named flag.
15258 * targhooks.c (default_function_arg_advance): Likewise.
15259 * calls.c (initialize_argument_information): Update call to
15260 targetm.calls.function_arg_advance.
15261 (emit_library_call_value_1): Likewise.
15262 * dse.c (get_call_args): Likewise.
15263 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15264 * function.c (assign_parms, gimplify_parameters): Likewise.
15265 * var-tracking.c (prepare_call_arguments): Likewise.
15266 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15267 function_arg_info instead of a mode, type and named flag.
15268 (aarch64_setup_incoming_varargs): Update call accordingly.
15269 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15270 function_arg_info instead of a mode, type and named flag.
15271 (alpha_setup_incoming_varargs): Update call accordingly.
15272 * config/arc/arc.c (arc_function_arg_advance): Take a
15273 function_arg_info instead of a mode, type and named flag.
15274 (arc_setup_incoming_varargs): Update call accordingly.
15275 * config/arm/arm.c (arm_function_arg_advance): Take a
15276 function_arg_info instead of a mode, type and named flag.
15277 (cmse_func_args_or_return_in_stack): Update call accordingly.
15278 (arm_function_ok_for_sibcall): Likewise.
15279 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15280 * config/avr/avr.c (avr_function_arg_advance): Take a
15281 function_arg_info instead of a mode, type and named flag.
15282 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15283 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15284 (c6x_call_saved_register_used): Update call accordingly.
15285 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15286 function_arg_info instead of a mode, type and named flag.
15287 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15288 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15289 (csky_setup_incoming_varargs): Update call accordingly.
15290 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15291 function_arg_info instead of a mode, type and named flag.
15292 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15293 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15294 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15295 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15296 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15297 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15298 (ix86_setup_incoming_varargs): Update call accordingly.
15299 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15300 function_arg_info instead of a mode, type and named flag.
15301 (ia64_setup_incoming_varargs): Update call accordingly.
15302 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15303 function_arg_info instead of a mode, type and named flag.
15304 (iq2000_expand_prologue): Update call accordingly.
15305 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15306 function_arg_info instead of a mode, type and named flag.
15307 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15308 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15309 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15310 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15311 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15312 Likewise.
15313 (microblaze_expand_prologue): Update call accordingly.
15314 * config/mips/mips.c (mips_function_arg_advance): Take a
15315 function_arg_info instead of a mode, type and named flag.
15316 (mips_setup_incoming_varargs): Update call accordingly.
15317 (mips_output_args_xfer): Likewise.
15318 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15319 function_arg_info instead of a mode, type and named flag.
15320 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15321 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15322 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15323 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15324 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15325 (nios2_setup_incoming_varargs): Update call accordingly.
15326 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15327 function_arg_info instead of a mode, type and named flag.
15328 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15329 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15330 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15331 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15332 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15333 (riscv_setup_incoming_varargs): Update call accordingly.
15334 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15335 function_arg_info instead of a mode, type and named flag.
15336 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15337 Likewise.
15338 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15339 (rs6000_parm_needs_stack): Update call accordingly.
15340 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15341 instead of a mode, type and named flag.
15342 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15343 (s390_call_saved_register_used): Update call accordingly.
15344 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15345 instead of a mode, type and named flag.
15346 (sh_output_mi_thunk): Update call accordingly.
15347 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15348 function_arg_info instead of a mode, type and named flag.
15349 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15350 (spu_setup_incoming_varargs): Update call accordingly.
15351 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15352 function_arg_info instead of a mode, type and named flag.
15353 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15354 (tilegx_setup_incoming_varargs): Update call accordingly.
15355 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15356 function_arg_info instead of a mode, type and named flag.
15357 (tilegx_setup_incoming_varargs): Update call accordingly.
15358 * config/v850/v850.c (v850_function_arg_advance): Take a
15359 function_arg_info instead of a mode, type and named flag.
15360 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15361 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15362 (visium_setup_incoming_varargs): Update call accordingly.
15363 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15364 function_arg_info instead of a mode, type and named flag.
15365
15366 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15367
15368 * target.def (function_arg, function_incoming_arg): Take a
15369 function_arg_info instead of a mode, tree and named flag.
15370 * doc/tm.texi: Regenerate.
15371 * targhooks.h (default_function_arg): Take a function_arg_info
15372 instead of a mode, tree and named flag.
15373 (default_function_incoming_arg): Likewise.
15374 * targhooks.c (default_function_arg): Likewise.
15375 (default_function_incoming_arg): Likewise.
15376 * calls.h (function_arg_info::end_marker_p): New function.
15377 (function_arg_info::end_marker): Likewise.
15378 * calls.c (prepare_call_address, initialize_argument_information)
15379 (expand_call, emit_library_call_value_1): Update calls to
15380 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15381 * dse.c: Include calls.h.
15382 (get_call_args): Update call to targetm.calls.function_arg.
15383 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15384 * var-tracking.c (prepare_call_arguments): Likewise.
15385 * function.c (assign_parm_find_entry_rtl): Update call to
15386 targetm.calls.function_incoming_arg.
15387 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15388 function_arg_info instead of a mode, tree and named flag.
15389 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15390 * config/arc/arc.c (arc_function_arg): Likewise.
15391 * config/arm/arm.c (arm_function_arg): Likewise.
15392 (cmse_func_args_or_return_in_stack): Update call accordingly.
15393 (arm_function_ok_for_sibcall): Likewise.
15394 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15395 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15396 instead of a mode, tree and named flag.
15397 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15398 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15399 (c6x_call_saved_register_used): Update call accordingly.
15400 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15401 instead of a mode, tree and named flag.
15402 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15403 (cris_function_arg_1): Likewise.
15404 * config/csky/csky.c (csky_function_arg): Likewise.
15405 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15406 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15407 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15408 (frv_function_arg_1): Likewise.
15409 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15410 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15411 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15412 * config/i386/i386.c (ix86_function_arg): Likewise.
15413 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15414 (ia64_function_arg_1): Likewise.
15415 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15416 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15417 accordingly.
15418 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15419 instead of a mode, tree and named flag.
15420 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15421 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15422 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15423 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15424 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15425 (microblaze_expand_prologue): Update call accordingly.
15426 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15427 instead of a mode, tree and named flag.
15428 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15429 (mmix_function_arg_1): Likewise.
15430 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15431 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15432 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15433 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15434 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15435 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15436 (nvptx_function_incoming_arg): Likewise.
15437 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15438 * config/pa/pa.c (pa_function_arg): Likewise.
15439 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15440 * config/pru/pru.c (pru_function_arg): Likewise.
15441 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15442 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15443 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15444 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15445 (rs6000_parm_needs_stack): Update call accordingly.
15446 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15447 instead of a mode, tree and named flag.
15448 * config/s390/s390.c (s390_function_arg): Likewise.
15449 (s390_call_saved_register_used): Update call accordingly.
15450 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15451 instead of a mode, tree and named flag.
15452 (sh_output_mi_thunk): Update call accordingly.
15453 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15454 (sparc_function_incoming_arg): Take a function_arg_info instead of
15455 a mode, tree and named flag.
15456 * config/spu/spu.c (spu_function_arg): Likewise.
15457 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15458 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15459 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15460 * config/v850/v850.c (v850_function_arg): Likewise.
15461 * config/vax/vax.c (vax_function_arg): Likewise.
15462 * config/visium/visium.c (visium_function_arg): Likewise.
15463 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15464 (xtensa_function_incoming_arg): Likewise.
15465
15466 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15467
15468 * target.def (setup_incoming_varargs): Take a function_arg_info
15469 instead of a mode and tree.
15470 * doc/tm.texi: Regenerate.
15471 * targhooks.h (default_setup_incoming_varargs): Take a
15472 function_arg_info instead of a mode and tree.
15473 * targhooks.c (default_setup_incoming_varargs): Likewise.
15474 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15475 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15476 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15477 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15478 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15479 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15480 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15481 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15482 Likewise.
15483 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15484 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15485 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15486 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15487 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15488 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15489 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15490 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15491 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15492 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15493 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15494 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15495 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15496 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15497 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15498 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15499 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15500 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15501 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15502 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15503 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15504 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15505 * function.c (assign_parms_setup_varargs): Update call to
15506 targetm.calls.setup_incoming_varargs.
15507
15508 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15509
15510 * target.def (pass_by_reference): Take a function_arg_info instead
15511 of a mode, type and named flag.
15512 * doc/tm.texi: Regenerate.
15513 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15514 accordingly.
15515 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15516 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15517 function_arg_info instead of a mode, type and named flag.
15518 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15519 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15520 mode, type and named flag.
15521 * calls.c (pass_by_reference): Likewise.
15522 (pass_va_arg_by_reference): Update call accordingly.
15523 (initialize_argument_information): Likewise.
15524 (emit_library_call_value_1): Likewise.
15525 * function.c (assign_parm_find_data_types): Likewise.
15526 * var-tracking.c (prepare_call_arguments): Likewise.
15527 * stor-layout.c: Include calls.h.
15528 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15529 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15530 function_arg_info instead of a mode, type and named flag.
15531 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15532 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15533 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15534 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15535 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15536 (c6x_call_saved_register_used): Update call to pass_by_reference.
15537 * config/cris/cris.c (cris_pass_by_reference): Take a
15538 function_arg_info instead of a mode, type and named flag.
15539 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15540 function_arg_info instead of a mode, type and named flag.
15541 (epiphany_arg_partial_bytes): Update call accordingly.
15542 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15543 function_arg_info instead of a mode, type and named flag.
15544 (ft32_arg_partial_bytes): Update call accordingly.
15545 * config/i386/i386.c (ix86_pass_by_reference): Take a
15546 function_arg_info instead of a mode, type and named flag.
15547 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15548 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15549 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15550 (m32r_return_in_memory): Update call accordingly.
15551 * config/mips/mips.c (mips_pass_by_reference): Take a
15552 function_arg_info instead of a mode, type and named flag.
15553 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15554 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15555 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15556 (moxie_arg_partial_bytes): Update call accordingly.
15557 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15558 function_arg_info instead of a mode, type and named flag.
15559 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15560 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15561 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15562 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15563 (riscv_return_in_memory): Update call accordingly.
15564 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15565 function_arg_info instead of a mode, type and named flag.
15566 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15567 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15568 * config/s390/s390.c (s390_pass_by_reference): Take a
15569 function_arg_info instead of a mode, type and named flag.
15570 (s390_call_saved_register_used): Update call accordingly.
15571 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15572 instead of a mode, type and named flag.
15573 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15574 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15575 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15576 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15577 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15578 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15579
15580 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15581
15582 * target.def (arg_partial_bytes): Take a function_arg_info instead
15583 of a mode, type and named flag.
15584 * doc/tm.texi: Regenerate.
15585 * target.h (function_arg_info): Declare.
15586 * calls.h (function_arg_info): New class.
15587 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15588 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15589 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15590 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15591 * calls.c (initialize_argument_information): Update call to
15592 targetm.calls.partial_bytes.
15593 (emit_library_call_value_1): Likewise.
15594 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15595 * function.c (assign_parm_find_entry_rtl): Likewise.
15596 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15597 function_arg_info instead of a mode, type and named flag.
15598 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15599 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15600 (cmse_func_args_or_return_in_stack): Update accordingly.
15601 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15602 function_arg_info instead of a mode, type and named flag.
15603 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15604 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15605 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15606 * config/fr30/fr30.c: Include calls.h.
15607 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15608 type and named flag.
15609 * config/frv/frv.c: Include calls.h.
15610 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15611 type and named flag.
15612 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15613 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15614 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15615 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15616 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15617 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15618 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15619 Likewise.
15620 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15621 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15622 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15623 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15624 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15625 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15626 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15627 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15628 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15629 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15630 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15631 (rs6000_parm_needs_stack): Update call accordingly.
15632 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15633 function_arg_info instead of a mode, type and named flag.
15634 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15635 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15636
15637 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15638
15639 * calls.h (must_pass_va_arg_in_stack): Declare.
15640 * calls.c (must_pass_va_arg_in_stack): New function.
15641 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15642 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15643 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15644 Likewise.
15645 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15646
15647 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15648
15649 * calls.h (pass_va_arg_by_reference): Declare.
15650 * calls.c (pass_va_arg_by_reference): New function.
15651 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15652 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15653 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15654 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15655 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15656 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15657 (mips_gimplify_va_arg_expr): Likewise.
15658 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15659 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15660 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15661 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15662 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15663 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15664 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15665 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15666 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15667 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15668 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15669
15670 2019-08-20 Richard Biener <rguenther@suse.de>
15671
15672 PR target/91498
15673 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15674 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15675 (convert_scalars_to_vector): Add timode_p parameter and use it
15676 to guard TImode-only operation.
15677 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15678 (pass_stv::execute): Pass down timode_p.
15679
15680 2019-08-20 Lili Cui <lili.cui@intel.com>
15681
15682 * common/config/i386/i386-common.c
15683 (processor_names): Add tigerlake and cooperlake.
15684 (processor_alias_table): Add tigerlake and cooperlake.
15685 * config.gcc: Add -march=tigerlake and cooperlake.
15686 * config/i386/driver-i386.c
15687 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15688 Add "has_avx" to classify processor.
15689 * config/i386/i386-builtins.c (processor_model) :
15690 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15691 (arch_names_table): Add tigerlake and cooperlake.
15692 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15693 and PROCESSOR_COOPERLAKE.
15694 * config/i386/i386-c.c
15695 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15696 * config/i386/i386-options.c
15697 (m_TIGERLAKE): Define.
15698 (m_COOPERLAKE): Ditto.
15699 (m_CORE_AVX512): Ditto.
15700 (processor_cost_table): Add cascadelake.
15701 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15702 * config/i386/i386.h
15703 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15704 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15705 (PTA_MOVDIRI): Ditto.
15706 (PTA_MOVDIR64B): Ditto.
15707 (PTA_COOPERLAKE): Ditto.
15708 (PTA_TIGERLAKE): Ditto.
15709 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15710 * doc/extend.texi: Add tigerlake and cooperlake.
15711 * doc/invoke.texi: Add tigerlake and cooperlake.
15712
15713 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15714
15715 * doc/install.texi (Specific, alpha): Remove note to use
15716 binutils 2.11.2 or later.
15717
15718 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15719
15720 PR middle-end/89544
15721 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15722 when possible.
15723
15724 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15725
15726 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15727 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15728 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15729 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15730 * config/aarch64/constraints.md (Dt): New constraint
15731 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15732
15733 2019-08-19 Richard Biener <rguenther@suse.de>
15734
15735 PR tree-optimization/91403
15736 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15737 cases we can handle with tail-recursion...
15738 (follow_ssa_edge_expr): ... here. Do so.
15739
15740 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15741
15742 PR target/91441
15743 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15744 implemented for -fsanitize=kernel-address, and merge check logic
15745 with -fsanitize=address.
15746
15747 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15748
15749 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15750 for cpu and machine. Factor 64/32b builtins.
15751
15752 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15753
15754 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15755 gone, point to sourceforge.net.
15756
15757 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15758
15759 * doc/ux.texi (User Experience Guidelines): Update reference.
15760
15761 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15762
15763 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15764 not LGPL".
15765
15766 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15767
15768 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15769 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15770
15771 2019-08-16 Martin Sebor <msebor@redhat.com>
15772
15773 * tree.def (TYPE_SIZE): Clarify.
15774 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15775
15776 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15777
15778 PR tree-optimization/91109
15779 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15780 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15781 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15782
15783 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15784
15785 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15786 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15787 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15788 (uavg<mode>3_ceil): New expander.
15789 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15790 mode iterator when creating CONST1_RTX.
15791 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15792 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15793 mode iterator for const1_operand predicate.
15794
15795 2019-08-16 Richard Biener <rguenther@suse.de>
15796
15797 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15798 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15799 follow_ssa_edge.
15800 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15801 (analyze_evolution_in_loop): Likewise.
15802 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15803 (follow_ssa_edge_expr): ... here. Refactor code.
15804
15805 2019-08-16 Richard Biener <rguenther@suse.de>
15806
15807 PR target/91469
15808 * config/i386/i386-features.c
15809 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15810
15811 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15812
15813 PR other/91255
15814 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15815 only if subst_name matches curr_attr string.
15816
15817 2019-08-16 Richard Biener <rguenther@suse.de>
15818
15819 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15820 stmt at gsi_p, instead replace it with a NOP removed later.
15821 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15822 that became dead because of that.
15823
15824 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15825
15826 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15827 for which we can't represent a range.
15828 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15829 set_varying.
15830 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15831 Set VR_UNDEFINED if type is not supported.
15832 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15833 * tree-vrp.c (value_range_base::check): Assert that a varying has
15834 min/max set.
15835 (value_range_base::equal_p): Early bail for undefines.
15836 (value_range_base::set_varying): Accept a type.
15837 (value_range::set_varying): Same.
15838 (value_range_base::type): VARYING can have a type, while UNDEFINE
15839 is typeless.
15840 (value_range_base::dump): Print type for VARYING nodes.
15841 (value_range_base::set): Add type to VARYING.
15842 (extract_range_from_multiplicative_op): Pass type to set_varying.
15843 (extract_range_from_binary_expr): Same.
15844 (value_range_base::intersect_helper): Same.
15845 (value_range_base::union_helper): Same.
15846 (value_range_base::normalize_symbolics): Same.
15847 (determine_value_range_1): Same.
15848 * tree-vrp.h (class value_range_base): Add type to set_varying.
15849 Add prototype for dump(void).
15850 Add prototype for supports_type_p.
15851 (class value_range): Add type to set_varying.
15852 Add prototype for dump(void).
15853 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15854 set_varying.
15855 (vr_values::get_lattice_entry): Set varying even if propagation
15856 finished.
15857 Pass type to set_varying.
15858 (vr_values::get_value_range): Remove vr_const_varying.
15859 Reallocate the lattice if needed.
15860 (vr_values::update_value_range): Pass type to set_varying.
15861 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15862 (vr_values::extract_range_from_binary_expr): Same.
15863 (vr_values::extract_range_from_unary_expr): Same.
15864 (vr_values::extract_range_from_cond_expr): Same.
15865 (vr_values::check_for_binary_op_overflow): Same.
15866 (vr_values::extract_range_basic): Same.
15867 (vr_values::extract_range_from_assignment): Same.
15868 (vr_values::vr_values): Increase size of num_vr_values.
15869 (vr_values::extract_range_from_phi_node): Pass type to
15870 set_varying.
15871
15872 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15873
15874 PR target/90878
15875 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15876 for costs of hard register moves.
15877 (ix86_register_move_cost): Likewise.
15878 * config/i386/i386.h (processor_costs): Move costs of hard
15879 register moves to hard_register. Add int_load, int_store,
15880 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15881 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15882 for costs of RTL expressions.
15883 * config/i386/x86-tune-costs.h: Move costs of hard register
15884 moves to hard_register. Duplicate int_load, int_store,
15885 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15886 sse_load, sse_store for costs of RTL expressions.
15887
15888 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15889
15890 * target.def (setup_incoming_vararg_bounds): Remove.
15891 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15892 * doc/tm.texi: Regenerate.
15893 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15894 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15895 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15896 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15897
15898 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15899
15900 MSP430: Fix lines over 80 characters long in
15901 config/msp430/*.{c,h} files
15902
15903 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15904 specifier in string.
15905 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15906 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15907 redundant old comment.
15908 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15909 Split line more than 80 characters long.
15910 * config/msp430/msp430.c (msp430_option_override): Likewise.
15911 (msp430_return_in_memory): Likewise.
15912 (msp430_gimplify_va_arg_expr): Likewise.
15913 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15914 (msp430_legitimate_constant): Likewise.
15915 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15916 (msp430_attr): Likewise.
15917 (msp430_data_attr): Likewise.
15918 (msp430_start_function): Likewise.
15919 (gen_prefix): Likewise.
15920 (msp430_init_sections): Likewise.
15921 (msp430_select_section): Likewise.
15922 (msp430_function_section): Likewise.
15923 (msp430_unique_section): Likewise.
15924 (msp430_output_aligned_decl_common): Likewise.
15925 (msp430_do_not_relax_short_jumps): Likewise.
15926 (msp430_init_builtins): Likewise.
15927 (msp430_expand_delay_cycles): Likewise.
15928 (msp430_expand_prologue): Likewise.
15929 (msp430_expand_epilogue): Likewise.
15930 (msp430_expand_helper): Likewise.
15931 (msp430_split_movsi): Likewise.
15932 (msp430_print_operand): Likewise.
15933 (msp430_return_addr_rtx): Likewise.
15934 (msp430x_extendhisi): Likewise.
15935 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15936 (ASM_SPEC): Likewise.
15937 Remove very obvious comments.
15938 (LIB_SPEC): Split line more than 80 characters long.
15939 (EH_RETURN_HANDLER_RTX): Likewise.
15940 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15941
15942 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15943
15944 MSP430: Fix whitespace errors and incorrect indentation in
15945 config/msp430/*.{c,h} files
15946
15947 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15948 (msp430_select_hwmult_lib): Likewise.
15949 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15950 (msp430_extract_mcu_data): Likewise.
15951 (struct t_msp430_mcu_data): Likewise.
15952 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15953 before left square bracket.
15954 (msp430_option_override): Fix indentation.
15955 (msp430_hard_regno_nregs_with_padding): Likewise.
15956 (msp430_initial_elimination_offset): Likewise.
15957 (msp430_special_register_convention_p): Remove whitespace before left
15958 square bracket and after exclamation mark.
15959 (msp430_evaluate_arg): Likewise.
15960 (msp430_callee_copies): Fix indentation.
15961 (msp430_gimplify_va_arg_expr): Likewise.
15962 (msp430_function_arg_advance): Remove whitespace before left square
15963 bracket.
15964 (reg_ok_for_addr): Likewise.
15965 (msp430_preserve_reg_p): Likewise.
15966 (msp430_compute_frame_info): Likewise.
15967 (msp430_asm_output_addr_const_extra): Add space between function name
15968 and open parenthesis.
15969 (has_section_name): Fix indentation.
15970 (msp430_attr): Remove trailing whitespace.
15971 (msp430_section_attr): Likewise.
15972 (msp430_data_attr): Likewise.
15973 (struct msp430_attribute_table): Fix comment and whitespace.
15974 (msp430_start_function): Remove whitespace before left square bracket.
15975 Add space between function name and open parenthesis.
15976 (msp430_select_section): Remove trailing whitespace.
15977 (msp430_section_type_flags): Remove trailing whitespace.
15978 (msp430_unique_section): Remove space before closing parenthesis.
15979 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15980 (msp430_builtins): Remove whitespace before left square bracket.
15981 (msp430_init_builtins): Fix indentation.
15982 (msp430_expand_prologue): Remove whitespace before left square bracket.
15983 Remove space before closing parenthesis.
15984 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15985 (msp430_split_movsi): Remove space before closing parenthesis.
15986 (helper_function_name_mappings): Fix indentation.
15987 (msp430_use_f5_series_hwmult): Fix whitespace.
15988 (use_32bit_hwmult): Likewise.
15989 (msp430_no_hwmult): Likewise.
15990 (msp430_output_labelref): Remove whitespace before left square bracket.
15991 (msp430_print_operand_raw): Likewise.
15992 (msp430_print_operand_addr): Likewise.
15993 (msp430_print_operand): Add two spaces after '.' in comment.
15994 Fix trailing whitespace.
15995 (msp430x_extendhisi): Fix indentation.
15996 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15997 tab.
15998 (PC_REGNUM): Likewise.
15999 (STACK_POINTER_REGNUM): Likewise.
16000 (CC_REGNUM): Likewise.
16001
16002 2019-08-15 Richard Biener <rguenther@suse.de>
16003
16004 PR target/91454
16005 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16006 helper.
16007 (general_scalar_chain::make_vector_copies): Use it.
16008
16009 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16010
16011 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16012
16013 2019-08-15 Martin Liska <mliska@suse.cz>
16014
16015 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16016 operators with no arguments.
16017 (eliminate_unnecessary_stmts): Likewise here.
16018
16019 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16020
16021 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16022 <case COMPARE>: Revert 2019-08-14 change.
16023 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16024 for (TARGET_64BIT || mode != DImode).
16025
16026 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16027
16028 * tree-vrp.c (value_range_base::set): Merge in code from
16029 value_range_base::set_and_canonicalize.
16030 Enforce canonicalization at set time.
16031 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16032 (value_range_base::set_undefined): Inline call to set().
16033 (value_range_base::set_varying): Same.
16034 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16035 (vrp_val_max): New argument handle_pointers.
16036 (vrp_val_min): Same.
16037 (ranges_from_anti_range): Same.
16038 (extract_range_into_wide_ints): Use tree argument instead of sign
16039 and precision.
16040 (extract_range_from_multiplicative_op): Take in tree type instead
16041 of precision and sign. Adapt function for canonicalized ranges.
16042 (extract_range_from_binary_expr): Pass type to
16043 extract_range_from_multiplicative_op.
16044 Adapt for canonicalized ranges.
16045 (extract_range_from_unary_expr): Same.
16046 (value_range_base::intersect_helper): Adjust for canonicalized
16047 ranges.
16048 (value_range_base::union_helper): Same.
16049 (value_range_base::normalize_symbolics): New.
16050 * tree-vrp.h (class value_range_base): Remove
16051 set_and_canonicalize.
16052 New prototype for normalize_symbolics.
16053 (class value_range): Remove set_and_canonicalize.
16054 (vrp_val_min): Adjust prototype.
16055 (vrp_val_max): Same.
16056 * vr-values.c
16057 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16058 instead of set_and_canonicalize.
16059
16060 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16061
16062 PR middle-end/91444
16063 * tree-vect-stmts.c (vectorizable_call): Check that the function
16064 is a BUILT_IN_MD function before passing it to
16065 targetm.vectorize.builtin_md_vectorized_function.
16066
16067 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16068
16069 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16070 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16071 (aarch64_select_early_remat_modes): Use it.
16072
16073 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16074
16075 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16076 16 for SVE predicates even if they are fixed-length.
16077
16078 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16079
16080 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16081 operand order match the MOV /Z alias.
16082
16083 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16084
16085 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16086 the vector pattern as an aarch64_svpattern argument. Update the
16087 overloaded caller accordingly.
16088 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16089 (aarch64_output_sve_vector_inc_dec): Likewise.
16090
16091 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16092
16093 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16094 multiplication case, try to compute VG * (lowest set bit) directly
16095 rather than always basing the multiplication on VG. Use
16096 expand_mult for the multiplication if we can.
16097
16098 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16099
16100 * config/aarch64/aarch64-protos.h
16101 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16102 (aarch64_sve_inc_dec_immediate_p): Rename to...
16103 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16104 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16105 (aarch64_output_sve_scalar_inc_dec): Declare.
16106 (aarch64_output_sve_inc_dec_immediate): Rename to...
16107 (aarch64_output_sve_vector_inc_dec): ...this.
16108 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16109 (aarch64_output_sve_scalar_inc_dec): New functions.
16110 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16111 arguments. Only handle true ADDVL and ADDPL instructions;
16112 don't emit an INC or DEC.
16113 (aarch64_sve_inc_dec_immediate_p): Rename to...
16114 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16115 (aarch64_output_sve_inc_dec_immediate): Rename to...
16116 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16117 aarch64_sve_vector_inc_dec_immediate_p.
16118 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16119 (aarch64_sve_plus_immediate): New predicates.
16120 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16121 rather than aarch64_sve_addvl_addpl_immediate.
16122 (aarch64_sve_inc_dec_immediate): Rename to...
16123 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16124 aarch64_sve_vector_inc_dec_immediate_p.
16125 (aarch64_sve_add_operand): Update accordingly.
16126 * config/aarch64/constraints.md (Uai): New constraint.
16127 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16128 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16129 operand into a register if it satisfies aarch64_sve_plus_immediate.
16130 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16131 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16132 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16133 aarch64_output_sve_vector_inc_dec instead of
16134 aarch64_output_sve_inc_dec_immediate.
16135
16136 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16137
16138 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16139 (UNSPEC_REVW): New constants.
16140 (elem_bits): New mode attribute.
16141 (SVE_INT_UNARY): New int iterator.
16142 (optab): Handle UNSPEC_REV[BHW].
16143 (sve_int_op): New int attribute.
16144 (min_elem_bits): Handle VNx16QI and the predicate modes.
16145 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16146 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16147 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16148 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16149 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16150 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16151 unspecs based on the total width of the reversed data.
16152 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16153 reinterpret followed by a subreg on big-endian targets.
16154
16155 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16156 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16157
16158 * config/aarch64/aarch64-sve.md
16159 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16160 alternatives in which one of the inputs is in the same register
16161 as the output.
16162
16163 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16164
16165 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16166 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16167
16168 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16169
16170 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16171 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16172
16173 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16174 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16175
16176 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16177 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16178 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16179
16180 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16181 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16182
16183 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16184 Add an alternative that uses reversed shifts.
16185
16186 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16187
16188 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16189 struct.
16190
16191 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16192
16193 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16194 a commutativity marker.
16195
16196 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16197 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16198
16199 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16200 (aarch64_prepare_sve_cond_int_fma): Declare.
16201 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16202 (aarch64_prepare_sve_int_fma): New functions.
16203 (aarch64_prepare_sve_cond_int_fma): Likewise.
16204 * config/aarch64/aarch64-sve.md
16205 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16206 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16207 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16208 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16209 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16210 (*madd<mode>): Rename to...
16211 (*fma<mode>4): ...this.
16212 (*msub<mode>): Rename to...
16213 (*fnma<mode>4): ...this.
16214
16215 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16216 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16217
16218 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16219 Print 2.0 naturally.
16220 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16221 * config/aarch64/predicates.md
16222 (aarch64_sve_float_negated_arith_immediate): New predicate,
16223 renamed from aarch64_sve_float_arith_with_sub_immediate.
16224 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16225 positive and negative constants.
16226 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16227 or an aarch64_sve_float_arith_with_sub_immediate.
16228 * config/aarch64/constraints.md (vsN): Use
16229 aarch64_sve_float_negated_arith_immediate.
16230 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16231 iterator.
16232 (sve_pred_fp_rhs2_immediate): New int attribute.
16233 * config/aarch64/aarch64-sve.md
16234 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16235 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16236 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16237 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16238 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16239 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16240
16241 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16242 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16243
16244 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16245 (*aarch64_cond_abd<SVE_F:mode>_3)
16246 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16247
16248 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16249 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16250
16251 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16252 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16253
16254 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16255 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16256
16257 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16258 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16259 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16260 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16261 optabs.
16262 * optabs.h (create_convert_operand_from): Expand comment.
16263 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16264 when mapping scalar rtxes to vector operands.
16265 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16266 ashiftrt and lshiftrt.
16267 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16268 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16269 (*cond_<optab><mode>_any_const): New patterns.
16270
16271 2019-08-15 Martin Liska <mliska@suse.cz>
16272
16273 PR ipa/91438
16274 * cgraph.c (cgraph_node::remove): When setting
16275 n->origin = NULL for all nested functions, reset
16276 also next_nested.
16277
16278 2019-08-15 Martin Liska <mliska@suse.cz>
16279
16280 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16281 and next_nested.
16282
16283 2019-08-15 Martin Liska <mliska@suse.cz>
16284
16285 PR ipa/91404
16286 * passes.c (order): Remove.
16287 (uid_hash_t): Likewise).
16288 (remove_cgraph_node_from_order): Remove from set
16289 of pointers (cgraph_node *).
16290 (insert_cgraph_node_to_order): New.
16291 (duplicate_cgraph_node_to_order): New.
16292 (do_per_function_toporder): Register all 3 cgraph hooks.
16293 Skip removed_nodes now as we know about all of them.
16294
16295 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16296
16297 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16298 <case E_V8QImode>: Use vector_set path for
16299 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16300 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16301 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16302
16303 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16304
16305 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16306
16307 2019-08-14 Martin Sebor <msebor@redhat.com>
16308
16309 PR tree-optimization/91294
16310 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16311 source length as exact.
16312
16313 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16314
16315 * doc/extend.texi: Add "noinit" attribute documentation.
16316 * doc/sourcebuild.texi: Add noinit effective target documentation.
16317 * varasm.c (default_section_type_flags): Add support for "noinit"
16318 section.
16319 (default_elf_select_section): Add support for "noinit" attribute.
16320 * config/msp430/msp430.c (msp430_attribute_table): Remove
16321 "noinit" entry.
16322
16323 2019-08-14 Richard Biener <rguenther@suse.de>
16324 Uroš Bizjak <ubizjak@gmail.com>
16325
16326 PR target/91154
16327 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16328 mode arguments.
16329 (scalar_chain::smode): New member.
16330 (scalar_chain::vmode): Likewise.
16331 (dimode_scalar_chain): Rename to...
16332 (general_scalar_chain): ... this.
16333 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16334 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16335 base with TImode and V1TImode.
16336 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16337 (general_scalar_chain::vector_const_cost): Adjust for SImode
16338 chains.
16339 (general_scalar_chain::compute_convert_gain): Likewise. Add
16340 {S,U}{MIN,MAX} support.
16341 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16342 (general_scalar_chain::make_vector_copies): Likewise. Handle
16343 non-DImode chains appropriately.
16344 (general_scalar_chain::convert_reg): Likewise.
16345 (general_scalar_chain::convert_op): Likewise.
16346 (general_scalar_chain::convert_insn): Likewise. Add
16347 fatal_insn_not_found if the result is not recognized.
16348 (convertible_comparison_p): Pass in the scalar mode and use that.
16349 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16350 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16351 (scalar_to_vector_candidate_p): Remove by inlining into single
16352 caller.
16353 (general_remove_non_convertible_regs): Rename from
16354 dimode_remove_non_convertible_regs.
16355 (remove_non_convertible_regs): Remove by inlining into single caller.
16356 (convert_scalars_to_vector): Handle SImode and DImode chains
16357 in addition to TImode chains.
16358 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16359 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16360 (*<maxmin>di3_doubleword): Likewise.
16361
16362 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16363 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16364
16365 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16366 (*cond_bic<mode>_any): New patterns.
16367
16368 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16369
16370 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16371 take the equivalent mask, as well as a bit count.
16372 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16373 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16374 (aarch64_sve_pred_and_operand): New predicates.
16375 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16376 code attribute.
16377 * config/aarch64/aarch64-sve.md
16378 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16379 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16380
16381 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16382
16383 * config/aarch64/aarch64-sve.md
16384 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16385 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16386 New patterns.
16387
16388 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16389 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16390
16391 * config/aarch64/aarch64-sve.md
16392 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16393 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16394
16395 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16396 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16397
16398 * config/aarch64/aarch64-sve.md
16399 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16400 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16401
16402 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16403
16404 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16405 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16406 New pattern.
16407
16408 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16409 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16410
16411 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16412
16413 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16414 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16415
16416 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16417 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16418 (aarch64_print_operand): Add support for %I.
16419 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16420 Bitcast floating-point constants to the corresponding integer constant.
16421 (aarch64_float_const_representable_p): Handle vectors as well
16422 as scalars.
16423 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16424 for the new vcond_mask_<mode><vpred> expander.
16425 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16426 test aarch64_float_const_representable_p.
16427 (aarch64_sve_reg_or_dup_imm): New predicate.
16428 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16429 gen_vcond_mask_<mode><vpred> instead of
16430 gen_aarch64_sve_dup<mode>_const.
16431 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16432 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16433 for operands 1 and 2 respectively. Force operand 2 into a
16434 register if operand 1 is a register. Fold old define_insn...
16435 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16436 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16437 floating-point constants that can be moved as integers. Add
16438 alternatives for MOV /M and FMOV /M.
16439 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16440 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16441 1 and 2 respectively.
16442 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16443 as scalars.
16444 (vss): New constraint.
16445
16446 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16447
16448 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16449 (aarch64_sve_float_maxmin_operand): New predicates.
16450 * config/aarch64/constraints.md (vsB): New constraint.
16451 (vsM): Fix typo.
16452 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16453 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16454 UNSPEC_COND_FMINNM.
16455 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16456 Use aarch64_sve_float_maxmin_operand for operand 2.
16457 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16458 Add alternatives for the constant forms.
16459
16460 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16461
16462 * config/aarch64/constraints.md (vsb): New constraint.
16463 (vsm): Generalize description.
16464 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16465 iterator.
16466 (sve_imm_con): Handle smax, smin, umax and umin.
16467 (sve_imm_prefix): New code attribute.
16468 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16469 (aarch64_sve_vsb_operand): New predicates.
16470 (aarch64_sve_mul_immediate): Rename to...
16471 (aarch64_sve_vsm_immediate): ...this.
16472 (aarch64_sve_mul_operand): Rename to...
16473 (aarch64_sve_vsm_operand): ...this.
16474 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16475 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16476 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16477 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16478 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16479 add movprfx support for the immediate alternatives.
16480 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16481 of the above.
16482 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16483 for operand 3.
16484
16485 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16486
16487 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16488 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16489 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16490
16491 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16492
16493 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16494 (optab, sve_int_op): Handle them.
16495 * config/aarch64/aarch64-sve.md: Expand comment.
16496
16497 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16498
16499 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16500 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16501 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16502
16503 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16504
16505 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16506 (aarch64_expand_sve_const_pred_trn): New functions.
16507 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16508 use the above functions when the parameter is true.
16509 (aarch64_expand_sve_const_pred): Update call accordingly.
16510 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16511 Rename to...
16512 (@aarch64_sve_<perm_insn><mode>): ...this.
16513
16514 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16515
16516 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16517 Declare.
16518 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16519 (aarch64_sve_emit_int_cmp): New functions.
16520 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16521 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16522 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16523 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16524 (UNSPEC_PRED_Z): New unspec.
16525 (set_clobber_cc_nzc): Delete.
16526 * config/aarch64/aarch64-sve.md: Add a block comment about
16527 UNSPEC_PRED_Z.
16528 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16529 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16530 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16531 UNSPEC_MERGE_PTRUE.
16532 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16533 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16534 check for compatible predicates.
16535 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16536 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16537 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16538 comparisons above.
16539
16540 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16541
16542 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16543 * config/aarch64/aarch64-sve.md: Add a section describing it.
16544 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16545 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16546 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16547 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16548 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16549 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16550 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16551 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16552 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16553 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16554 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16555 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16556 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16557 (aarch64_evpc_rev_local): Update accordingly.
16558
16559 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16560
16561 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16562 iterators.
16563 (SVE_BHSI, SVE_SDI): Tweak comment.
16564 (SVE_HSDI): Likewise. Fix definition.
16565 (SVE_SDF): New mode iterator.
16566 (elem_bits): New mode attribute.
16567 (SVE_COND_FCVT): New int iterator.
16568 * config/aarch64/aarch64-sve.md
16569 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16570 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16571 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16572 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16573 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16574 ...these new patterns.
16575 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16576 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16577 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16578 Merge into...
16579 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16580 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16581 ...these new patterns.
16582 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16583 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16584 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16585 ...this new pattern.
16586 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16587 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16588 ...this new pattern.
16589 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16590
16591 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16592
16593 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16594 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16595 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16596 unspecs.
16597 (optab, su): Handle them.
16598 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16599 * config/aarch64/aarch64-sve.md
16600 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16601 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16602 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16603 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16604 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16605 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16606 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16607 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16608 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16609 FIXUORS.
16610 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16611 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16612 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16613 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16614 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16615 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16616 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16617 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16618 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16619 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16620 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16621 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16622 of UNSPEC_FLOAT_CONVERT.
16623 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16624 aarch64_sve_extend<mode><Vwide>2.
16625
16626 2019-08-14 Richard Biener <rguenther@suse.de>
16627
16628 PR target/91154
16629 * config/i386/i386-features.c
16630 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16631 individual instruction gain. Fix reg-reg copy GRP cost. Use
16632 ix86_cost->sse_op for vector instruction costs.
16633
16634 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16635
16636 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16637 (cmp_op): Handle it.
16638 (SVE_COND_FP_CMP): Rename to...
16639 (SVE_COND_FP_CMP_I0): ...this.
16640 (SVE_FP_CMP): Remove.
16641 * config/aarch64/aarch64-sve.md
16642 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16643 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16644 using unspecs to represent the comparison.
16645 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16646 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16647 accordingly.
16648 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16649 (aarch64_unspec_cond_code): Move after integer code. Handle
16650 UNORDERED.
16651 (aarch64_emit_sve_predicated_cond): Replace with...
16652 (aarch64_emit_sve_fp_cond): ...this new function.
16653 (aarch64_emit_sve_or_conds): Replace with...
16654 (aarch64_emit_sve_or_fp_conds): ...this new function.
16655 (aarch64_emit_sve_inverted_cond): Replace with...
16656 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16657 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16658
16659 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16660
16661 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16662 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16663 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16664 SVE_HSD instead of SVE_SD.
16665
16666 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16667 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16668
16669 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16670 iterator.
16671 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16672 attributes.
16673 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16674 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16675 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16676 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16677 (*div<SVE_F:mode>3): Generalize to...
16678 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16679
16680 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16681 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16682
16683 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16684 constants.
16685 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16686 predicate.
16687 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16688 Declare.
16689 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16690 function.
16691 * config/aarch64/aarch64-sve.md: Add a block comment about the
16692 handling of predicated FP operations.
16693 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16694 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16695 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16696 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16697 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16698 operand.
16699 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16700 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16701 operand.
16702 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16703 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16704 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16705 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16706 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16707 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16708 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16709 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16710 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16711 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16712 strictness operands. Use aarch64_sve_pred_dominates_p to check
16713 whether the predicate on the conditional operation is suitable
16714 for merging. Split patterns into the canonical equal-predicate form.
16715 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16716 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16717
16718 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16719 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16720
16721 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16722 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16723 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16724 rtx codes.
16725 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16726 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16727 unspecs.
16728
16729 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16730 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16731
16732 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16733 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16734 actually has, rather than relying on REG_EQUAL notes.
16735 Make the insn operand order match the SVE operand order.
16736 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16737 the SVE operand order.
16738
16739 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16740
16741 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16742 (aarch64_emit_set_immediate): Likewise.
16743 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16744 (aarch64_pfalse_reg): Likewise.
16745 (aarch64_convert_sve_data_to_pred): New function.
16746 (aarch64_sve_move_pred_via_while): Take an optional target register
16747 and the required register mode.
16748 (aarch64_expand_sve_const_pred_1): New function.
16749 (aarch64_expand_sve_const_pred): Likewise.
16750 (aarch64_expand_mov_immediate): Build an all-true predicate
16751 if the significant bits of the immediate are all true. Use
16752 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16753 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16754 before register allocation.
16755 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16756 a VNx16BI PTRUE when splitting the memory alternative.
16757 (vec_duplicate<mode>): Update accordingly.
16758 (*pred_cmp<cmp_op><mode>): Rename to...
16759 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16760
16761 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16762
16763 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16764 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16765 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16766 (UNSPEC_PTEST): New unspec.
16767 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16768 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16769 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16770 * config/aarch64/aarch64-sve.md: Add a new section describing the
16771 handling of UNSPEC_PTEST.
16772 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16773 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16774 (ptest_ptrue<mode>): Replace with...
16775 (aarch64_ptest<mode>): ...this new pattern.
16776 (cbranch<mode>4): Update after above changes.
16777 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16778 UNSPEC_PTEST_PTRUE.
16779 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16780 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16781 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16782
16783 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16784
16785 PR lto/91287
16786 * builtins.c (builtin_with_linkage_p): New function.
16787 * builtins.h (builtin_with_linkage_p): New function.
16788 * symtab.c (write_symbol): Remove redundant assert.
16789 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16790 Remove FIXME and use builtin_with_linkage_p.
16791
16792 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16793
16794 PR middle-end/91421
16795 * tree-core.h (function_decl::function_code): Change type to
16796 unsigned int.
16797 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16798 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16799 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16800 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16801 is BUILT_IN_NORMAL.
16802 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16803 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16804 (fndecl_built_in_p): Change the type of the "name" argument to
16805 unsigned int.
16806 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16807 after check for DECL_BUILT_IN_CLASS.
16808 * cgraphclones.c (build_function_decl_skip_args): Use
16809 set_decl_built_in_function.
16810 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16811 * ipa-split.c (split_function): Likewise.
16812 * langhooks.c (add_builtin_function_common): Likewise.
16813 * omp-simd-clone.c (simd_clone_create): Likewise.
16814 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16815 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16816 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16817 DECL_FUNCTION_CODE.
16818 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16819 instead of DECL_FUNCTION_CODE.
16820 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16821 instead of DECL_FUNCTION_CODE.
16822 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16823 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16824 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16825 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16826 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16827 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16828 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16829 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16830 (alpha_gimple_fold_builtin): Likewise.
16831 * config/arc/arc.c (arc_expand_builtin): Likewise.
16832 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16833 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16834 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16835 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16836 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16837 * config/frv/frv.c (frv_expand_builtin): Likewise.
16838 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16839 (gcn_expand_builtin): Likewise.
16840 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16841 (fold_builtin_cpu): Likewise.
16842 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16843 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16844 (ix86_gimple_fold_builtin): Likewise.
16845 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16846 (ia64_expand_builtin): Likewise.
16847 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16848 * config/mips/mips.c (mips_expand_builtin): Likewise.
16849 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16850 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16851 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16852 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16853 * config/pa/pa.c (pa_expand_builtin): Likewise.
16854 * config/pru/pru.c (pru_expand_builtin): Likewise.
16855 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16856 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16857 Likewise.
16858 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16859 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16860 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16861 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16862 (rs6000_builtin_reciprocal): Likewise.
16863 * config/rx/rx.c (rx_expand_builtin): Likewise.
16864 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16865 * config/s390/s390.c (s390_expand_builtin): Likewise.
16866 * config/sh/sh.c (sh_expand_builtin): Likewise.
16867 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16868 (sparc_fold_builtin): Likewise.
16869 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16870 * config/spu/spu.c (spu_expand_builtin): Likewise.
16871 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16872 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16873 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16874 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16875 (xtensa_expand_builtin): Likewise.
16876
16877 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16878
16879 PR middle-end/91421
16880 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16881 before the DECL_FUNCTION_CODE.
16882 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16883 to check for a BUILT_IN_ALLOCA call.
16884 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16885 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16886 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16887 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16888 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16889 for BUILT_IN_NORMAL functions.
16890 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16891 test for BUILT_IN_TM_ABORT.
16892 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16893 to check for a BUILT_IN_STACK_RESTORE call.
16894 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16895 * tree-ssa-threadedge.c
16896 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16897 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16898 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16899 test for a BUILT_IN_NORMAL call instead of a negative test for
16900 an internal function call.
16901
16902 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16903
16904 * tree.h (build_vector_a_then_b): Declare.
16905 * tree.c (build_vector_a_then_b): New function.
16906 * fold-const-call.c (fold_while_ult): Likewise.
16907 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16908 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16909 (aarch64_svpattern): New enum.
16910 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16911 constants through aarch64_expand_mov_immediate.
16912 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16913 than general_operand as the predicate for operand 1.
16914 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16915 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16916 insn_type.
16917 (simd_immediate_info::simd_immediate_info): New overload that
16918 takes a scalar_int_mode and an svpattern.
16919 (simd_immediate_info::u): Add a "pattern" field.
16920 (svpattern_token): New function.
16921 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16922 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16923 (aarch64_sve_move_pred_via_while): New functions.
16924 (aarch64_expand_mov_immediate): Try using
16925 aarch64_sve_move_pred_via_while for predicates that contain N ones
16926 followed by M zeros but that do not correspond to a VLnnn pattern.
16927 (aarch64_sve_pred_valid_immediate): New function.
16928 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16929 with PTRUE and PFALSE.
16930 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16931 forms.
16932
16933 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16934
16935 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16936 flag.
16937 (darwin_override_options): Likewise.
16938 * config/darwin.h: Likewise.
16939 * config/darwin.opt: Likewise.
16940 * config/i386/i386.c (output_pic_addr_const): Likewise.
16941 * config/rs6000/darwin.h: Likewise.
16942 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16943 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16944 ... this TARGET_MACHO_SYMBOL_STUBS.
16945 (FUNCTION_PROFILER):Likewise.
16946 * config/i386/i386.h: Likewise.
16947
16948 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16949
16950 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16951 <case E_V2SImode>: Use vec_extr path for
16952 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16953 <case E_V8QImode>: Ditto.
16954 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16955 Use SWI48 mode iterator. Use %k to output operand 0.
16956 (*mmx_pextrw): New insn pattern.
16957 (*mmx_pextrb): Ditto.
16958 (*mmx_pextrb_zext): Ditto.
16959
16960 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16961
16962 * target.def (libc_has_function, libc_has_fast_function): Improve
16963 documentation strings.
16964 * doc/tm.texi: Regenerate.
16965
16966 2019-08-13 Caroline Tice <cmtice@google.com>
16967
16968 PR other/91396
16969 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16970 vtv_end.o or vtv_end_preinit.o files if !static.
16971
16972 2019-08-13 Olivier Hainque <hainque@adacore.com>
16973
16974 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16975
16976 2019-08-13 Olivier Hainque <hainque@adacore.com>
16977
16978 * rtlanal.c (tablejump_casesi_pattern): New function, to
16979 determine if a tablejump insn is a casesi dispatcher. Extracted
16980 from patch_jump_insn.
16981 * rtl.h (tablejump_casesi_pattern): Declare.
16982 * cfgrtl.c (patch_jump_insn): Use it.
16983 * dwarf2cfi.c (create_trace_edges): Use it.
16984
16985 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16986
16987 PR target/81800
16988 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16989 operand is larger than a long int.
16990
16991 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16992
16993 * machmode.h (opt_mode::else_mode): New function.
16994 (opt_mode::else_blk): Use it.
16995 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16996 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16997 (aarch64_gen_stepped_int_parallel): Likewise.
16998 (aarch64_stepped_int_parallel_p): Likewise.
16999 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17000 argument.
17001 * config/aarch64/aarch64.c
17002 (aarch64_expand_sve_widened_duplicate): Delete.
17003 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17004 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17005 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17006 argument. Use early returns in the !CONST_INT_P handling.
17007 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17008 than handling some inline.
17009 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17010 from...
17011 (aarch64_simd_container_mode): ...here.
17012 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17013 (aarch64_sve_ld1rq_operand_p): New functions.
17014 * config/aarch64/predicates.md (descending_int_parallel)
17015 (aarch64_sve_ld1rq_operand): New predicates.
17016 * config/aarch64/constraints.md (UtQ): New constraint.
17017 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17018 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17019 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17020 (@aarch64_sve_reinterpret<mode>): New expander.
17021 (*aarch64_sve_reinterpret<mode>): New pattern.
17022 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17023 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17024 (*sve_ld1rq<Vesize>): Replace with...
17025 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17026
17027 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17028
17029 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17030 16:12.
17031
17032 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17033
17034 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17035 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17036 (msp430_check_path_for_devices): New.
17037 (parse_devices_csv_1): New.
17038 (parse_devices_csv): New.
17039 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17040 MCU data in devices.csv before using the hard-coded data.
17041 Warn if devices.csv isn't found and the MCU wasn't found in the
17042 hard-coded data either.
17043 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17044 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17045 Search for devices.csv on -I and -L paths.
17046 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17047 msp430_set_driver_var.
17048 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17049 -mdevices-csv-loc=.
17050 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17051 searched for devices.csv.
17052 (mwarn-devices-csv): Document option.
17053
17054 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17055
17056 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17057 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17058 Use a single Dn alternative instead of separate Dz and Dm
17059 alternatives. Use aarch64_output_sve_move_immediate.
17060 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17061 function.
17062 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17063 for predicates too.
17064 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17065 (aarch64_output_ptrue): Delete.
17066
17067 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17068
17069 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17070 INDEX.
17071 (simd_immediate_info::value, simd_immediate_info::step)
17072 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17073 with...
17074 (simd_immediate_info::u): ...this new union.
17075 (simd_immediate_info::simd_immediate_info): Update accordingly.
17076 (aarch64_output_simd_mov_immediate): Likewise.
17077 (aarch64_output_sve_mov_immediate): Likewise.
17078
17079 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17080
17081 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17082 extra_gcc_objs.
17083 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17084 (msp430_select_cpu): New spec function.
17085 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17086 MCU data.
17087 * config/msp430/msp430-devices.c: New file.
17088 * config/msp430/msp430-devices.h: New file.
17089 * config/msp430/msp430.c: Remove msp430_mcu_data.
17090 (msp430_option_override): Use msp430_extract_mcu_data to extract
17091 MCU data.
17092 (msp430_use_f5_series_hwmult): Likewise.
17093 (use_32bit_hwmult): Likewise.
17094 (msp430_no_hwmult): Likewise.
17095 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17096 assembler.
17097 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17098 and -mcpu option.
17099 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17100 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17101 Remove hard-coded MCU multilib data.
17102
17103 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17104
17105 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17106 based on the mode instead of testing properties of it.
17107
17108 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17109
17110 * doc/md.texi: Document the x and y constraints for AArch64.
17111 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17112 (FP_LO8_REGS): New reg_class.
17113 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17114 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17115 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17116 * config/aarch64/predicates.md (aarch64_simd_register): Use
17117 FP_REGNUM_P instead of checking the classes manually.
17118 * config/aarch64/constraints.md (y): New constraint.
17119
17120 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17121
17122 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17123 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17124 * config/aarch64/aarch64-simd.md
17125 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17126 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17127 from the asm template.
17128 * config/aarch64/aarch64-sve.md
17129 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17130 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17131 from the asm template.
17132 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17133 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17134 from the asm template.
17135 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17136
17137 2019-08-13 Martin Liska <mliska@suse.cz>
17138
17139 * value-prof.c (gimple_ic_transform): Add new line.
17140 Print details with MSG_NOTE.
17141
17142 2019-08-13 Martin Liska <mliska@suse.cz>
17143
17144 * doc/invoke.texi: Document automatic detection of jobserver.
17145 * lto-wrapper.c (run_gcc): Detect jobserver always.
17146
17147 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17148
17149 * config/i386/i386-expand.c (ix86_expand_vector_set)
17150 <case E_V2SImode>: Use vec_merge path for
17151 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17152 <case E_V8QImode>: Ditto.
17153 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17154 (*mmx_pinsrb): Ditto.
17155
17156 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17157
17158 PR target/83250
17159 PR target/91340
17160 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17161 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17162 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17163 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17164 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17165
17166 2019-08-12 Richard Biener <rguenther@suse.de>
17167
17168 PR lto/91375
17169 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17170 flag_devirtualize.
17171
17172 2019-08-12 Richard Biener <rguenther@suse.de>
17173
17174 PR driver/91130
17175 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17176 lang_mask option, always use CL_DRIVER.
17177 (get_options_from_collect_gcc_options): Adjust.
17178 (find_and_merge_options): Likewise.
17179 (run_gcc): Likewise.
17180
17181 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17182
17183 * ipa-predicate.c (add_condition): Restore inverted test.
17184
17185 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17186
17187 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17188 (enum omp_clause_device_type_kind): New enum.
17189 (struct tree_omp_clause): Add subcode.device_type_kind.
17190 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17191 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17192 for device_type clause.
17193 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17194 * tree-pretty-print.c (dump_omp_clause): Likewise.
17195
17196 PR target/91408
17197 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17198 vector_operand.
17199
17200 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17201
17202 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17203 handling spilled pseudos.
17204
17205 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17206
17207 PR target/91386
17208 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17209 to preserve the contents of the original insns.
17210
17211 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17212
17213 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17214 (addsi3_compare_op2): Likewise.
17215
17216 2019-08-09 Martin Liska <mliska@suse.cz>
17217
17218 * alias.c (alias_ptr_types_compatible_p): Strengten
17219 type comparison in LTO mode.
17220
17221 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17222
17223 PR middle-end/90313
17224 * tree-tailcall.c (find_tail_calls): Reject calls that might
17225 read from an escaped RESULT_DECL.
17226
17227 2019-08-09 Martin Liska <mliska@suse.cz>
17228
17229 * doc/invoke.texi: Document the option value.
17230 * lto-wrapper.c (run_gcc): Set auto_parallel
17231 only with -flto=auto.
17232
17233 2019-08-09 Martin Liska <mliska@suse.cz>
17234
17235 * opts.c (common_handle_option): Error for an invalid argument
17236 to -flto=.
17237
17238 2019-08-09 Martin Liska <mliska@suse.cz>
17239
17240 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17241 use dump_printf to report optimization.
17242 (sem_variable::merge): Likwise.
17243 (sem_item_optimizer::merge_classes): Use dump_printf to report
17244 ICF hits.
17245
17246 2019-08-09 Martin Liska <mliska@suse.cz>
17247
17248 * value-prof.c (gimple_divmod_fixed_value_transform):
17249 Use dump_printf_loc.
17250 (gimple_mod_pow2_value_transform): Likewise.
17251 (gimple_mod_subtract_transform): Likewise.
17252 (init_node_map): Likewise.
17253 (gimple_ic_transform): Likewise.
17254 (gimple_stringops_transform): Likewise.
17255
17256 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17257
17258 * doc/extend.texi: Add const qualifier to ld intrinsics.
17259
17260 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17261
17262 * config/rs6000/dfp.md (D64_D128): Rename to ...
17263 (DDTD): ... this, throughout.
17264 (dfp_suffix): Rename to ...
17265 (q): ... this, throughout.
17266
17267 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17268
17269 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17270 (dfp_suffix): Ditto.
17271 (adddd3, addtd3): Merge to ...
17272 (add<mode>3 for D64_D128): ... this.
17273 (subdd3, subtd3): Merge to ...
17274 (sub<mode>3 for D64_D128): ... this.
17275 (muldd3, multd3): Merge to ...
17276 (mul<mode>3 for D64_D128): ... this.
17277 (divdd3, divtd3): Merge to ...
17278 (div<mode>3 for D64_D128): ... this.
17279 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17280 (*cmp<mode>_internal1 for D64_D128): ... this.
17281 (ftruncdd2, ftrunctd2): Merge to ...
17282 (ftrunc<mode>2 for D64_D128): ... this.
17283 (fixdddi2, fixtddi2): Merge to ...
17284 (fix<mode>di2 for D64_D128): ... this.
17285
17286 2019-08-08 Jim Wilson <jimw@sifive.com>
17287
17288 PR target/91229
17289 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17290 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17291 Pass into recursive call.
17292 (riscv_flatten_aggregate_argument): New arg. Pass to
17293 riscv_flatten_aggregate_field.
17294 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17295 riscv_flatten_aggregate_argument twice, with false and true as last
17296 arg. Process result twice. Compare results and warn if different.
17297 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17298
17299 2019-08-08 Martin Liska <mliska@suse.cz>
17300
17301 PR bootstrap/91352
17302 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17303 * lto-wrapper.c (jobserver_active_p): Likewise.
17304
17305 2019-08-08 Martin Liska <mliska@suse.cz>
17306
17307 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17308 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17309 (create_version_clone_with_body): Likewise.
17310
17311 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17312
17313 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17314 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17315 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17316 GOVD_EXPLICIT flags.
17317 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17318 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17319 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17320 call install_var_field with mask 11 instead of 3.
17321 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17322 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17323
17324 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17325
17326 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17327 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17328
17329 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17330
17331 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17332 MOVPRFX alternatives. Make the GPR alternatives more expensive
17333 than the FPR ones.
17334
17335 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17336
17337 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17338 Disparage the GPR alternative relative to the FPR one.
17339 Fix handling of 8-bit and 16-bit FPR values.
17340
17341 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17342
17343 * config/aarch64/iterators.md (BITWISEV): Delete.
17344 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17345 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17346 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17347 UNSPEC_FMINNMV, UNSPEC_FMINV.
17348 (bit_reduc_op): Delete.
17349 (sve_int_op): New int attribute.
17350 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17351 UNSPEC_FMINNMV, UNSPEC_FMINV.
17352 * config/aarch64/aarch64-sve.md
17353 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17354 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17355 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17356 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17357 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17358 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17359 new patterns.
17360 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17361 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17362 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17363 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17364 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17365 new patterns.
17366
17367 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17368
17369 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17370 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17371 (fms<mode>4, *fms<mode>4): Replace with...
17372 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17373 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17374 Use unspecs instead of rtx codes.
17375 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17376 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17377
17378 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17379
17380 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17381 int iterator.
17382 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17383 * config/aarch64/aarch64-sve.md
17384 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17385 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17386 use a single unspec for the rhs.
17387 (*<su><maxmin><mode>3): Delete.
17388 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17389
17390 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17391
17392 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17393 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17394 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17395 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17396 (optab, sve_fp_op): Handle them.
17397 (SVE_FP_UNARY): Delete.
17398 (optab): Remove sqrt entry.
17399 (sve_fp_op): Remove neg, abs and sqrt entries.
17400 (SVE_COND_FP_UNARY): New int iterator.
17401 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17402 (*<frint_pattern><mode>2): Delete.
17403 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17404 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17405 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17406 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17407
17408 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17409
17410 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17411
17412 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17413
17414 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17415 (UNSPEC_COND_FADD): ...this.
17416 (UNSPEC_COND_SUB): Rename to...
17417 (UNSPEC_COND_FSUB): ...this.
17418 (UNSPEC_COND_MUL): Rename to...
17419 (UNSPEC_COND_FMUL): ...this.
17420 (UNSPEC_COND_DIV): Rename to...
17421 (UNSPEC_COND_FDIV): ...this.
17422 (UNSPEC_COND_MAX): Rename to...
17423 (UNSPEC_COND_FMAXNM): ...this.
17424 (UNSPEC_COND_MIN): Rename to...
17425 (UNSPEC_COND_FMINNM): ...this.
17426 (UNSPEC_COND_LT): Rename to...
17427 (UNSPEC_COND_FCMLT): ...this.
17428 (UNSPEC_COND_LE): Rename to...
17429 (UNSPEC_COND_FCMLE): ...this.
17430 (UNSPEC_COND_EQ): Rename to...
17431 (UNSPEC_COND_FCMEQ): ...this.
17432 (UNSPEC_COND_NE): Rename to...
17433 (UNSPEC_COND_FCMNE): ...this.
17434 (UNSPEC_COND_GE): Rename to...
17435 (UNSPEC_COND_FCMGE): ...this.
17436 (UNSPEC_COND_GT): Rename to...
17437 (UNSPEC_COND_FCMGT): ...this.
17438 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17439 (sve_fp_op_rev): Update accordingly.
17440 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17441
17442 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17443
17444 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17445 banner comments.
17446 * config/aarch64/check-sve-md.awk: New file.
17447 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17448 (insn-conditions.md): Depend on it.
17449
17450 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17451
17452 PR target/91385
17453 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17454 (*negsi2_cmpz_zext): Ditto.
17455
17456 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17457
17458 * config/aarch64/iterators.md (commutative): Remove.
17459
17460 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17461
17462 PR driver/91130
17463 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17464 processing COLLECT_GCC_OPTIONS.
17465 (run_gcc): Likewise.
17466
17467 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17468
17469 PR tree-optimization/91109
17470 * lra-remat.c (update_scratch_ops): Remove assignment of the
17471 hard register.
17472
17473 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17474
17475 * data-streamer.h (streamer_write_poly_uint64): Declare.
17476 (streamer_read_poly_uint64): Likewise.
17477 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17478 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17479 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17480 (add_condition): Take a poly_int64 size.
17481 * ipa-predicate.c (add_condition): Likewise.
17482 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17483 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17484 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17485 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17486 condition::size as a poly_int64.
17487 (unmodified_parm_1): Take a poly_int64 size pointer.
17488 (unmodified_parm): Likewise.
17489 (unmodified_parm_or_parm_agg_item): Likewise.
17490 (set_cond_stmt_execution_predicate): Update accordingly.
17491 (set_switch_stmt_execution_predicate): Likewise.
17492 (will_be_nonconstant_expr_predicate): Likewise.
17493 (will_be_nonconstant_predicate): Likewise.
17494 (inline_read_section): Stream condition::size as a poly_int.
17495 (ipa_fn_summary_write): Likewise.
17496
17497 2019-08-07 Martin Liska <mliska@suse.cz>
17498
17499 * fold-const.c (twoval_comparison_p): Replace int
17500 with bool as a return type.
17501 (simple_operand_p): Likewise.
17502 (operand_equal_p): Replace int with bool as a return type.
17503 * fold-const.h (operand_equal_p): Likewise.
17504
17505 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17506
17507 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17508 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17509 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17510 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17511 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17512 * tree-pretty-print.c (dump_omp_clause): Likewise.
17513 * tree-nested.c (convert_nonlocal_omp_clauses,
17514 convert_local_omp_clauses): Likewise.
17515 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17516 Likewise.
17517 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17518 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17519 clause with array or reference to array types, no matter what type
17520 except for reference it has.
17521
17522 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17523
17524 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17525
17526 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17527
17528 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17529 (arch_canonicalize): Support rv32g and rv64g and fix error
17530 handling.
17531
17532 2019-08-06 Martin Liska <mliska@suse.cz>
17533
17534 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17535 and DECL_IS_OPERATOR_DELETE_P.
17536
17537 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17538
17539 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17540 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17541 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17542 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17543 (gimplify_omp_for): Don't do C++ random access iterator clause
17544 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17545 don't predetermine the artificial iterator in case of C++ random
17546 access iterators as lastprivate, but private. For OMP_LOOP, force
17547 bind expr around simd body and force for_pre_body before the
17548 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17549 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17550 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17551 diff var of C++ random access iterators. Handle
17552 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17553 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17554 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17555 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17556 * omp-low.c (lower_rec_input_clauses): For
17557 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17558 variables instead of default constructing them.
17559 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17560 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17561 is_taskloop_ctx check from the assert to the guarding condition.
17562
17563 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17564
17565 * config/riscv/multilib-generator: (canonical_order): New.
17566 (arch_canonicalize): Dito.
17567 Apply arch_canonicalize for alts.
17568
17569 2019-08-05 Martin Sebor <msebor@redhat.com>
17570
17571 * doc/extend.texi (Common Variable Attributes): Document alias
17572 attribute.
17573
17574 2019-08-05 Marek Polacek <polacek@redhat.com>
17575
17576 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17577 * doc/invoke.texi: Document -Wcomma-subscript.
17578
17579 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17580
17581 * tree-core.h (tree_function_decl): Make function_code an
17582 independent field. Group the remaining bitfields into bytes
17583 and move decl_type so that it contines to be at a byte boundary.
17584 Leave 12 bits for future expansion.
17585
17586 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17587
17588 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17589 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17590 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17591 IFN_MASK_STORE.
17592
17593 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17594
17595 * gimple.h (gimple_move_vops): Declare.
17596 * gimple.c (gimple_move_vops): New function
17597 * gimple-fold.c (replace_call_with_call_and_fold)
17598 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17599 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17600 (gimple_fold_call): Use it.
17601 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17602 * tree-call-cdce.c (use_internal_fn): Likewise.
17603 * tree-if-conv.c (predicate_load_or_store): Likewise.
17604 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17605 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17606 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17607 (update_call_from_tree): Likewise.
17608 * tree-vect-stmts.c (vectorizable_load): Likewise.
17609 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17610
17611 2019-08-05 Martin Liska <mliska@suse.cz>
17612
17613 PR c++/91334
17614 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17615 with not arguments.
17616 (eliminate_unnecessary_stmts): Likewise.
17617
17618 2019-08-05 Richard Biener <rguenther@suse.de>
17619
17620 PR middle-end/91169
17621 * fold-const.c (get_array_ctor_element_at_index): Create
17622 offset_ints according to the sign of the index type and treat
17623 that as signed if it is obviously so.
17624
17625 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17626
17627 PR target/91341
17628 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17629 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17630 _mm256_storeu2_m128i): New function.
17631
17632 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17633
17634 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17635 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17636
17637 2019-08-05 Alan Modra <amodra@gmail.com>
17638
17639 PR target/91349
17640 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17641 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17642
17643 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17644
17645 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17646 bug that was fixed in Tcl 8.6.1.
17647
17648 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17649
17650 * config/rs6000/future.md: New file.
17651 * config/rs6000/rs6000.md: Include future.md.
17652 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17653
17654 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17655
17656 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17657 check to use targetm.slow_unaligned_access instead.
17658
17659 * function.c (assign_param_data_one): Remove unused data members.
17660
17661 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17662
17663 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17664 build_distinct_type_copy.
17665 (simd_clone_adjust_argument_types): Ditto.
17666 (simd_clone_adjust): Call build_distinct_type_copy here.
17667 (expand_simd_clones): Ditto.
17668
17669 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17670
17671 PR target/91201
17672 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17673
17674 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17675
17676 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17677 from 'const void *'.
17678 (sort_locs_in_loop_postorder_cmp): Likewise.
17679
17680 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17681
17682 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17683 (hot-bb-count-ws-permille): Likewise.
17684 (hot-bb-frequency-fraction): Likewise.
17685 (unlikely-bb-count-fraction): Likewise.
17686 * params.def (hot-bb-count-fraction): Rework description.
17687 (hot-bb-count-ws-permille): Likewise.
17688 (hot-bb-frequency-fraction): Likewise.
17689 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17690 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17691
17692 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17693
17694 PR target/91323
17695 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17696 Return false.
17697
17698 2019-08-02 Richard Biener <rguenther@suse.de>
17699
17700 * vec.h (vec::sort): Add gcc_qsort_r support.
17701 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17702 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17703 to gcc_qsort_r style callback.
17704 (sort_locs_in_loop_postorder_cmp): Likewise.
17705 (analyze_memory_references): Use gcc_sort_r interfaces.
17706 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17707
17708 2019-08-02 Martin Liska <mliska@suse.cz>
17709
17710 PR lto/91313
17711 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17712 to detect working job server.
17713 (driver::detect_jobserver): Test whether jobserver
17714 is active from GCC driver. That will prevent situation where
17715 GCC is invoked from a LD plugin and the linker already uses
17716 file descriptors suggested by make. That leads to a wrong
17717 detection.
17718 * gcc.h (driver): Add detect_jobserver.
17719 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17720 not scanning for --jobserver-auth prefix.
17721
17722 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17723
17724 PR tree-optimization/91201
17725 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17726 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17727 extraction.
17728
17729 2019-08-01 Martin Sebor <msebor@redhat.com>
17730
17731 PR c++/90947
17732 * tree.c (type_initializer_zero_p): Define.
17733 * tree.h (type_initializer_zero_p): New function.
17734
17735 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17736
17737 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17738
17739 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17740
17741 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17742 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17743 * predict.c (maybe_hot_count_p): Likewise.
17744 (maybe_hot_bb_p): Tweak comment.
17745 (maybe_hot_edge_p): Likewise.
17746 (probably_never_executed): Likewise. Minor tweak.
17747 (probably_never_executed_bb_p): Likewise.
17748 (unlikely_executed_edge_p): Likewise.
17749 (probably_never_executed_edge_p): Likewise.
17750 (optimize_function_for_size_p): Likewise.
17751 (optimize_function_for_speed_p): Likewise.
17752 (function_optimization_type): Likewise.
17753 (optimize_bb_for_size_p): Likewise.
17754 (optimize_bb_for_speed_p): Likewise.
17755 (bb_optimization_type): Likewise.
17756 (optimize_edge_for_size_p): Likewise.
17757 (optimize_edge_for_speed_p): Likewise.
17758 (optimize_insn_for_size_p): Likewise.
17759 (optimize_insn_for_speed_p): Likewise.
17760 (optimize_loop_for_size_p): Likewise.
17761 (optimize_loop_for_speed_p): Likewise.
17762 (optimize_loop_nest_for_speed_p): Likewise.
17763 (optimize_loop_nest_for_size_p): Likewise.
17764 (predictable_edge_p): Likewise.
17765 (handle_missing_profiles): Minor tweak.
17766
17767 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17768
17769 * config/rs6000/predicates.md (pcrel_external_address): Update
17770 comment.
17771
17772 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17773
17774 PR target/85693
17775 * config/i386/mmx.md (usadv8qi): New expander.
17776
17777 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17778
17779 PR c++/90590
17780 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17781 with reserved names that are in a system header.
17782
17783 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17784
17785 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17786 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17787 (*vec_extractv2si_0_zext): Ditto.
17788 (*vec_extractv2si_1): Add (rm,x) alternative.
17789 (*vec_extractv2si_1_zext): New insn pattern.
17790 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17791 insn constraint.
17792
17793 2019-08-01 Richard Biener <rguenther@suse.de>
17794
17795 * domwalk.c (bb_postorder): Remove static variable.
17796 (cmp_bb_postorder): Adjust.
17797 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17798 (dom_walker::walk): Adjust.
17799
17800 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17801
17802 * sort.cc (sort_r_ctx): New struct.
17803 (reorder23): Make templated on context type.
17804 (reorder45): Ditto.
17805 (cmp1): Ditto. Adjust signature.
17806 (netsort): Ditto.
17807 (mergesort): Ditto.
17808 [CHECKING_P] (cmp2to3): New static function. Use it...
17809 (gcc_qsort) [CHECKING_P]: ...here.
17810 (gcc_sort_r): New function.
17811 * system.h (sort_r_cmp_fn): New function typedef.
17812 (qsort_chk): Adjust signature.
17813 (gcc_sort_r): Declare.
17814 * vec.c (qsort_chk_error): Adjust.
17815 (qsort_chk): Adjust.
17816
17817 2019-08-01 Richard Biener <rguenther@suse.de>
17818
17819 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17820 (compute_antic): Localize it here.
17821
17822 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17823
17824 * common/config/riscv/riscv-common.c: Check -march string ends
17825 with null.
17826
17827 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17828
17829 * ipa-devirt.c (type_warning_cmp): Make static.
17830 (decl_warning_cmp): Ditto.
17831
17832 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17833
17834 PR target/91050
17835 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17836 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17837 use of deleted rs6000_dejagnu_cpu_index variable.
17838 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17839 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17840 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17841 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17842 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17843 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17844
17845 2019-07-31 Richard Biener <rguenther@suse.de>
17846
17847 PR tree-optimization/91280
17848 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17849 Decompose MEM_REF manually for offset handling.
17850
17851 2019-07-31 Richard Biener <rguenther@suse.de>
17852
17853 PR tree-optimization/91293
17854 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17855 of reduction stmts.
17856
17857 2019-07-31 Matt Thomas <matt@3am-software.com>
17858 Nick Hudson <nick@nthcliff.demon.co.uk>
17859 Matthew Green <mrg@eterna.com.au>
17860 Maya Rashish <coypu@sdf.org>
17861
17862 * config.gcc (hppa*-*-netbsd*): New target.
17863 * config/pa/pa-netbsd.h: New file.
17864 * config/pa/pa32-netbsd.h: New file.
17865
17866 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17867
17868 PR tree-optimization/91201
17869 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17870
17871 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17872
17873 * config/gcn/gcn-valu.md
17874 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17875 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17876 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17877 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17878 struct ilist. Add nops for delayeduse insns.
17879 * config/gcn/gcn.md (delayeduse): New attribute.
17880 (*movbi): Remove s_waitcnt from stores.
17881 (*mov<mode>_insn): Likewise.
17882 (*movti_insn): Likewise. Add delayeduse attribute.
17883 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17884 (atomic_store<mode>): Remove or adjust s_waitcnt.
17885
17886 2019-07-31 Richard Biener <rguenther@suse.de>
17887
17888 * vr-values.h (vr_values::swap_vr_value): New.
17889 (vr_values::free_value_range): likewise.
17890 * vr-values.c (vr_values::swap_vr_value): Implement.
17891 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17892 Do not return a range or take a var.
17893 (evrp_range_analyzer::stack): Change back to recording a non-const
17894 value_range *.
17895 * gimple-ssa-evrp-analyze.c
17896 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17897 value-range.
17898 (evrp_range_analyzer::pop_to_marker): Adjust.
17899 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17900 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17901 no longer needed value-range.
17902
17903 2019-07-31 Martin Liska <mliska@suse.cz>
17904
17905 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17906 have size and (or) alignment as 2nd and later arguments.
17907 Mark all of them as necessary.
17908
17909 2019-07-31 Richard Biener <rguenther@suse.de>
17910
17911 PR tree-optimization/91178
17912 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17913 Use tail-recursion.
17914
17915 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17916
17917 PR tree-optimization/91201
17918 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17919 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17920 TARGET_AVX512F.
17921 (reduc_plus_scal_<mode>): Improve formatting by introducing
17922 a temporary.
17923
17924 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17925
17926 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17927 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17928 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17929 (aarch64_init_tme_builtins): New.
17930 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17931 (aarch64_expand_builtin_tme): New.
17932 (aarch64_expand_builtin): Handle TME builtins.
17933 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17934 __ARM_FEATURE_TME when enabled.
17935 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17936 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17937 (TARGET_TME): New.
17938 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17939 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17940 UNSPECV_TCANCEL.
17941 (tstart, ttest, tcommit, tcancel): New instructions.
17942 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17943 (__tcancel, __ttest): New.
17944 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17945 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17946 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17947 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17948 * config/arm/types.md: Add new tme type attr.
17949 * doc/invoke.texi: Document "tme".
17950
17951 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17952
17953 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17954 warn_unused_result attribute.
17955 (cmse_check_address_range): Add warn_unused_result attribute.
17956
17957 2019-07-31 Richard Biener <rguenther@suse.de>
17958
17959 PR tree-optimization/91257
17960 * tree-vrp.c (union_ranges): Unify equality and less tests
17961 by using compare_values. Re-order cheap tests first.
17962
17963 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17964
17965 PR middle-end/91301
17966 * gimplify.c (gimplify_omp_for): If for class iterator on
17967 distribute parallel for there is no data sharing clause
17968 on inner_for_stmt, look for private clause on combined
17969 parallel too and if found, move it to inner_for_stmt.
17970
17971 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17972
17973 * lra-int.h (lra_operand_data): Remove early_clobber field.
17974 (lra_insn_reg): Likewise.
17975 * lra.c (debug_operand_data): Update accordingly.
17976 (setup_operand_alternative): Likewise.
17977 (new_insn_reg): Likewise. Remove early_clobber parameter.
17978 (collect_non_operand_hard_regs): Update call accordingly.
17979 Don't assign to lra_insn_reg::early_clobber.
17980 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17981 and update calls to new_insn_reg.
17982 (lra_update_insn_regno_info): Update calls accordingly.
17983 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17984 alternative number as a parameter and test whether the operand
17985 is earlyclobbered in that particular alternative.
17986 (process_alt_operands): Update call accordingly. Use per-alternative
17987 checks for earyclobber here too.
17988 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17989 against zero for IRA_UNKNOWN_ALT.
17990
17991 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17992
17993 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17994
17995 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17996
17997 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17998 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17999
18000 2019-07-30 Martin Liska <mliska@suse.cz>
18001
18002 PR ipa/89330
18003 * cgraph.c (cgraph_edge::make_direct): Use
18004 edge->indirect_unknown_callee as edge->resolve_speculation can
18005 deallocate edge which is this pointer.
18006
18007 2019-07-30 Richard Biener <rguenther@suse.de>
18008
18009 PR tree-optimization/91257
18010 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18011
18012 2019-07-30 Martin Liska <mliska@suse.cz>
18013
18014 * doc/invoke.texi: Document new behavior.
18015 * lto-wrapper.c (cpuset_popcount): New function
18016 is a copy of libgomp/config/linux/proc.c.
18017 (init_num_threads): Likewise.
18018 (run_gcc): Automatically detect core count for -flto.
18019 (jobserver_active_p): New function.
18020
18021 2019-07-30 Richard Biener <rguenther@suse.de>
18022
18023 PR tree-optimization/91257
18024 * bitmap.h (bitmap_ior_into_and_free): Declare.
18025 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18026 whether to add the unliked element to the freelist.
18027 (bitmap_list_insert_element_after): Add defaulted param for
18028 an already allocated element.
18029 (bitmap_ior_into_and_free): New function.
18030 * tree-ssa-structalias.c (condense_visit): Reduce the
18031 ponts-to and edge bitmaps of the SCC members in a
18032 logarithmic fashion rather than all to one.
18033
18034 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18035
18036 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18037 parameter. When nonnull, make sure that the addition or subtraction
18038 has the same condition.
18039 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18040 for CFN_COND_MUL too.
18041
18042 2019-07-30 Richard Biener <rguenther@suse.de>
18043
18044 PR tree-optimization/91291
18045 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18046 constant values.
18047
18048 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18049
18050 PR middle-end/91216
18051 * omp-low.c (global_nonaddressable_vars): New variable.
18052 (use_pointer_for_field): For global decls, if they are non-addressable,
18053 remember it in the global_nonaddressable_vars bitmap, if they are
18054 addressable and in the global_nonaddressable_vars bitmap, ignore their
18055 TREE_ADDRESSABLE bit.
18056 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18057 vars in global_nonaddressable_vars bitmap.
18058 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18059
18060 PR target/91150
18061 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18062 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18063 comparison to unsigned HOST_WIDE_INT before shifting it left.
18064
18065 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18066
18067 * config/i386/i386.md (movstrict<mode>): Use register_operand
18068 predicate for operand 0. Add expander condition. Assert that
18069 operand 0 is a SUBREG RTX.
18070 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18071 Update operand constraints and insn condition.
18072 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18073 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18074 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18075 Update operand 0 constraints.
18076 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18077
18078 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18079
18080 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18081 when -m{code,data}-region are used without -mlarge.
18082 * config/msp430/msp430.c (msp430_option_override): Error when a
18083 non-default code or data region is used without -mlarge.
18084 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18085 attributes when they are used without -mlarge.
18086
18087 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18088
18089 PR target/70320
18090 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18091
18092 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18093
18094 PR middle-end/91242
18095 * wide-int.h (generic_wide_int::sext_elt): New function.
18096 * inchash.h (hash::add_wide_int): Use it instead of elt.
18097
18098 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18099
18100 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18101 CODE_FOR_arm_##.
18102 * config/arm/arm.md (<crc_variant>): Rename to...
18103 (arm_<crc_variant>): ... This.
18104 (<cdp>): Rename to...
18105 (arm_<cdp>): ... This.
18106 (<ldc>): Rename to...
18107 (arm_<ldc>): ... This.
18108 (<stc>): Rename to...
18109 (arm_<stc>): ... This.
18110 (<mcr>): Rename to...
18111 (arm_<mcr>): ... This.
18112 (<mrc>): Rename to...
18113 (arm_<mrc>): ... This.
18114 (<mcrr>): Rename to...
18115 (arm_<mcrr>): ... This.
18116 (<mrrc>): Rename to...
18117 (arm_<mrrc>): ... This.
18118
18119 2019-07-29 Richard Biener <rguenther@suse.de>
18120
18121 PR tree-optimization/91257
18122 * tree-ssa-sccvn.h (struct vn_avail): New.
18123 (struct vn_ssa_aux): Add avail member.
18124 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18125 member, add m_avail_freelist one.
18126 (rpo_elim::~rpo_elim): Remove.
18127 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18128 data structure.
18129 (rpo_elim::eliminate_push_avail): Likewise.
18130 (do_unwind): Likewise.
18131 (do_rpo_vn): Likewise.
18132
18133 2019-07-29 Richard Biener <rguenther@suse.de>
18134
18135 PR tree-optimization/91257
18136 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18137 most cases, instead call compare_values which handles the
18138 symbolic ranges we handle specially.
18139 (compare_values_warnv): Do not call operand_less_p but open-code
18140 the effective fold calls. Avoid converting so much.
18141
18142 2019-07-29 Martin Liska <mliska@suse.cz>
18143
18144 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18145 remove LHS of operator new call. It's handled latter.
18146
18147 2019-07-29 Richard Biener <rguenther@suse.de>
18148
18149 PR tree-optimization/91267
18150 * vr-values.c (vr_values::update_value_range): Add early return
18151 for effectively VARYING lattice entry.
18152
18153 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18154
18155 PR debug/86638
18156 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18157 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18158 necessary if keep_all_vdefs_p is true.
18159 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18160 that keep_all_vdefs_p is false.
18161 (mark_all_reaching_defs_necessary): Likewise.
18162 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18163
18164 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18165
18166 * common.opt (Og): Change the initial value of flag_dse to 0.
18167 * opts.c (default_options_table): Move OPT_ftree_dse from
18168 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18169 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18170 entry before the OPT_ftree_sra entry.
18171 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18172 of flags disabled by Og.
18173
18174 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18175
18176 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18177 variables for -Og.
18178
18179 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18180
18181 * doc/sourcebuild.texi (check-function-bodies): Document.
18182
18183 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18184
18185 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18186 VEC_DUPLICATE of a fixed-length vector even if the result
18187 is variable-length. Likewise fold a duplicate of a
18188 variable-length vector if the variable-length vector is
18189 itself a duplicate of a fixed-length sequence.
18190 (test_vector_ops_duplicate): Test more cases.
18191
18192 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18193
18194 * vector-builder.h (vector_builder): Add a shape template parameter.
18195 (vector_builder::new_unary_operation): New function, generalizing
18196 the old tree_vector_builder function.
18197 (vector_builder::new_binary_operation): Likewise.
18198 (vector_builder::binary_encoded_nelts): Likewise.
18199 * int-vector-builder.h (int_vector_builder): Update template
18200 parameters to vector_builder.
18201 (int_vector_builder::shape_nelts): New function.
18202 * rtx-vector-builder.h (rtx_vector_builder): Update template
18203 parameters to vector_builder.
18204 (rtx_vector_builder::shape_nelts): New function.
18205 (rtx_vector_builder::nelts_of): Likewise.
18206 (rtx_vector_builder::npatterns_of): Likewise.
18207 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18208 * tree-vector-builder.h (tree_vector_builder): Update template
18209 parameters to vector_builder.
18210 (tree_vector_builder::shape_nelts): New function.
18211 (tree_vector_builder::nelts_of): Likewise.
18212 (tree_vector_builder::npatterns_of): Likewise.
18213 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18214 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18215 (tree_vector_builder::new_binary_operation): Delete.
18216 (tree_vector_builder::binary_encoded_nelts): Likewise.
18217 * simplify-rtx.c: Include rtx-vector-builder.h.
18218 (distributes_over_addition_p): New function.
18219 (simplify_const_unary_operation)
18220 (simplify_const_binary_operation): Generalize handling of vector
18221 constants to include variable-length vectors.
18222 (test_vector_ops_series): Add more tests.
18223
18224 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18225
18226 PR lto/91222
18227 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18228 than INDENTIFIER_POINTER.
18229
18230 2019-07-28 Martin Liska <mliska@suse.cz>
18231
18232 PR ipa/89330
18233 * cgraph.c (symbol_table::create_edge): Always allocate
18234 a cgraph_edge.
18235 (symbol_table::free_edge): Store summary_id to
18236 edge_released_summary_ids if != -1;
18237 * cgraph.h (NEXT_FREE_NODE): Remove.
18238 (SET_NEXT_FREE_NODE): Likewise.
18239 (NEXT_FREE_EDGE): Likewise.
18240 (symbol_table::release_symbol): Store summary_id to
18241 cgraph_released_summary_ids if != -1;
18242 (symbol_table::allocate_cgraph_symbol): Always allocate
18243 a cgraph_node.
18244
18245 2019-07-28 Alan Modra <amodra@gmail.com>
18246
18247 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18248 gen_sibcall.
18249
18250 2019-07-28 Alan Modra <amodra@gmail.com>
18251
18252 PR target/91135
18253 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18254 define.
18255 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18256 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18257 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18258
18259 2019-07-28 Alan Modra <amodra@gmail.com>
18260
18261 PR target/91050
18262 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18263 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18264 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18265 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18266 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18267 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18268 in asm_default spec.
18269 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18270 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18271
18272 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18273
18274 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18275
18276 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18277
18278 PR target/89517
18279 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18280 * config/aarch64/aarch64-option-extensions.def: Add new comments
18281 and restore easier to read options.
18282
18283 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18284
18285 * convert.c (convert_to_real_1): Move part of conversion code...
18286 * match.pd: ...To here.
18287
18288 2019-07-26 Martin Jambor <mjambor@suse.cz>
18289
18290 PR ipa/89330
18291 * ipa-inline-transform.c (check_speculations_1): New function.
18292 (push_all_edges_in_set_to_vec): Likewise.
18293 (check_speculations): Use check_speculations_1, new parameter
18294 new_edges.
18295 (inline_call): Pass new_edges to check_speculations.
18296 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18297 NULL.
18298 (speculation_useful_p): Early return true if edge is inlined, remove
18299 later checks for inline_failed.
18300
18301 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18302
18303 PR rtl-optimization/91223
18304 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18305 matching with INOUT operand.
18306
18307 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18308
18309 * stmt.c (expand_case): Try to narrow the index type if it's larger
18310 than a word. Tidy up.
18311
18312 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18313
18314 * cif-code.def (NEVER_CALL): New code.
18315 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18316 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18317
18318 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18319
18320 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18321 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18322
18323 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18324
18325 * ipa-devirt.c (add_type_duplicate): Fix return value.
18326
18327 2019-07-25 Richard Biener <rguenther@suse.de>
18328
18329 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18330 type parameter and use it instead of guessing expression
18331 type from the first operand.
18332 (extract_range_from_binary_expr): Pass expr_type down.
18333
18334 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18335
18336 * config/arm/arm.md (SATrev): Change to code attribute.
18337 (*satsi_<SAT:code>): Adjust for the above.
18338 (*satsi_<SAT:code>_shift): Likewise.
18339
18340 2019-07-25 Richard Biener <rguenther@suse.de>
18341
18342 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18343 Make value_range * temporary const.
18344 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18345 Likewise.
18346 (evrp_range_analyzer::record_ranges_from_): Likewise.
18347 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18348 deal with having recorded a const one.
18349 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18350 Return a const value_range *.
18351 (evrp_range_analyzer::pop_value_range): Likewise.
18352 (evrp_range_analyzer::stack): Record const value_range *s.
18353 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18354 Adjust.
18355 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18356 (format_integer): Likewise.
18357 (sprintf_dom_walker::handle_gimple_call): Likewise.
18358 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18359 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18360 (vrp_prop::get_value_range): Adjust.
18361 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18362 modifying the lattice in-place.
18363 (vrp_prop::visit_stmt): Likewise.
18364 * vr-values.c (vr_values::get_lattice_entry): New private method.
18365 (vr_values::get_value_range): Wrap it and return a const
18366 value_range *.
18367 (vr_values::set_def_to_varying): New.
18368 (vr_values::set_defs_to_varying): Use it.
18369 (vr_values::update_value_range): Likewise.
18370 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18371 (values::op_with_constant_singleton_va): Likewise.
18372 (vr_values::extract_range_for_var_from_co): Likewise.
18373 (vr_values::extract_range_from_ssa_name): Likewise.
18374 (vr_values::extract_range_from_cond_expr): Likewise.
18375 (vr_values::extract_range_basic): Likewise.
18376 (compare_ranges): Take const value_range *, adjust.
18377 (compare_range_with_value): Likewise.
18378 (vrp_valueize): Adjust.
18379 (vrp_valueize_1): Likewise.
18380 (vr_values::get_vr_for_comparison): Return a const value_range *.
18381 (vr_values::compare_name_with_value): Adjust.
18382 (vr_values::compare_names): Likewise.
18383 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18384 Likewise.
18385 (vr_values::vrp_evaluate_conditional): Likewise.
18386 (find_case_label_ranges): Take a const value_range *.
18387 (vr_values::vrp_visit_switch_stmt): Adjust.
18388 (vr_values::extract_range_from_phi_node): Likewise.
18389 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18390 (vr_values::simplify_abs_using_ranges): Likewise.
18391 (test_for_singularity): Take a const value_range *.
18392 (range_fits_type_p): Likewise.
18393 (vr_values::simplify_cond_using_ranges_1): Adjust.
18394 (vr_values::simplify_cond_using_ranges_2): Likewise.
18395 (vr_values::simplify_switch_using_ranges): Likewise.
18396 (vr_values::simplify_float_conversion_usi): Likewise.
18397 (vr_values::two_valued_val_range_p): Likewise.
18398 * vr-values.h (vr_values::get_value_range): Return a const
18399 value_range *.
18400 (vr_values::set_def_to_varying): New.
18401 (vr_values::get_lattice_entry): New private method.
18402 (vr_values::get_vr_for_comparison): Return a const value_range *.
18403
18404 2019-07-25 Martin Liska <mliska@suse.cz>
18405 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18406
18407 PR c++/23383
18408 * common.opt: Add -fallocation-dce
18409 * gimple.c (gimple_call_operator_delete_p): New.
18410 * gimple.h (gimple_call_operator_delete_p): Likewise.
18411 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18412 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18413 DECL_IS_OPERATOR_DELETE_P.
18414 (mark_all_reaching_defs_necessary_1): Likewise.
18415 (propagate_necessity): Likewise.
18416 (eliminate_unnecessary_stmts): Handle
18417 gimple_call_operator_delete_p.
18418 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18419 Add packing of OPERATOR_DELETE.
18420 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18421 Similarly here.
18422 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18423 (DECL_SET_IS_OPERATOR_DELETE): New.
18424 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18425
18426 2019-07-25 Martin Liska <mliska@suse.cz>
18427
18428 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18429 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18430 * coverage.c (coverage_begin_function): Likewise.
18431 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18432 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18433 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18434 (sem_item::hash_referenced_symbol_properties): Likewise.
18435 * lto-streamer-out.c (hash_tree): Likewise.
18436 * predict.c (expr_expected_value_1): Likewise.
18437 * tree-inline.c (expand_call_inline): Likewise.
18438 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18439 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18440 * tree-core.h (enum function_decl_type): New enum.
18441 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18442 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18443 (set_function_decl_type): Likewise.
18444 (DECL_IS_OPERATOR_NEW_P): New.
18445 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18446 (DECL_LAMBDA_FUNCTION): Likewise.
18447 (DECL_LAMBDA_FUNCTION_P): Likewise.
18448 (DECL_IS_OPERATOR_NEW): Remove.
18449 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18450
18451 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18452
18453 * ipa-profile.c (get_most_common_single_value): Use
18454 get_nth_most_common_value.
18455 * profile.c (sort_hist_value): New function.
18456 (compute_value_histograms): Call sort_hist_value to sort the
18457 values after loading from disk.
18458 * value-prof.c (get_most_common_single_value): Rename to ...
18459 get_nth_most_common_value. Add input params n, return
18460 the n_th value and count.
18461 (gimple_divmod_fixed_value_transform): Use
18462 get_nth_most_common_value.
18463 (gimple_ic_transform): Likewise.
18464 (gimple_stringops_transform): Likewise.
18465 * value-prof.h (get_most_common_single_value): Add input params
18466 n, default to 0.
18467
18468 2019-07-25 Richard Biener <rguenther@suse.de>
18469
18470 PR tree-optimization/91236
18471 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18472 size of CONSTRUCTOR write. Fix buffer size we pass to
18473 native_encode_expr.
18474
18475 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18476
18477 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18478 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18479 r273773.
18480
18481 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18482
18483 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18484 explicitly disabled with --disable-initfini-array.
18485
18486 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18487
18488 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18489 if-exists.
18490
18491 2019-07-24 Martin Sebor <msebor@redhat.com>
18492
18493 PR tree-optimization/91183
18494 PR tree-optimization/86688
18495 * builtins.c (compute_objsize): Handle MEM_REF.
18496 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18497 (get_min_string_length): Remove.
18498 (count_nonzero_bytes): New function.
18499 (handle_char_store): Rename...
18500 (handle_store): to this. Handle multibyte stores via integer types.
18501 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18502 function name.
18503
18504 2019-07-24 Martin Sebor <msebor@redhat.com>
18505
18506 PR driver/80545
18507 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18508 (diagnostic_report_diagnostic): Same.
18509 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18510 (diagnostic_context::lang_mask): New data member.
18511 * ipa-pure-const.c (suggest_attribute): Use
18512 lang_hooks.option_lang_mask ().
18513 * opts-common.c (option_enabled): Handle new argument.
18514 (get_option_state): Pass an additional argument.
18515 * opts.c (print_filtered_help): Print supported languages for
18516 unsupported options. Adjust printing of current state.
18517 * opts.h (option_enabled): Add argument.
18518 * toplev.c (print_switch_values): Use lang_mask.
18519 (general_init): Set global_dc->lang_mask.
18520
18521 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18522
18523 PR bootstrap/87030
18524 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18525
18526 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18527
18528 * cgraphunit.c (symbol_table::compile): Start and stop
18529 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18530 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18531
18532 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18533
18534 * gimplify.c (flag_instrument_functions_exclude_p): Include
18535 namespace/class information in the printable name.
18536 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18537 to tokens entered into the vector.
18538
18539 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18540
18541 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18542 (get_static_chain): Call it instead of build_simple_mem_ref.
18543 (get_frame_field): Likewise.
18544 (get_nonlocal_debug_decl): Likewise.
18545 (convert_nonlocal_reference_op): Likewise.
18546
18547 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18548
18549 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18550 declaration.
18551 (arc_compute_frame_size): Millicode is disabled when compiling
18552 ISR.
18553 (arc_return_address_register): Likewise.
18554 (arc_compute_function_type): Likewise.
18555 (arc_compute_frame_size): Likewise.
18556 (secondary_reload_info): Likewise.
18557 (arc_get_unalign): Likewise.
18558 (arc_can_use_return_insn): Declare.
18559 * config/arc/arc.c (AUX_LP_START): Define
18560 (AUX_LP_END): Likewise.
18561 (arc_frame_info): Update gmask member to 64-bit datum.
18562 (GMASK_LEN): Update.
18563 (arc_compute_function_type): Make it static, move it forward.
18564 (arc_must_save_register): Update, consider the extra regs.
18565 (arc_compute_millicode_save_restore_regs): Update to use the 64
18566 bit gmask.
18567 (arc_compute_frame_size): Likewise.
18568 (arc_enter_leave_p): Likewise.
18569 (arc_save_callee_saves): Likewise.
18570 (arc_restore_callee_saves): Likewise.
18571 (arc_save_callee_enter): Likewise.
18572 (arc_restore_callee_leave): Likewise.
18573 (arc_save_callee_milli): Likewise.
18574 (arc_restore_callee_milli): Likewise.
18575 (arc_expand_prologue): Add new interrupt handling.
18576 (arc_return_address_register): Make it static, move it forward.
18577 (arc_expand_epilogue): Add new interrupt handling.
18578 (arc_get_unalign): Delete.
18579 (arc_epilogue_uses): Make sure we do not remove the extra
18580 saved/restored registers when interrupt.
18581 (arc_can_use_return_insn): New function.
18582 (push_reg): Likewise.
18583 (pop_reg): Likewise.
18584 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18585 procedures.
18586 (arc_restore_callee_saves): Likewise, but restoring.
18587 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18588 (R33_REG): Likewise.
18589 (R34_REG): Likewise.
18590 (R35_REG): Likewise.
18591 (R36_REG): Likewise.
18592 (R37_REG): Likewise.
18593 (R38_REG): Likewise.
18594 (R39_REG): Likewise.
18595 (R45_REG): Likewise.
18596 (R46_REG): Likewise.
18597 (R47_REG): Likewise.
18598 (R48_REG): Likewise.
18599 (R49_REG): Likewise.
18600 (R50_REG): Likewise.
18601 (R51_REG): Likewise.
18602 (R52_REG): Likewise.
18603 (R53_REG): Likewise.
18604 (R54_REG): Likewise.
18605 (R55_REG): Likewise.
18606 (R56_REG): Likewise.
18607 (R58_REG): Likewise.
18608 (type): Add rtie attribute.
18609 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18610 (movsi_insn): Accept moves to lp_count.
18611 (rtie): Update pattern.
18612 (simple_return): Simplify it, don't use this pattern as a return
18613 from an interrupt.
18614 (arc600_rtie): New pattern.
18615 (p_return_i): Clean up.
18616 (return): Likewise.
18617 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18618 family CPUs.
18619 * config/arc/predicates.md (move_src_operand): Consider lp_count
18620 as a register.
18621
18622 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18623
18624 * config/s390/predicates.md (addv_const_operand): New predicate.
18625 * config/s390/s390-modes.def (CCO): New condition code mode.
18626 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18627 (s390_branch_condition_mask): Likewise.
18628 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18629 ("mulv<mode>4"): New expanders.
18630 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18631 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18632 pattern definitions.
18633
18634 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18635
18636 PR middle-end/91166
18637 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18638 (define_predicates): Add entry for uniform_vector_p.
18639 (vec_same_elem_p): New match pattern.
18640
18641 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18642
18643 PR bootstrap/87030
18644 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18645 * config/i386/darwin32-biarch.h .. to here.
18646 * config/i386/darwin64-biarch.h: Adjust comments.
18647 * config/rs6000/darwin32-biarch.h: Likewise.
18648 * config/rs6000/darwin64-biarch.h: Likewise.
18649 * config.gcc: Missed commit from r273746
18650 (*-*-darwin*): Don't include CPU t-darwin here.
18651 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18652 an error message if i686-darwin configuration is attempted for
18653 Darwin >= 18.
18654
18655 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18656
18657 PR bootstrap/87030
18658 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18659 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18660 an error message if i686-darwin configuration is attempted for
18661 Darwin >= 18.
18662 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18663 (powerpc-*-darwin*): Use biarch files where needed.
18664 (powerpc64-*-darwin*): Likewise.
18665 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18666 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18667 arch case.
18668 * config/i386/darwin32-biarch.h: New.
18669 * config/i386/darwin64.h: Rename.
18670 * config/i386/darwin64-biarch.h: To this.
18671 * config/i386/t-darwin: Rename.
18672 * config/i386/t-darwin32-biarch: To this.
18673 * config/i386/t-darwin64: Rename.
18674 * config/i386/t-darwin64-biarch: To this.
18675 * config/rs6000/darwin32-biarch.h: New.
18676 * config/rs6000/darwin64.h: Rename.
18677 * config/rs6000/darwin64-biarch.h: To this.
18678 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18679 arch case.
18680 * config/rs6000/t-darwin8: Rename.
18681 * config/rs6000/t-darwin32-biarch: To this.
18682 * config/rs6000/t-darwin64 Rename.
18683 * config/rs6000/t-darwin64-biarch: To this.
18684
18685 2019-07-23 Martin Sebor <msebor@redhat.com>
18686
18687 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18688
18689 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18690
18691 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18692 (rh): New alias for it.
18693
18694 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18695
18696 * gdbhooks.py: Pass replace=True to
18697 gdb.printing.register_pretty_printer.
18698
18699 2019-07-23 Richard Biener <rguenther@suse.de>
18700
18701 PR debug/91231
18702 * lto-streamer-in.c (input_function): Drop inline-entry markers
18703 that ended up with an unknown location block.
18704
18705 2019-07-23 Richard Biener <rguenther@suse.de>
18706
18707 PR tree-optimization/83518
18708 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18709 init from a constant even when partial defs are already recorded.
18710
18711 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18712
18713 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18714 * config/i386/znver1.md: Enable patterns for znver2 and add store
18715 variants which use extra AGU unit.
18716
18717 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18718
18719 * config/i386/i386-options.c (ix86_option_override_internal): Default
18720 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18721 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18722 for ZNVER2.
18723
18724 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18725
18726 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18727 (znver2_costs): Update 256 bit SSE costs and multiplication.
18728
18729 2019-07-23 Jan Beulich <jbeulich@suse.com>
18730
18731 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18732 Require only AVX512F.
18733 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18734 alternative expanding to vpternlog.
18735
18736 2019-07-23 Martin Liska <mliska@suse.cz>
18737
18738 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18739 to -flto in dwarf producer string.
18740
18741 2019-07-23 Richard Biener <rguenther@suse.de>
18742
18743 * tree-cfg.c (label_for_bb): Remove global var.
18744 (main_block_label): Take label_for_bb as argument.
18745 (cleanup_dead_labels_eh): Likewise, adjust.
18746 (cleanup_dead_labels): Adjust.
18747
18748 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18749
18750 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18751 Configurations): Add documentation for __builtin_mtfsf.
18752
18753 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18754
18755 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18756 * config/riscv/riscv.c (riscv_constant_alignment): Use
18757 riscv_align_data_type.
18758 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18759 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18760 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18761 * config/riscv/riscv.opt (malign-data): New.
18762 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18763
18764 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18765
18766 * cgraph.c (dump_graphviz): New function.
18767 * cgraph.h (dump_graphviz): New function.
18768 * symtab.c (dump_graphviz): New function.
18769
18770 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18771
18772 * config/aarch64/aarch64-simd.md
18773 (*aarch64_simd_sra<mode>): New.
18774 * config/aarch64/iterators.md
18775 (SHIFTRT): New iterator.
18776 (sra_op): New attribute.
18777
18778 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18779
18780 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18781 callee-saved regs R4->R10 in an interrupt function that calls another
18782 function.
18783
18784 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18785
18786 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18787 (_mm_blendv_epi8): New.
18788
18789 2019-07-22 Richard Biener <rguenther@suse.de>
18790
18791 PR tree-optimization/91221
18792 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18793 restrict partial-def handling of empty constructors and
18794 memset to refs with known offset.
18795
18796 2019-07-22 Jan Beulich <jbeulich@suse.com>
18797
18798 * config/i386/sse.md (ternlogsuffix): New.
18799 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18800 AVX512F is in use.
18801 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18802
18803 2019-07-22 Martin Liska <mliska@suse.cz>
18804
18805 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18806 comment.
18807 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18808
18809 2019-07-22 Martin Liska <mliska@suse.cz>
18810
18811 * lto-section-in.c (lto_get_section_data):
18812 Use new function get_compression.
18813 * lto-streamer-out.c (produce_lto_section): Use
18814 set_compression to encode compression algorithm.
18815 * lto-streamer.h (struct lto_section): Do not
18816 use bitfields in the format.
18817
18818 2019-07-22 Martin Liska <mliska@suse.cz>
18819
18820 PR driver/91172
18821 * opts-common.c (decode_cmdline_option): Decode
18822 argument of -Werror and check it for a wrong language.
18823 * opts-global.c (complain_wrong_lang): Remove such case.
18824
18825 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18826
18827 * config/arc/arc.c (prepare_move_operands): Always use an
18828 intermediate register when storing a TLS symbols.
18829
18830 2019-07-22 Stafford Horne <shorne@gmail.com>
18831
18832 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18833 force_reg.
18834
18835 2019-07-22 Stafford Horne <shorne@gmail.com>
18836
18837 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18838 and munordered-float validations.
18839 * config/or1k/constraints.md (d): New register constraint.
18840 * config/or1k/predicates.md (fp_comparison_operator): New.
18841 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18842 operands.
18843 (or1k_expand_compare): Normalize unordered comparisons.
18844 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18845 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18846 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18847 * config/or1k/or1k.md (type): Add fpu.
18848 (fpu): New instruction reservation.
18849 (F, f, fr, fi, FI, FOP, fop): New.
18850 (<fop><F:mode>3): New ALU instruction definition.
18851 (float<fi><F:mode>2): New conversion instruction definition.
18852 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18853 (fpcmpcc): New code iterator.
18854 (*sf_fp_insn): New instruction definition.
18855 (cstore<F:mode>4): New expand definition.
18856 (cbranch<F:mode>4): New expand definition.
18857 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18858 munordered-float): New options.
18859 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18860 munordered-float.
18861
18862 2019-07-22 Stafford Horne <shorne@gmail.com>
18863
18864 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18865 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18866 documenation to be more clear.
18867 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18868 more clear.
18869 * config/or1k/or1k.opt (mrori): New option.
18870 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18871 msfimm, mshftimm): Rewrite documentation to be more clear.
18872 * config/or1k/or1k.md (insn_support): Add ror and rori.
18873 (enabled): Add conditions for ror and rori.
18874 (rotrsi3): Replace condition for shftimm with ror and rori.
18875
18876 2019-07-22 Stafford Horne <shorne@gmail.com>
18877
18878 PR target/90363
18879 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18880 (extend<mode>si2): Update predicate.
18881 * config/or1k/predicates.md (volatile_mem_operand): New.
18882 (reg_or_mem_operand): New.
18883
18884 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18885
18886 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18887 * config/rs6000/rs6000-call.c: ... to here.
18888
18889 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18890
18891 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18892 memory.
18893
18894 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18895
18896 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18897
18898 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18899
18900 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18901
18902 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18903
18904 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18905 (any_memory_operand): New predicate.
18906 (reg_or_mem_operand): Use it.
18907
18908 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18909
18910 PR target/91204
18911 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18912
18913 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18914
18915 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18916 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18917
18918 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18919
18920 * tree.def (OMP_LOOP): New tree code.
18921 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18922 (enum omp_clause_bind_kind): New enum.
18923 (struct tree_omp_clause): Add subcode.bind_kind.
18924 * tree.h (OMP_LOOP_CHECK): Rename to ...
18925 (OMP_LOOPING_CHECK): ... this.
18926 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18927 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18928 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18929 (OMP_CLAUSE_BIND_KIND): Define.
18930 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18931 bind clause entries.
18932 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18933 * tree-pretty-print.c (dump_omp_clause): Likewise.
18934 (dump_generic_node): Handle OMP_LOOP.
18935 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18936 (in_omp_construct): New variable.
18937 (is_gimple_stmt): Handle OMP_LOOP.
18938 (gimplify_scan_omp_clauses): For lastprivate don't set
18939 check_non_private if code == OMP_LOOP. For reduction clause
18940 on OMP_LOOP combined with parallel or teams propagate as shared
18941 on the combined construct. Handle OMP_CLAUSE_BIND.
18942 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18943 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18944 for constructs from a loop construct to gimplify_scan_omp_clauses.
18945 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18946 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18947 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18948 to match the implicit ORT_TARGET construct around whole body.
18949 Temporarily clear in_omp_construct when processing body.
18950 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18951 etc. temporarily set in_omp_construct when processing body.
18952 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18953 * omp-low.c (struct omp_context): Add loop_p.
18954 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18955 in that the original var might be private.
18956 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18957 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18958 addition of loop construct.
18959 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18960
18961 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18962 lastprivate non-addressable iterator of a collapse(1) simd.
18963
18964 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18965
18966 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18967 as in rs6000.c.
18968
18969 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18970
18971 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18972 refer to default conditions. Warn for the 'y' spec which is ignored
18973 by current linkers.
18974
18975 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18976
18977 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18978 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18979 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18980 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18981 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18982 init_cumulative_args, rs6000_promote_function_mode,
18983 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18984 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18985 rs6000_function_arg_boundary, rs6000_parm_offset,
18986 rs6000_parm_start, rs6000_arg_size,
18987 rs6000_darwin64_record_arg_advance_flush,
18988 rs6000_darwin64_record_arg_advance_recurse,
18989 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18990 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18991 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18992 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18993 rs6000_finish_function_arg, rs6000_function_arg,
18994 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18995 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18996 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18997 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18998 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18999 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19000 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19001 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19002 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19003 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19004 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19005 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19006 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19007 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19008 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19009 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19010 get_element_number, altivec_expand_vec_set_builtin,
19011 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19012 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19013 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19014 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19015 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19016 rs6000_expand_builtin, rs6000_vector_type,
19017 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19018 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19019 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19020 to rs6000-call.c.
19021 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19022 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19023 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19024 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19025 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19026 init_cumulative_args, rs6000_promote_function_mode,
19027 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19028 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19029 rs6000_function_arg_boundary, rs6000_parm_offset,
19030 rs6000_parm_start, rs6000_arg_size,
19031 rs6000_darwin64_record_arg_advance_flush,
19032 rs6000_darwin64_record_arg_advance_recurse,
19033 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19034 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19035 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19036 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19037 rs6000_finish_function_arg, rs6000_function_arg,
19038 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19039 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19040 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19041 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19042 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19043 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19044 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19045 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19046 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19047 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19048 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19049 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19050 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19051 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19052 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19053 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19054 get_element_number, altivec_expand_vec_set_builtin,
19055 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19056 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19057 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19058 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19059 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19060 rs6000_expand_builtin, rs6000_vector_type,
19061 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19062 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19063 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19064 to here from rs6000.c.
19065 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19066 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19067 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19068 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19069 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19070 rs6000_return_in_memory, rs6000_return_in_msb,
19071 rs6000_pass_by_reference, setup_incoming_varargs,
19072 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19073 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19074 rs6000_function_arg_padding, rs6000_function_arg,
19075 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19076 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19077 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19078 rs6000_passes_long_double, rs6000_passes_vector,
19079 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19080 altivec_builtin_mask_for_load) Add declarations.
19081 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19082 * config/config.gcc: Add new source file rs6000-call.c to garbage
19083 collector and extra_objs.
19084
19085 2019-07-19 Jeff Law <law@redhat.com>
19086
19087 PR tree-optimization/86061
19088 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19089 strncpy. Drop some trivial dead code.
19090 (maybe_trim_memstar_call): Handle strncpy.
19091
19092 2019-07-19 Richard Biener <rguenther@suse.de>
19093
19094 PR tree-optimization/91211
19095 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19096 memset encoding size.
19097
19098 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19099
19100 PR target/91204
19101 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19102
19103 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19104
19105 PR ipa/91194
19106 * ipa-inline.c (recursive_inlining): Fix limits check.
19107
19108 2019-07-19 Richard Biener <rguenther@suse.de>
19109
19110 PR tree-optimization/91200
19111 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19112 no PHI nodes in middle-bb.
19113
19114 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19115
19116 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19117 to +sve-bitperm.
19118 * config/aarch64/aarch64-option-extensions.def: Likewise.
19119
19120 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19121
19122 PR middle-end/91190
19123 * function.c (insert_temp_slot_address): Store into the hash table
19124 a copy of address to avoid RTL sharing issues.
19125
19126 2019-07-19 Richard Biener <rguenther@suse.de>
19127
19128 PR tree-optimization/91207
19129 Revert
19130 2019-07-17 Richard Biener <rguenther@suse.de>
19131
19132 PR tree-optimization/91178
19133 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19134 loads with a gap larger than the vector size always use
19135 VMAT_STRIDED_SLP.
19136 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19137 avoid loading vectors that are only contained in the gap
19138 and thus are not needed.
19139
19140 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19141
19142 * config/i386/i386.md (*addqi_2_slp): Remove.
19143 (*<code>qi_2_slp): Ditto.
19144
19145 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19146
19147 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19148 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19149 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19150 Rename function from rs6000_prefixed_address.
19151 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19152 TARGET_HAS_TOC.
19153 (TARGET_TOC): Likewise.
19154 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19155 rs6000.h.
19156 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19157 TARGET_HAS_TOC.
19158 (TARGET_TOC): Likewise.
19159 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19160 rs6000.h.
19161 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19162 TARGET_HAS_TOC.
19163 (TARGET_TOC): Likewise.
19164 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19165 check to require -mcmodel=medium for pc-relative addressing.
19166 (create_TOC_reference): Add assertion for TARGET_TOC.
19167 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19168 TARGET_NO_TOC.
19169 (rs6000_emit_move): Likewise.
19170 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19171 to 'TOC_alias_set'.
19172 (get_TOC_alias_set): Likewise.
19173 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19174 TARGET_NO_TOC.
19175 (rs6000_can_eliminate): Likewise.
19176 (rs6000_prefixed_address_mode_p): Rename function from
19177 rs6000_prefixed_address.
19178 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19179 TARGET_HAS_TOC and not pc-relative.
19180 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19181 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19182 TARGET_HAS_TOC.
19183 (TARGET_TOC): Likewise.
19184 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19185 rs6000.h.
19186
19187 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19188
19189 PR target/91188
19190 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19191 for operand 0. Do not use (match_dup) to match operand 1 with
19192 operand 0. Add check in insn constraint that either input operand
19193 matches operand 0. Use SWI12 mode iterator to also handle
19194 HImode operands.
19195 (*and<mode>_1_slp): Ditto.
19196 (*<code>qi_1_slp): Ditto.
19197 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19198 Do not use (match_dup) to match operand 1 with operand 0. Add
19199 check in insn constraint that operand 1 matches operand 0.
19200 Use SWI12 mode iterator to also handle HImode operands.
19201 (*ashl<mode>3_1_slp): Ditto.
19202 (*<shift_insn><mode>3_1_slp): Ditto.
19203 (*<rotate_insn><mode>3_1_slp): Ditto.
19204
19205 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19206
19207 * config/arm/arm-builtins.c
19208 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19209 (arm_expand_unop_builtin): Likewise.
19210 * config/arm/crypto.md
19211 (crypto_sha1h): Convert from define_insn to define_expand.
19212 (crypto_<crypto_pattern>): Likewise.
19213 (crypto_sha1h_lb): New define_insn.
19214 (crypto_<crypto_pattern>_lb): Likewise.
19215
19216 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19217
19218 PR target/90317
19219 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19220 (vsha1cq_u32): Likewise.
19221 (vsha1pq_u32): Likewise.
19222 (vsha1mq_u32): Likewise.
19223 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19224 vec select.
19225 (crypto_sha1c): Correct vec select.
19226 (crypto_sha1m): Likewise.
19227 (crypto_sha1p): Likewise.
19228
19229 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19230
19231 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19232 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19233 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19234 (subdi_zesidi_zesidi): Likewise.
19235 (negdi2_compare, negdi2_insn): Likewise.
19236 (negdi_extensidi): Likewise.
19237 (negdi_zero_extendsidi): Likewise.
19238 (arm_cmpdi_insn): Likewise.
19239 (subsi3_carryin): Use arm_borrow_operation.
19240 (subsi3_carryin_const): Likewise.
19241 (subsi3_carryin_const0): Likewise.
19242 (subsi3_carryin_compare): Likewise.
19243 (subsi3_carryin_compare_const): Likewise.
19244 (subsi3_carryin_compare_const0): Likewise.
19245 (subsi3_carryin_shift): Likewise.
19246 (rsbsi3_carryin_shift): Likewise.
19247 (negsi2_carryin_compare): Likewise.
19248
19249 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19250
19251 PR tree-optimization/91137
19252 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19253 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19254 Init, use and fini the above new field.
19255 (determine_base_object_1): New function.
19256 (determine_base_object): Reimplement using walk_tree.
19257
19258 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19259
19260 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19261 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19262 CLEANUP_FORCE_FAST_DCE is set.
19263 * ifcvt.c (rest_of_handle_if_conversion): Pass
19264 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19265 if-conversion succeeded.
19266
19267 2019-07-18 Richard Biener <rguenther@suse.de>
19268
19269 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19270 branches to make code less indented.
19271
19272 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19273
19274 PR middle-end/81824
19275 * attribs.c (decls_mismatched_attributes): Simplify the logic
19276 that avoids duplicates and false positives.
19277
19278 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19279
19280 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19281 data into data section when generating PIC code.
19282 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19283 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19284 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19285 return 2 for SOM and 0 for other targets.
19286
19287 2019-07-17 Jeff Law <law@redhat.com>
19288
19289 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19290 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19291 avoid unexpected switch statement fallthru.
19292
19293 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19294
19295 * config/i386/i386.md (*add<dwi>3_doubleword):
19296 Remove redundant constraints.
19297 (*add<mode>_1): Ditto.
19298 (*addhi_1): Ditto.
19299 (*addqi_1): Ditto.
19300 (*addqi_1_slp): Ditto.
19301 (*add<mode>_2): Ditto.
19302 (*addv<mode>4): Ditto.
19303 (*sub<dwi>3_doubleword): Ditto.
19304 (*sub<mode>_1): Ditto.
19305 (*subqi_1_slp): Ditto.
19306 (*sub<mode>_2): Ditto.
19307 (*subv<mode>4): Ditto.
19308 (*sub<mode>_3): Ditto.
19309 (@add<mode>3_carry): Ditto.
19310 (@sub<mode>3_carry): Ditto.
19311 (*add<mode>3_cc_overflow_1): Ditto.
19312 (*add<mode>3_zext_cc_overflow_2): Ditto.
19313 (*anddi_1): Ditto.
19314 (*and<mode>_1): Ditto.
19315 (*andqi_1): Ditto.
19316 (*andqi_1_slp): Ditto.
19317 (*anddi_2): Ditto.
19318 (*andqi_2_maybe_si): Ditto.
19319 (*and<mode>_2): Ditto.
19320 (*andqi_2_slp): Ditto.
19321 (*<code><mode>_1): Ditto.
19322 (*<code>qi_1): Ditto.
19323 (*<code>qi_1_slp): Ditto.
19324 (*<code><mode>_2): Ditto.
19325 (*<code>qi_2_slp): Ditto.
19326
19327 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19328
19329 * alias.c (record_component_aliases): Do not simplify pointed-to
19330 types of ODR types.
19331
19332 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19333
19334 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19335 partial reg stall on alternative 2.
19336
19337 2019-07-17 Richard Biener <rguenther@suse.de>
19338
19339 PR tree-optimization/91178
19340 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19341 lower SSA names to avoid quadratic behavior in the common case.
19342 * tree-data-ref.c (split_constant_offset): Add limit argument
19343 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19344 (split_constant_offset_1): Add limit argument and use it to
19345 limit SSA def walking. Optimize the common plus/minus case.
19346
19347 2019-07-17 Richard Biener <rguenther@suse.de>
19348
19349 PR tree-optimization/91178
19350 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19351 loads with a gap larger than the vector size always use
19352 VMAT_STRIDED_SLP.
19353 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19354 avoid loading vectors that are only contained in the gap
19355 and thus are not needed.
19356
19357 2019-07-17 Richard Biener <rguenther@suse.de>
19358
19359 PR tree-optimization/91180
19360 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19361 computation for memset partial defs.
19362
19363 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19364
19365 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19366 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19367 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19368 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19369 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19370 * omp-grid.c (grid_process_grid_body,
19371 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19372 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19373 == GF_OMP_FOR_KIND_SIMD.
19374 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19375 check_omp_nesting_restrictions, scan_omp_1_stmt,
19376 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19377 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19378 omp_find_scan): Likewise.
19379 * omp-expand.c (expand_omp_for): Likewise.
19380 * omp-general.c (omp_extract_for_data): Likewise.
19381
19382 PR tree-optimization/91157
19383 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19384 a vector boolean with scalar mode.
19385 (expand_vector_condition): Handle first operand being a vector boolean
19386 with scalar mode.
19387 (expand_vector_operations_1): For comparisons, don't bail out early
19388 if the return type is vector boolean with scalar mode, but comparison
19389 operand type is not.
19390
19391 2019-07-17 Richard Biener <rguenther@suse.de>
19392
19393 PR tree-optimization/91181
19394 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19395 IFN_LOADs as calls.
19396
19397 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19398
19399 * config/i386/i386.md (*testdi_1): Match CCZmode for
19400 constants that might have the SImode sign bit set.
19401 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19402 Use correct constraints for pentium pairing.
19403 (*test<mode>_1): Ditto.
19404
19405 2019-07-16 Jeff Law <law@redhat.com>
19406
19407 PR rtl-optimization/91173
19408 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19409 SSA_NAME with a constant value, fold its value into the offset
19410 and clear the base before calling gen_addr_rtx.
19411
19412 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19413
19414 PR rtl-optimization/91164
19415 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19416 invalidate dominance info.
19417
19418 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19419
19420 * read-md.h (md_reader::record_potential_iterator_use): Add a
19421 file_location parameter.
19422 * read-rtl.c (attribute_use::loc): New field.
19423 (map_attr_string): Take a file_location parameter. Report cases
19424 in which attributes map to multiple distinct values.
19425 (apply_attribute_uses): Update call accordingly.
19426 (md_reader::handle_overloaded_name): Likewise.
19427 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19428 nonnull strings.
19429 (record_attribute_use): Take a file_location parameter.
19430 Initialize attribute_use::loc.
19431 (md_reader::record_potential_iterator_use): Take a file_location
19432 parameter. Update call to record_attribute_use.
19433 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19434 (rtx_reader::read_rtx_code): Likewise.
19435 (rtx_reader::read_rtx_operand): Likewise. Record a location
19436 for implicitly-expanded empty strings.
19437
19438 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19439
19440 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19441 Use file_location instead of separate fields.
19442 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19443 separate filename and line number.
19444 * read-md.c (ptr_loc): As above.
19445 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19446 (md_reader::fprint_md_ptr_loc): Likewise.
19447 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19448 instead of a separate filename and line number.
19449 (md_reader::read_string): Update call accordingly.
19450
19451 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19452
19453 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19454 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19455 leaving the choice between SFDF and P implicit.
19456 (*mov<mode>_update2): Likewise.
19457 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19458 rather than leaving the choice betweem IBM128 and GPR implicit.
19459 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19460 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19461 QHSI implicit.
19462 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19463 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19464 * config/rs6000/vsx.md
19465 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19466 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19467 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19468 and VSX_EXTRACT_I implicit.
19469
19470 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19471
19472 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19473 Explicitly use <MOVEP1:MODE> for the mode attribute.
19474
19475 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19476
19477 PR bootstrap/91176
19478 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19479
19480 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19481
19482 PR target/91050
19483 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19484 .machine directive.
19485
19486 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19487
19488 * config/i386/i386.md (@test<mode>_ccno_1):
19489 Rename from test<mode>_ccno_1.
19490 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19491 (*testqi_1_maybe_si): Remove modrm attribute.
19492 (*test<mode>_1): Ditto.
19493 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19494 gen_test_ccno_1 and gen_extend_insn.
19495
19496 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19497
19498 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19499 to 0.
19500
19501 2019-07-15 Richard Biener <rguenther@suse.de>
19502
19503 PR middle-end/91162
19504 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19505 node make sure to replace all uses with something valid.
19506
19507 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19508
19509 PR tree-optimization/88497
19510 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19511 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19512 function undistribute_bitref_for_vector.
19513 (undistribute_bitref_for_vector): New function.
19514 (cleanup_vinfo_map): Likewise.
19515 (sort_by_mach_mode): Likewise.
19516
19517 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19518
19519 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19520 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19521 and testdi_ccno_1 using SWI48 mode attribute.
19522 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19523 x86_64_szext_general_operand.
19524 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19525 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19526 instead of genera_operand mode attribute.
19527
19528 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19529
19530 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19531 fopen and fclose to their respective types.
19532 (DotFn.invoke): Ditto.
19533
19534 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19535
19536 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19537 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19538 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19539 (array_index_predicate): Remove.
19540 (analyze_function_body): Account cost for variable ofsetted array
19541 indexing.
19542 (estimate_node_size_and_time): Do not compute array index hint.
19543 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19544 (inline_read_section): Do not read array index hint.
19545 (ipa_fn_summary_write): Do not write array index hint.
19546 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19547 * ipa-cp.c (hint_time_bonus): Remove.
19548 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19549 (ipa_fnsummary): Remove array_index.
19550 * ipa-inline.c (want_inline_small_function_p): Do not use
19551 array_index.
19552 (edge_badness): Likewise.
19553 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19554
19555 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19556
19557 PR target/91148
19558 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19559 superfluous "builtin function" phrasing.
19560
19561 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19562
19563 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19564 Break out from ...
19565 (aliasing_component_refs_walk): Break out from ...
19566 (aliasing_component_refs_p): ... here.
19567
19568 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19569
19570 PR target/91148
19571 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19572 "builtin function" phrasing.
19573
19574 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19575
19576 PR target/90723
19577 * recog.h (temporary_volatile_ok): New class.
19578 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19579 volatile_ok temporarily to true using temporary_volatile_ok.
19580 * expr.c (emit_block_move_via_cpymem): Likewise.
19581 * optabs.c (maybe_legitimize_operand): Likewise.
19582
19583 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19584
19585 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19586 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19587 uses inside of order(concurrent) constructs.
19588 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19589 OMP_CLAUSE_ORDER is seen.
19590 * omp-low.c (struct omp_context): Add order_concurrent member.
19591 (scan_sharing_clauses): Set ctx->order_concurrent if
19592 OMP_CLAUSE_ORDER is seen.
19593 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19594 of simd order(concurrent). Diagnose constructs not allowed inside of
19595 for order(concurrent).
19596 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19597 complaining about static double setjmp (double); or class static
19598 methods or non-global namespace setjmps.
19599 (omp_runtime_api_call): New function.
19600 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19601 order(concurrent) loops.
19602
19603 2019-07-12 Martin Sebor <msebor@redhat.com>
19604
19605 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19606 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19607 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19608 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19609
19610 2019-07-12 Jan Hubicka <jh@suse.cz>
19611
19612 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19613 (indirect_refs_may_alias_p): ... here.
19614 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19615 mem refs in the access paths.
19616
19617 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19618
19619 PR tree-optimization/89430
19620 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19621 store elimination for local variable without address escape.
19622
19623 2019-07-12 Jeff Law <law@redhat.com>
19624
19625 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19626 for the ".far" section.
19627
19628 2019-07-12 Richard Biener <rguenther@suse.de>
19629
19630 PR tree-optimization/91145
19631 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19632 chain check.
19633
19634 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19635
19636 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19637 rather than this_state as the lowering context for the ELSE
19638 seq in a GIMPLE_EH_ELSE.
19639
19640 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19641
19642 * vector-builder.h (vector_builder::elt): Allow already-supplied
19643 elements to be read back before building is complete.
19644
19645 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19646
19647 PR rtl-optimization/91136
19648 * df-core.c (ACCESSING REFS): Fix typos in comment.
19649 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19650 the beginning of the block to the initial set of live registers.
19651
19652 2019-07-12 Richard Biener <rguenther@suse.de>
19653
19654 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19655 * fold-const.c (get_array_ctor_element_at_index): Add
19656 ctor_idx output parameter informing the caller where in
19657 the constructor the element was (not) found. Add early exit
19658 for when the ctor is sorted.
19659 * gimple-fold.c (fold_array_ctor_reference): Support constant
19660 folding across multiple array elements.
19661
19662 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19663
19664 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19665 doesn't have location, set the current location to the function's end.
19666
19667 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19668
19669 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19670 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19671 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19672 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19673 * config/aarch64/aarch64-simd.md
19674 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19675 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19676 * config/aarch64/aarch64-sve.md
19677 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19678 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19679
19680 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19681
19682 * doc/md.texi: Document that @ patterns can have different
19683 numbers of operands.
19684 * genemit.c (handle_overloaded_gen): Handle this case.
19685 * genopinit.c (handle_overloaded_gen): Likewise.
19686 * gensupport.c (replace_operands_with_dups): Iterate over
19687 the new rtx's format rather than the old one's.
19688
19689 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19690
19691 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19692 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19693 order clause entries.
19694 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19695 * tree-pretty-print.c (dump_omp_clause): Likewise.
19696 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19697 Likewise.
19698 * omp-low.c (scan_sharing_clauses): Likewise.
19699 * tree-nested.c (convert_nonlocal_omp_clauses,
19700 convert_local_omp_clauses): Likewise.
19701
19702 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19703
19704 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19705 fallthrough target of current basic block isn't the placed
19706 right next.
19707
19708 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19709
19710 PR target/90980
19711 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19712 (_mm512_storeu_epi64): Likewise.
19713 (_mm512_loadu_epi32): Likewise.
19714 (_mm512_storeu_epi32): Likewise.
19715 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19716 (_mm_storeu_epi64): Likewise.
19717 (_mm256_storeu_epi32): Likewise.
19718 (_mm_storeu_epi32): Likewise.
19719
19720 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19721
19722 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19723
19724 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19725
19726 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19727 Handle Modula-2.
19728
19729 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19730
19731 PR target/91124
19732 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19733 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19734 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19735 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19736 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19737 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19738 define_insns.
19739 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19740 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19741 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19742 define_insns.
19743 (sse2_cvttpd2dq<mask_name>): Change into ...
19744 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19745 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19746 (*sse2_cvtpd2dq<mask_name>): Change into ...
19747 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19748 Add "C" constraint to const0_operand.
19749 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19750 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19751 changes.
19752
19753 PR target/91124
19754 * config/i386/i386-builtin-types.def
19755 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19756 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19757 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19758 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19759 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19760 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19761 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19762 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19763 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19764 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19765 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19766 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19767 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19768 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19769 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19770 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19771 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19772 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19773 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19774 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19775 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19776 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19777 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19778 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19779 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19780 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19781 __builtin_ia32_vpdpbusd_v4si_maskz,
19782 __builtin_ia32_vpdpbusds_v16si_mask,
19783 __builtin_ia32_vpdpbusds_v16si_maskz,
19784 __builtin_ia32_vpdpbusds_v8si_mask,
19785 __builtin_ia32_vpdpbusds_v8si_maskz,
19786 __builtin_ia32_vpdpbusds_v4si_mask,
19787 __builtin_ia32_vpdpbusds_v4si_maskz,
19788 __builtin_ia32_vpdpwssd_v16si_mask,
19789 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19790 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19791 __builtin_ia32_vpdpwssd_v4si_maskz,
19792 __builtin_ia32_vpdpwssds_v16si_mask,
19793 __builtin_ia32_vpdpwssds_v16si_maskz,
19794 __builtin_ia32_vpdpwssds_v8si_mask,
19795 __builtin_ia32_vpdpwssds_v8si_maskz,
19796 __builtin_ia32_vpdpwssds_v4si_mask,
19797 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19798 suffixed types rather than *_INT.
19799 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19800 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19801 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19802 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19803 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19804 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19805
19806 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19807
19808 * tree-vrp.c (intersect_ranges): If we know the intersection is
19809 empty, there is no need to conservatively add anything else to
19810 the set.
19811
19812 2019-07-11 Richard Biener <rguenther@suse.de>
19813
19814 PR middle-end/91131
19815 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19816 when the object is volatile and we have not cleared it even though
19817 there are no nonzero elements.
19818
19819 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19820
19821 * config/rs6000/predicates.md (cint34_operand): Update
19822 SIGNED_34BIT_OFFSET_P call.
19823 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19824 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19825 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19826 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19827 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19828 argument.
19829 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19830 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19831 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19832 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19833 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19834
19835 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19836
19837 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19838 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19839 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19840 (DEF_MIN_OSX_VERSION): New.
19841
19842 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19843
19844 * fold-const.c (fold_relational_const): Fix folding of
19845 vector-to-scalar NE_EXPRs.
19846 (test_vector_folding): Add more tests.
19847
19848 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19849
19850 PR target/91060
19851 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19852 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19853 (vec_setv2di_internal): Reexpress as...
19854 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19855 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19856 rather than gen_neon_vset_lane<mode>.
19857
19858 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19859
19860 PR target/91102
19861 * lra-constraints.c (process_alt_operands): Don't match user
19862 defined regs only if they are early clobbers.
19863
19864 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19865
19866 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19867
19868 2019-07-10 Richard Biener <rguenther@suse.de>
19869
19870 PR tree-optimization/91126
19871 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19872 native encoding offset for BYTES_BIG_ENDIAN.
19873 (vn_reference_lookup_3): Likewise.
19874
19875 2019-07-10 Richard Biener <rguenther@suse.de>
19876
19877 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19878 LHS whenever possible.
19879
19880 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19881
19882 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19883 from ...; work also on duplicated types.
19884 (nonoverlapping_component_refs_since_match): ... here
19885 (ncr_type_uid): Break out from ...
19886 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19887 available.
19888 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19889 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19890
19891 2019-07-09 Martin Sebor <msebor@redhat.com>
19892
19893 PR tree-optimization/90989
19894 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19895 optimization to just single character stores.
19896
19897 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19898
19899 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19900 Swap operands only once.
19901
19902 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19903
19904 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19905 for both call instructions.
19906
19907 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19908
19909 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19910 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19911
19912 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19913
19914 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19915 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19916 function from rs6000-logue.c back to rs6000.c.
19917 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19918
19919 2019-07-09 Martin Sebor <msebor@redhat.com>
19920
19921 PR c++/61339
19922 * auto-profile.c: Change class-key of PODs to struct and others
19923 to class.
19924 * basic-block.h: Same.
19925 * bitmap.c (bitmap_alloc): Same.
19926 * bitmap.h: Same.
19927 * builtins.c (expand_builtin_prefetch): Same.
19928 (expand_builtin_interclass_mathfn): Same.
19929 (expand_builtin_strlen): Same.
19930 (expand_builtin_mempcpy_args): Same.
19931 (expand_cmpstr): Same.
19932 (expand_builtin___clear_cache): Same.
19933 (expand_ifn_atomic_bit_test_and): Same.
19934 (expand_builtin_thread_pointer): Same.
19935 (expand_builtin_set_thread_pointer): Same.
19936 * caller-save.c (setup_save_areas): Same.
19937 (replace_reg_with_saved_mem): Same.
19938 (insert_restore): Same.
19939 (insert_save): Same.
19940 (add_used_regs): Same.
19941 * cfg.c (get_bb_copy): Same.
19942 (set_loop_copy): Same.
19943 * cfg.h: Same.
19944 * cfganal.h: Same.
19945 * cfgexpand.c (alloc_stack_frame_space): Same.
19946 (add_stack_var): Same.
19947 (add_stack_var_conflict): Same.
19948 (add_scope_conflicts_1): Same.
19949 (update_alias_info_with_stack_vars): Same.
19950 (expand_used_vars): Same.
19951 * cfghooks.c (redirect_edge_and_branch_force): Same.
19952 (delete_basic_block): Same.
19953 (split_edge): Same.
19954 (make_forwarder_block): Same.
19955 (force_nonfallthru): Same.
19956 (duplicate_block): Same.
19957 (lv_flush_pending_stmts): Same.
19958 * cfghooks.h: Same.
19959 * cfgloop.c (flow_loops_cfg_dump): Same.
19960 (flow_loop_nested_p): Same.
19961 (superloop_at_depth): Same.
19962 (get_loop_latch_edges): Same.
19963 (flow_loop_dump): Same.
19964 (flow_loops_dump): Same.
19965 (flow_loops_free): Same.
19966 (flow_loop_nodes_find): Same.
19967 (establish_preds): Same.
19968 (flow_loop_tree_node_add): Same.
19969 (flow_loop_tree_node_remove): Same.
19970 (flow_loops_find): Same.
19971 (find_subloop_latch_edge_by_profile): Same.
19972 (find_subloop_latch_edge_by_ivs): Same.
19973 (mfb_redirect_edges_in_set): Same.
19974 (form_subloop): Same.
19975 (merge_latch_edges): Same.
19976 (disambiguate_multiple_latches): Same.
19977 (disambiguate_loops_with_multiple_latches): Same.
19978 (flow_bb_inside_loop_p): Same.
19979 (glb_enum_p): Same.
19980 (get_loop_body_with_size): Same.
19981 (get_loop_body): Same.
19982 (fill_sons_in_loop): Same.
19983 (get_loop_body_in_dom_order): Same.
19984 (get_loop_body_in_custom_order): Same.
19985 (release_recorded_exits): Same.
19986 (get_loop_exit_edges): Same.
19987 (num_loop_branches): Same.
19988 (remove_bb_from_loops): Same.
19989 (find_common_loop): Same.
19990 (delete_loop): Same.
19991 (cancel_loop): Same.
19992 (verify_loop_structure): Same.
19993 (loop_preheader_edge): Same.
19994 (loop_exit_edge_p): Same.
19995 (single_exit): Same.
19996 (loop_exits_to_bb_p): Same.
19997 (loop_exits_from_bb_p): Same.
19998 (get_loop_location): Same.
19999 (record_niter_bound): Same.
20000 (get_estimated_loop_iterations_int): Same.
20001 (max_stmt_executions_int): Same.
20002 (likely_max_stmt_executions_int): Same.
20003 (get_estimated_loop_iterations): Same.
20004 (get_max_loop_iterations): Same.
20005 (get_max_loop_iterations_int): Same.
20006 (get_likely_max_loop_iterations): Same.
20007 * cfgloop.h (simple_loop_desc): Same.
20008 (get_loop): Same.
20009 (loop_depth): Same.
20010 (loop_outer): Same.
20011 (loop_iterator::next): Same.
20012 (loop_outermost): Same.
20013 * cfgloopanal.c (mark_irreducible_loops): Same.
20014 (num_loop_insns): Same.
20015 (average_num_loop_insns): Same.
20016 (expected_loop_iterations_unbounded): Same.
20017 (expected_loop_iterations): Same.
20018 (mark_loop_exit_edges): Same.
20019 (single_likely_exit): Same.
20020 * cfgloopmanip.c (fix_bb_placement): Same.
20021 (fix_bb_placements): Same.
20022 (remove_path): Same.
20023 (place_new_loop): Same.
20024 (add_loop): Same.
20025 (scale_loop_frequencies): Same.
20026 (scale_loop_profile): Same.
20027 (create_empty_if_region_on_edge): Same.
20028 (create_empty_loop_on_edge): Same.
20029 (loopify): Same.
20030 (unloop): Same.
20031 (fix_loop_placements): Same.
20032 (copy_loop_info): Same.
20033 (duplicate_loop): Same.
20034 (duplicate_subloops): Same.
20035 (loop_redirect_edge): Same.
20036 (can_duplicate_loop_p): Same.
20037 (duplicate_loop_to_header_edge): Same.
20038 (mfb_keep_just): Same.
20039 (has_preds_from_loop): Same.
20040 (create_preheader): Same.
20041 (create_preheaders): Same.
20042 (lv_adjust_loop_entry_edge): Same.
20043 (loop_version): Same.
20044 * cfgloopmanip.h: Same.
20045 * cgraph.h: Same.
20046 * cgraphbuild.c: Same.
20047 * combine.c (make_extraction): Same.
20048 * config/i386/i386-features.c: Same.
20049 * config/i386/i386-features.h: Same.
20050 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20051 (ix86_emit_outlined_ms2sysv_restore): Same.
20052 (ix86_noce_conversion_profitable_p): Same.
20053 (ix86_init_cost): Same.
20054 (ix86_simd_clone_usable): Same.
20055 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20056 Wstruct-not-pod.
20057 * coretypes.h: Same.
20058 * data-streamer-in.c (string_for_index): Change class-key of PODs
20059 to struct and others to class.
20060 (streamer_read_indexed_string): Same.
20061 (streamer_read_string): Same.
20062 (bp_unpack_indexed_string): Same.
20063 (bp_unpack_string): Same.
20064 (streamer_read_uhwi): Same.
20065 (streamer_read_hwi): Same.
20066 (streamer_read_gcov_count): Same.
20067 (streamer_read_wide_int): Same.
20068 * data-streamer.h (streamer_write_bitpack): Same.
20069 (bp_unpack_value): Same.
20070 (streamer_write_char_stream): Same.
20071 (streamer_write_hwi_in_range): Same.
20072 (streamer_write_record_start): Same.
20073 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20074 (add_cross_iteration_register_deps): Same.
20075 (build_intra_loop_deps): Same.
20076 * df-core.c (df_analyze): Same.
20077 (loop_post_order_compute): Same.
20078 (loop_inverted_post_order_compute): Same.
20079 * df-problems.c (df_rd_alloc): Same.
20080 (df_rd_simulate_one_insn): Same.
20081 (df_rd_local_compute): Same.
20082 (df_rd_init_solution): Same.
20083 (df_rd_confluence_n): Same.
20084 (df_rd_transfer_function): Same.
20085 (df_rd_free): Same.
20086 (df_rd_dump_defs_set): Same.
20087 (df_rd_top_dump): Same.
20088 (df_lr_alloc): Same.
20089 (df_lr_reset): Same.
20090 (df_lr_local_compute): Same.
20091 (df_lr_init): Same.
20092 (df_lr_confluence_n): Same.
20093 (df_lr_free): Same.
20094 (df_lr_top_dump): Same.
20095 (df_lr_verify_transfer_functions): Same.
20096 (df_live_alloc): Same.
20097 (df_live_reset): Same.
20098 (df_live_init): Same.
20099 (df_live_confluence_n): Same.
20100 (df_live_finalize): Same.
20101 (df_live_free): Same.
20102 (df_live_top_dump): Same.
20103 (df_live_verify_transfer_functions): Same.
20104 (df_mir_alloc): Same.
20105 (df_mir_reset): Same.
20106 (df_mir_init): Same.
20107 (df_mir_confluence_n): Same.
20108 (df_mir_free): Same.
20109 (df_mir_top_dump): Same.
20110 (df_word_lr_alloc): Same.
20111 (df_word_lr_reset): Same.
20112 (df_word_lr_init): Same.
20113 (df_word_lr_confluence_n): Same.
20114 (df_word_lr_free): Same.
20115 (df_word_lr_top_dump): Same.
20116 (df_md_alloc): Same.
20117 (df_md_simulate_one_insn): Same.
20118 (df_md_reset): Same.
20119 (df_md_init): Same.
20120 (df_md_free): Same.
20121 (df_md_top_dump): Same.
20122 * df-scan.c (df_insn_delete): Same.
20123 (df_insn_rescan): Same.
20124 (df_notes_rescan): Same.
20125 (df_sort_and_compress_mws): Same.
20126 (df_install_mws): Same.
20127 (df_refs_add_to_chains): Same.
20128 (df_ref_create_structure): Same.
20129 (df_ref_record): Same.
20130 (df_def_record_1): Same.
20131 (df_find_hard_reg_defs): Same.
20132 (df_uses_record): Same.
20133 (df_get_conditional_uses): Same.
20134 (df_get_call_refs): Same.
20135 (df_recompute_luids): Same.
20136 (df_get_entry_block_def_set): Same.
20137 (df_entry_block_defs_collect): Same.
20138 (df_get_exit_block_use_set): Same.
20139 (df_exit_block_uses_collect): Same.
20140 (df_mws_verify): Same.
20141 (df_bb_verify): Same.
20142 * df.h (df_scan_get_bb_info): Same.
20143 * doc/tm.texi: Same.
20144 * dse.c (record_store): Same.
20145 * dumpfile.h: Same.
20146 * emit-rtl.c (const_fixed_hasher::equal): Same.
20147 (set_mem_attributes_minus_bitpos): Same.
20148 (change_address): Same.
20149 (adjust_address_1): Same.
20150 (offset_address): Same.
20151 * emit-rtl.h: Same.
20152 * except.c (dw2_build_landing_pads): Same.
20153 (sjlj_emit_dispatch_table): Same.
20154 * explow.c (allocate_dynamic_stack_space): Same.
20155 (emit_stack_probe): Same.
20156 (probe_stack_range): Same.
20157 * expmed.c (store_bit_field_using_insv): Same.
20158 (store_bit_field_1): Same.
20159 (store_integral_bit_field): Same.
20160 (extract_bit_field_using_extv): Same.
20161 (extract_bit_field_1): Same.
20162 (emit_cstore): Same.
20163 * expr.c (emit_block_move_via_cpymem): Same.
20164 (expand_cmpstrn_or_cmpmem): Same.
20165 (set_storage_via_setmem): Same.
20166 (emit_single_push_insn_1): Same.
20167 (expand_assignment): Same.
20168 (store_constructor): Same.
20169 (expand_expr_real_2): Same.
20170 (expand_expr_real_1): Same.
20171 (try_casesi): Same.
20172 * flags.h: Same.
20173 * function.c (try_fit_stack_local): Same.
20174 (assign_stack_local_1): Same.
20175 (assign_stack_local): Same.
20176 (cut_slot_from_list): Same.
20177 (insert_slot_to_list): Same.
20178 (max_slot_level): Same.
20179 (move_slot_to_level): Same.
20180 (temp_address_hasher::equal): Same.
20181 (remove_unused_temp_slot_addresses): Same.
20182 (assign_temp): Same.
20183 (combine_temp_slots): Same.
20184 (update_temp_slot_address): Same.
20185 (preserve_temp_slots): Same.
20186 * function.h: Same.
20187 * fwprop.c: Same.
20188 * gcc-rich-location.h: Same.
20189 * gcov.c: Same.
20190 * genattrtab.c (check_attr_test): Same.
20191 (check_attr_value): Same.
20192 (convert_set_attr_alternative): Same.
20193 (convert_set_attr): Same.
20194 (check_defs): Same.
20195 (copy_boolean): Same.
20196 (get_attr_value): Same.
20197 (expand_delays): Same.
20198 (make_length_attrs): Same.
20199 (min_fn): Same.
20200 (make_alternative_compare): Same.
20201 (simplify_test_exp): Same.
20202 (tests_attr_p): Same.
20203 (get_attr_order): Same.
20204 (clear_struct_flag): Same.
20205 (gen_attr): Same.
20206 (compares_alternatives_p): Same.
20207 (gen_insn): Same.
20208 (gen_delay): Same.
20209 (find_attrs_to_cache): Same.
20210 (write_test_expr): Same.
20211 (walk_attr_value): Same.
20212 (write_attr_get): Same.
20213 (eliminate_known_true): Same.
20214 (write_insn_cases): Same.
20215 (write_attr_case): Same.
20216 (write_attr_valueq): Same.
20217 (write_attr_value): Same.
20218 (write_dummy_eligible_delay): Same.
20219 (next_comma_elt): Same.
20220 (find_attr): Same.
20221 (make_internal_attr): Same.
20222 (copy_rtx_unchanging): Same.
20223 (gen_insn_reserv): Same.
20224 (check_tune_attr): Same.
20225 (make_automaton_attrs): Same.
20226 (handle_arg): Same.
20227 * genextract.c (gen_insn): Same.
20228 (VEC_char_to_string): Same.
20229 * genmatch.c (print_operand): Same.
20230 (lower): Same.
20231 (parser::parse_operation): Same.
20232 (parser::parse_capture): Same.
20233 (parser::parse_c_expr): Same.
20234 (parser::parse_simplify): Same.
20235 (main): Same.
20236 * genoutput.c (output_operand_data): Same.
20237 (output_get_insn_name): Same.
20238 (compare_operands): Same.
20239 (place_operands): Same.
20240 (process_template): Same.
20241 (validate_insn_alternatives): Same.
20242 (validate_insn_operands): Same.
20243 (gen_expand): Same.
20244 (note_constraint): Same.
20245 * genpreds.c (write_one_predicate_function): Same.
20246 (add_constraint): Same.
20247 (process_define_register_constraint): Same.
20248 (write_lookup_constraint_1): Same.
20249 (write_lookup_constraint_array): Same.
20250 (write_insn_constraint_len): Same.
20251 (write_reg_class_for_constraint_1): Same.
20252 (write_constraint_satisfied_p_array): Same.
20253 * genrecog.c (optimize_subroutine_group): Same.
20254 * gensupport.c (process_define_predicate): Same.
20255 (queue_pattern): Same.
20256 (remove_from_queue): Same.
20257 (process_rtx): Same.
20258 (is_predicable): Same.
20259 (change_subst_attribute): Same.
20260 (subst_pattern_match): Same.
20261 (alter_constraints): Same.
20262 (alter_attrs_for_insn): Same.
20263 (shift_output_template): Same.
20264 (alter_output_for_subst_insn): Same.
20265 (process_one_cond_exec): Same.
20266 (subst_dup): Same.
20267 (process_define_cond_exec): Same.
20268 (mnemonic_htab_callback): Same.
20269 (gen_mnemonic_attr): Same.
20270 (read_md_rtx): Same.
20271 * ggc-page.c: Same.
20272 * gimple-loop-interchange.cc (dump_reduction): Same.
20273 (dump_induction): Same.
20274 (loop_cand::~loop_cand): Same.
20275 (free_data_refs_with_aux): Same.
20276 (tree_loop_interchange::interchange_loops): Same.
20277 (tree_loop_interchange::map_inductions_to_loop): Same.
20278 (tree_loop_interchange::move_code_to_inner_loop): Same.
20279 (compute_access_stride): Same.
20280 (compute_access_strides): Same.
20281 (proper_loop_form_for_interchange): Same.
20282 (tree_loop_interchange_compute_ddrs): Same.
20283 (prune_datarefs_not_in_loop): Same.
20284 (prepare_data_references): Same.
20285 (pass_linterchange::execute): Same.
20286 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20287 (unroll_jam_possible_p): Same.
20288 (fuse_loops): Same.
20289 (adjust_unroll_factor): Same.
20290 (tree_loop_unroll_and_jam): Same.
20291 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20292 (loop_versioning::expensive_stmt_p): Same.
20293 (loop_versioning::version_for_unity): Same.
20294 (loop_versioning::dump_inner_likelihood): Same.
20295 (loop_versioning::find_per_loop_multiplication): Same.
20296 (loop_versioning::analyze_term_using_scevs): Same.
20297 (loop_versioning::record_address_fragment): Same.
20298 (loop_versioning::analyze_expr): Same.
20299 (loop_versioning::analyze_blocks): Same.
20300 (loop_versioning::prune_conditions): Same.
20301 (loop_versioning::merge_loop_info): Same.
20302 (loop_versioning::add_loop_to_queue): Same.
20303 (loop_versioning::decide_whether_loop_is_versionable): Same.
20304 (loop_versioning::make_versioning_decisions): Same.
20305 (loop_versioning::implement_versioning_decisions): Same.
20306 * gimple-ssa-evrp-analyze.c
20307 (evrp_range_analyzer::record_ranges_from_phis): Same.
20308 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20309 (count_multiple_uses): Same.
20310 (split_group): Same.
20311 (imm_store_chain_info::output_merged_store): Same.
20312 (pass_store_merging::process_store): Same.
20313 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20314 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20315 (is_max): Same.
20316 (alloca_call_type): Same.
20317 (pass_walloca::execute): Same.
20318 * gimple-streamer-in.c (input_phi): Same.
20319 (input_gimple_stmt): Same.
20320 * gimple-streamer.h: Same.
20321 * godump.c (go_force_record_alignment): Same.
20322 (go_format_type): Same.
20323 (go_output_type): Same.
20324 (go_output_fndecl): Same.
20325 (go_output_typedef): Same.
20326 (keyword_hash_init): Same.
20327 (find_dummy_types): Same.
20328 * graph.c (draw_cfg_nodes_no_loops): Same.
20329 (draw_cfg_nodes_for_loop): Same.
20330 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20331 * hsa-brig.c: Same.
20332 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20333 * hsa-dump.c (dump_hsa_cfun): Same.
20334 * hsa-gen.c (gen_function_def_parameters): Same.
20335 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20336 * input.c (dump_line_table_statistics): Same.
20337 (test_lexer): Same.
20338 * input.h: Same.
20339 * internal-fn.c (get_multi_vector_move): Same.
20340 (expand_load_lanes_optab_fn): Same.
20341 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20342 (expand_GOMP_SIMT_EXIT): Same.
20343 (expand_GOMP_SIMT_LAST_LANE): Same.
20344 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20345 (expand_GOMP_SIMT_VOTE_ANY): Same.
20346 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20347 (expand_GOMP_SIMT_XCHG_IDX): Same.
20348 (expand_addsub_overflow): Same.
20349 (expand_neg_overflow): Same.
20350 (expand_mul_overflow): Same.
20351 (expand_call_mem_ref): Same.
20352 (expand_mask_load_optab_fn): Same.
20353 (expand_scatter_store_optab_fn): Same.
20354 (expand_gather_load_optab_fn): Same.
20355 * ipa-cp.c (ipa_get_parm_lattices): Same.
20356 (print_all_lattices): Same.
20357 (ignore_edge_p): Same.
20358 (build_toporder_info): Same.
20359 (free_toporder_info): Same.
20360 (push_node_to_stack): Same.
20361 (ipcp_lattice<valtype>::set_contains_variable): Same.
20362 (set_agg_lats_to_bottom): Same.
20363 (ipcp_bits_lattice::meet_with): Same.
20364 (set_single_call_flag): Same.
20365 (initialize_node_lattices): Same.
20366 (ipa_get_jf_ancestor_result): Same.
20367 (ipcp_verify_propagated_values): Same.
20368 (propagate_scalar_across_jump_function): Same.
20369 (propagate_context_across_jump_function): Same.
20370 (propagate_bits_across_jump_function): Same.
20371 (ipa_vr_operation_and_type_effects): Same.
20372 (propagate_vr_across_jump_function): Same.
20373 (set_check_aggs_by_ref): Same.
20374 (set_chain_of_aglats_contains_variable): Same.
20375 (merge_aggregate_lattices): Same.
20376 (agg_pass_through_permissible_p): Same.
20377 (propagate_aggs_across_jump_function): Same.
20378 (call_passes_through_thunk_p): Same.
20379 (propagate_constants_across_call): Same.
20380 (devirtualization_time_bonus): Same.
20381 (good_cloning_opportunity_p): Same.
20382 (context_independent_aggregate_values): Same.
20383 (gather_context_independent_values): Same.
20384 (perform_estimation_of_a_value): Same.
20385 (estimate_local_effects): Same.
20386 (value_topo_info<valtype>::add_val): Same.
20387 (add_all_node_vals_to_toposort): Same.
20388 (value_topo_info<valtype>::propagate_effects): Same.
20389 (ipcp_propagate_stage): Same.
20390 (ipcp_discover_new_direct_edges): Same.
20391 (same_node_or_its_all_contexts_clone_p): Same.
20392 (cgraph_edge_brings_value_p): Same.
20393 (gather_edges_for_value): Same.
20394 (create_specialized_node): Same.
20395 (find_more_scalar_values_for_callers_subset): Same.
20396 (find_more_contexts_for_caller_subset): Same.
20397 (copy_plats_to_inter): Same.
20398 (intersect_aggregates_with_edge): Same.
20399 (find_aggregate_values_for_callers_subset): Same.
20400 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20401 (decide_about_value): Same.
20402 (decide_whether_version_node): Same.
20403 (spread_undeadness): Same.
20404 (identify_dead_nodes): Same.
20405 (ipcp_store_vr_results): Same.
20406 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20407 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20408 (redirect_to_unreachable): Same.
20409 (edge_set_predicate): Same.
20410 (evaluate_conditions_for_known_args): Same.
20411 (evaluate_properties_for_edge): Same.
20412 (ipa_fn_summary_t::duplicate): Same.
20413 (ipa_call_summary_t::duplicate): Same.
20414 (dump_ipa_call_summary): Same.
20415 (ipa_dump_fn_summary): Same.
20416 (eliminated_by_inlining_prob): Same.
20417 (set_cond_stmt_execution_predicate): Same.
20418 (set_switch_stmt_execution_predicate): Same.
20419 (compute_bb_predicates): Same.
20420 (will_be_nonconstant_expr_predicate): Same.
20421 (phi_result_unknown_predicate): Same.
20422 (analyze_function_body): Same.
20423 (compute_fn_summary): Same.
20424 (estimate_edge_devirt_benefit): Same.
20425 (estimate_edge_size_and_time): Same.
20426 (estimate_calls_size_and_time): Same.
20427 (estimate_node_size_and_time): Same.
20428 (remap_edge_change_prob): Same.
20429 (remap_edge_summaries): Same.
20430 (ipa_merge_fn_summary_after_inlining): Same.
20431 (ipa_fn_summary_generate): Same.
20432 (inline_read_section): Same.
20433 (ipa_fn_summary_read): Same.
20434 (ipa_fn_summary_write): Same.
20435 * ipa-fnsummary.h: Same.
20436 * ipa-hsa.c (ipa_hsa_read_section): Same.
20437 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20438 * ipa-icf.c (sem_function::param_used_p): Same.
20439 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20440 * ipa-inline.c (edge_badness): Same.
20441 (inline_small_functions): Same.
20442 * ipa-polymorphic-call.c
20443 (ipa_polymorphic_call_context::stream_out): Same.
20444 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20445 (predicate::remap_after_inlining): Same.
20446 (predicate::stream_out): Same.
20447 * ipa-predicate.h: Same.
20448 * ipa-profile.c (ipa_profile_read_summary): Same.
20449 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20450 (count_formal_params): Same.
20451 (ipa_dump_param): Same.
20452 (ipa_alloc_node_params): Same.
20453 (ipa_print_node_jump_functions_for_edge): Same.
20454 (ipa_print_node_jump_functions): Same.
20455 (ipa_load_from_parm_agg): Same.
20456 (get_ancestor_addr_info): Same.
20457 (ipa_compute_jump_functions_for_edge): Same.
20458 (ipa_analyze_virtual_call_uses): Same.
20459 (ipa_analyze_stmt_uses): Same.
20460 (ipa_analyze_params_uses_in_bb): Same.
20461 (update_jump_functions_after_inlining): Same.
20462 (try_decrement_rdesc_refcount): Same.
20463 (ipa_impossible_devirt_target): Same.
20464 (update_indirect_edges_after_inlining): Same.
20465 (combine_controlled_uses_counters): Same.
20466 (ipa_edge_args_sum_t::duplicate): Same.
20467 (ipa_write_jump_function): Same.
20468 (ipa_write_indirect_edge_info): Same.
20469 (ipa_write_node_info): Same.
20470 (ipa_read_edge_info): Same.
20471 (ipa_prop_read_section): Same.
20472 (read_replacements_section): Same.
20473 * ipa-prop.h (ipa_get_param_count): Same.
20474 (ipa_get_param): Same.
20475 (ipa_get_type): Same.
20476 (ipa_get_param_move_cost): Same.
20477 (ipa_set_param_used): Same.
20478 (ipa_get_controlled_uses): Same.
20479 (ipa_set_controlled_uses): Same.
20480 (ipa_get_cs_argument_count): Same.
20481 * ipa-pure-const.c (analyze_function): Same.
20482 (pure_const_read_summary): Same.
20483 * ipa-ref.h: Same.
20484 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20485 * ipa-split.c (test_nonssa_use): Same.
20486 (dump_split_point): Same.
20487 (dominated_by_forbidden): Same.
20488 (split_part_set_ssa_name_p): Same.
20489 (find_split_points): Same.
20490 * ira-build.c (finish_loop_tree_nodes): Same.
20491 (low_pressure_loop_node_p): Same.
20492 * ira-color.c (ira_reuse_stack_slot): Same.
20493 * ira-int.h: Same.
20494 * ira.c (setup_reg_equiv): Same.
20495 (print_insn_chain): Same.
20496 (ira): Same.
20497 * loop-doloop.c (doloop_condition_get): Same.
20498 (add_test): Same.
20499 (record_reg_sets): Same.
20500 (doloop_optimize): Same.
20501 * loop-init.c (loop_optimizer_init): Same.
20502 (fix_loop_structure): Same.
20503 * loop-invariant.c (merge_identical_invariants): Same.
20504 (compute_always_reached): Same.
20505 (find_exits): Same.
20506 (may_assign_reg_p): Same.
20507 (find_invariants_bb): Same.
20508 (find_invariants_body): Same.
20509 (replace_uses): Same.
20510 (can_move_invariant_reg): Same.
20511 (free_inv_motion_data): Same.
20512 (move_single_loop_invariants): Same.
20513 (change_pressure): Same.
20514 (mark_ref_regs): Same.
20515 (calculate_loop_reg_pressure): Same.
20516 * loop-iv.c (biv_entry_hasher::equal): Same.
20517 (iv_extend_to_rtx_code): Same.
20518 (check_iv_ref_table_size): Same.
20519 (clear_iv_info): Same.
20520 (latch_dominating_def): Same.
20521 (iv_get_reaching_def): Same.
20522 (iv_constant): Same.
20523 (iv_subreg): Same.
20524 (iv_extend): Same.
20525 (iv_neg): Same.
20526 (iv_add): Same.
20527 (iv_mult): Same.
20528 (get_biv_step): Same.
20529 (record_iv): Same.
20530 (analyzed_for_bivness_p): Same.
20531 (record_biv): Same.
20532 (iv_analyze_biv): Same.
20533 (iv_analyze_expr): Same.
20534 (iv_analyze_def): Same.
20535 (iv_analyze_op): Same.
20536 (iv_analyze): Same.
20537 (iv_analyze_result): Same.
20538 (biv_p): Same.
20539 (eliminate_implied_conditions): Same.
20540 (simplify_using_initial_values): Same.
20541 (shorten_into_mode): Same.
20542 (canonicalize_iv_subregs): Same.
20543 (determine_max_iter): Same.
20544 (check_simple_exit): Same.
20545 (find_simple_exit): Same.
20546 (get_simple_loop_desc): Same.
20547 * loop-unroll.c (report_unroll): Same.
20548 (decide_unrolling): Same.
20549 (unroll_loops): Same.
20550 (loop_exit_at_end_p): Same.
20551 (decide_unroll_constant_iterations): Same.
20552 (unroll_loop_constant_iterations): Same.
20553 (compare_and_jump_seq): Same.
20554 (unroll_loop_runtime_iterations): Same.
20555 (decide_unroll_stupid): Same.
20556 (unroll_loop_stupid): Same.
20557 (referenced_in_one_insn_in_loop_p): Same.
20558 (reset_debug_uses_in_loop): Same.
20559 (analyze_iv_to_split_insn): Same.
20560 * lra-eliminations.c (lra_debug_elim_table): Same.
20561 (setup_can_eliminate): Same.
20562 (form_sum): Same.
20563 (lra_get_elimination_hard_regno): Same.
20564 (lra_eliminate_regs_1): Same.
20565 (eliminate_regs_in_insn): Same.
20566 (update_reg_eliminate): Same.
20567 (init_elimination): Same.
20568 (lra_eliminate): Same.
20569 * lra-int.h: Same.
20570 * lra-lives.c (initiate_live_solver): Same.
20571 * lra-remat.c (create_remat_bb_data): Same.
20572 * lra-spills.c (lra_spill): Same.
20573 * lra.c (lra_set_insn_recog_data): Same.
20574 (lra_set_used_insn_alternative_by_uid): Same.
20575 (init_reg_info): Same.
20576 (expand_reg_info): Same.
20577 * lto-cgraph.c (output_symtab): Same.
20578 (read_identifier): Same.
20579 (get_alias_symbol): Same.
20580 (input_node): Same.
20581 (input_varpool_node): Same.
20582 (input_ref): Same.
20583 (input_edge): Same.
20584 (input_cgraph_1): Same.
20585 (input_refs): Same.
20586 (input_symtab): Same.
20587 (input_offload_tables): Same.
20588 (output_cgraph_opt_summary): Same.
20589 (input_edge_opt_summary): Same.
20590 (input_cgraph_opt_section): Same.
20591 * lto-section-in.c (lto_free_raw_section_data): Same.
20592 (lto_create_simple_input_block): Same.
20593 (lto_free_function_in_decl_state_for_node): Same.
20594 * lto-streamer-in.c (lto_tag_check_set): Same.
20595 (lto_location_cache::revert_location_cache): Same.
20596 (lto_location_cache::input_location): Same.
20597 (lto_input_location): Same.
20598 (stream_input_location_now): Same.
20599 (lto_input_tree_ref): Same.
20600 (lto_input_eh_catch_list): Same.
20601 (input_eh_region): Same.
20602 (lto_init_eh): Same.
20603 (make_new_block): Same.
20604 (input_cfg): Same.
20605 (fixup_call_stmt_edges): Same.
20606 (input_struct_function_base): Same.
20607 (input_function): Same.
20608 (lto_read_body_or_constructor): Same.
20609 (lto_read_tree_1): Same.
20610 (lto_read_tree): Same.
20611 (lto_input_scc): Same.
20612 (lto_input_tree_1): Same.
20613 (lto_input_toplevel_asms): Same.
20614 (lto_input_mode_table): Same.
20615 (lto_reader_init): Same.
20616 (lto_data_in_create): Same.
20617 * lto-streamer-out.c (output_cfg): Same.
20618 * lto-streamer.h: Same.
20619 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20620 (generate_prolog_epilog): Same.
20621 (mark_loop_unsched): Same.
20622 (dump_insn_location): Same.
20623 (loop_canon_p): Same.
20624 (sms_schedule): Same.
20625 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20626 (expand_omp_for_generic): Same.
20627 (expand_omp_for_static_nochunk): Same.
20628 (expand_omp_for_static_chunk): Same.
20629 (expand_omp_simd): Same.
20630 (expand_omp_taskloop_for_inner): Same.
20631 (expand_oacc_for): Same.
20632 (expand_omp_atomic_pipeline): Same.
20633 (mark_loops_in_oacc_kernels_region): Same.
20634 * omp-offload.c (oacc_xform_loop): Same.
20635 * omp-simd-clone.c (simd_clone_adjust): Same.
20636 * optabs-query.c (get_traditional_extraction_insn): Same.
20637 * optabs.c (expand_vector_broadcast): Same.
20638 (expand_binop_directly): Same.
20639 (expand_twoval_unop): Same.
20640 (expand_twoval_binop): Same.
20641 (expand_unop_direct): Same.
20642 (emit_indirect_jump): Same.
20643 (emit_conditional_move): Same.
20644 (emit_conditional_neg_or_complement): Same.
20645 (emit_conditional_add): Same.
20646 (vector_compare_rtx): Same.
20647 (expand_vec_perm_1): Same.
20648 (expand_vec_perm_const): Same.
20649 (expand_vec_cond_expr): Same.
20650 (expand_vec_series_expr): Same.
20651 (maybe_emit_atomic_exchange): Same.
20652 (maybe_emit_sync_lock_test_and_set): Same.
20653 (expand_atomic_compare_and_swap): Same.
20654 (expand_atomic_load): Same.
20655 (expand_atomic_store): Same.
20656 (maybe_emit_op): Same.
20657 (valid_multiword_target_p): Same.
20658 (create_integer_operand): Same.
20659 (maybe_legitimize_operand_same_code): Same.
20660 (maybe_legitimize_operand): Same.
20661 (create_convert_operand_from_type): Same.
20662 (can_reuse_operands_p): Same.
20663 (maybe_legitimize_operands): Same.
20664 (maybe_gen_insn): Same.
20665 (maybe_expand_insn): Same.
20666 (maybe_expand_jump_insn): Same.
20667 (expand_insn): Same.
20668 * optabs.h (create_expand_operand): Same.
20669 (create_fixed_operand): Same.
20670 (create_output_operand): Same.
20671 (create_input_operand): Same.
20672 (create_convert_operand_to): Same.
20673 (create_convert_operand_from): Same.
20674 * optinfo.h: Same.
20675 * poly-int.h: Same.
20676 * predict.c (optimize_insn_for_speed_p): Same.
20677 (optimize_loop_for_size_p): Same.
20678 (optimize_loop_for_speed_p): Same.
20679 (optimize_loop_nest_for_speed_p): Same.
20680 (get_base_value): Same.
20681 (predicted_by_loop_heuristics_p): Same.
20682 (predict_extra_loop_exits): Same.
20683 (predict_loops): Same.
20684 (predict_paths_for_bb): Same.
20685 (predict_paths_leading_to): Same.
20686 (propagate_freq): Same.
20687 (pass_profile::execute): Same.
20688 * predict.h: Same.
20689 * profile-count.c (profile_count::differs_from_p): Same.
20690 (profile_probability::differs_lot_from_p): Same.
20691 * profile-count.h: Same.
20692 * profile.c (branch_prob): Same.
20693 * regrename.c (free_chain_data): Same.
20694 (mark_conflict): Same.
20695 (create_new_chain): Same.
20696 (merge_overlapping_regs): Same.
20697 (init_rename_info): Same.
20698 (merge_chains): Same.
20699 (regrename_analyze): Same.
20700 (regrename_do_replace): Same.
20701 (scan_rtx_reg): Same.
20702 (record_out_operands): Same.
20703 (build_def_use): Same.
20704 * regrename.h: Same.
20705 * reload.h: Same.
20706 * reload1.c (init_reload): Same.
20707 (maybe_fix_stack_asms): Same.
20708 (copy_reloads): Same.
20709 (count_pseudo): Same.
20710 (count_spilled_pseudo): Same.
20711 (find_reg): Same.
20712 (find_reload_regs): Same.
20713 (select_reload_regs): Same.
20714 (spill_hard_reg): Same.
20715 (fixup_eh_region_note): Same.
20716 (set_reload_reg): Same.
20717 (allocate_reload_reg): Same.
20718 (compute_reload_subreg_offset): Same.
20719 (reload_adjust_reg_for_icode): Same.
20720 (emit_input_reload_insns): Same.
20721 (emit_output_reload_insns): Same.
20722 (do_input_reload): Same.
20723 (inherit_piecemeal_p): Same.
20724 * rtl.h: Same.
20725 * sanopt.c (maybe_get_dominating_check): Same.
20726 (maybe_optimize_ubsan_ptr_ifn): Same.
20727 (can_remove_asan_check): Same.
20728 (maybe_optimize_asan_check_ifn): Same.
20729 (sanopt_optimize_walker): Same.
20730 * sched-deps.c (add_dependence_list): Same.
20731 (chain_to_prev_insn): Same.
20732 (add_insn_mem_dependence): Same.
20733 (create_insn_reg_set): Same.
20734 (maybe_extend_reg_info_p): Same.
20735 (sched_analyze_reg): Same.
20736 (sched_analyze_1): Same.
20737 (get_implicit_reg_pending_clobbers): Same.
20738 (chain_to_prev_insn_p): Same.
20739 (deps_analyze_insn): Same.
20740 (deps_start_bb): Same.
20741 (sched_free_deps): Same.
20742 (init_deps): Same.
20743 (init_deps_reg_last): Same.
20744 (free_deps): Same.
20745 * sched-ebb.c: Same.
20746 * sched-int.h: Same.
20747 * sched-rgn.c (add_branch_dependences): Same.
20748 (concat_insn_mem_list): Same.
20749 (deps_join): Same.
20750 (sched_rgn_compute_dependencies): Same.
20751 * sel-sched-ir.c (reset_target_context): Same.
20752 (copy_deps_context): Same.
20753 (init_id_from_df): Same.
20754 (has_dependence_p): Same.
20755 (change_loops_latches): Same.
20756 (bb_top_order_comparator): Same.
20757 (make_region_from_loop_preheader): Same.
20758 (sel_init_pipelining): Same.
20759 (get_loop_nest_for_rgn): Same.
20760 (make_regions_from_the_rest): Same.
20761 (sel_is_loop_preheader_p): Same.
20762 * sel-sched-ir.h (inner_loop_header_p): Same.
20763 (get_all_loop_exits): Same.
20764 * selftest.h: Same.
20765 * sese.c (sese_build_liveouts): Same.
20766 (sese_insert_phis_for_liveouts): Same.
20767 * sese.h (defined_in_sese_p): Same.
20768 * sreal.c (sreal::stream_out): Same.
20769 * sreal.h: Same.
20770 * streamer-hooks.h: Same.
20771 * target-globals.c (save_target_globals): Same.
20772 * target-globals.h: Same.
20773 * target.def: Same.
20774 * target.h: Same.
20775 * targhooks.c (default_has_ifunc_p): Same.
20776 (default_empty_mask_is_expensive): Same.
20777 (default_init_cost): Same.
20778 * targhooks.h: Same.
20779 * toplev.c: Same.
20780 * tree-affine.c (aff_combination_mult): Same.
20781 (aff_combination_expand): Same.
20782 (aff_combination_constant_multiple_p): Same.
20783 * tree-affine.h: Same.
20784 * tree-cfg.c (build_gimple_cfg): Same.
20785 (replace_loop_annotate_in_block): Same.
20786 (replace_uses_by): Same.
20787 (remove_bb): Same.
20788 (dump_cfg_stats): Same.
20789 (gimple_duplicate_sese_region): Same.
20790 (gimple_duplicate_sese_tail): Same.
20791 (move_block_to_fn): Same.
20792 (replace_block_vars_by_duplicates): Same.
20793 (move_sese_region_to_fn): Same.
20794 (print_loops_bb): Same.
20795 (print_loop): Same.
20796 (print_loops): Same.
20797 (debug): Same.
20798 (debug_loops): Same.
20799 * tree-cfg.h: Same.
20800 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20801 (chrec_fold_multiply_poly_poly): Same.
20802 (chrec_evaluate): Same.
20803 (chrec_component_in_loop_num): Same.
20804 (reset_evolution_in_loop): Same.
20805 (is_multivariate_chrec): Same.
20806 (chrec_contains_symbols): Same.
20807 (nb_vars_in_chrec): Same.
20808 (chrec_convert_1): Same.
20809 (chrec_convert_aggressive): Same.
20810 * tree-chrec.h: Same.
20811 * tree-core.h: Same.
20812 * tree-data-ref.c (dump_data_dependence_relation): Same.
20813 (canonicalize_base_object_address): Same.
20814 (data_ref_compare_tree): Same.
20815 (prune_runtime_alias_test_list): Same.
20816 (get_segment_min_max): Same.
20817 (create_intersect_range_checks): Same.
20818 (conflict_fn_no_dependence): Same.
20819 (object_address_invariant_in_loop_p): Same.
20820 (analyze_ziv_subscript): Same.
20821 (analyze_siv_subscript_cst_affine): Same.
20822 (analyze_miv_subscript): Same.
20823 (analyze_overlapping_iterations): Same.
20824 (build_classic_dist_vector_1): Same.
20825 (add_other_self_distances): Same.
20826 (same_access_functions): Same.
20827 (build_classic_dir_vector): Same.
20828 (subscript_dependence_tester_1): Same.
20829 (subscript_dependence_tester): Same.
20830 (access_functions_are_affine_or_constant_p): Same.
20831 (get_references_in_stmt): Same.
20832 (loop_nest_has_data_refs): Same.
20833 (graphite_find_data_references_in_stmt): Same.
20834 (find_data_references_in_bb): Same.
20835 (get_base_for_alignment): Same.
20836 (find_loop_nest_1): Same.
20837 (find_loop_nest): Same.
20838 * tree-data-ref.h (dr_alignment): Same.
20839 (ddr_dependence_level): Same.
20840 * tree-if-conv.c (fold_build_cond_expr): Same.
20841 (add_to_predicate_list): Same.
20842 (add_to_dst_predicate_list): Same.
20843 (phi_convertible_by_degenerating_args): Same.
20844 (idx_within_array_bound): Same.
20845 (all_preds_critical_p): Same.
20846 (pred_blocks_visited_p): Same.
20847 (predicate_bbs): Same.
20848 (build_region): Same.
20849 (if_convertible_loop_p_1): Same.
20850 (is_cond_scalar_reduction): Same.
20851 (predicate_scalar_phi): Same.
20852 (remove_conditions_and_labels): Same.
20853 (combine_blocks): Same.
20854 (version_loop_for_if_conversion): Same.
20855 (versionable_outer_loop_p): Same.
20856 (ifcvt_local_dce): Same.
20857 (tree_if_conversion): Same.
20858 (pass_if_conversion::gate): Same.
20859 * tree-if-conv.h: Same.
20860 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20861 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20862 (free_rdg): Same.
20863 (stmt_has_scalar_dependences_outside_loop): Same.
20864 (copy_loop_before): Same.
20865 (create_bb_after_loop): Same.
20866 (const_with_all_bytes_same): Same.
20867 (generate_memset_builtin): Same.
20868 (generate_memcpy_builtin): Same.
20869 (destroy_loop): Same.
20870 (build_rdg_partition_for_vertex): Same.
20871 (compute_access_range): Same.
20872 (data_ref_segment_size): Same.
20873 (latch_dominated_by_data_ref): Same.
20874 (compute_alias_check_pairs): Same.
20875 (fuse_memset_builtins): Same.
20876 (finalize_partitions): Same.
20877 (find_seed_stmts_for_distribution): Same.
20878 (prepare_perfect_loop_nest): Same.
20879 * tree-parloops.c (lambda_transform_legal_p): Same.
20880 (loop_parallel_p): Same.
20881 (reduc_stmt_res): Same.
20882 (add_field_for_name): Same.
20883 (create_call_for_reduction_1): Same.
20884 (replace_uses_in_bb_by): Same.
20885 (transform_to_exit_first_loop_alt): Same.
20886 (try_transform_to_exit_first_loop_alt): Same.
20887 (transform_to_exit_first_loop): Same.
20888 (num_phis): Same.
20889 (gen_parallel_loop): Same.
20890 (gather_scalar_reductions): Same.
20891 (get_omp_data_i_param): Same.
20892 (try_create_reduction_list): Same.
20893 (oacc_entry_exit_single_gang): Same.
20894 (parallelize_loops): Same.
20895 * tree-pass.h: Same.
20896 * tree-predcom.c (determine_offset): Same.
20897 (last_always_executed_block): Same.
20898 (split_data_refs_to_components): Same.
20899 (suitable_component_p): Same.
20900 (valid_initializer_p): Same.
20901 (find_looparound_phi): Same.
20902 (insert_looparound_copy): Same.
20903 (add_looparound_copies): Same.
20904 (determine_roots_comp): Same.
20905 (predcom_tmp_var): Same.
20906 (initialize_root_vars): Same.
20907 (initialize_root_vars_store_elim_1): Same.
20908 (initialize_root_vars_store_elim_2): Same.
20909 (finalize_eliminated_stores): Same.
20910 (initialize_root_vars_lm): Same.
20911 (remove_stmt): Same.
20912 (determine_unroll_factor): Same.
20913 (execute_pred_commoning_cbck): Same.
20914 (base_names_in_chain_on): Same.
20915 (combine_chains): Same.
20916 (pcom_stmt_dominates_stmt_p): Same.
20917 (try_combine_chains): Same.
20918 (prepare_initializers_chain_store_elim): Same.
20919 (prepare_initializers_chain): Same.
20920 (prepare_initializers): Same.
20921 (prepare_finalizers_chain): Same.
20922 (prepare_finalizers): Same.
20923 (insert_init_seqs): Same.
20924 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20925 (compute_overall_effect_of_inner_loop): Same.
20926 (add_to_evolution_1): Same.
20927 (add_to_evolution): Same.
20928 (follow_ssa_edge_binary): Same.
20929 (follow_ssa_edge_expr): Same.
20930 (backedge_phi_arg_p): Same.
20931 (follow_ssa_edge_in_condition_phi_branch): Same.
20932 (follow_ssa_edge_in_condition_phi): Same.
20933 (follow_ssa_edge_inner_loop_phi): Same.
20934 (follow_ssa_edge): Same.
20935 (analyze_evolution_in_loop): Same.
20936 (analyze_initial_condition): Same.
20937 (interpret_loop_phi): Same.
20938 (interpret_condition_phi): Same.
20939 (interpret_rhs_expr): Same.
20940 (interpret_expr): Same.
20941 (interpret_gimple_assign): Same.
20942 (analyze_scalar_evolution_1): Same.
20943 (analyze_scalar_evolution): Same.
20944 (analyze_scalar_evolution_for_address_of): Same.
20945 (get_instantiated_value_entry): Same.
20946 (loop_closed_phi_def): Same.
20947 (instantiate_scev_name): Same.
20948 (instantiate_scev_poly): Same.
20949 (instantiate_scev_binary): Same.
20950 (instantiate_scev_convert): Same.
20951 (instantiate_scev_not): Same.
20952 (instantiate_scev_r): Same.
20953 (instantiate_scev): Same.
20954 (resolve_mixers): Same.
20955 (initialize_scalar_evolutions_analyzer): Same.
20956 (scev_reset_htab): Same.
20957 (scev_reset): Same.
20958 (derive_simple_iv_with_niters): Same.
20959 (simple_iv_with_niters): Same.
20960 (expression_expensive_p): Same.
20961 (final_value_replacement_loop): Same.
20962 * tree-scalar-evolution.h (block_before_loop): Same.
20963 * tree-ssa-address.h: Same.
20964 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20965 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20966 (record_edge_info): Same.
20967 * tree-ssa-live.c (var_map_base_fini): Same.
20968 (remove_unused_locals): Same.
20969 * tree-ssa-live.h: Same.
20970 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20971 (pass_ch_vect::execute): Same.
20972 (pass_ch::process_loop_p): Same.
20973 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20974 (movement_possibility): Same.
20975 (outermost_invariant_loop): Same.
20976 (stmt_cost): Same.
20977 (determine_max_movement): Same.
20978 (invariantness_dom_walker::before_dom_children): Same.
20979 (move_computations): Same.
20980 (may_move_till): Same.
20981 (force_move_till_op): Same.
20982 (force_move_till): Same.
20983 (memref_free): Same.
20984 (record_mem_ref_loc): Same.
20985 (set_ref_stored_in_loop): Same.
20986 (mark_ref_stored): Same.
20987 (sort_bbs_in_loop_postorder_cmp): Same.
20988 (sort_locs_in_loop_postorder_cmp): Same.
20989 (analyze_memory_references): Same.
20990 (mem_refs_may_alias_p): Same.
20991 (find_ref_loc_in_loop_cmp): Same.
20992 (rewrite_mem_ref_loc::operator): Same.
20993 (first_mem_ref_loc_1::operator): Same.
20994 (sm_set_flag_if_changed::operator): Same.
20995 (execute_sm_if_changed_flag_set): Same.
20996 (execute_sm): Same.
20997 (hoist_memory_references): Same.
20998 (ref_always_accessed::operator): Same.
20999 (refs_independent_p): Same.
21000 (record_dep_loop): Same.
21001 (ref_indep_loop_p_1): Same.
21002 (ref_indep_loop_p): Same.
21003 (can_sm_ref_p): Same.
21004 (find_refs_for_sm): Same.
21005 (loop_suitable_for_sm): Same.
21006 (store_motion_loop): Same.
21007 (store_motion): Same.
21008 (fill_always_executed_in): Same.
21009 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21010 (estimated_unrolled_size): Same.
21011 (loop_edge_to_cancel): Same.
21012 (remove_exits_and_undefined_stmts): Same.
21013 (remove_redundant_iv_tests): Same.
21014 (unloop_loops): Same.
21015 (estimated_peeled_sequence_size): Same.
21016 (try_peel_loop): Same.
21017 (canonicalize_loop_induction_variables): Same.
21018 (canonicalize_induction_variables): Same.
21019 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21020 (name_info): Same.
21021 (stmt_after_inc_pos): Same.
21022 (contains_abnormal_ssa_name_p): Same.
21023 (niter_for_exit): Same.
21024 (find_bivs): Same.
21025 (mark_bivs): Same.
21026 (find_givs_in_bb): Same.
21027 (find_induction_variables): Same.
21028 (find_interesting_uses_cond): Same.
21029 (outermost_invariant_loop_for_expr): Same.
21030 (idx_find_step): Same.
21031 (add_candidate_1): Same.
21032 (add_iv_candidate_derived_from_uses): Same.
21033 (alloc_use_cost_map): Same.
21034 (prepare_decl_rtl): Same.
21035 (generic_predict_doloop_p): Same.
21036 (computation_cost): Same.
21037 (determine_common_wider_type): Same.
21038 (get_computation_aff_1): Same.
21039 (get_use_type): Same.
21040 (determine_group_iv_cost_address): Same.
21041 (iv_period): Same.
21042 (difference_cannot_overflow_p): Same.
21043 (may_eliminate_iv): Same.
21044 (determine_set_costs): Same.
21045 (cheaper_cost_pair): Same.
21046 (compare_cost_pair): Same.
21047 (iv_ca_cand_for_group): Same.
21048 (iv_ca_recount_cost): Same.
21049 (iv_ca_set_remove_invs): Same.
21050 (iv_ca_set_no_cp): Same.
21051 (iv_ca_set_add_invs): Same.
21052 (iv_ca_set_cp): Same.
21053 (iv_ca_add_group): Same.
21054 (iv_ca_cost): Same.
21055 (iv_ca_compare_deps): Same.
21056 (iv_ca_delta_reverse): Same.
21057 (iv_ca_delta_commit): Same.
21058 (iv_ca_cand_used_p): Same.
21059 (iv_ca_delta_free): Same.
21060 (iv_ca_new): Same.
21061 (iv_ca_free): Same.
21062 (iv_ca_dump): Same.
21063 (iv_ca_extend): Same.
21064 (iv_ca_narrow): Same.
21065 (iv_ca_prune): Same.
21066 (cheaper_cost_with_cand): Same.
21067 (iv_ca_replace): Same.
21068 (try_add_cand_for): Same.
21069 (get_initial_solution): Same.
21070 (try_improve_iv_set): Same.
21071 (find_optimal_iv_set_1): Same.
21072 (create_new_iv): Same.
21073 (rewrite_use_compare): Same.
21074 (remove_unused_ivs): Same.
21075 (determine_scaling_factor): Same.
21076 * tree-ssa-loop-ivopts.h: Same.
21077 * tree-ssa-loop-manip.c (create_iv): Same.
21078 (compute_live_loop_exits): Same.
21079 (add_exit_phi): Same.
21080 (add_exit_phis): Same.
21081 (find_uses_to_rename_use): Same.
21082 (find_uses_to_rename_def): Same.
21083 (find_uses_to_rename_in_loop): Same.
21084 (rewrite_into_loop_closed_ssa): Same.
21085 (check_loop_closed_ssa_bb): Same.
21086 (split_loop_exit_edge): Same.
21087 (ip_end_pos): Same.
21088 (ip_normal_pos): Same.
21089 (copy_phi_node_args): Same.
21090 (gimple_duplicate_loop_to_header_edge): Same.
21091 (can_unroll_loop_p): Same.
21092 (determine_exit_conditions): Same.
21093 (scale_dominated_blocks_in_loop): Same.
21094 (niter_for_unrolled_loop): Same.
21095 (tree_transform_and_unroll_loop): Same.
21096 (rewrite_all_phi_nodes_with_iv): Same.
21097 * tree-ssa-loop-manip.h: Same.
21098 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21099 (number_of_iterations_ne): Same.
21100 (assert_no_overflow_lt): Same.
21101 (assert_loop_rolls_lt): Same.
21102 (number_of_iterations_lt): Same.
21103 (adjust_cond_for_loop_until_wrap): Same.
21104 (tree_simplify_using_condition): Same.
21105 (simplify_using_initial_conditions): Same.
21106 (simplify_using_outer_evolutions): Same.
21107 (loop_only_exit_p): Same.
21108 (ssa_defined_by_minus_one_stmt_p): Same.
21109 (number_of_iterations_popcount): Same.
21110 (number_of_iterations_exit): Same.
21111 (find_loop_niter): Same.
21112 (finite_loop_p): Same.
21113 (chain_of_csts_start): Same.
21114 (get_val_for): Same.
21115 (loop_niter_by_eval): Same.
21116 (derive_constant_upper_bound_ops): Same.
21117 (do_warn_aggressive_loop_optimizations): Same.
21118 (record_estimate): Same.
21119 (get_cst_init_from_scev): Same.
21120 (record_nonwrapping_iv): Same.
21121 (idx_infer_loop_bounds): Same.
21122 (infer_loop_bounds_from_ref): Same.
21123 (infer_loop_bounds_from_array): Same.
21124 (infer_loop_bounds_from_pointer_arith): Same.
21125 (infer_loop_bounds_from_signedness): Same.
21126 (bound_index): Same.
21127 (discover_iteration_bound_by_body_walk): Same.
21128 (maybe_lower_iteration_bound): Same.
21129 (estimate_numbers_of_iterations): Same.
21130 (estimated_loop_iterations): Same.
21131 (estimated_loop_iterations_int): Same.
21132 (max_loop_iterations): Same.
21133 (max_loop_iterations_int): Same.
21134 (likely_max_loop_iterations): Same.
21135 (likely_max_loop_iterations_int): Same.
21136 (estimated_stmt_executions_int): Same.
21137 (max_stmt_executions): Same.
21138 (likely_max_stmt_executions): Same.
21139 (estimated_stmt_executions): Same.
21140 (stmt_dominates_stmt_p): Same.
21141 (nowrap_type_p): Same.
21142 (loop_exits_before_overflow): Same.
21143 (scev_var_range_cant_overflow): Same.
21144 (scev_probably_wraps_p): Same.
21145 (free_numbers_of_iterations_estimates): Same.
21146 * tree-ssa-loop-niter.h: Same.
21147 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21148 (idx_analyze_ref): Same.
21149 (analyze_ref): Same.
21150 (gather_memory_references_ref): Same.
21151 (mark_nontemporal_store): Same.
21152 (emit_mfence_after_loop): Same.
21153 (may_use_storent_in_loop_p): Same.
21154 (mark_nontemporal_stores): Same.
21155 (should_unroll_loop_p): Same.
21156 (volume_of_dist_vector): Same.
21157 (add_subscript_strides): Same.
21158 (self_reuse_distance): Same.
21159 (insn_to_prefetch_ratio_too_small_p): Same.
21160 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21161 (patch_loop_exit): Same.
21162 (find_or_create_guard_phi): Same.
21163 (easy_exit_values): Same.
21164 (connect_loop_phis): Same.
21165 (connect_loops): Same.
21166 (compute_new_first_bound): Same.
21167 (split_loop): Same.
21168 (tree_ssa_split_loops): Same.
21169 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21170 (is_maybe_undefined): Same.
21171 (tree_may_unswitch_on): Same.
21172 (simplify_using_entry_checks): Same.
21173 (tree_unswitch_single_loop): Same.
21174 (tree_unswitch_loop): Same.
21175 (tree_unswitch_outer_loop): Same.
21176 (empty_bb_without_guard_p): Same.
21177 (used_outside_loop_p): Same.
21178 (get_vop_from_header): Same.
21179 (hoist_guard): Same.
21180 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21181 (get_lsm_tmp_name): Same.
21182 * tree-ssa-loop.h: Same.
21183 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21184 (build_and_add_sum): Same.
21185 (no_side_effect_bb): Same.
21186 (get_ops): Same.
21187 (linearize_expr): Same.
21188 (should_break_up_subtract): Same.
21189 (linearize_expr_tree): Same.
21190 * tree-ssa-scopedtables.c: Same.
21191 * tree-ssa-scopedtables.h: Same.
21192 * tree-ssa-structalias.c (condense_visit): Same.
21193 (label_visit): Same.
21194 (dump_pred_graph): Same.
21195 (perform_var_substitution): Same.
21196 (move_complex_constraints): Same.
21197 (remove_preds_and_fake_succs): Same.
21198 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21199 (determine_bb_domination_status): Same.
21200 (duplicate_thread_path): Same.
21201 (thread_through_all_blocks): Same.
21202 * tree-ssa-threadupdate.h: Same.
21203 * tree-streamer-in.c (streamer_read_string_cst): Same.
21204 (input_identifier): Same.
21205 (unpack_ts_type_common_value_fields): Same.
21206 (unpack_ts_block_value_fields): Same.
21207 (unpack_ts_translation_unit_decl_value_fields): Same.
21208 (unpack_ts_omp_clause_value_fields): Same.
21209 (streamer_read_tree_bitfields): Same.
21210 (streamer_alloc_tree): Same.
21211 (lto_input_ts_common_tree_pointers): Same.
21212 (lto_input_ts_vector_tree_pointers): Same.
21213 (lto_input_ts_poly_tree_pointers): Same.
21214 (lto_input_ts_complex_tree_pointers): Same.
21215 (lto_input_ts_decl_minimal_tree_pointers): Same.
21216 (lto_input_ts_decl_common_tree_pointers): Same.
21217 (lto_input_ts_decl_non_common_tree_pointers): Same.
21218 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21219 (lto_input_ts_field_decl_tree_pointers): Same.
21220 (lto_input_ts_function_decl_tree_pointers): Same.
21221 (lto_input_ts_type_common_tree_pointers): Same.
21222 (lto_input_ts_type_non_common_tree_pointers): Same.
21223 (lto_input_ts_list_tree_pointers): Same.
21224 (lto_input_ts_vec_tree_pointers): Same.
21225 (lto_input_ts_exp_tree_pointers): Same.
21226 (lto_input_ts_block_tree_pointers): Same.
21227 (lto_input_ts_binfo_tree_pointers): Same.
21228 (lto_input_ts_constructor_tree_pointers): Same.
21229 (lto_input_ts_omp_clause_tree_pointers): Same.
21230 (streamer_read_tree_body): Same.
21231 * tree-streamer.h: Same.
21232 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21233 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21234 (vect_analyze_possibly_independent_ddr): Same.
21235 (vect_analyze_data_ref_dependence): Same.
21236 (vect_compute_data_ref_alignment): Same.
21237 (vect_enhance_data_refs_alignment): Same.
21238 (vect_analyze_data_ref_access): Same.
21239 (vect_check_gather_scatter): Same.
21240 (vect_find_stmt_data_reference): Same.
21241 (vect_create_addr_base_for_vector_ref): Same.
21242 (vect_setup_realignment): Same.
21243 (vect_supportable_dr_alignment): Same.
21244 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21245 (adjust_phi_and_debug_stmts): Same.
21246 (vect_set_loop_mask): Same.
21247 (add_preheader_seq): Same.
21248 (vect_maybe_permute_loop_masks): Same.
21249 (vect_set_loop_masks_directly): Same.
21250 (vect_set_loop_condition_masked): Same.
21251 (vect_set_loop_condition_unmasked): Same.
21252 (slpeel_duplicate_current_defs_from_edges): Same.
21253 (slpeel_add_loop_guard): Same.
21254 (slpeel_can_duplicate_loop_p): Same.
21255 (create_lcssa_for_virtual_phi): Same.
21256 (iv_phi_p): Same.
21257 (vect_update_ivs_after_vectorizer): Same.
21258 (vect_gen_vector_loop_niters_mult_vf): Same.
21259 (slpeel_update_phi_nodes_for_loops): Same.
21260 (slpeel_update_phi_nodes_for_guard1): Same.
21261 (find_guard_arg): Same.
21262 (slpeel_update_phi_nodes_for_guard2): Same.
21263 (slpeel_update_phi_nodes_for_lcssa): Same.
21264 (vect_do_peeling): Same.
21265 (vect_create_cond_for_alias_checks): Same.
21266 (vect_loop_versioning): Same.
21267 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21268 (vect_inner_phi_in_double_reduction_p): Same.
21269 (vect_analyze_scalar_cycles_1): Same.
21270 (vect_fixup_scalar_cycles_with_patterns): Same.
21271 (vect_get_loop_niters): Same.
21272 (bb_in_loop_p): Same.
21273 (vect_get_max_nscalars_per_iter): Same.
21274 (vect_verify_full_masking): Same.
21275 (vect_compute_single_scalar_iteration_cost): Same.
21276 (vect_analyze_loop_form_1): Same.
21277 (vect_analyze_loop_form): Same.
21278 (vect_active_double_reduction_p): Same.
21279 (vect_analyze_loop_operations): Same.
21280 (neutral_op_for_slp_reduction): Same.
21281 (vect_is_simple_reduction): Same.
21282 (vect_model_reduction_cost): Same.
21283 (get_initial_def_for_reduction): Same.
21284 (get_initial_defs_for_reduction): Same.
21285 (vect_create_epilog_for_reduction): Same.
21286 (vectorize_fold_left_reduction): Same.
21287 (vectorizable_reduction): Same.
21288 (vectorizable_induction): Same.
21289 (vectorizable_live_operation): Same.
21290 (loop_niters_no_overflow): Same.
21291 (vect_get_loop_mask): Same.
21292 (vect_transform_loop_stmt): Same.
21293 (vect_transform_loop): Same.
21294 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21295 (vect_determine_precisions): Same.
21296 (vect_pattern_recog_1): Same.
21297 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21298 * tree-vect-stmts.c (stmt_vectype): Same.
21299 (process_use): Same.
21300 (vect_init_vector_1): Same.
21301 (vect_truncate_gather_scatter_offset): Same.
21302 (get_group_load_store_type): Same.
21303 (vect_build_gather_load_calls): Same.
21304 (vect_get_strided_load_store_ops): Same.
21305 (vectorizable_simd_clone_call): Same.
21306 (vectorizable_store): Same.
21307 (permute_vec_elements): Same.
21308 (vectorizable_load): Same.
21309 (vect_transform_stmt): Same.
21310 (supportable_widening_operation): Same.
21311 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21312 (vec_info::free_stmt_vec_info): Same.
21313 (vect_free_loop_info_assumptions): Same.
21314 (vect_loop_vectorized_call): Same.
21315 (set_uid_loop_bbs): Same.
21316 (vectorize_loops): Same.
21317 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21318 * tree.c (add_tree_to_fld_list): Same.
21319 (fld_type_variant_equal_p): Same.
21320 (fld_decl_context): Same.
21321 (fld_incomplete_type_of): Same.
21322 (free_lang_data_in_binfo): Same.
21323 (need_assembler_name_p): Same.
21324 (find_decls_types_r): Same.
21325 (get_eh_types_for_runtime): Same.
21326 (find_decls_types_in_eh_region): Same.
21327 (find_decls_types_in_node): Same.
21328 (assign_assembler_name_if_needed): Same.
21329 * value-prof.c (stream_out_histogram_value): Same.
21330 * value-prof.h: Same.
21331 * var-tracking.c (use_narrower_mode): Same.
21332 (prepare_call_arguments): Same.
21333 (vt_expand_loc_callback): Same.
21334 (resolve_expansions_pending_recursion): Same.
21335 (vt_expand_loc): Same.
21336 * varasm.c (const_hash_1): Same.
21337 (compare_constant): Same.
21338 (tree_output_constant_def): Same.
21339 (simplify_subtraction): Same.
21340 (get_pool_constant): Same.
21341 (output_constant_pool_2): Same.
21342 (output_constant_pool_1): Same.
21343 (mark_constants_in_pattern): Same.
21344 (mark_constant_pool): Same.
21345 (get_section_anchor): Same.
21346 * vr-values.c (compare_range_with_value): Same.
21347 (vr_values::extract_range_from_phi_node): Same.
21348 * vr-values.h: Same.
21349 * web.c (unionfind_union): Same.
21350 * wide-int.h: Same.
21351
21352 2019-07-09 Martin Sebor <msebor@redhat.com>
21353
21354 PR c++/61339
21355 * align.h: Change class-key from class to struct and vice versa
21356 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21357 * alloc-pool.h: Same.
21358 * asan.c (shadow_mem_size): Same.
21359 * auto-profile.c: Same.
21360 * basic-block.h: Same.
21361 * bitmap.h: Same.
21362 * cfgexpand.c (set_rtl): Same.
21363 (expand_one_stack_var_at): Same.
21364 * cfghooks.h: Same.
21365 * cfgloop.h: Same.
21366 * cgraph.h: Same.
21367 * config/i386/i386.h: Same.
21368 * df-problems.c (df_print_bb_index): Same.
21369 * df-scan.c: Same.
21370 * df.h (df_single_use): Same.
21371 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21372 (layout::annotation_line_showed_range_p): Same.
21373 (get_printed_columns): Same.
21374 (correction::ensure_terminated): Same.
21375 (line_corrections::~line_corrections): Same.
21376 * dojump.h: Same.
21377 * dse.c: Same.
21378 * dump-context.h: Same.
21379 * dumpfile.h: Same.
21380 * dwarf2out.c: Same.
21381 * edit-context.c: Same.
21382 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21383 * flags.h: Same.
21384 * function.c (assign_stack_local): Same.
21385 * function.h: Same.
21386 * gcc.c: Same.
21387 * gcov.c (block_info::block_info): Same.
21388 * genattrtab.c: Same.
21389 * genextract.c: Same.
21390 * genmatch.c (comparison_code_p): Same.
21391 (id_base::id_base): Same.
21392 (decision_tree::print): Same.
21393 * genoutput.c: Same.
21394 * genpreds.c (write_one_predicate_function): Same.
21395 * genrecog.c (validate_pattern): Same.
21396 (find_operand_positions): Same.
21397 (optimize_subroutine_group): Same.
21398 (merge_pattern_transition::merge_pattern_transition): Same.
21399 (merge_pattern_info::merge_pattern_info): Same.
21400 (merge_state_result::merge_state_result): Same.
21401 (merge_into_state): Same.
21402 * gensupport.c: Same.
21403 * gensupport.h: Same.
21404 * ggc-common.c (init_ggc_heuristics): Same.
21405 * ggc-tests.c (test_union): Same.
21406 * gimple-loop-interchange.cc (dump_induction): Same.
21407 * gimple-loop-versioning.cc: Same.
21408 * gimple-match.h (gimple_match_cond::any_else): Same.
21409 * gimple-ssa-backprop.c: Same.
21410 * gimple-ssa-sprintf.c: Same.
21411 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21412 Same.
21413 (store_immediate_info::store_immediate_info): Same.
21414 (merged_store_group::apply_stores): Same.
21415 (get_location_for_stmts): Same.
21416 * gimple-ssa-strength-reduction.c: Same.
21417 * gimple-ssa-warn-alloca.c: Same.
21418 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21419 * godump.c (go_type_decl): Same.
21420 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21421 * hash-map.h: Same.
21422 * hash-set-tests.c (test_set_of_strings): Same.
21423 * hsa-brig.c: Same.
21424 * hsa-common.h: Same.
21425 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21426 * input.c (assert_loceq): Same.
21427 * input.h: Same.
21428 * ipa-cp.c: Same.
21429 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21430 * ipa-fnsummary.h: Same.
21431 * ipa-inline.h: Same.
21432 * ipa-prop.h: Same.
21433 * ipa-split.c (visit_bb): Same.
21434 * ira-int.h (minmax_set_iter_next): Same.
21435 * loop-invariant.c: Same.
21436 * loop-iv.c: Same.
21437 * lra-eliminations.c: Same.
21438 * lra-int.h: Same.
21439 * lra-lives.c (mark_regno_dead): Same.
21440 * lra-remat.c: Same.
21441 * lra-spills.c: Same.
21442 * lto-streamer.h: Same.
21443 * mem-stats.h: Same.
21444 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21445 * omp-low.c (omp_clause_aligned_alignment): Same.
21446 * optabs-query.h (get_vcond_eq_icode): Same.
21447 * optabs.h: Same.
21448 * opts.c (wrap_help): Same.
21449 * poly-int.h: Same.
21450 * predict.c (predict_paths_leading_to_edge): Same.
21451 * pretty-print.h: Same.
21452 * profile-count.h: Same.
21453 * read-md.h: Same.
21454 * read-rtl-function.c: Same.
21455 * ree.c: Same.
21456 * reginfo.c: Same.
21457 * regrename.c: Same.
21458 * regrename.h: Same.
21459 * reload.h: Same.
21460 * rtl-iter.h: Same.
21461 * rtl.h (costs_add_n_insns): Same.
21462 * sanopt.c: Same.
21463 * sched-int.h: Same.
21464 * sel-sched-ir.h: Same.
21465 * selftest.h: Same.
21466 * sese.h (vec_find): Same.
21467 * stmt.c: Same.
21468 * target-globals.h: Same.
21469 * tree-affine.c (aff_combination_find_elt): Same.
21470 * tree-affine.h: Same.
21471 * tree-data-ref.h: Same.
21472 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21473 * tree-predcom.c: Same.
21474 * tree-scalar-evolution.c (find_var_scev_info): Same.
21475 * tree-ssa-alias.h: Same.
21476 * tree-ssa-ccp.c: Same.
21477 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21478 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21479 (rewrite_mem_refs): Same.
21480 (execute_sm_if_changed): Same.
21481 (hoist_memory_references): Same.
21482 * tree-ssa-loop-ivopts.c (operator<=): Same.
21483 * tree-ssa-loop.h: Same.
21484 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21485 * tree-ssa-structalias.c: Same.
21486 * tree-switch-conversion.h (cluster::cluster): Same.
21487 (simple_cluster::simple_cluster): Same.
21488 * tree-vect-patterns.c (type_conversion_p): Same.
21489 * tree-vectorizer.c (dump_stmt_cost): Same.
21490 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21491 * tree.c (protected_set_expr_location): Same.
21492 * tree.h (desired_pro_or_demotion_p): Same.
21493 (fndecl_built_in_p): Same.
21494 * unique-ptr-tests.cc: Same.
21495 * var-tracking.c (delete_variable_part): Same.
21496 * varasm.c (assemble_real): Same.
21497 (tree_output_constant_def): Same.
21498 * vec.c: Same.
21499 * wide-int-bitmask.h: Same.
21500 * wide-int.h (decompose): Same.
21501
21502 2019-07-09 Richard Biener <rguenther@suse.de>
21503
21504 PR tree-optimization/91114
21505 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21506 find a vector type isn't fatal.
21507
21508 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21509
21510 * config/aarch64/aarch64-simd.md
21511 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21512 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21513 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21514 (*aarch64_crypto_aese_fused,
21515 *aarch64_crypto_aesd_fused): Update to new definition.
21516 * config/aarch64/aarch64.c
21517 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21518
21519 2019-07-09 Richard Biener <rguenther@suse.de>
21520
21521 * gimple-match.h (gimple_match_op::resimplify): New.
21522 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21523 gimple_resimplify4, gimple_resimplify5): Remove.
21524 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21525 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21526 Make static.
21527 (gimple_match_op::resimplify): New.
21528 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21529 according to availability. Use gimple_match_op::resimplify.
21530
21531 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21532
21533 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21534
21535 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21536
21537 * config/arm/crypto.md:
21538 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21539 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21540 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21541 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21542 * config/arm/arm.c
21543 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21544 * config/arm/aarch-common-protos.h
21545 (aarch_crypto_can_dual_issue): Remove.
21546 * config/arm/aarch-common.c
21547 (aarch_crypto_can_dual_issue): Likewise.
21548 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21549 * config/arm/cortex-a53.md: Likewise.
21550 * config/arm/cortex-a57.md: Likewise.
21551 * config/arm/iterators.md:
21552 (CRYPTO_BINARY): Redefine.
21553 (CRYPTO_UNARY): Removed.
21554 (CRYPTO_AES, CRYPTO_AESMC): New.
21555
21556 2019-07-09 Richard Biener <rguenther@suse.de>
21557
21558 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21559 (vn_reference_lookup_3): If the main ref has no access path recorded
21560 but orig_ref has use it to do access-path based disambiguation.
21561 (vn_reference_lookup_pieces): Adjust.
21562 (vn_reference_lookup): Pass down original ref if we valueized.
21563
21564 2019-07-09 Martin Liska <mliska@suse.cz>
21565
21566 * doc/extend.texi: Document influence on loop
21567 optimizers.
21568
21569 2019-07-09 Martin Liska <mliska@suse.cz>
21570
21571 * lto-compress.c (lto_normalized_zstd_level): Do not use
21572 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21573 of libzstd. One can use 0 as a default compression level.
21574
21575 2019-07-09 Martin Liska <mliska@suse.cz>
21576
21577 * doc/invoke.texi: Add link from -fprofile-dir option.
21578 Use better wording for 'gcno filename'.
21579
21580 2019-07-08 Martin Sebor <msebor@redhat.com>
21581
21582 PR middle-end/71924
21583 PR middle-end/90549
21584 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21585 comment.
21586 (args_loc_t): New type.
21587 (args_loc_t, locmap_t): same.
21588 (diag_returned_locals): New function.
21589 (is_addr_local): Same.
21590 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21591 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21592 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21593
21594 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21595
21596 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21597 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21598 and casts in offset when different, both through gimple stmts
21599 and through trees. Rewritten using loops to minimize code duplication
21600 for each operand.
21601
21602 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21603
21604 * emit-rtl.c (set_insn_locations): New function moved from...
21605 * function.c (set_insn_locations): ...here.
21606 * ira-emit.c (emit_moves): Propagate location of the first instruction
21607 to the inserted move instructions.
21608 * reg-stack.c (compensate_edge): Set the location if the sequence is
21609 inserted on the edge.
21610 * rtl.h (set_insn_locations): Declare.
21611
21612 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21613
21614 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21615 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21616 .machine string.
21617
21618 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21619
21620 PR rtl-optimization/88233
21621 * common.opt (fsplit-wide-types-early): New option.
21622 * common/config/rs6000/rs6000-common.c
21623 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21624 OPT_LEVELS_ALL.
21625 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21626 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21627 flag_split_wide_types_early.
21628 (pass_data_lower_subreg3): New.
21629 (pass_lower_subreg3): New.
21630 (make_pass_lower_subreg3): New.
21631 * passes.def (pass_lower_subreg2): Move after the loop passes.
21632 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21633 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21634 the pass pipeline; its previous place is taken by ...
21635 (make_pass_lower_subreg3): ... this.
21636
21637 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21638
21639 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21640 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21641
21642 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21643
21644 * config/s390/constraints.md: Add new jsc constraint.
21645 * config/s390/predicates.md: New predicates.
21646 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21647 * config/s390/s390.c (s390_valid_shift_count): New function.
21648 (print_shift_count_operand): Use s390_valid_shift_count.
21649 (print_operand): Likewise.
21650 * config/s390/s390.md: Use new predicate.
21651 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21652 * config/s390/vector.md: Use new predicate.
21653
21654 2019-07-08 Andrew Waterman <andrew@sifive.com>
21655 Jim Wilson <jimw@sifive.com>
21656
21657 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21658 bitsize instead of BITS_PER_WORD.
21659
21660 2019-07-08 Martin Liska <mliska@suse.cz>
21661
21662 * collect2.c (defined): Revert to before r254460.
21663 (scan_prog_file): Revert to before r254460.
21664
21665 2019-07-08 Richard Biener <rguenther@suse.de>
21666
21667 PR tree-optimization/83518
21668 * tree-ssa-sccvn.c: Include splay-tree.h.
21669 (struct pd_range, struct pd_data): New.
21670 (struct vn_walk_cb_data): Add data to track partial definitions.
21671 (vn_walk_cb_data::~vn_walk_cb_data): New.
21672 (vn_walk_cb_data::push_partial_def): New.
21673 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21674 (vn_reference_lookup_2): When partial defs are registered give up.
21675 (vn_reference_lookup_3): Track partial defs for memset and
21676 constructor zeroing and for defs from constants.
21677
21678 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21679
21680 * doc/install.texi (bootstrap-Og): Document.
21681
21682 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21683
21684 * config/riscv/pic.md (*local_pic_load_s<mode>)
21685 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21686 referenced by <mode>, giving...
21687 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21688 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21689 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21690 use <X:MODE> for the mode attribute.
21691
21692 2019-07-07 Jeff Law <law@redhat.com>
21693
21694 PR tree-optimization/91090
21695 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21696 in handling of ranges to simplify switch statements.
21697
21698 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21699
21700 * config/darwin.c (darwin_override_options): Make a final check on PIC
21701 options.
21702
21703 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21704
21705 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21706 on for kernel code.
21707
21708 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21709
21710 PR target/91068
21711 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21712 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21713 instead of matching them to "l" output operands.
21714
21715 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21716
21717 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21718 and check whether addr.reg is nonnull before using it.
21719
21720 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21721
21722 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21723 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21724 variable(s). For conditional lastprivate look through outer
21725 GIMPLE_OMP_SCAN context.
21726 (lower_omp_1): For conditional lastprivate look through outer
21727 GIMPLE_OMP_SCAN context.
21728
21729 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21730 member to combined_into_simd_safelen1.
21731 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21732 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21733 clauses if ctx->combined_into_simd_safelen1 put statements after the
21734 predicate conditionalized block rather than into it.
21735
21736 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21737
21738 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21739 operand 1.
21740 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21741 Make the choice of <mode> explicit, giving...
21742 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21743
21744 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21745
21746 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21747 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21748 of .md attributes.
21749 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21750 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21751 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21752 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21753 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21754 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21755 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21756 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21757 (*avx512f_scatterdi<mode>): Likewise.
21758 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21759
21760 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21761
21762 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21763 specify the mode iterator referenced by <mode>, giving...
21764 (*push1_h8300hs_<QHI:mode>): ...this.
21765
21766 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21767
21768 * config/gcn/gcn-valu.md
21769 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21770 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21771 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21772 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21773 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21774 but using the _exec comparison patterns.
21775 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21776 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21777 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21778 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21779 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21780 but using the _exec comparison patterns.
21781
21782 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21783
21784 * config/arm/sync.md
21785 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21786 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21787 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21788 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21789 <SIDI:cas_cmp_str>.
21790
21791 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21792
21793 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21794 (maybe_lookup_ctx): Add forward declaration.
21795 (omp_find_scan): Likewise. Walk into body of simd if composited
21796 with worksharing loop.
21797 (scan_omp_simd_scan): New function.
21798 (scan_omp_1_stmt): Call it.
21799 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21800 ctx->for_simd_scan_phase.
21801 (lower_rec_input_clauses): Do much less work for inscan reductions
21802 in ctx->for_simd_scan_phase is_simd regions.
21803 (lower_omp_scan): Set is_simd also on simd constructs composited
21804 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21805 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21806 emit their body after in simd constructs composited with worksharing
21807 loop.
21808 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21809
21810 * omp-low.c (omp_find_scan): Make static.
21811 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21812 the second loop, var2 represents the first partial sum and so needs
21813 to go before rprivb[ivar].
21814
21815 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21816
21817 * config/rs6000/rs6000-logue.c: Remove unused code.
21818
21819 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21820
21821 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21822
21823 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21824
21825 PR target/90712
21826 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21827 check with a frame laid out check.
21828
21829 2019-07-05 Richard Biener <rguenther@suse.de>
21830
21831 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21832 when comparing against a store with possibly the same value.
21833
21834 2019-07-05 Richard Biener <rguenther@suse.de>
21835
21836 PR tree-optimization/91091
21837 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21838 (walk_non_aliased_vuses): Likewise.
21839 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21840 (get_continuation_for_phi): New tbaa_p parameter and pass
21841 it down.
21842 (walk_non_aliased_vuses): Likewise.
21843 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21844 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21845 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21846 Likewise.
21847 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21848 (adjust_offsets_for_equal_base_address): New function.
21849 (vn_reference_lookup_3): Use it to catch more base equivalences.
21850 Handle and pass down tbaa_p flag.
21851 (vn_reference_lookup_pieces): Adjust.
21852 (vn_reference_lookup): Remove alias-set altering, instead pass
21853 down false as tbaa_p.
21854
21855 2019-07-05 Richard Biener <rguenther@suse.de>
21856
21857 PR tree-optimization/91091
21858 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21859 accesses can happen with -fno-strict-aliasing.
21860
21861 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21862
21863 * tree-ssa-alias.c (alias_stats): Add
21864 nonoverlapping_component_refs_since_match_p_must_overlap.
21865 (dump_alias_stats): Print it.
21866 (nonoverlapping_component_refs_since_match_p): Add early exit.
21867 (nonoverlapping_component_refs_p): Do not account early exit.
21868
21869 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21870
21871 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21872 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21873 (emit_eh_dispatch): Delete.
21874 (lower_catch): Emit the eh_dispatch manually and set the location of
21875 the first catch statement onto it.
21876 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21877 (lower_eh_dispatch): Propagate location.
21878 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21879 (eliminate_build): Likewise.
21880
21881 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21882
21883 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21884 phi nodes if possible.
21885 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21886 location info on the newly created statement.
21887 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21888 newly created increment if needed.
21889
21890 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21891
21892 PR middle-end/78884
21893 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21894 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21895 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21896 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21897 ctx->add_safelen1 is set.
21898
21899 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21900 GOMP_loop_start at the start of second worksharing loop in a scan.
21901 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21902 worksharing loop in a scan even if there are conditional lastprivates,
21903 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21904
21905 2019-07-04 Jan Hubicka <jh@suse.cz>
21906
21907 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21908 Fix check for match in the ref walk.
21909
21910 2019-07-04 Martin Liska <mliska@suse.cz>
21911
21912 * tree-ssa-loop-niter.c
21913 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21914 (estimate_numbers_of_iterations):
21915 Support __builtin_expect_with_probability for analysis
21916 of # of loop iterations.
21917
21918 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21919
21920 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21921 * except.c: Likewise.
21922 * expr.c (expand_expr_real_1): Reject it.
21923 * gimplify.c (gimplify_expr): Gimplify it, within
21924 TRY_FINALLY_EXPR.
21925 * tree-dump.c (dequeue_and_dump): Dump it.
21926 * tree-pretty-print.c (dump_generic_node): Likewise.
21927 * tree.c (block_may_fallthru): Handle it.
21928 * tree.def (EH_ELSE_EXPR): Introduce it.
21929 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21930 with GIMPLE_EH_ELSE as try/finally/else.
21931
21932 2019-07-04 Richard Biener <rguenther@suse.de>
21933
21934 PR ipa/91062
21935 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21936 parameter whether to disable GC collection.
21937 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21938 honor it.
21939 (execute_all_ipa_transforms): Likewise and pass it down.
21940 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21941 collection from applying IPA transforms.
21942 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21943 from applying IPA transforms.
21944
21945 2019-07-04 Richard Biener <rguenther@suse.de>
21946
21947 PR tree-optimization/90911
21948 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21949 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21950 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21951 scalar_loop_scaling.
21952 (vect_transform_loop): Scale scalar loop profile if needed.
21953 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21954 the loop copy from if-conversion adjust edge probabilities
21955 and scale the vectorized loop body profile, queue the scalar
21956 profile for updating after peeling.
21957
21958 2019-07-04 Jan Hubicka <jh@suse.cz>
21959
21960 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21961 parameters; return early for must-alias.
21962 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21963 outer types match, try nonoverlapping_component_refs
21964 if must-alias is not obvious.
21965 (indirect_refs_may_alias_p): Likewise.
21966 (refs_may_alias_p_2): Likewise.
21967
21968 2019-07-04 Richard Biener <rguenther@suse.de>
21969
21970 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21971 argument.
21972 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21973 globals into...
21974 (struct vn_walk_cb_data): New callback data struct.
21975 (vn_reference_lookup_2): Adjust.
21976 (vn_reference_lookup_3): Likewise.
21977 (vn_reference_lookup_pieces): Likewise.
21978 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21979 (visit_reference_op_load): Adjust.
21980
21981 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21982
21983 PR tree-optimization/91063
21984 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21985 stmt from stmts sequence before calling vect_init_vector_1.
21986 Formatting fix.
21987
21988 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21989
21990 PR target/88833
21991 * fwprop.c (reg_single_def_p): New function.
21992 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21993 (forward_propagate_into): New parameter reg_prop_only
21994 with default value false.
21995 Propagate def's src into loop only if SET_SRC and SET_DEST
21996 of def_set have single definitions.
21997 Likewise if reg_prop_only is set to true.
21998 (fwprop): New param fwprop_addr_p.
21999 Integrate fwprop_addr into fwprop.
22000 (fwprop_addr): Remove.
22001 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22002 to true.
22003 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22004 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22005 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22006
22007 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22008
22009 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22010 in worksharing loop scans.
22011
22012 PR tree-optimization/91074
22013 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22014 temporary.
22015
22016 PR rtl-optimization/90756
22017 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22018 for VECTOR_TYPE_P.
22019
22020 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22021
22022 * config/aarch64/aarch64.md: Remove redundant constraints from
22023 define_expand but keep some patterns untouched if they are
22024 specially selected by TARGET_SECONDARY_RELOAD hook.
22025 * config/aarch64/aarch64-sve.md: Likewise.
22026 * config/aarch64/atomics.md: Remove redundant constraints from
22027 define_expand.
22028 * config/aarch64/aarch64-simd.md: Likewise.
22029
22030 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22031
22032 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22033 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22034 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22035 clauses.
22036 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22037 DARWIN_NOPIE_SPEC.
22038
22039 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22040
22041 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22042 (STARTFILE_SPEC): Split crt3 into a separate spec.
22043 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22044 (DARWIN_CRT2_SPEC): New.
22045 (DARWIN_CRT3_SPEC): New.
22046 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22047 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22048 (DARWIN_CRT3_SPEC): New.
22049
22050 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22051
22052 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22053 Change the RTL attribute "length" from "4" to "*" to allow the
22054 length attribute to be adjusted automatically for prefixed load,
22055 store, and add immediate instructions.
22056 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22057 Likewise.
22058 (extendsi<mode>2, EXTSI iterator): Likewise.
22059 (movsi_internal1): Likewise.
22060 (movsi_from_sf): Likewise.
22061 (movdi_from_sf_zero_ext): Likewise.
22062 (mov<mode>_internal): Likewise.
22063 (movcc_internal1, QHI iterator): Likewise.
22064 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22065 (movsf_from_si): Likewise.
22066 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22067 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22068 (mov<mode>, FMOVE128 iterator): Likewise.
22069 (movdi_internal64): Likewise.
22070 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22071 Likewise.
22072 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22073 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22074 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22075 (vsx_splat_v4sf): Likewise.
22076
22077 2019-07-03 Mark Wielaard <mark@klomp.org>
22078
22079 PR debug/90981
22080 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22081 DW_AT_addr_base if there is actually a .debug_addr section with
22082 addresses.
22083 (output_addr_table): Add DWARF5 table header generation here after
22084 checking there are actually any addresses from...
22085 (dwarf2out_finish): ...here.
22086
22087 2019-07-03 Richard Biener <rguenther@suse.de>
22088
22089 PR middle-end/91069
22090 * match.pd (vec_perm -> bit_insert): Fix element read from
22091 first vector.
22092
22093 2019-07-03 Martin Liska <mliska@suse.cz>
22094
22095 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22096 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22097 condition.
22098 * generic-match-head.c: Include dbgcnt.h.
22099 * gimple-match-head.c: Likewise.
22100
22101 2019-07-03 Martin Liska <mliska@suse.cz>
22102
22103 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22104 (GCOV_COUNTER_V_TOPN): New.
22105 (GCOV_COUNTER_V_INDIR): Use _topn.
22106 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22107 (GCOV_TOPN_VALUES): New.
22108 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22109 (GCOV_TOPN_VALUES_COUNTERS): New.
22110 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22111 * tree-profile.c:
22112 (gimple_init_gcov_profiler): Rename variables from one_value
22113 to topn_values.
22114 (gimple_gen_one_value_profiler): Remove.
22115 (gimple_gen_topn_values_profiler): New function.
22116 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22117 names instead of SINGLE_VALUE.
22118 (stream_out_histogram_value): Likewise.
22119 (stream_in_histogram_value): Likewise.
22120 (get_most_common_single_value): Likewise.
22121 (gimple_divmod_fixed_value_transform): Likewise.
22122 (gimple_stringops_transform): Likewise.
22123 (gimple_divmod_values_to_profile): Likewise.
22124 (gimple_stringops_values_to_profile): Likewise.
22125 (gimple_find_values_to_profile): Likewise.
22126 * value-prof.h (enum hist_type): Rename to TOPN.
22127 (gimple_gen_one_value_profiler): Remove.
22128 (gimple_gen_topn_values_profiler): New.
22129
22130 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22131
22132 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22133 if it has the DW_AT_data_member_location attribute.
22134
22135 2019-07-03 Richard Biener <rguenther@suse.de>
22136
22137 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22138 dumping.
22139
22140 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22141
22142 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22143 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22144 (tlsdesc_small_sve_<mode>): Likewise.
22145
22146 2019-07-03 Martin Liska <mliska@suse.cz>
22147
22148 * Makefile.in: Define ZSTD_LIB.
22149 * common.opt: Adjust compression level
22150 to support also zstd levels.
22151 * config.in: Regenerate.
22152 * configure: Likewise.
22153 * configure.ac: Add --with-zstd and --with-zstd-include options
22154 and detect ZSTD.
22155 * doc/install.texi: Mention zstd dependency.
22156 * gcc.c: Print supported LTO compression algorithms.
22157 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22158 (lto_compression_zstd): Likewise.
22159 (lto_uncompression_zstd): Likewise.
22160 (lto_end_compression): Dispatch in between zlib and zstd.
22161 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22162 (lto_uncompression_zlib): Make it static.
22163 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22164 * lto-section-in.c (lto_get_section_data): Pass info
22165 about used compression.
22166 * lto-streamer-out.c: By default use zstd when possible.
22167 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22168 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22169
22170 2019-07-03 Martin Liska <mliska@suse.cz>
22171
22172 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22173 * lto-section-out.c (lto_destroy_simple_output_block): Never
22174 compress LTO_section_lto section.
22175 * lto-streamer-out.c (produce_asm): Do not set major_version
22176 and minor_version.
22177 (lto_output_toplevel_asms): Likewise.
22178 (produce_lto_section): New function.
22179 (lto_output): Call produce_lto_section.
22180 (lto_write_mode_table): Do not set major_version and
22181 minor_version.
22182 (produce_asm_for_decls): Likewise.
22183 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22184 type.
22185 (struct lto_header): Remove.
22186 (struct lto_section): New struct.
22187 (struct lto_simple_header): Do not inherit from lto_header.
22188 (struct lto_file_decl_data): Add lto_section_header field.
22189
22190 2019-07-03 Martin Liska <mliska@suse.cz>
22191
22192 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22193 dead assignemts.
22194 * reg-stack.c (check_asm_stack_operands): Likewise.
22195 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22196 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22197 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22198 force_expand_binop.
22199
22200 2019-07-03 Martin Liska <mliska@suse.cz>
22201
22202 PR tree-optimization/90892
22203 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22204 in string constants.
22205
22206 2019-07-03 Martin Liska <mliska@suse.cz>
22207
22208 PR middle-end/90899
22209 * multiple_target.c (create_dispatcher_calls): Add to comdat
22210 group only if set for ifunc.
22211
22212 2019-07-03 Martin Liska <mliska@suse.cz>
22213
22214 PR target/88056
22215 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22216 Define local_object_name in outer scope in order to handle
22217 use-after-scope issue.
22218
22219 2019-07-03 Martin Liska <mliska@suse.cz>
22220
22221 * common.opt: Add fprofile-note.
22222 * coverage.c (coverage_init): Append the option
22223 to bbg_file_name.
22224 * doc/invoke.texi: Document -fprofile-note.
22225
22226 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22227
22228 PR tree-optimization/91033
22229 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22230 vect_analyze_data_refs): Add bool * arguments.
22231 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22232 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22233 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22234 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22235 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22236 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22237 vect_analyze_data_refs caller.
22238
22239 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22240 clause.
22241 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22242 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22243 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22244 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22245 OMP_CLAUSE__SCANTEMP_ entry.
22246 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22247 * tree-pretty-print.c (dump_omp_clause): Likewise.
22248 * tree-nested.c (convert_nonlocal_omp_clauses,
22249 convert_local_omp_clauses): Likewise.
22250 * omp-general.h (struct omp_for_data): Add have_scantemp and
22251 have_nonctrl_scantemp members.
22252 * omp-general.c (omp_extract_for_data): Initialize them.
22253 * omp-low.c (struct omp_context): Add scan_exclusive member.
22254 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22255 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22256 ctx->scan_exclusive.
22257 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22258 of !ctx->scan_inclusive.
22259 (lower_rec_input_clauses): Simplify gimplification of dtors using
22260 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22261 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22262 loops. Don't add barrier for reduction_omp_orig_ref if
22263 ctx->scan_??xclusive.
22264 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22265 (lower_omp_scan): Use ctx->scan_exclusive instead
22266 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22267 reductions. Use new_vard != new_var instead of repeated
22268 omp_is_reference calls.
22269 (omp_find_scan, lower_omp_for_scan): New functions.
22270 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22271 inscan reductions.
22272 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22273 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22274 and fd->have_scantemp.
22275
22276 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22277 on worksharing loop propagate it as shared clause to containing
22278 combined parallel.
22279
22280 * omp-expand.c (expand_omp_for_static_nochunk,
22281 expand_omp_for_static_chunk): For nowait worksharing loop with
22282 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22283 at the end.
22284
22285 2019-07-02 qing zhao <qing.zhao@oracle.com>
22286
22287 PR preprocessor/90581
22288 * doc/cppopts.texi: Add document for -fmax-include-depth.
22289 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22290
22291 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22292
22293 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22294 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22295 (mmx_packssdw): Ditto.
22296 (mmx_punpckhbw): Ditto.
22297 (mmx_punpcklbw): Ditto.
22298 (mmx_punpckhwd): Ditto.
22299 (mmx_punpcklwd): Ditto.
22300 (mmx_punpckhdq): Ditto.
22301 (mmx_punpckldq): Ditto.
22302 (*vec_dupv4hi): Ditto.
22303 (*vec_dupv2si): Ditto.
22304 (mmx_pmovmskb): Ditto.
22305 * config/i386/sse.md (sse_cvtpi2ps): Use
22306 TARGET_SSE2 && SSE_REG_P in split condition.
22307 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22308 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22309 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22310 (ssse3_pshufbv8qi3): Ditto.
22311 (ssse3_palignrdi): Ditto.
22312
22313 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22314
22315 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22316 with inlined save and restore.
22317
22318 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22319
22320 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22321 to be inserted on single successor edge of the entry block. Then call
22322 commit_edge_insertions instead of inserting the instructions manually.
22323 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22324 RTL expansion and rebuild jump labels chain.
22325
22326 2019-07-02 Richard Biener <rguenther@suse.de>
22327
22328 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22329 TI_CHREC_KNOWN.
22330 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22331 Define here.
22332 * tree.c (build_common_tree_nodes): Initialize them.
22333 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22334 Make declarations comments.
22335 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22336 chrec_known): Remove definitions.
22337 (initialize_scalar_evolutions_analyzer): Remove.
22338 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22339 * tree-streamer.c (preload_common_nodes): Do not preload
22340 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22341
22342 2019-07-02 Jan Hubicka <jh@suse.cz>
22343
22344 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22345 sanity check.
22346
22347 2019-07-02 Jan Hubicka <jh@suse.cz>
22348
22349 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22350 to ..
22351 (nonoverlapping_component_refs_since_match_p): ... this one;
22352 handle also non-decl bases; return -1 if search gave up.
22353 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22354 nonoverlapping_component_refs_of_decl_p_no_alias to
22355 nonoverlapping_component_refs_since_match_p_may_alias,
22356 nonoverlapping_component_refs_since_match_p_no_alias.
22357 (dump_alias_stats): Update dumping.
22358 (aliasing_matching_component_refs_p): Break out from ...;
22359 dispatch to nonoverlapping_component_refs_for_decl_p
22360 and nonoverlapping_component_refs_since_match_p.
22361 (aliasing_component_refs_p): ... here; call
22362 nonoverlapping_component_refs_p in scenarios where we can not
22363 precisely determine base match.
22364 (decl_refs_may_alias_p): Use
22365 nonoverlapping_component_refs_since_match_p.
22366 (indirect_ref_may_alias_decl_p): Do not call
22367 nonoverlapping_component_refs_p.
22368 (indirect_refs_may_alias_p): Likewise.
22369
22370 2019-07-02 Jan Hubicka <jh@suse.cz>
22371
22372 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22373 to clobber of return value.
22374
22375 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22376
22377 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22378 for is_neon_type instructions that have not already been categorized.
22379
22380 2019-07-02 Richard Biener <rguenther@suse.de>
22381
22382 PR tree-optimization/58483
22383 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22384 for MEM_REF base hashing.
22385 (equal_mem_array_ref_p): Likewise for base comparison.
22386
22387 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22388
22389 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22390 parameterized name.
22391 (signbit<mode>2): Use that name. Simplify.
22392
22393 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22394
22395 PR middle-end/66726
22396 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22397 Tune heuristic from PR71016 to allow MIN / MAX.
22398
22399 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22400
22401 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22402 parameterized name.
22403 (abs<mode>2): Use that name. Simplify.
22404
22405 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22406
22407 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22408 parameterized name.
22409 (neg<mode>2): Use that name. Simplify.
22410
22411 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22412
22413 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22414 name.
22415 (abs<mode>2): Use that name. Simplify.
22416
22417 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22418
22419 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22420 name.
22421 (neg<mode>2): Use that name. Simplify.
22422
22423 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22424
22425 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22426 ("enabled" attribute): Handle sse_noavx isa attribute.
22427 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22428 Use TARGET_SSE && SSE_REGNO_P in split condition.
22429 (*vec_dupv2sf): Ditto.
22430
22431 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22432
22433 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22434 name.
22435 (floatsi<mode>2): Use that name. Simplify.
22436
22437 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22438
22439 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22440 parameterized name.
22441 (extenddf<mode>2_vsx): Make this a parameterized name.
22442 (extenddf<mode>2): Use those names. Simplify.
22443
22444 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22445
22446 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22447 name.
22448 (eh_return): Use that name. Simplify.
22449
22450 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22451
22452 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22453 (doloop_end): Use that name. Simplify.
22454
22455 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22456
22457 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22458 parameterized name.
22459 (indirect_jump): Use that name. Simplify.
22460
22461 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22462
22463 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22464 parameterized name.
22465 (abs<mode>2): Use that name. Simplify.
22466
22467 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22468
22469 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22470 parameterized name.
22471 (fix_trunc<mode>si2): Use that name. Simplify.
22472
22473 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22474
22475 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22476 (allocate_stack): Use that name. Simplify.
22477
22478 2019-07-01 Martin Sebor <msebor@redhat.com>
22479
22480 PR middle-end/90923
22481 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22482 (hash_map::get_or_insert): Same. Reformat comment.
22483 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22484 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22485 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22486 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22487 (hash_table::hash_table (const hash_table&)): Use copy ctor
22488 instead of assignment to copy elements.
22489
22490 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22491 John David Anglin <danglin@gcc.gnu.org>
22492
22493 PR target/90963
22494 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22495 using saved frame pointer.
22496
22497 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22498
22499 PR middle-end/64242
22500 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22501 Add frame clobber and schedule blockage.
22502
22503 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22504
22505 * doc/invoke.texi (Link Options): Further editorial changes to
22506 -flinker-output docs.
22507
22508 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22509
22510 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22511 Load both operands of a PLUS into registers separately.
22512
22513 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22514
22515 * config/s390/vector.md: Fix shift count operand printing.
22516
22517 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22518
22519 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22520
22521 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22522
22523 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22524 Use recog_data to test for an output operand.
22525
22526 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22527
22528 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22529 exclude any others that are disparaged or that are bound to need
22530 a reload or spill.
22531 (ira_get_dup_out_num): Expand comment.
22532
22533 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22534
22535 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22536 constraint string for each operand/alternative combo. Only handle
22537 '%' at the start of constraint strings, and look for it outside
22538 the main loop.
22539
22540 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22541
22542 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22543 alternative_mask instead of HARD_REG_SET to represent a
22544 bitmask of alternatives.
22545 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22546 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22547
22548 2019-07-01 Martin Liska <mliska@suse.cz>
22549
22550 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22551 use () for a constructor call.
22552 (test_applying_fixits_line_out_of_range): Likewise.
22553 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22554 argument.
22555 (free_page): Likewise.
22556
22557 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22558
22559 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22560 parameter names to match usage (no functional change).
22561 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22562
22563 2019-07-01 Richard Biener <rguenther@suse.de>
22564
22565 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22566 pass parameter.
22567 (pass_fre::execute): Honor it.
22568 * passes.def: Adjust pass_fre invocations to allow iterating,
22569 add non-iterating pass_fre before late threading/dom.
22570
22571 2019-07-01 Richard Biener <rguenther@suse.de>
22572
22573 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22574 TARGET_MEM_REF handling to also handle address-taken ones.
22575
22576 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22577
22578 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22579 hardware attributes): Document avx512vp2intersect.
22580
22581 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22582
22583 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22584 (abs<mode>2): New expander.
22585 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22586 Use CODE_FOR_ssse3_absv8qi2.
22587 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22588 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22589
22590 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22591
22592 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22593 to sse, sse_noavx and avx. Update all uses.
22594
22595 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22596
22597 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22598 (*mmx_<plusminus_insn><mode>3): Ditto.
22599 (*mmx_mulv4hi3"): Ditto.
22600 (*mmx_smulv4hi3_highpart): Ditto.
22601 (*mmx_umulv4hi3_highpart): Ditto.
22602 (*mmx_pmaddwd): Ditto.
22603 (*sse2_umulv1siv1di3): Ditto.
22604 (*mmx_<code>v4hi3): Ditto.
22605 (*mmx_<code>v8qi3): Ditto.
22606 (mmx_ashr<mode>3): Ditto.
22607 ("mmx_<shift_insn><mode>3): Ditto.
22608 (*mmx_eq<mode>3): Ditto.
22609 (mmx_gt<mode>3): Ditto.
22610 (mmx_andnot<mode>3): Ditto.
22611 (*mmx_<code><mode>3): Ditto.
22612 (*mmx_pinsrw): Ditto.
22613 (*mmx_pextrw): Ditto.
22614 (mmx_pshufw_1): Ditto.
22615 (*mmx_uavgv8qi3): Ditto.
22616 (*mmx_uavgv4hi3): Ditto.
22617 ("mmx_psadbw): Ditto.
22618 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22619 (sse_cvttps2pi): Ditto.
22620 (ssse3_pmaddubsw): Ditto.
22621 (*ssse3_pmulhrswv4hi3): Ditto.
22622 (ssse3_psign<mode>3): Ditto.
22623
22624 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22625
22626 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22627 adjustment for bit-fields to all aggregate types.
22628
22629 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22630
22631 * config/rs6000/predicates.md (pcrel_address): Use
22632 SYMBOL_REF_LOCAL_P to determine if a label is local.
22633 (pcrel_external_address): New predicate.
22634 (non_prefixed_mem_operand): Delete, predicate not used.
22635 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22636 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22637 addressing.
22638 (SYMBOL_REF_PCREL_P): Likewise.
22639
22640 PR target/91009
22641 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22642 alternative.
22643 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22644 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22645 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22646
22647 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22648
22649 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22650 override on extra_headers.
22651
22652 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22653
22654 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22655 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22656 from warning.
22657 (darwin_driver_init): Likewise.
22658
22659 2019-06-28 Jan Beulich <jbeulich@suse.com>
22660
22661 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22662 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22663 Eliminate redundant alternative.
22664
22665 2019-06-28 Jan Beulich <jbeulich@suse.com>
22666
22667 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22668 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22669 Use vector_operand.
22670
22671 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22672
22673 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22674 having a lower cost regardless of the speed option.
22675
22676 2019-06-28 Jan Beulich <jbeulich@suse.com>
22677
22678 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22679 vector_operand plus, on both alternatives, "Bm" constraint.
22680
22681 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22682
22683 * config/arm/arm.md: Remove redundant constraints from
22684 define_expand but leave reload_inm and reload_outm patterns
22685 untouched since they need special constraints to work.
22686 * config/arm/arm-fixed.md: Remove redundant constraints from
22687 define_expand.
22688 * config/arm/iwmmxt.md: Likewise.
22689 * config/arm/neon.md: Likewise.
22690 * config/arm/sync.md: Likewise.
22691 * config/arm/thumb1.md: Likewise.
22692 * config/arm/vec-common.md: Likewise.
22693
22694 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22695
22696 * doc/install.texi: Document --disable-tm-clone-registry.
22697
22698 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22699
22700 PR c++/91024
22701 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22702 statements.
22703
22704 PR tree-optimization/91010
22705 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22706 return true. Otherwise, don't call operand_equal_p if offset1 or
22707 offset2 is NULL and just return false.
22708
22709 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22710
22711 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22712 user-specified float mode choice for kernel mode code.
22713
22714 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22715
22716 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22717 spec.
22718
22719 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22720
22721 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22722 use longcall for 64b code.
22723
22724 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22725
22726 * builtins.c (get_memory_rtx): Fix comment.
22727 * optabs.def (movmem_optab): Change to cpymem_optab.
22728 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22729 (emit_block_move_hints): Change movmem to cpymem.
22730 * defaults.h: Change movmem to cpymem.
22731 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22732 (default_use_by_pieces_infrastructure_p): Ditto.
22733 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22734 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22735 to cpymem.
22736 * config/aarch64/aarch64.h: Change movmem to cpymem.
22737 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22738 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22739 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22740 movmem to cpymem.
22741 * config/arc/arc-protos.h: Change movmem to cpymem.
22742 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22743 * config/arc/arc.h: Change movmem to cpymem in comment.
22744 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22745 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22746 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22747 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22748 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22749 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22750 * config/avr/avr-protos.h: Change movmem to cpymem.
22751 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22752 avr_out_movmem): Change movmem to cpymem.
22753 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22754 Change movmem to cpymem.
22755 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22756 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22757 Change movmem to cpymem.
22758 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22759 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22760 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22761 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22762 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22763 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22764 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22765 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22766 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22767 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22768 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22769 expand_small_cpymem_or_setmem,
22770 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22771 expand_set_or_cpymem_constant_prologue,
22772 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22773 * config/i386/i386-protos.h: Change movmem to cpymem.
22774 * config/i386/i386.h: Change movmem to cpymem in comment.
22775 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22776 (setmem<mode>): Change expansion function name.
22777 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22778 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22779 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22780 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22781 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22782 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22783 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22784 to cpymem.
22785 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22786 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22787 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22788 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22789 Change movmem to cpymem.
22790 * config/mips/mips.h: Change movmem to cpymem.
22791 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22792 * config/nds32/nds32-memory-manipulation.c
22793 (nds32_expand_movmemsi_loop_unknown_size,
22794 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22795 nds32_expand_movmemsi_unroll,
22796 nds32_expand_movmemsi): Change movmem to cpymem.
22797 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22798 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22799 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22800 (pa_adjust_insn_length): Change call to compute_movmem_length.
22801 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22802 movmemdi, movmemdi_prereload,
22803 movmemdi_postreload): Change movmem to cpymem.
22804 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22805 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22806 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22807 * config/riscv/riscv.h: Change movmem to cpymem.
22808 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22809 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22810 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22811 movmem to cpymem.
22812 * config/s390/s390-protos.h: Change movmem to cpymem.
22813 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22814 s390_expand_insv): Change movmem to cpymem.
22815 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22816 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22817 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22818 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22819 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22820 for nonexistent function.
22821 * config/vax/vax.h: Change movmem to cpymem in comment.
22822 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22823 * config/visium/visium.h: Change movmem to cpymem in comment.
22824 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22825 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22826 * doc/md.texi: Change movmem to cpymem and update description to match.
22827 * doc/rtl.texi: Change movmem to cpymem.
22828 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22829 * doc/tm.texi: Regenerate.
22830
22831 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22832
22833 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22834 -fvariable-expansion-in-unroller by default.
22835 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22836 default for Power.
22837
22838 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22839
22840 Revert
22841 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22842 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22843
22844 * config.gcc(rs6000-*-*): Define target_gtfiles.
22845
22846 2019-06-27 Jan Hubicka <jh@suse.cz>
22847
22848 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22849 (add_type_duplicate): When odr hash is not allocated, to nothing.
22850 (odr_based_tbaa_p): New function.
22851 (set_type_canonical_for_odr_type): New function.
22852 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22853 set_type_canonical_for_odr_type): New.
22854 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22855 ODR based TBAA are not equivalent to non-ODR types.
22856
22857 2019-06-27 Martin Liska <mliska@suse.cz>
22858
22859 PR tree-optimization/90974
22860 PR rtl-optimization/90975
22861 PR rtl-optimization/90976
22862 PR target/91016
22863 PR tree-optimization/91017
22864 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22865 unused tmp.
22866 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22867 initial commit of IRA.
22868 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22869 of op0 and op1.
22870 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22871 Remove unused mode1.
22872 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22873 to new_stmt_info.
22874
22875 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22876
22877 PR target/90991
22878 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22879 instead of register_operand for operands[1], add m to its constraints
22880 if operands[2] uses "C" constraint. Ensure in condition that if
22881 operands[2] is not 0, then operands[1] is not a MEM. For last two
22882 alternatives, use unaligned loads instead of aligned if operands[1] is
22883 misaligned_operand.
22884
22885 2019-06-27 Martin Liska <mliska@suse.cz>
22886
22887 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22888 dead assignments.
22889 * bt-load.c (move_btr_def): Likewise.
22890 * builtins.c (expand_builtin_apply_args_1): Likewise.
22891 (expand_builtin_apply): Likewise.
22892 * cfgexpand.c (expand_asm_stmt): Likewise.
22893 (construct_init_block): Likewise.
22894 * cfghooks.c (verify_flow_info): Likewise.
22895 * cfgloopmanip.c (remove_path): Likewise.
22896 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22897 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22898 * combine.c (simplify_if_then_else): Likewise.
22899 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22900 (choose_basereg): Likewise.
22901 (ix86_expand_prologue): Likewise.
22902 (ix86_preferred_output_reload_class): Likewise.
22903 * cselib.c (cselib_record_sets): Likewise.
22904 * df-scan.c (df_scan_alloc): Likewise.
22905 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22906 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22907 * emit-rtl.c (try_split): Likewise.
22908 * graphite-scop-detection.c (assign_parameter_index_in_region):
22909 Likewise.
22910 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22911 * ira-color.c (setup_profitable_hard_regs): Likewise.
22912 * ira.c (rtx_moveable_p): Likewise.
22913 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22914 * read-rtl.c (read_subst_mapping): Likewise.
22915 * regrename.c (scan_rtx): Likewise.
22916 * reorg.c (fill_slots_from_thread): Likewise.
22917 * tree-inline.c (tree_function_versioning): Likewise.
22918 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22919 * tree-ssa-sink.c (statement_sink_location): Likewise.
22920 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22921 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22922 (vect_create_epilog_for_reduction): Likewise.
22923 * tree.c (build_nonstandard_integer_type): Likewise.
22924
22925 2019-06-27 Richard Biener <rguenther@suse.de>
22926
22927 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22928
22929 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22930
22931 PR tree-optimization/89772
22932 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22933 out-of-bound accesses checking.
22934
22935 2019-06-27 Martin Liska <mliska@suse.cz>
22936
22937 PR tree-optimization/91014
22938 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22939 when LHS is NULL_TREE.
22940
22941 2019-06-27 Martin Liska <mliska@suse.cz>
22942
22943 * symbol-summary.h (traverse): Pass
22944 argument a to the call of callback.
22945 (gt_ggc_mx): Mark arguments as unused.
22946 (gt_pch_nx): Likewise.
22947
22948 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22949
22950 PR target/62147
22951 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22952 finiteness.
22953
22954 2019-06-26 Jeff Law <law@redhat.com>
22955
22956 PR tree-optimization/90883
22957 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22958 (delete_dead_or_redundant_assignment): Likewise.
22959
22960 PR tree-optimization/90883
22961 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22962 * tree-ssa-dse.c: Update various comments to distinguish between
22963 dead and redundant stores.
22964 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22965 (dse_optimize_redundant_stores): New function.
22966 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22967 Distinguish between dead and redundant calls in dump output. All
22968 callers updated.
22969 (delete_dead_or_redundant_assignment): Similarly for assignments.
22970 (dse_optimize_stmt): Handle _CHK variants. For statements which
22971 store 0 into multiple memory locations, try to prove a subsequent
22972 store is redundant.
22973
22974 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22975
22976 PR target/89021
22977 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22978 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22979
22980 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22981
22982 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22983 (branch_islands): New extern.
22984 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22985 * config/rs6000/rs6000.c: .. here.
22986
22987 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22988
22989 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22990 (powerpc*-*-*) ... to here.
22991
22992 2019-06-26 Jeff Law <law@redhat.com>
22993
22994 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22995 memcpy, memmove and memset builtins.
22996 (maybe_trim_memstar_call): Likewise.
22997
22998 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22999
23000 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23001
23002 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23003
23004 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23005
23006 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23007
23008 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23009 declaration.
23010 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23011 "static".
23012 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23013 declaration.
23014
23015 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23016
23017 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23018
23019 2019-06-26 Richard Biener <rguenther@suse.de>
23020
23021 PR ipa/90982
23022 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23023
23024 2019-06-26 Richard Biener <rguenther@suse.de>
23025
23026 * lto-streamer.h (lto_bitmap_alloc): Remove.
23027 (lto_bitmap_free): Likewise.
23028 * lto-streamer.c (lto_bitmap_alloc): Remove.
23029 (lto_bitmap_free): Likewise.
23030 (lto_obstack): Likewise.
23031 (lto_obstack_initialized): Likewise.
23032 * lto-streamer-out.c (lto_output): Use own obstack for local
23033 bitmap, free it consistently.
23034
23035 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23036
23037 PR target/90991
23038 * config/i386/sse.md
23039 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23040 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23041 insns if operands[2] is misaligned_operand.
23042
23043 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23044
23045 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23046 TARGET_POWERPC64.
23047 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23048 to GPR.
23049
23050 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23051
23052 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23053
23054 2019-06-26 Martin Liska <mliska@suse.cz>
23055
23056 PR tree-optimization/90973
23057 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23058 epilogue_cost_vec instead of prologue_cost_vec for
23059 a epilogue cost.
23060
23061 2019-06-26 Martin Liska <mliska@suse.cz>
23062
23063 * bb-reorder.c (connect_better_edge_p): Add missing else
23064 statement in the middle of if-else statements.
23065
23066 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23067 H.J. Lu <hongjiu.lu@intel.com>
23068 Olga Makhotina <olga.makhotina@intel.com>
23069
23070 * common/config/i386/i386-common.c
23071 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23072 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23073 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23074 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23075 (ix86_handle_option): Handle -mavx512vp2intersect.
23076 * config/i386/avx512vp2intersectintrin.h: New.
23077 * config/i386/avx512vp2intersectvlintrin.h: New.
23078 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23079 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23080 AVX512VP2INTERSECT.
23081 * config/i386/i386-builtin-types.def: Add new types.
23082 * config/i386/i386-builtin.def: Add new builtins.
23083 * config/i386/i386-builtins.c: (enum processor_features): Add
23084 F_AVX512VP2INTERSECT.
23085 (static const _isa_names_table isa_names_table): Ditto.
23086 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23087 __AVX512VP2INTERSECT__.
23088 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23089 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23090 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23091 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23092 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23093 * config/i386/i386-options.c (ix86_target_string): Add
23094 -mavx512vp2intersect.
23095 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23096 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23097 P2HImode and P2QImode.
23098 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23099 number for P2QImode and P2HImode.
23100 (ix86_regmode_natural_size): New function.
23101 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23102 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23103 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23104 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23105 * config/i386/i386.opt: Add -mavx512vp2intersect.
23106 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23107 avx512vp2intersectvlintrin.h.
23108 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23109 (define_mode_iterator VI48_AVX512VP2VL): New.
23110 (avx512vp2intersect_2intersect<mode>,
23111 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23112 * config.gcc: Add avx512vp2intersectvlintrin.h and
23113 avx512vp2intersectintrin.h to extra_headers.
23114 * doc/invoke.texi: Document -mavx512vp2intersect.
23115
23116 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23117
23118 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23119
23120 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23121
23122 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23123 savres_routine_syms, savres_routine_name, morestack_ref,
23124 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23125 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23126 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23127 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23128 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23129 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23130 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23131 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23132 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23133 get_stack_clash_protection_probe_interval,
23134 get_stack_clash_protection_guard_size,
23135 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23136 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23137 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23138 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23139 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23140 gen_frame_mem_offset, rs6000_savres_routine_name,
23141 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23142 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23143 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23144 rs6000_global_entry_point_prologue_needed_p,
23145 rs6000_get_separate_components, rs6000_components_for_bb,
23146 rs6000_disqualify_components, rs6000_emit_prologue_components,
23147 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23148 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23149 rs6000_output_savres_externs, rs6000_output_function_prologue,
23150 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23151 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23152 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23153 rs6000_output_function_epilogue, gen_add3_const,
23154 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23155 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23156 to rs6000-logue.c.
23157 (machine_function): Moved to rs6000.h.
23158 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23159 rs6000-internal.h.
23160 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23161 savres_routine_syms, savres_routine_name, morestack_ref,
23162 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23163 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23164 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23165 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23166 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23167 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23168 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23169 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23170 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23171 get_stack_clash_protection_probe_interval,
23172 get_stack_clash_protection_guard_size,
23173 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23174 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23175 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23176 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23177 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23178 gen_frame_mem_offset, rs6000_savres_routine_name,
23179 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23180 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23181 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23182 rs6000_global_entry_point_prologue_needed_p,
23183 rs6000_get_separate_components, rs6000_components_for_bb,
23184 rs6000_disqualify_components, rs6000_emit_prologue_components,
23185 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23186 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23187 rs6000_output_savres_externs, rs6000_output_function_prologue,
23188 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23189 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23190 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23191 rs6000_output_function_epilogue, gen_add3_const,
23192 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23193 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23194 to here from rs6000.c.
23195 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23196 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23197 quad_address_offset_p) Moved to here from rs6000.c.
23198 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23199 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23200 collector.
23201
23202 2019-06-25 Martin Liska <mliska@suse.cz>
23203
23204 * hash-table.c (hashtab_chk_error): Move here from ...
23205 * hash-table.h (hashtab_chk_error): ... here.
23206
23207 2019-06-25 Martin Liska <mliska@suse.cz>
23208
23209 PR tree-optimization/90978
23210 * df-scan.c (df_update_entry_block_defs): Remove dead else
23211 branch.
23212 (df_update_exit_block_uses): Likewise.
23213
23214 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23215 Andrew Stubbs <ams@codesourcery.com>
23216
23217 * config.gcc (thread_file): Set to gcn for AMD GCN.
23218 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23219 (TARGET_EMUTLS_VAR_INIT): New hook.
23220
23221 2019-06-25 Martin Jambor <mjambor@suse.cz>
23222
23223 PR ipa/90939
23224 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23225
23226 2019-06-25 Richard Biener <rguenther@suse.de>
23227
23228 PR tree-optimization/90930
23229 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23230 into parallel form in the last pass instance.
23231
23232 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23233
23234 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23235 (arc_legitimize_pic_address): Simplify and cleanup the function.
23236 (SYMBOLIC_CONST): Remove.
23237 (prepare_pic_move): Likewise.
23238 (prepare_move_operands): Handle complex mov cases here.
23239 (arc_legitimize_address_0): Remove call to
23240 arc_legitimize_pic_address.
23241 (arc_legitimize_address): Remove call to
23242 arc_legitimize_tls_address.
23243 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23244 (movhi_insn): Likewise.
23245
23246 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23247
23248 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23249 PTRDIFF_TYPE.
23250 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23251 format of "__intN" types for UINTMAX_TYPE.
23252 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23253 format of "__intN" types for SIZETYPE.
23254 * tree.c (build_common_tree_nodes): Accept "__intN__"
23255 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23256 * doc/invoke.texi: Document that __intN__ disables pedantic
23257 warnings.
23258
23259 2019-06-25 Jan Hubicka <jh@suse.cz>
23260
23261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23262 base2_alias_set is non-zero before doing TBAA based disambiguation.
23263
23264 2019-06-25 Martin Liska <mliska@suse.cz>
23265
23266 PR tree-optimization/90973
23267 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23268 of prologue and epilogue.
23269
23270 2019-06-24 Jan Hubicka <jh@suse.cz>
23271
23272 * ipa-utils.h (type_with_linkage_p): Verify that type is
23273 CXX_ODR_P.
23274 (odr_type_p): Remove extra return.
23275 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23276 hash STRING_FLAG only for arrays and integers.
23277 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23278 Update analogously.
23279 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23280 Likewise.
23281 * print-tree.c (print_node): Print cxx-odr-p
23282 and string-flag.
23283 * tree.c (need_assembler_name_p): Also check that type
23284 is CXX_ODR_TYPE_P
23285 (verify_type_variant): Update verification of SRING_FLAG;
23286 also check CXX_ODR_P.
23287 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23288 (TYPE_STRING_FLAG): Use it.
23289 (TYPE_CXX_ODR_P): New macro.
23290 * dwarf2out.c (gen_array_type_die): First check that type
23291 is an array and then test string flag.
23292
23293 2019-06-24 Richard Biener <rguenther@suse.de>
23294
23295 PR tree-optimization/90972
23296 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23297 in common code, dealing with STRING_CST properly.
23298
23299 2019-06-24 Richard Biener <rguenther@suse.de>
23300
23301 PR tree-optimization/90930
23302 PR tree-optimization/90316
23303 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23304 decrement of limit.
23305
23306 2019-06-24 Martin Sebor <msebor@redhat.com>
23307
23308 * tree-pretty-print.h: Remove unnecessary punctuation characters
23309 from a diagnostic.
23310 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23311
23312 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23313
23314 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23315 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23316 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23317
23318 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23319
23320 * config/rs6000/darwin.h: Handle GCC target pragma.
23321
23322 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23323
23324 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23325
23326 2019-06-22 Jeff Law <law@redhat.com>
23327
23328 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23329
23330 2019-06-22 Jan Hubicka <jh@suse.cz>
23331
23332 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23333 give up on bitfields; continue searching for different refs
23334 appearing later.
23335
23336 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23337
23338 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23339 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23340 containing the offset as possible simd lane access. Look through
23341 widening conversion. Move the
23342 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23343
23344 2019-06-21 Richard Biener <rguenther@suse.de>
23345
23346 PR tree-optimization/90930
23347 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23348 flag on new stmts to avoid re-processing them.
23349
23350 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23351
23352 PR c++/90875 - added -Wswitch-outside-range option
23353 * doc/invoke.texi (Wswitch-outside-range): Document.
23354
23355 2019-06-21 Jeff Law <law@redhat.com>
23356
23357 PR tree-optimization/90949
23358 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23359 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23360
23361 2019-06-21 Richard Biener <rguenther@suse.de>
23362
23363 PR debug/90914
23364 * dwarf2out.c (prune_unused_types_walk): Always consider
23365 function-local extern declarations as used.
23366
23367 2019-06-21 Richard Biener <rguenther@suse.de>
23368
23369 PR tree-optimization/90913
23370 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23371 the scalar variant of if-conversion versioning.
23372
23373 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23374
23375 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23376 create another "omp scan inscan exclusive" array if
23377 !ctx->scan_inclusive.
23378 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23379 (lower_omp_scan): Likewise.
23380 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23381 2-bit bitfield for simd_lane_access_p member.
23382 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23383 aux == (void *)-4 as simd lane access.
23384 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23385 comment with permutations to show the canonical permutation order.
23386 (vectorizable_scan_store): Handle exclusive scan.
23387 (vectorizable_store): Call vectorizable_scan_store even for
23388 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23389
23390 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23391 "omp simd array" arrays with one byte elements.
23392
23393 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23394
23395 * config/alpha/alpha.md (@unaligned_store<mode>):
23396 Rename from unaligned_store<mode>.
23397 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23398 * config/alpha/sync.md (@load_locked_<mode>): Rename
23399 from load_locked_<mode>.
23400 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23401 (@atomic_compare_and_swap<mode>_1): Rename
23402 from atomic_compare_and_swap<mode>_1.
23403 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23404 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23405 Use gen_reload_in_aligned and gen_unaligned_store.
23406 (emit_load_locked): Remove.
23407 (emit_store_conditional): Ditto.
23408 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23409 (alpha_split_compare_and_swap): Ditto.
23410 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23411 (alpha_split_compare_and_swap_12): Use gen_load_locked
23412 and gen_store_conditional.
23413 (alpha_split_atomic_exchange): Ditto.
23414 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23415 (alpha_split_atomic_exchange_12): Use gen_load_locked
23416 and gen_store_conditional.
23417
23418 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23419
23420 * config/aarch64/aarch64-errata.h: New file.
23421 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23422 (CA53_ERR_843419_SPEC): Delete.
23423 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23424 * config/aarch64/aarch64-linux.h: Likewise.
23425 * config/aarch64/aarch64-netbsd.h: Likewise.
23426 * config/aarch64/aarch64-freebsd.h: Likewise.
23427
23428 2019-06-20 Marek Polacek <polacek@redhat.com>
23429
23430 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23431
23432 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23433
23434 * config/rs6000/rs6000.md (isa attribute): Add support for
23435 for a future processor.
23436
23437 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23438
23439 PR target/54855
23440 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23441 standard scalar operation pattern for V2DF.
23442 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23443 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23444 (*ieee_<ieee_maxmin><mode>3): Likewise.
23445 (vec_setv2df_0): Likewise.
23446
23447 2019-06-20 Jan Hubicka <jh@suse.cz>
23448
23449 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23450 parameter; it has no use in gimple memory model.
23451 (indirect_ref_may_alias_decl_p): Update.
23452
23453 2019-06-20 Martin Liska <mliska@suse.cz>
23454
23455 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23456 to 10.
23457
23458 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23459
23460 * tree-vect-stmts.c (enum scan_store_kind): New type.
23461 (scan_store_can_perm_p): Change last argument from int * to
23462 vec<enum scan_store_kind> *, record precisely which permutations
23463 need whole vector left shift or that plus VEC_COND_EXPR.
23464 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23465 and additional VEC_COND_EXPR only for those iterations that need it.
23466
23467 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23468
23469 * config.gcc: Fix ARM --with-fpu checking and error message.
23470
23471 2019-06-19 Marek Polacek <polacek@redhat.com>
23472
23473 PR c++/60364 - noreturn after first decl not diagnosed.
23474 * attribs.c (get_attribute_namespace): No longer static.
23475 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23476 attributes.
23477 (attr_noreturn_exclusions): Make it extern.
23478 * attribs.h (get_attribute_namespace): Declare.
23479 * tree-inline.c (function_attribute_inlinable_p): Use
23480 get_attribute_name.
23481
23482 2019-06-19 Martin Sebor <msebor@redhat.com>
23483
23484 PR tree-optimization/90626
23485 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23486
23487 PR tree-optimization/90626
23488 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23489 (handle_builtin_string_cmp): Call it.
23490
23491 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23492
23493 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23494 and DARWIN_NOPIE_SPEC.
23495 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23496 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23497 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23498 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23499 (DARWIN_EXPORT_DYNAMIC): Delete.
23500 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23501 and pie options processing to darwin.h.
23502 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23503
23504 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23505
23506 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23507 in computing the number of options to be moved.
23508
23509 2019-06-19 Maya Rashish <coypu@sdf.org>
23510
23511 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23512 (CLEAR_INSN_CACHE) Use it.
23513
23514 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23515
23516 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23517
23518 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23519
23520 PR middle-end/84521
23521 * builtins.c (expand_builtin_setjmp_setup): Save
23522 hard_frame_pointer_rtx.
23523 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23524 restore fp.
23525 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23526 non-local goto.
23527 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23528 elimination code.
23529 (remove_reg_equal_offset_note): Remove unused function.
23530 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23531 code.
23532 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23533 (arc_builtin_setjmp_frame_value): Remove function.
23534 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23535 (avr_builtin_setjmp_frame_value): Remove function.
23536 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23537 (ix86_builtin_setjmp_frame_value): Remove function.
23538 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23539 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23540 (sparc_builtin_setjmp_frame_value): Remove function.
23541 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23542 (vax_builtin_setjmp_frame_value): Remove function.
23543 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23544 pointer if has_nonlocal_label.
23545
23546 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23547
23548 * doc/md.texi: Document vec_shl_<mode> pattern.
23549 * optabs.def (vec_shl_optab): New optab.
23550 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23551 argument, if == vec_shl_optab, check for left whole vector shift
23552 pattern rather than right shift.
23553 (expand_vec_perm_const): Add vec_shl_optab support.
23554 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23555 in the comment.
23556 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23557 can be handled by vec_shl_optab.
23558 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23559 (check_scan_store): Use it.
23560 (vectorizable_scan_store): If target can't do normal permutations,
23561 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23562 after it.
23563 * config/i386/sse.md (vec_shl_<mode>): New expander.
23564
23565 * omp-low.c (lower_rec_input_clauses): Handle references properly
23566 in inscan clauses.
23567 (lower_omp_scan): Likewise.
23568
23569 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23570
23571 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23572 mem_mode is BLKmode.
23573
23574 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23575
23576 PR target/90922
23577 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23578 pointer adjustment for the case of no callee-saved registers and
23579 stack frame bigger than 128 bytes.
23580
23581 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23582
23583 PR middle-end/90862
23584 * omp-low.c (check_omp_nesting_restrictions): Handle
23585 GF_OMP_TARGET_KIND_OACC_DECLARE.
23586
23587 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23588
23589 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23590 (@add<mode>3_carry): Rename from add<mode>3_carry.
23591 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23592 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23593 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23594 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23595 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23596 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23597 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23598 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23599 (cmpstrnsi): Use gen_cmp_1.
23600 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23601 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23602 (@umonitor_<mode>): Rename from umonitor_<mode>.
23603 * config/i386/i386-expand.c (ix86_expand_copysign):
23604 Use gen_copysign3_const and gen_copysign3_var.
23605 (ix86_expand_xorsign): Use gen_xorsign3_1.
23606 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23607 gen_sub3_carry_ccgz and gen_cmp1.
23608 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23609 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23610 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23611 (ix86_split_lshr): Ditto.
23612 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23613
23614 2019-06-18 Jason Merrill <jason@redhat.com>
23615
23616 * tree.c (build_constructor): Add MEM_STAT_DECL.
23617
23618 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23619
23620 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23621 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23622 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23623 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23624 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23625 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23626 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23627 Use CC_NZC instead of CC.
23628 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23629 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23630 (aarch64_print_operand): Handle E_CC_NZCmode.
23631 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23632 of gen_set_clobber_cc.
23633
23634 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23635
23636 * config/aarch64/aarch64-sve.md: Tabify file.
23637
23638 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23639
23640 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23641 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23642 * config/aarch64/aarch64-sve.md: Use it.
23643
23644 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23645
23646 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23647 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23648 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23649 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23650 (aarch64_expand_sve_vec_cmp_int): Use it.
23651 (aarch64_expand_sve_vec_cmp_float): Likewise.
23652 * config/aarch64/aarch64-sve.md: Likewise throughout.
23653
23654 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23655 Kugan Vivekanandarajah <kuganv@linaro.org>
23656
23657 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23658 (*cond_<optab><mode>_z): Fold into...
23659 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23660 operand 4 can be tied to operand 0 (either inherently or via RA).
23661
23662 2019-06-18 Richard Biener <rguenther@suse.de>
23663
23664 PR debug/90900
23665 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23666 as if optimized away.
23667
23668 2019-06-18 Tom de Vries <tdevries@suse.de>
23669
23670 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23671 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23672 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23673 Rename to ...
23674 (define_insn "@set_softstack_<mode>"): ... this.
23675 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23676 (define_insn "@omp_simt_enter_<mode>"): ... this.
23677 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23678 (define_insn "@omp_simt_exit_<mode>"): ... this.
23679
23680 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23681
23682 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23683 vf parameter. Restore the previous iv step of nscalars_step,
23684 but give it iv_type rather than compare_type. Tweak code order
23685 to match the comments.
23686 (vect_set_loop_condition_masked): Update accordingly.
23687 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23688 for iv_precision. Tweak comment formatting.
23689
23690 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23691
23692 * config/darwin.c: Strip trailing whitespace.
23693
23694 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23695
23696 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23697 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23698
23699 2019-06-18 Martin Jambor <mjambor@suse.cz>
23700
23701 PR ipa/90889
23702 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23703 caller does not have flag_ipa_cp set.
23704
23705 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23706
23707 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23708 from "*fold_left_plus_<mode>", updated operands order.
23709 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23710 * internal-fn.c (mask_fold_left_direct): New define.
23711 (expand_mask_fold_left_optab_fn): Likewise.
23712 (direct_mask_fold_left_optab_supported_p): Likewise.
23713 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23714 * optabs.def (mask_fold_left_plus_optab): New optab.
23715 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23716 masked internal_fn for a reduction ifn.
23717 (vectorize_fold_left_reduction): Add support for masking reductions.
23718
23719 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23720
23721 PR middle-end/80791
23722 * target.def (predict_doloop_p): New hook.
23723 * targhooks.h (default_predict_doloop_p): New declaration.
23724 * targhooks.c (default_predict_doloop_p): New function.
23725 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23726 * doc/tm.texi: Regenerate.
23727 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23728 (TARGET_PREDICT_DOLOOP_P): New macro.
23729 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23730
23731 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23732
23733 * omp-low.c (struct omp_context): Add scan_inclusive field.
23734 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23735 if inclusive scan.
23736 (struct omplow_simd_context): Add lastlane member.
23737 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23738 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23739 1 or 2 argument.
23740 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23741 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23742 (lower_omp_scan): New function.
23743 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23744 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23745 check 3rd argument if present rather than 2nd.
23746 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23747 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23748 2-bit bitfield.
23749 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23750 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23751 than 2nd.
23752 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23753 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23754 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23755 init.
23756 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23757 IFN_GOMP_SIMD_LANE argument.
23758 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23759 encoded ->aux value.
23760 * tree-vect-stmts.c: Include attribs.h.
23761 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23762 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23763 functions.
23764 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23765 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23766
23767 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23768
23769 PR target/62055
23770 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23771 (*nabs<mode>2_1): Ditto.
23772 (nabs sse-reg splitter): New splitter.
23773 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23774
23775 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23776
23777 PR bootstrap/90873.
23778 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23779 TMR index check.
23780
23781 2019-06-17 Tom de Vries <tdevries@suse.de>
23782
23783 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23784 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23785 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23786 ...
23787 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23788 match_operand 0.
23789 (define_insn "omp_simt_enter_insn"): Rename to ...
23790 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23791 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23792 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23793 gen_omp_simt_enter_si.
23794 (define_expand "omp_simt_exit"): New.
23795 (define_insn "omp_simt_exit"): Rename to ...
23796 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23797 match_operand 0.
23798
23799 2019-06-17 Matthew Green <mrg@eterna.com.au>
23800 Maya Rashish <coypu@sdf.org>
23801
23802 * config.gcc (aarch64*-*-netbsd*): New target.
23803 * config/aarch64/aarch64-netbsd.h: New file.
23804 * config/aarch64/t-aarch64-netbsd: Likewise.
23805
23806 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23807
23808 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23809 the access path from base to first VIEW_CONVERT_EXPR or
23810 BIT_FIELD_REF.
23811
23812 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23813
23814 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23815 access path on BIT_FIELD_REFs.
23816
23817 2019-06-17 Martin Liska <mliska@suse.cz>
23818
23819 PR ipa/90874
23820 * ipa-utils.h (odr_type_p): Remove dead code.
23821
23822 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23823
23824 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23825 alternative Solaris 11.4 format.
23826 * configure: Regenerate.
23827
23828 2019-06-17 Tom de Vries <tdevries@suse.de>
23829
23830 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23831 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23832 match_operand 0.
23833 (define_insn "call_value_insn"): Rename to ...
23834 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23835 match_operand 0.
23836 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23837 DI.
23838
23839 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23840
23841 PR middle-end/64242
23842 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23843 frame clobbers and schedule block.
23844 (builtin_longjmp): Likewise.
23845
23846 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23847
23848 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23849 describe how to perform MSPABI compliant 64-bit shift.
23850 * config/msp430/msp430.md (ashldi3): New define_expand.
23851 (ashrdi3): New define_expand.
23852 (lshrdi3): New define_expand.
23853
23854 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23855
23856 * doc/sourcebuild.texi: Document new effective target keyword
23857 longlong64.
23858
23859 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23860
23861 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23862 indirect_refs_may_alias_p): Revert accidental commits.
23863
23864 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23865 at the end of structures.
23866
23867 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23868
23869 * config/darwin.c (machopic_indirect_call_target): Use renamed
23870 darwin_picsymbol_stubs to decide on output.
23871 (darwin_override_options): Handle darwin_picsymbol_stubs.
23872 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23873 (LD64_VERSION): Revise default.
23874 * config/darwin.opt: (mpic-symbol-stubs): New option.
23875 (darwin_picsymbol_stubs): New variable.
23876 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23877 rename to TARGET_MACHO_PICSYM_STUBS.
23878 * config/i386/i386.c (output_pic_addr_const): Likewise.
23879 * config/i386/i386.h Likewise.
23880 * config/rs6000/darwin.h: Likewise.
23881 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23882 darwin_picsymbol_stubs.
23883
23884 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23885
23886 * config/darwin.opt (prebind, noprebind, seglinkedit,
23887 noseglinkedit): Add RejectNegative.
23888
23889 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23890
23891 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23892 in my previous patch.
23893
23894 2019-06-16 Tom de Vries <tdevries@suse.de>
23895
23896 PR tree-optimization/89376
23897 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23898
23899 2019-06-15 Maya Rashish <coypu@sdf.org>
23900
23901 * doc/invoke.texi (Spec Files): Update location of the
23902 Fortran spec file.
23903
23904 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23905
23906 * doc/extend.texi (Common Function Attributes): Clarify
23907 no_sanitize. Fix grammar.
23908
23909 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23910
23911 * tree-ssa-alias.c (alias_stats): Add
23912 nonoverlapping_component_refs_p_may_alias,
23913 nonoverlapping_component_refs_p_no_alias,
23914 nonoverlapping_component_refs_of_decl_p_may_alias,
23915 nonoverlapping_component_refs_of_decl_p_no_alias.
23916 (dump_alias_stats): Dump them.
23917 (nonoverlapping_component_refs_of_decl_p): Add stats.
23918 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23919 ARRAY_REF.
23920
23921 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23922
23923 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23924 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23925 only.
23926 (*anddi3_doubleword): Split before reload. Merge with
23927 anddi->zext pre-reload splitter.
23928 (*andndi3_doubleword): Split before reload.
23929 (*<code>di3_doubleword): Ditto.
23930 (*one_cmpldi2_doubleword): Ditto.
23931
23932 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23933
23934 PR middle-end/90779
23935 * gimplify.c: Include omp-offload.h and context.h.
23936 (gimplify_bind_expr): Add "omp declare target" attributes
23937 to static block scope variables inside of target region or target
23938 functions.
23939
23940 2019-06-15 Tom de Vries <tdevries@suse.de>
23941
23942 PR tree-optimization/90009
23943 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23944 Return NULL if bb contains IFN_UNIQUE.
23945
23946 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23947
23948 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23949 (un): New define_mode_attr.
23950 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23951 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23952 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23953 merge into ...
23954 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23955
23956 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23957
23958 * config/darwin.opt: Add RejectNegative where needed, reorder
23959 and add minimal functional descriptions.
23960
23961 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23962
23963 PR rtl-optimization/90765
23964 * calls.c (update_stack_alignment_for_call): New function.
23965 (expand_call): Call update_stack_alignment_for_call when
23966 outgoing parameter is passed in the stack.
23967 (emit_library_call_value_1): Likewise.
23968 * function.c (locate_and_pad_parm): Don't update
23969 stack_alignment_needed and preferred_stack_boundary.
23970
23971 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23972
23973 PR target/90877
23974 * config/i386/i386-features.c
23975 (dimode_scalar_chain::compute_convert_gain): Replace
23976 mmxsse_to_integer with sse_to_integer.
23977 * config/i386/i386.c (ix86_register_move_cost): Verify that
23978 moves between MMX and non-MMX units require secondary memory.
23979 Correct costs of moves between SSE and integer units.
23980 * config/i386/i386.h (processor_costs): Rename cost of moving
23981 SSE register to integer to sse_to_integer. Rename cost of
23982
23983 2019-06-14 Matt Thomas <matt@3am-software.com>
23984 Matthew Green <mrg@eterna.com.au>
23985 Nick Hudson <skrll@netbsd.org>
23986 Maya Rashish <coypu@sdf.org>
23987 Richard Earnshaw <rearnsha@arm.com>
23988
23989 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23990 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23991 * config/arm/netbsd-eabi.h: New file.
23992 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23993 redefining.
23994 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23995 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23996 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23997 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23998
23999 2019-06-14 Richard Biener <rguenther@suse.de>
24000
24001 * tree-loop-distribution.c (classify_partition): Return
24002 whether a reduction appeared in all partitions and do not
24003 stop builtin detection because of this.
24004 (distribute_loop): Sort a non-builtin partition last if
24005 there's a reduction in all partitions and make sure the
24006 partition prevailing as last is not a builtin.
24007
24008 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24009
24010 PR ipa/90401
24011 * ipa-prop.c (add_to_agg_contents_list): New function.
24012 (clobber_by_agg_contents_list_p): Likewise.
24013 (extract_mem_content): Likewise.
24014 (get_place_in_agg_contents_list): Delete.
24015 (determine_known_aggregate_parts): Renamed from
24016 determine_locally_known_aggregate_parts. New parameter
24017 aa_walk_budget_p.
24018
24019 2019-06-13 Martin Sebor <msebor@redhat.com>
24020
24021 PR tree-optimization/90662
24022 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24023 to the same type.
24024
24025 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24026
24027 PR bootstrap/90873
24028 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24029 dbase is not TARGET_MEM_REF.
24030
24031 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24032
24033 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24034 Update all uses.
24035 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24036 Do not generate DImode extends for 32bit targets.
24037 (and->zext post-reload splitter): Use gen_extend_insn
24038 instead of indirect functions.
24039 (anddi->zext pre-reload splitter): New.
24040 (*zext<mode>_doubleword_and): Remove.
24041 (*zext<mode>_doubleword): Ditto.
24042 (*zextsi_doubleword): Dittto.
24043
24044 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24045
24046 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24047 Use gen_sub3_insn instead of indirect function.
24048 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24049 indirect function.
24050 (ix86_adjust_counter): Ditto.
24051
24052 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24053 Lijia He <helijia@linux.ibm.com>
24054
24055 PR tree-optimization/77820
24056 * tree-ssa-threadedge.c
24057 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24058 function.
24059 (thread_across_edge): Add call to
24060 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24061
24062 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24063
24064 * config/darwin-driver.c (validate_macosx_version_min): New.
24065 (darwin_default_min_version): Cleanup and validate supplied version.
24066 (darwin_driver_init): Likewise and push cleaned version into opts.
24067
24068 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24069
24070 PR tree-optimization/90869
24071 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24072 converts in MEM_REF referencing decl rather than view converts
24073 from decl type to MEM_REF type.
24074
24075 2019-06-13 Richard Biener <rguenther@suse.de>
24076
24077 PR tree-optimization/90856
24078 * tree-sra.c (build_ref_for_model): Only use
24079 build_reconstructed_reference when address-spaces are the same.
24080
24081 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24082
24083 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24084 wrap ei variable name in the declaration in ()s.
24085 (nvptx_single): Actually use mode_label variable. Formatting fix.
24086
24087 2019-06-13 Richard Biener <rguenther@suse.de>
24088
24089 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24090 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24091 also return the condition stmt.
24092 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24093 loop we can version and version that, reusing the loop version
24094 created by if-conversion instead of versioning again.
24095
24096 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24097
24098 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24099 may_contain_p.
24100 * tree-vrp (value_range_base::may_contain_p): Call into
24101 value_inside_range.
24102 (value_inside_range): Make private inside value_range_base class.
24103 Take min/max from *this.
24104 (range_includes_p): Remove.
24105 * tree-vrp.h (value_range_base): Add value_inside_range.
24106 (range_includes_p): Remove.
24107 (range_includes_zero_p): Call may_contain_p.
24108 * vr-values.c (compare_range_with_value): Same.
24109
24110 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24111
24112 * doc/extend.texi (ARC Function Attributes): Update info.
24113
24114 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24115
24116 PR tree-optimization/89713
24117 * doc/invoke.texi (-ffinite-loops): Document new option.
24118 * common.opt (-ffinite-loops): New option.
24119 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24120 IFN_GOACC_LOOP calls as necessary.
24121 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24122 is finite.
24123 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24124 IFN_GOACC_LOOP call is not used.
24125 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24126
24127 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24128
24129 PR target/88838
24130 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24131 compare_type is not with Pmode size, we will create an IV with
24132 Pmode size with truncated use (i.e. converted to the correct type).
24133 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24134 (vect_iv_limit_for_full_masking): New. Factored out of
24135 vect_set_loop_condition_masked.
24136 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24137 (vect_iv_limit_for_full_masking): Declare.
24138
24139 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24140
24141 PR target/88834
24142 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24143 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24144 (get_alias_ptr_type_for_ptr_address): Likewise.
24145 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24146 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24147 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24148 allow_reg_index_p.
24149
24150 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24151
24152 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24153
24154 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24155
24156 * common/config/pru/pru-common.c: New file.
24157 * config.gcc: Add PRU target.
24158 * config/pru/alu-zext.md: New file.
24159 * config/pru/constraints.md: New file.
24160 * config/pru/predicates.md: New file.
24161 * config/pru/pru-opts.h: New file.
24162 * config/pru/pru-passes.c: New file.
24163 * config/pru/pru-pragma.c: New file.
24164 * config/pru/pru-protos.h: New file.
24165 * config/pru/pru.c: New file.
24166 * config/pru/pru.h: New file.
24167 * config/pru/pru.md: New file.
24168 * config/pru/pru.opt: New file.
24169 * config/pru/t-pru: New file.
24170 * doc/extend.texi: Document PRU pragmas.
24171 * doc/invoke.texi: Document PRU-specific options.
24172 * doc/md.texi: Document PRU asm constraints.
24173
24174 2019-06-12 Martin Sebor <msebor@redhat.com>
24175
24176 PR middle-end/90676
24177 * tree-pretty-print.c (dump_mem_ref): New function. Include
24178 MEM_REF type in output when different size than operand.
24179 (dump_generic_node): Move code to dump_mem_ref and call it.
24180
24181 2019-06-12 Martin Sebor <msebor@redhat.com>
24182
24183 PR tree-optimization/90662
24184 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24185 to arrays.
24186
24187 2019-06-12 Tom de Vries <tdevries@suse.de>
24188
24189 PR tree-optimization/90009
24190 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24191
24192 2019-06-12 Martin Liska <mliska@suse.cz>
24193
24194 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24195 the created map.
24196 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24197 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24198 Do not sanitize created maps.
24199
24200 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24201
24202 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24203 value_range::singleton_p.
24204 * tree-vrp.c (value_range_constant_singleton): Remove.
24205 * tree-vrp.h (value_range_constant_singleton): Remove.
24206 * vr-values.c (vr_values::singleton): Use
24207 value_range::singleton_p.
24208
24209 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24210
24211 PR target/90811
24212 * cfgexpand.c (align_local_variable): Add really_expand argument,
24213 don't SET_DECL_ALIGN if it is false.
24214 (add_stack_var): Add really_expand argument, pass it through to
24215 align_local_variable.
24216 (expand_one_stack_var_1): Pass true as really_expand to
24217 align_local_variable.
24218 (expand_one_ssa_partition): Pass true as really_expand to
24219 add_stack_var.
24220 (expand_one_var): Pass really_expand through to add_stack_var.
24221
24222 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24223
24224 * config/arm/iterators.md (VABAL): New int iterator.
24225 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24226 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24227 UNSPEC_VABAL_U values.
24228
24229 2019-06-12 Martin Liska <mliska@suse.cz>
24230
24231 * value-prof.c (stream_out_histogram_value): Only first value
24232 can't be negative.
24233
24234 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24235
24236 PR c/90760
24237 * symtab.c (symtab_node::set_section): Allow being called on aliases
24238 as long as they aren't analyzed yet.
24239
24240 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24241
24242 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24243 to `mips_set_text_contents_type' to indicate whether a
24244 non-debug insn follows.
24245
24246 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24247
24248 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24249 enabling -mpcrel by default.
24250 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24251 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24252 that the test against -mcpu=future is done first. Then test if
24253 -mprefixed-addr is on for -mpcrel.
24254 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24255
24256 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24257
24258 PR target/90811
24259 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24260 instead of and.u%d.
24261
24262 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24263
24264 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24265
24266 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24267
24268 PR c++/90449 - add -Winaccessible-base option.
24269 * doc/invoke.texi (Winaccessible-base): Document.
24270
24271 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24272
24273 PR tree-optimization/62041
24274 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24275
24276 2019-06-11 Jason Merrill <jason@redhat.com>
24277
24278 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24279 * tree.c (get_tree_code_name): Likewise.
24280 * print-tree.c (print_node): Only briefly print a node with an
24281 invalid code.
24282
24283 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24284
24285 PR bootstrap/90819
24286 * trans-mem.c (tm_memopt_compute_available): Add assertion
24287 that blocks is not empty. Formatting fix.
24288
24289 2019-06-11 Martin Liska <mliska@suse.cz>
24290
24291 PR c++/87847
24292 * hash-table.h: Extend create_gcc, add one parameter
24293 that is passed into hash_table::hash_table.
24294
24295 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24296
24297 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24298 New prototype.
24299 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24300 Emit clobber also for non-sse operations.
24301 (ix86_split_fp_absneg_operator): New function.
24302 * config/i386/i386.md (SSEMODEF): New mode iterator.
24303 (ssevecmodef): New mode attribute.
24304 (<code>tf2): Use absneg code iterator.
24305 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24306 Add three-operand AVX alternatives.
24307 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24308 Use absneg code iterator and X87MODEF mode iterator.
24309 (absneg fp_reg non-sse splitter): Call absneg code iterator
24310 and X87MODEF mode iterator.
24311 (absneg general_reg non-sse splitter): Use absneg code iterator
24312 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24313 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24314 code iterator. Add three-operand AVX alternative.
24315 (absneg sse_reg splitter): Use absneg code iterator
24316 and SSEMODEF mode iterator. Handle AVX operands.
24317 (absneg fp_reg splitter): Use absneg code iterator
24318 and MODEF mode iterator.
24319 (absneg general_reg splitter): Merge splitters using MODEF mode
24320 iterator. Use absneg code iterator. Call
24321 ix86_split_fp_absneg_operator.
24322 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24323 Do not enable for non-sse modes before reload.
24324 (CSGNMODE): Remove.
24325 (CSGNVMODE): Ditto.
24326 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24327 ssevecmodef mode attribute instaed of CSGNVMODE.
24328 (copysign<mode>3_const): Ditto.
24329 (copysign<mode>3_var): Ditto.
24330 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24331 Use absneg code iterator. Simplify code using std::swap.
24332 * config/i386/predicates.md (absneg_operator): Remove.
24333
24334 2019-06-10 Martin Sebor <msebor@redhat.com>
24335
24336 * gimple-fold.c (get_range_strlen): Update comment that didn't
24337 make it into r267503 or related commits.
24338
24339 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24340
24341 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24342 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24343
24344 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24345
24346 * tree.def (OMP_SCAN): New tree code.
24347 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24348 OMP_CLAUSE_EXCLUSIVE.
24349 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24350 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24351 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24352 OMP_CLAUSE_{IN,EX}CLUSIVE.
24353 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24354 * tree-nested.c (convert_nonlocal_reference_stmt,
24355 convert_local_reference_stmt, convert_gimple_call): Handle
24356 GIMPLE_OMP_SCAN.
24357 * tree-pretty-print.c (dump_omp_clause): Handle
24358 OMP_CLAUSE_{IN,EX}CLUSIVE.
24359 (dump_generic_node): Handle OMP_SCAN.
24360 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24361 * gimple.h (gomp_scan): New type.
24362 (is_a_helper <gomp_scan *>::test,
24363 is_a_helper <const gomp_scan *>::test): New templates.
24364 (gimple_build_omp_scan): Declare.
24365 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24366 gimple_omp_scan_set_clauses): New inline functions.
24367 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24368 * gimple.c (gimple_build_omp_scan): New function.
24369 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24370 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24371 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24372 GIMPLE_OMP_TASKGROUP.
24373 (dump_gimple_omp_scan): New function.
24374 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24375 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24376 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24377 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24378 (is_gimple_stmt): Handle OMP_SCAN.
24379 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24380 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24381 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24382 mentioned in nested #pragma omp scan. Handle
24383 OMP_CLAUSE_{IN,EX}CLUSIVE.
24384 (gimplify_expr): Handle OMP_SCAN.
24385 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24386 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24387 simd constructs.
24388 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24389 GIMPLE_OMP_SCAN.
24390
24391 2019-06-10 Martin Liska <mliska@suse.cz>
24392
24393 * ipa-cp.c (ignore_edge_p): New function.
24394 (build_toporder_info): Use it.
24395 * ipa-inline.c (ignore_edge_p): New function.
24396 (inline_small_functions): Use it.
24397 * ipa-pure-const.c (ignore_edge_for_nothrow):
24398 Verify opt_for_fn for caller and callee.
24399 (ignore_edge_for_pure_const): Likewise.
24400 * ipa-reference.c (ignore_edge_p): Extend to check
24401 for opt_for_fn.
24402 * ipa-utils.c (searchc): Refactor.
24403 * ipa-utils.h: Fix coding style.
24404
24405 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24406
24407 * config/arc/arc.c (arc_rtx_costs): Update costs.
24408
24409 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24410
24411 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24412 (arc_split_ior): Likewise.
24413 (arc_check_mov_const): Likewise.
24414 (arc_split_mov_const): Likewise.
24415 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24416 (arc_rtx_costs): Replace check Crr with Cax constraint.
24417 (prepare_move_operands): Cleanup, remove unused code.
24418 (arc_split_ior): New function.
24419 (arc_check_ior_const): Likewise.
24420 (arc_split_mov_const): Likewise.
24421 (arc_check_mov_const): Likewise.
24422 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24423 in define_insn_and_split pattern.
24424 (iorsi3): Likewise.
24425 (mulsi3_v2): Add new matching variant.
24426 (andsi3_i): Cleanup pattern.
24427 (rotrsi3_cnt1): Update pattern.
24428 (rotrsi3_cnt8): New pattern.
24429 (ashlsi2_cnt8): Likewise.
24430 (ashlsi2_cnt16): Likewise.
24431 * config/arc/constraints.md (C0p): Update constraint.
24432 (Crr): Remove it.
24433 (C0x): New pattern.
24434 (Cax): New pattern.
24435
24436 2019-06-10 Martin Liska <mliska@suse.cz>
24437
24438 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24439 Update coding style.
24440 (sem_item_optimizer::dump_cong_classes):
24441 Print how many items are in a non-singular class. Improve
24442 coding style.
24443
24444 2019-06-10 Martin Liska <mliska@suse.cz>
24445
24446 * value-prof.c (dump_histogram_value): Change dump format.
24447 (gimple_mod_subtract_transform): Remove legacy comment.
24448
24449 2019-06-10 Martin Liska <mliska@suse.cz>
24450
24451 * value-prof.c (dump_histogram_value): Print histogram values
24452 only if present.
24453
24454 2019-06-10 Martin Liska <mliska@suse.cz>
24455
24456 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24457 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24458 * ipa-profile.c (ipa_profile_generate_summary):
24459 Use get_most_common_single_value.
24460 * tree-profile.c (gimple_init_gcov_profiler):
24461 Instrument with __gcov_one_value_profiler_v2
24462 and __gcov_indirect_call_profiler_v4.
24463 * value-prof.c (dump_histogram_value):
24464 Print all values for HIST_TYPE_SINGLE_VALUE.
24465 (stream_out_histogram_value): Update assert for
24466 N values.
24467 (stream_in_histogram_value): Set number of
24468 counters for HIST_TYPE_SINGLE_VALUE.
24469 (get_most_common_single_value): New.
24470 (gimple_divmod_fixed_value_transform):
24471 Use get_most_common_single_value.
24472 (gimple_ic_transform): Likewise.
24473 (gimple_stringops_transform): Likewise.
24474 (gimple_find_values_to_profile): Set number
24475 of counters for HIST_TYPE_SINGLE_VALUE.
24476 * value-prof.h (get_most_common_single_value): New.
24477
24478 2019-06-10 Martin Liska <mliska@suse.cz>
24479
24480 * hash-map.h: Pass default value to hash_table ctor.
24481 * hash-table.h: Add default value to call of a ctor.
24482
24483 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24484
24485 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24486 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24487
24488 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24489
24490 PR target/90751
24491 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24492 Call pa_output_function_label.
24493 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24494 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24495 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24496 to declaration.
24497 (pa_linux_output_function_prologue): Declare.
24498 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24499 (pa_output_function_label): New.
24500 (pa_output_function_prologue): Revise to use pa_output_function_label.
24501 (pa_linux_output_function_prologue): New.
24502 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24503
24504 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24505
24506 * tree-vrp.h (value_range_base::intersect): New.
24507 (value_range::intersect_helper): Move from here...
24508 (value_range_base::intersect_helper): ...to here.
24509 * tree-vrp.c (value_range::intersect_helper): Rename to...
24510 (value_range_base::intersect_helper): ...this, and rewrite to
24511 return a value instead of modifying THIS in place.
24512 Also, move equivalence handling...
24513 (value_range::intersect): ...here, while calling intersect_helper.
24514 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24515 calling intersect.
24516 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24517 Same.
24518 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24519
24520 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24521
24522 * Makefile.in (genprogerr): Add condmd.
24523 (genprog): Remove it here.
24524
24525 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24526
24527 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24528
24529 2019-06-07 Richard Biener <rguenther@suse.de>
24530
24531 PR debug/90574
24532 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24533 that appear after user labels.
24534
24535 2019-06-07 Martin Liska <mliska@suse.cz>
24536
24537 * cselib.c (cselib_init): Disable hash table
24538 sanitization.
24539 * hash-set.h: Pass new default argument to m_table.
24540 * hash-table.c: Add global variable with hash table
24541 sanitization limit.
24542 * hash-table.h (Allocator>::hash_table): Add new argument
24543 to ctor.
24544 (hashtab_chk_error): New.
24545 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24546 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24547 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24548
24549 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24550
24551 * common.opt (flto-odr-type-merging): Ignore.
24552 * invoke.texi (-flto-odr-type-merging): Remove.
24553 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24554 (can_be_vtable_hashed_p): Remove.
24555 (hash_odr_vtable): Remove.
24556 (odr_vtable_hasher::hash): Remove.
24557 (types_same_for_odr): Remove.
24558 (types_odr_comparable): Remove.
24559 (odr_vtable_hasher::equal): Remove.
24560 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24561 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24562 (get_odr_type): Do not use vtable hash.
24563 (dump_odr_type): Remove commented out code.
24564 (build_type_inheritance_graph): Do not allocate vtable hash.
24565 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24566 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24567 (odr_type_p): Likewise.
24568 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24569 test.
24570
24571 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24572
24573 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24574 immediately after same_types_for_tbaa_p returns -1 and continue
24575 looking for possible exact match; if matching types are arrays
24576 watch for partial overlaps.
24577 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24578 (indirect_refs_may_alias_p): Do type based disambiguation first;
24579 update comment.
24580
24581 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24582
24583 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24584
24585 2019-06-07 Martin Liska <mliska@suse.cz>
24586
24587 * doc/invoke.texi: Remove param.
24588 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24589 Remove.
24590 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24591 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24592 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24593 * profile.c (instrument_values): Remove
24594 HIST_TYPE_INDIR_CALL_TOPN.
24595 * tree-profile.c (init_ic_make_global_vars):
24596 Always build __gcov_indirect_call only.
24597 (gimple_init_gcov_profiler): Remove usage
24598 of PARAM_INDIR_CALL_TOPN_PROFILE.
24599 (gimple_gen_ic_profiler): Likewise.
24600 * value-prof.c (dump_histogram_value): Likewise.
24601 (stream_in_histogram_value): Likewise.
24602 (gimple_indirect_call_to_profile): Likewise.
24603 (gimple_find_values_to_profile): Likewise.
24604 * value-prof.h (enum hist_type): Likewise.
24605
24606 2019-06-07 Martin Liska <mliska@suse.cz>
24607
24608 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24609 function.
24610
24611 2019-06-07 Martin Liska <mliska@suse.cz>
24612
24613 PR tree-optimization/78902
24614 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24615 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24616 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24617 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24618 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24619 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24620 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24621 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24622 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24623 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24624 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24625 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24626 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24627 New.
24628 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24629 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24630 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24631 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24632 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24633 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24634 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24635 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24636 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24637 warn_unused_result attribute.
24638 (BUILT_IN_STRDUP): Likewise.
24639 (BUILT_IN_STRNDUP): Likewise.
24640 (BUILT_IN_ALLOCA): Likewise.
24641 (BUILT_IN_CALLOC): Likewise.
24642 (BUILT_IN_MALLOC): Likewise.
24643 (BUILT_IN_REALLOC): Likewise.
24644
24645 2019-06-06 Jim Wilson <jimw@sifive.com>
24646
24647 PR target/89955
24648 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24649 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24650 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24651
24652 2019-06-06 Martin Sebor <msebor@redhat.com>
24653
24654 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24655 (handle_builtin_malloc): Remove trailing spaces.
24656 (handle_builtin_memset): Same.
24657 (handle_builtin_memcmp): Same.
24658 (compute_string_length): Same.
24659 (determine_min_objsize): Same.
24660 (handle_builtin_string_cmp): Same.
24661 (handle_char_store): Same. Break up excessively long line.
24662
24663 2019-06-06 Martin Jambor <mjambor@suse.cz>
24664
24665 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24666 check.
24667
24668 2019-06-06 Martin Jambor <mjambor@suse.cz>
24669
24670 * tree-sra.c (struct access): New field grp_same_access_path.
24671 (dump_access): Dump it.
24672 (build_reconstructed_reference): New function.
24673 (build_ref_for_model): Use it if possible.
24674 (path_comparable_for_same_access): New function.
24675 (same_access_path_p): Likewise.
24676 (sort_and_splice_var_accesses): Set the new flag.
24677 (analyze_access_subtree): Likewise.
24678 (propagate_subaccesses_across_link): Propagate zero value of the new
24679 flag down the access tree.
24680
24681 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24682
24683 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24684 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24685 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24686 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24687 Add gfx906.
24688
24689 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24690
24691 PR tree-optimization/90332
24692 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24693 Handle VALS containing two vectors.
24694 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24695 to...
24696 (@aarch64_combinez<mode>): ... This.
24697 (*aarch64_combinez_be<mode>): Rename to...
24698 (@aarch64_combinez_be<mode>): ... This.
24699 (vec_init<mode><Vhalf>): New define_expand.
24700 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24701
24702 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24703
24704 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24705 library functions only when not optimizing for size.
24706 (ashlsi3): Likewise.
24707 (ashrhi3): Likewise.
24708 (ashrsi3): Likewise.
24709 (lshrhi3): Likewise.
24710 (lshrsi3): Likewise.
24711
24712 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24713
24714 PR rtl-optimization/88751
24715 * ira.c (ira): Use the number of the actually referenced registers
24716 when calculating the threshold.
24717
24718 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24719
24720 * configure: Regenerate.
24721
24722 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24723
24724 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24725 register if it is in memory, so the shift can be emulated with a rotate
24726 instruction.
24727 (ashrhi3): Likewise.
24728 (lshrhi3): Likewise.
24729
24730 2019-06-06 Martin Liska <mliska@suse.cz>
24731
24732 PR tree-optimization/87954
24733 * match.pd: Simplify mult where both arguments are 0 or 1.
24734
24735 2019-06-06 Richard Biener <rguenther@suse.de>
24736
24737 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24738 put equivalences on UNDEFINED ranges.
24739 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24740 Make sure to drop defs of stmts added during simplification
24741 to VARYING.
24742
24743 2019-06-06 Richard Biener <rguenther@suse.de>
24744
24745 * tree-ssa-structalias.c: Include tree-cfg.h.
24746 (make_heapvar): Do not make heap vars artificial.
24747 (find_func_aliases_for_builtin_call): Handle stack allocation
24748 functions.
24749 (find_func_aliases): Delay processing of simple enough returns
24750 in non-IPA mode.
24751 (set_uids_in_ptset): Adjust.
24752 (find_what_var_points_to): Likewise.
24753 (solve_constraints): Do not dump points-to sets here.
24754 (compute_points_to_sets): Post-process return statements,
24755 amending the escaped solution. Dump points-to sets afterwards.
24756 (ipa_pta_execute): Dump points-to sets.
24757
24758 2019-06-06 Martin Liska <mliska@suse.cz>
24759
24760 PR web/87933
24761 * doc/install.texi: Fix HTML headers and
24762 titles for 'Installing GCC' pages.
24763
24764 2019-06-06 Martin Liska <mliska@suse.cz>
24765
24766 * ipa-icf-gimple.h (dump_message_1): Remove.
24767 (dump_message): Likewise.
24768 (return_false_with_message_1): Print also file.
24769 (return_false_with_msg): Likewise.
24770 (return_with_result): Likewise.
24771 (return_with_debug): Likewise.
24772 * ipa-icf.c (sem_function::equals_private): Remove call
24773 to dump_message.
24774
24775 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24776
24777 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24778 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24779 memory operand for it.
24780 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24781
24782 2019-06-05 Martin Sebor <msebor@redhat.com>
24783
24784 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24785 Adjust quoting and hyphenation.
24786 * convert.c (convert_to_real_1): Same.
24787 * gcc.c (driver_wrong_lang_callback): Same.
24788 (driver::handle_unrecognized_options): Same.
24789 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24790 * opts-common.c (cmdline_handle_error): Same.
24791 (read_cmdline_option): Same.
24792 * opts-global.c (complain_wrong_lang): Same.
24793 (print_ignored_options): Same.
24794 (handle_common_deferred_options): Same.
24795 * pretty-print.h: Same.
24796 * print-rtl.c (debug_bb_n_slim): Same.
24797 * sched-rgn.c (make_pass_sched_fusion): Same.
24798 * tree-cfg.c (verify_gimple_assign_unary): Same.
24799 (verify_gimple_label): Same.
24800 * tree-ssa-operands.c (verify_ssa_operands): Same.
24801 * varasm.c (do_assemble_alias): Same.
24802 (assemble_alias): Same.
24803
24804 2019-06-05 Richard Henderson <rth@twiddle.net>
24805
24806 * config/alpha/alpha.c (direct_return): Move down after
24807 struct machine_function definition; use saved frame_size;
24808 return bool.
24809 (struct machine_function): Add sa_mask, sa_size, frame_size.
24810 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24811 (alpha_compute_frame_layout): ... new function.
24812 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24813 (alpha_initial_elimination_offset): Use saved sa_size.
24814 (alpha_vms_initial_elimination_offset): Likewise.
24815 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24816 (alpha_expand_prologue): Use saved frame data. Merge integer
24817 and fp register save loops.
24818 (alpha_expand_epilogue): Likewise.
24819 (alpha_start_function): Use saved frame data.
24820 * config/alpha/alpha-protos.h (direct_return): Update.
24821 (alpha_sa_size): Remove.
24822
24823 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24824
24825 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24826 multiplication by a power-of-two value.
24827 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24828 and turn the modulo operation into a masking operation.
24829
24830 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24831
24832 PR debug/90733
24833 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24834 with VOIDmode inner operands.
24835
24836 2019-06-05 Richard Biener <rguenther@suse.de>
24837
24838 PR middle-end/90726
24839 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24840 turn an expression graph into a tree.
24841
24842 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24843
24844 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24845 member.
24846 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24847 treat it like explicit monotonic schedule modifier.
24848 (expand_omp_for): Initialize has_lastprivate_conditional.
24849 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24850 schedule modifier.
24851
24852 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24853 references, lookup in in hash map MEM_REF operand instead of the
24854 MEM_REF itself.
24855 (lower_omp_1): When looking for lastprivate conditional assignments,
24856 handle MEM_REFs with REFERENCE_TYPE operands.
24857
24858 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24859 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24860 and references a VLA. Handle references to non-VLAs if is_simd
24861 all privatization clauses like reductions.
24862 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24863 If omp_is_reference, use always omp simd arrays and set
24864 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24865 fails, emit reference initialization.
24866
24867 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24868
24869 PR target/89803
24870 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24871 _mm_mask_fpclass_sd_mask): New intrinsics.
24872 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24873 * config/i386/i386-builtin.def
24874 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24875 New builtins.
24876 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24877 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24878 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24879 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24880 case QI_FTYPE_V2SF_INT): Ditto.
24881 * config/i386/sse.md
24882 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24883 Extended to insnstructions with mask operands.
24884
24885 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24886
24887 * config/rs6000/constraints.md (define_register_constraint "wp"):
24888 Delete.
24889 (define_register_constraint "wq"): Delete.
24890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24891 (rs6000_init_hard_regno_mode_ok): Adjust.
24892 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24893 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24894 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24895 (define_mode_attr VSa): Delete.
24896 (define_mode_attr VSisa): New.
24897 (rest of file): Adjust.
24898 * doc/md.texi (Machine Constraints): Adjust.
24899
24900 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24901
24902 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24903 (define_attr "enabled"): Handle those new isa values.
24904
24905 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24906
24907 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24908 (define_mode_attr VSr5): Delete.
24909 (define_mode_attr VStype_sqrt): Delete.
24910 (define_mode_iterator VSX_SPDP): Delete.
24911 (define_mode_attr VS_spdp_res): Delete.
24912 (define_mode_attr VS_spdp_insn): Delete.
24913 (define_mode_attr VS_spdp_type): Delete.
24914 (*vsx_sqrt<mode>2): Adjust.
24915 (vsx_<VS_spdp_insn>): Delete, split to...
24916 (vsx_xscvdpsp): ... this. New. And...
24917 (vsx_xvcvspdp): ... this. New. And...
24918 (vsx_xvcvdpsp): ... this. New.
24919
24920 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24921
24922 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24923 and V2DF.
24924 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24925 (rest of file): Adjust.
24926
24927 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24928
24929 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24930 (vsx_extract_<mode>_var): Ditto.
24931
24932 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24933
24934 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24935 with just "wa".
24936
24937 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24938
24939 * config/rs6000/constraints.md (define_register_constraint "ww"):
24940 Delete.
24941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24942 (rs6000_init_hard_regno_mode_ok): Adjust.
24943 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24944 RS6000_CONSTRAINT_ww.
24945 * config/rs6000/rs6000.md: Adjust.
24946 * config/rs6000/vsx.md: Adjust.
24947 * doc/md.texi (Machine Constraints): Adjust.
24948
24949 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24950
24951 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24952 (define_mode_attr sd): New.
24953 (define_mode_attr s): New.
24954 (define_mode_attr Ftrad): Delete.
24955 (define_mode_attr Fvsx): Delete.
24956 (define_mode_attr Fs): Delete.
24957 (rest of file): Use the new mode attributes.
24958 * config.rs6000/vsx.md: Use the new mode attributes.
24959
24960 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24961
24962 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24963 with just "wa".
24964
24965 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24966
24967 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24968 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24969 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24970
24971 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24972
24973 PR target/78263
24974 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24975 C++ with strict ANSI requirements.
24976
24977 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24978
24979 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24980 computations when step is 1.
24981
24982 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24983
24984 * config/rs6000/constraints.md (define_register_constraint "wf"):
24985 Delete.
24986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24987 (rs6000_init_hard_regno_mode_ok): Adjust.
24988 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24989 RS6000_CONSTRAINT_wf.
24990 * config/rs6000/rs6000.md: Adjust.
24991 * config/rs6000/vsx.md: Adjust.
24992 * doc/md.texi (Machine Constraints): Adjust.
24993
24994 2019-06-04 Andrew Pinski <apinski@marvell.com>
24995
24996 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24997 Fix ILP32 value.
24998
24999 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25000
25001 * config/rs6000/constraints.md (define_register_constraint "wd"):
25002 Delete.
25003 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25004 (rs6000_init_hard_regno_mode_ok): Adjust.
25005 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25006 RS6000_CONSTRAINT_wd.
25007 * config/rs6000/rs6000.md: Adjust.
25008 * config/rs6000/vsx.md: Adjust.
25009 * doc/md.texi (Machine Constraints): Adjust.
25010
25011 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25012
25013 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25014 (rest of file): Adjust.
25015
25016 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25017
25018 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25019 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25020 (vsx_splat_<mode>_reg): Adjust.
25021
25022 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25023
25024 * config/rs6000/constraints.md (define_register_constraint "ws"):
25025 Delete.
25026 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25027 (rs6000_init_hard_regno_mode_ok): Adjust.
25028 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25029 RS6000_CONSTRAINT_ws.
25030 * config/rs6000/rs6000.md: Adjust.
25031 * config/rs6000/vsx.md: Adjust.
25032 * doc/md.texi (Machine Constraints): Adjust.
25033
25034 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25035
25036 * config/rs6000/constraints.md (define_register_constraint "wv"):
25037 Delete.
25038 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25039 (rs6000_init_hard_regno_mode_ok): Adjust.
25040 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25041 RS6000_CONSTRAINT_wv.
25042 * config/rs6000/rs6000.md: Adjust.
25043 * config/rs6000/vsx.md: Adjust.
25044 * doc/md.texi (Machine Constraints): Adjust.
25045
25046 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25047
25048 * config/rs6000/constraints.md (define_register_constraint "wi"):
25049 Delete.
25050 (define_register_constraint "wt"): Delete.
25051 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25052 (rs6000_init_hard_regno_mode_ok): Adjust.
25053 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25054 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25055 * config/rs6000/rs6000.md: Adjust.
25056 * config/rs6000/vsx.md: Adjust.
25057 * doc/md.texi (Machine Constraints): Adjust.
25058
25059 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25060
25061 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25062 const.
25063 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25064 default_elf_asm_output_external.
25065
25066 2019-06-04 Martin Liska <mliska@suse.cz>
25067
25068 * ipa-icf.c (INCLUDE_LIST): Remove.
25069 (sem_item_optimizer::execute): Remove call to init_wpa.
25070 * ipa-icf.h (init_wpa): Remove.
25071
25072 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25073
25074 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25075 conditional on combined for simd.
25076 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25077 member.
25078 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25079 constructs, don't remove lastprivate_conditional_map, but instead set
25080 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25081 to parent construct temporaries.
25082 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25083 like !ctx->lastprivate_conditional_map.
25084 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25085 use up->outer context instead of up.
25086 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25087 gimple_omp_for_combined_p.
25088 (expand_omp_for_static_nochunk): Likewise.
25089 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25090 probably moved over into expand_omp_for_generic rather than being copied
25091 there.
25092
25093 2019-06-04 Martin Liska <mliska@suse.cz>
25094
25095 * value-prof.c (dump_histogram_value): Fix typo.
25096 (gimple_mod_subtract_transform): Likewise.
25097
25098 2019-06-04 Richard Biener <rguenther@suse.de>
25099
25100 PR middle-end/90726
25101 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25102 (tree_contains_chrecs): Likewise.
25103 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25104 exponential behaivor from ...
25105 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25106 ... here.
25107 (expression_expensive_p): Avoid exponential behavior and compute
25108 expanded size, rejecting any expansion.
25109 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25110 (idx_contains_abnormal_ssa_name_p): Likewise.
25111 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25112 (contains_abnormal_ssa_name_p): Simplify and use
25113 walk_tree_without_duplicates.
25114
25115 2019-06-04 Richard Biener <rguenther@suse.de>
25116
25117 PR tree-optimization/90738
25118 Revert
25119 2019-06-03 Richard Biener <rguenther@suse.de>
25120
25121 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25122 full reference tree and record in ref->ref.
25123 (vn_reference_lookup_3): Pass in original ref to
25124 ao_ref_init_from_vn_reference.
25125 (vn_reference_lookup): Likewise.
25126 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25127 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25128 Handle non-decl bases in the original reference.
25129
25130 2019-06-04 Martin Liska <mliska@suse.cz>
25131
25132 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25133 number of references.
25134 (sem_item_optimizer::do_congruence_step):
25135 (sem_item_optimizer::worklist_push): Dump how references
25136 a class has.
25137 (sem_item_optimizer::worklist_pop): Use heap.
25138 (sem_item_optimizer::process_cong_reduction): Likewise.
25139 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25140
25141 2019-06-04 Martin Liska <mliska@suse.cz>
25142
25143 * ipa-icf.h (struct sem_usage_pair_hash): New.
25144 (sem_usage_pair_hash::hash): Likewise.
25145 (sem_usage_pair_hash::equal): Likewise.
25146 (struct sem_usage_hash): Likewise.
25147 * ipa-icf.c (sem_item::sem_item): Initialize
25148 referenced_by_count.
25149 (sem_item::add_reference): Register a reference
25150 in ref_map and not in target->usages.
25151 (sem_item::setup): Remove initialization of
25152 dead vectors.
25153 (sem_item::~sem_item): Remove usage of dead vectors.
25154 (sem_item::dump): Remove dump of references.
25155 (sem_item_optimizer::sem_item_optimizer): Initialize
25156 m_references.
25157 (sem_item_optimizer::read_section): Remove useless
25158 dump.
25159 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25160 (sem_item_optimizer::build_graph): Pass m_references
25161 to ::add_reference.
25162 (sem_item_optimizer::verify_classes): Remove usage of dead
25163 vectors.
25164 (sem_item_optimizer::traverse_congruence_split): Return true
25165 when a class is split.
25166 (sem_item_optimizer::do_congruence_step_for_index): Use
25167 hash_map for look up of (sem_item *, index). That brings
25168 significant speed up.
25169 (sem_item_optimizer::do_congruence_step): Return true
25170 when a split is done.
25171 (congruence_class::is_class_used): Use referenced_by_count.
25172
25173 2019-06-04 Alan Modra <amodra@gmail.com>
25174
25175 PR target/90689
25176 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25177 error.
25178
25179 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25180
25181 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25182 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25183 (rs6000_secondary_reload_simple_move): Adjust.
25184 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25185 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25186 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25187 comment.
25188 (power6x): Adjust.
25189 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25190 (floatunssi<mode>2_lfiwzx): Adjust.
25191 (fix_trunc<mode>si2_stfiwx): Adjust.
25192 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25193 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25194 (mfpgpr): Mark as deprecated.
25195 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25196 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25197 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25198
25199 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25200
25201 * config/rs6000/constraints.md (define_register_constraint "wg"):
25202 Delete.
25203 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25204 RS6000_CONSTRAINT_wg.
25205 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25206 (rs6000_init_hard_regno_mode_ok): Adjust.
25207 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25208 Delete "wg" alternatives.
25209 * doc/md.texi (Machine Constraints): Adjust.
25210
25211 2019-06-03 Alan Modra <amodra@gmail.com>
25212
25213 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25214 (get_uncond_jump_length): Assert length less than INT_MAX and
25215 non-negative.
25216
25217 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25218
25219 PR middle-end/64242
25220 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25221 block.
25222 (expand_builtin_nonlocal_goto): Likewise.
25223
25224 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25225
25226 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25227 (aarch64_asm_output_external): Declare.
25228 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25229 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25230 (aarch64_asm_output_alias): New.
25231 (aarch64_asm_output_external): New.
25232 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25233 (ASM_OUTPUT_EXTERNAL): Define.
25234
25235 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25236 * tree-vrp.h (value_range_base::nonzero_p): New.
25237 (value_range_base::set_nonnull): Rename to...
25238 (value_range_base::set_nonzero): ...this.
25239 (value_range_base::set_null): Rename to...
25240 (value_range_base::set_zero): ...this.
25241 (value_range::set_nonnull): Remove.
25242 (value_range::set_null): Remove.
25243 * tree-vrp.c (range_is_null): Remove.
25244 (range_is_nonnull): Remove.
25245 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25246 instead of range_is_*null.
25247 (extract_range_from_unary_expr): Same.
25248 (value_range_base::set_nonnull): Rename to...
25249 (value_range_base::set_nonzero): ...this.
25250 (value_range::set_nonnull): Remove.
25251 (value_range_base::set_null): Rename to...
25252 (value_range_base::set_zero): ...this.
25253 (value_range::set_null): Remove.
25254 (extract_range_from_binary_expr): Rename set_*null uses to
25255 set_*zero.
25256 (extract_range_from_unary_expr): Same.
25257 (union_helper): Same.
25258 * vr-values.c (get_value_range): Use set_*zero instead of
25259 set_*null.
25260 (vr_values::extract_range_from_binary_expr): Same.
25261 (vr_values::extract_range_basic): Same.
25262
25263 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25264
25265 PR driver/90684
25266 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25267
25268 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25269
25270 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25271 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25272 Rename to...
25273 (aarch64_<su>abd<mode>_3): ... This.
25274 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25275
25276 2019-06-03 Richard Biener <rguenther@suse.de>
25277
25278 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25279 full reference tree and record in ref->ref.
25280 (vn_reference_lookup_3): Pass in original ref to
25281 ao_ref_init_from_vn_reference.
25282 (vn_reference_lookup): Likewise.
25283 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25284 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25285 Handle non-decl bases in the original reference.
25286
25287 2019-06-03 Martin Liska <mliska@suse.cz>
25288
25289 * doc/generic.texi: Remove Java Trees.
25290
25291 2019-06-03 Martin Liska <mliska@suse.cz>
25292
25293 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25294 returns 0 when operands are equal.
25295
25296 2019-06-03 Richard Biener <rguenther@suse.de>
25297
25298 PR tree-optimization/90716
25299 * tree-loop-distribution.c (destroy_loop): Process blocks in
25300 correct order.
25301
25302 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25303
25304 PR target/88837
25305 * vector-builder.h (vector_builder::count_dups): New method.
25306 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25307 Declare prototype.
25308 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25309 (vec_init<mode><Vel>): New pattern.
25310 * config/aarch64/aarch64.c (emit_insr): New function.
25311 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25312 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25313 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25314 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25315
25316 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25317
25318 PR tree-optimization/90681
25319 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25320 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25321 special case for SLP, but fail on non-groupped loads.
25322
25323 2019-06-03 Martin Liska <mliska@suse.cz>
25324
25325 * cfg.c (debug): Use TDF_DETAILS for debug and
25326 print edge info only once.
25327
25328 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25329
25330 PR fortran/90539
25331 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25332
25333 2019-06-01 Martin Sebor <msebor@redhat.com>
25334
25335 PR middle-end/90694
25336 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25337
25338 2019-05-31 Jan Hubicka <jh@suse.cz>
25339
25340 * alias.c: Include ipa-utils.h.
25341 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25342 * ipa-devirt.c (prevailing_odr_type): New.
25343 * ipa-utils.h (previaling_odr_type): Declare.
25344
25345 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25346 Hongtao Liu <hongtao.liu@intel.com>
25347
25348 PR target/89355
25349 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25350 NOTE_INSN_DELETED_LABEL check.
25351
25352 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25353 Robert Suchanek <robert.suchanek@mips.com>
25354
25355 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25356 and 3rd operands of the fmadd/fmsub/maddv builtin.
25357
25358 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25359
25360 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25361 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25362 on OMP_SIMD if not nested inside of worksharing loop that also has
25363 lastprivate conditional clause for the same decl.
25364 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25365 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25366 on simd.
25367 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25368 on simd construct.
25369 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25370 on simd construct.
25371 (lower_lastprivate_clauses): Likewise.
25372 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25373 calling lower_rec_input_clauses.
25374 (lower_omp_for): Likewise.
25375 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25376 clause on simd construct.
25377 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25378 OMP_CLAUSE__CONDTEMP_ clause is present.
25379
25380 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25381 ivar and lvar.
25382
25383 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25384
25385 PR c/43673
25386 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25387 TEX_D32, TEX_D64 or TEX_D128.
25388
25389 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25390
25391 * match.pd (~(vec?cst1:cst2)): New transformation.
25392
25393 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25394
25395 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25396 ((size_t)(A /[ex] B) CMP C): New transformation.
25397
25398 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25399
25400 * doc/md.texi: Document define_insn_and_rewrite.
25401 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25402 * gensupport.c (queue_elem): Update comment.
25403 (replace_operands_with_dups): New function.
25404 (gen_rewrite_sequence): Likewise.
25405 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25406 * read-rtl.c (apply_subst_iterator): Likewise.
25407 (add_condition_to_rtx, named_rtx_p): Likewise.
25408 (rtx_reader::read_rtx_operand): Likewise.
25409 * config/aarch64/aarch64-sve.md
25410 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25411 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25412 define_insn_and_rewrite.
25413 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25414 Remove separate define_split.
25415
25416 2019-05-31 Jan Hubicka <jh@suse.cz>
25417
25418 * tree-ssa-alias.c (type_has_components_p): New function.
25419 (aliasing_component_refs_p): Use it.
25420
25421 2019-05-31 Martin Liska <mliska@suse.cz>
25422
25423 * gdbhooks.py: Add const_tree to TreePrinter.
25424
25425 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25426
25427 PR debug/86964
25428 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25429 * doc/invoke.texi (Debugging Options): Document new default of
25430 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25431
25432 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25433
25434 PR tree-optimization/90671
25435 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25436 template_block used to be empty on the first call, don't use
25437 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25438 seq with bb_seq and set it with set_bb_seq.
25439
25440 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25441
25442 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25443
25444 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25445 Michael Meissner <meissner@linux.ibm.com>
25446
25447 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25448 (prefixed_mem_operand): Likewise.
25449 (non_prefixed_mem_operand): Likewise.
25450 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25451 prototype.
25452 * config/rs6000/rs6000.c (print_operand_address): Handle
25453 PC-relative addresses.
25454 (mode_supports_prefixed_address_p): New function.
25455 (rs6000_prefixed_address): New function.
25456 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25457 (SYMBOL_REF_PCREL_P): Likewise.
25458
25459 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25460
25461 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25462 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25463 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25464 is nested inside of parallel region, add _condtemp_ clause to both.
25465 * tree-nested.c (convert_nonlocal_omp_clauses,
25466 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25467 assertion failure.
25468 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25469 member.
25470 * omp-general.c (omp_extract_for_data): Compute it.
25471 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25472 (lower_rec_input_clauses): Likewise.
25473 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25474 clause is already present, just add one further one after it.
25475 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25476 (lower_send_shared_vars): Clear _condtemp_ vars.
25477 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25478 or section or taskgroup.
25479 * omp-expand.c (determine_parallel_type): Disallow combining only if
25480 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25481 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25482 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25483 expand_omp_for_static_chunk, expand_omp_for): Use
25484 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25485 determine if a special set of API routines are needed and if condtemp
25486 needs to be initialized, while always initialize cond_var if
25487 fd->lastprivate_conditional is non-zero.
25488
25489 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25490 Michael Meissner <meissner@linux.ibm.com>
25491
25492 * config/rs6000/constraints.md (eI): New constraint.
25493 * config/rs6000/predicates.md (cint34_operand): New predicate.
25494 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25495 (SIGNED_34BIT_OFFSET_P): Likewise.
25496 * doc/md.texi (eI): Document constraint.
25497
25498 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25499
25500 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25501
25502 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25503 Michael Meissner <meissner@linux.ibm.com>
25504
25505 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25506 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25507 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25508 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25509 (OTHER_FUTURE_MASKS): Likewise.
25510 (POWERPC_MASKS): Likewise.
25511 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25512 specified without -mprefixed-addr or -mcpu=future. Error if
25513 -mprefixed-addr is specified without -mcpu=future.
25514 (rs6000_opt_masks): Add entry for prefixed-addr.
25515 * rs6000.opt (mprefixed-addr): New option.
25516
25517 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25518
25519 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25520 cfun->is_thunk check.
25521
25522 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25523
25524 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25525 to length.
25526
25527 2019-05-30 Martin Liska <mliska@suse.cz>
25528
25529 * gdbinit.in: Fix 'ptc' command. Add trt
25530 that prints TREE_TYPE($).
25531
25532 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25533 Alan Modra <amodra@gmail.com>
25534
25535 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25536 calls here...
25537 (rs6000_indirect_call_template_1): ...and here.
25538 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25539 plt16_ha, plt16_lo, mtctr indirect calls. Use
25540 rs6000_pltseq_enum.
25541 (rs6000_decl_ok_for_sibcall): New function.
25542 (rs6000_function_ok_for_sibcall): Refactor.
25543 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25544 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25545 when pcrel. Reorganize.
25546 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25547 * rs6000.h (rs6000_pltseq_enum): New enum.
25548 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25549 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25550 (*pltseq_plt16_ha): Likewise.
25551 (*pltseq_plt16_lo): Likewise.
25552 (*pltseq_mtctr): Likewise.
25553 (*pltseq_plt_pcrel): New insn.
25554 (*call_local_aix): Handle @notoc calls.
25555 (*call_value_local_aix): Likewise.
25556 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25557 (*call_value_nonlocal_aix): Likewise.
25558 (*call_indirect_pcrel): New insn.
25559 (*call_value_indirect_pcrel): Likewise.
25560
25561 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25562
25563 * config/i386/sse.md (*save_multiple<mode>): Rename from
25564 save_multiple<mode>.
25565 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25566 (*restore_multiple_and_return<mode>): Rename from
25567 restore_multiple_and_return<mode>.
25568 (*restore_multiple_leave_return<mode>): Rename from
25569 restore_multiple_leave_return<mode>.
25570
25571 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25572
25573 * config.gcc (rx-*-linux*): New target.
25574 * config/rx/elf.opt: New file.
25575 * config/rx/linux.h: Likewise.
25576 * config/rx/t-linux: Likewise.
25577 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25578 make it zero.
25579 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25580 (ASM_APP_OFF): Likewise.
25581 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25582 moved elsewhere.
25583
25584 2019-05-29 Jan Hubicka <jh@suse.cz>
25585
25586 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25587 variants are pointer equivalent.
25588
25589 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25590
25591 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25592 * config/aarch64/aarch64-sve2.md: New file.
25593 (<u>avg<mode>3_floor): New pattern.
25594 (<u>avg<mode>3_ceil): Likewise.
25595 (*<sur>h<addsub><mode>): Likewise.
25596 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25597 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25598
25599 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25600
25601 PR bootstrap/90543
25602 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25603 for var_opt_string printing. In cl_optimization_print_diff, print
25604 (null) instead of invoking undefined behavior if one of the
25605 var_opt_string pointers is NULL and use && instead of first || in the
25606 guarding condition. For var_target_other options, handle const char *
25607 target variables similarly to const char * optimize node variables.
25608
25609 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25610
25611 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25612 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25613 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25614 Add autib1716 and pacib1716 initialisation.
25615 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25616 for autib1716 and pacib1716.
25617 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25618 aarch64_post_cfi_startproc): Define.
25619 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25620 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25621 aarch64_handle_pac_ret_protection): Set default sign key to A.
25622 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25623 aarch64_expand_prologue): Add check for b-key.
25624 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25625 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25626 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25627 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25628 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25629 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25630 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25631 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25632 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25633 pauth_hint_num_a with pauth_hint_num.
25634 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25635 pauth_hint_num_a with pauth_hint_num.
25636 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25637 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25638 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25639 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25640 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25641 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25642 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25643 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25644 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25645 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25646 UNSPEC_AUTIA1716 respectively.
25647 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25648 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25649 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25650 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25651 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25652 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25653
25654 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25655
25656 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25657 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25658 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25659 explicit clause on combined parallel into implicit shared clause.
25660 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25661 and firstprivate if the decl has one too from combined parallel to
25662 the worksharing construct.
25663
25664 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25665 Michael Meissner <meissner@linux.ibm.com>
25666
25667 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25668
25669 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25670
25671 * rtl.h (LABEL_REF_P): New #define.
25672
25673 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25674
25675 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25676
25677 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25678
25679 * internal-fn.c: Marked mask_load_direct as vectorizable.
25680 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25681 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25682 combined even if masks different with allow_slp_p param.
25683 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25684 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25685 dissolve SLP-only vectorizable groups when SLP has been discarded.
25686 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25687 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25688 masks.
25689 (vect_build_slp_tree_1): Fixed comment typo.
25690 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25691 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25692 loads for SLP only.
25693 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25694 vectorizable.
25695 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25696
25697 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25698
25699 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25700 Remove obsolete use_thunk reference.
25701 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25702 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25703 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25704 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25705 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25706 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25707 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25708 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25709 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25710
25711 2019-05-28 Nathan Sidwell <nathan@acm.org>
25712
25713 * tree.h (IDENTIFIER_ANON_P): New.
25714 (anon_aggrname_format, anon_aggname_p): Don't declare.
25715 (make_anon_name): Declare.
25716 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25717 (hash_tree): Likewise.
25718 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25719 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25720 (anon_cnt, make_anon_name): New.
25721
25722 2019-05-28 Martin Liska <mliska@suse.cz>
25723
25724 PR other/90315
25725 * opts-global.c (decode_options): Print help for all
25726 help_option_arguments.
25727 * opts.c (print_help): Add new argument.
25728 (common_handle_option): Remember all values into
25729 help_option_arguments.
25730 * opts.h (print_help): Add new argument.
25731
25732 2019-05-28 Martin Liska <mliska@suse.cz>
25733
25734 PR ipa/90555
25735 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25736 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25737 (func_checker::compare_bb): Call compare_loops.
25738
25739 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25740
25741 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25742 on sections construct.
25743 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25744 construct.
25745 (lower_omp_sections): Handle lastprivate conditional.
25746 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25747 lastprivate_conditional_map.
25748 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25749
25750 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25751 critical, taskgroup and section regions when looking for a region
25752 with non-NULL lastprivate_conditional_map.
25753
25754 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25755
25756 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25757 (*ix86_gen_sub3): Ditto.
25758 (*ix86_gen_sub3_carry): Ditto.
25759 (*ix86_gen_one_cmpl2): Ditto.
25760 (*ix86_gen_andsp): Ditto.
25761 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25762 (gen_and2_insn): New static function.
25763 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25764 Use gen_add3_insn instead of ix86_gen_add3.
25765 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25766 instead of ix86_gen_add3.
25767 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25768 Use gen_sub3_insn instead of ix86_gen_sub3.
25769 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25770 instead of ix86_gen_add3.
25771 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25772 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25773 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25774 * config/i386/i386-options.c (ix86_option_override_internal):
25775 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25776 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25777
25778 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25779
25780 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25781 and DW_OP_GNU_const_index opcodes.
25782
25783 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25784
25785 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25786
25787 2019-05-27 Richard Biener <rguenther@suse.de>
25788
25789 PR tree-optimization/90637
25790 * tree-ssa-sink.c (statement_sink_location): Honor the
25791 computed sink location for single-uses.
25792
25793 2019-05-27 Richard Biener <rguenther@suse.de>
25794
25795 PR middle-end/90610
25796 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25797 a bit-insert.
25798
25799 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25800
25801 * config/i386/i386.md (@sub<mode>3_carry): Rename
25802 from sub<mode>3_carry.
25803 (@leave_<mode>): New expander.
25804 (*leave): Rename from leave.
25805 (*leave_rex64): Rename from leave_rex64.
25806 (@monitorx_<mode>): Rename from monitorx_<mode>.
25807 (@clzero_<mode>): Rename from clzero_<mode>.
25808 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25809 from sse3_monitor_<mode>.
25810 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25811 (*ix86_gen_leave): Ditto.
25812 (*ix86_gen_monitor): Ditto.
25813 (*ix86_gen_monitorx): Ditto.
25814 (*ix86_gen_clzero): Ditto.
25815 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25816 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25817 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25818 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25819 Use gen_sse3_monitor instead of ix86_gen_monitor.
25820 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25821 instead of ix86_gen_monitorx.
25822 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25823 instead of ix86_gen_clzero.
25824 * config/i386/i386-options.c (ix86_option_override_internal):
25825 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25826 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25827
25828 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25829
25830 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25831 Rename from tls_global_dynamic_64_<mode>.
25832 (@tls_local_dynamic_base_64_<mode>): Rename from
25833 tls_local_dynamic_base_64_<mode>.
25834 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25835 Remove indirect function.
25836 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25837 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25838 instead of ix86_gen_tls_global_dynamic_64.
25839 Use gen_tls_local_dynamic_base_64 instead of
25840 ix86_gen_tls_local_dynamic_base_64.
25841 * config/i386/i386-options.c (ix86_option_override_internal):
25842 Do not initialize ix86_gen_tls_global_dynamic_64 and
25843 ix86_gen_tls_local_dynamic_base_64.
25844
25845 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25846
25847 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25848 Rename from pro_epilogue_adjust_stack_<mode>_add.
25849 (@pro_epilogue_adjust_stack_sub_<mode>)
25850 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25851 (@allocate_stack_worker_probe_<mode>):
25852 Rename from allocate_stack_worker_probe_<mode>.
25853 (allocate_stack): Use gen_allocate_stack_worker_probe.
25854 (probe_stack): Use gen_probe_stack_1.
25855 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25856 (@adjust_stack_and_probe_<mode>): Rename from
25857 adjust_stack_and_probe<mode>.
25858 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25859 (stack_protect_set): Use gen_stack_protect_set_1.
25860 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25861 (stack_protect_test): Use gen_stack_protect_test_1.
25862 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25863 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25864 Remove indirect function.
25865 (*ix86_gen_adjust_stack_and_probe): Ditto.
25866 (*ix86_gen_probe_stack_range): Ditto.
25867 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25868 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25869 (ix86_adjust_stack_and_probe_stack_clash): Use
25870 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25871 (ix86_adjust_stack_and_probe): Ditto.
25872 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25873 of ix86_gen_probe_stack_range.
25874 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25875 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25876 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25877 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25878 CODE_FOR_stack_protect_test_{si,di}.
25879 * config/i386/i386-options.c (ix86_option_override_internal):
25880 Do not initialize ix86_gen_allocate_stack_worker,
25881 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25882
25883 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25884
25885 * doc/invoke.texi (Link Options): Many editorial changes around
25886 -flinker-output.
25887
25888 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25889
25890 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25891 pre-Solaris 11 referene and most Studio compiler details.
25892
25893 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25894
25895 PR target/90530
25896 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25897 DImode to SImode in floating-point registers on 64-bit target.
25898 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25899 register_operand in xmpyu patterns.
25900
25901 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25902
25903 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25904 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25905 OMP_CLAUSE__REDUCTEMP_.
25906 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25907 OMP_CLAUSE__CONDTEMP_.
25908 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25909 * tree-pretty-print.c (dump_omp_clause): Likewise.
25910 * tree-nested.c (convert_nonlocal_omp_clauses,
25911 convert_local_omp_clauses): Likewise.
25912 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25913 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25914 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25915 on OMP_FOR.
25916 (gimplify_omp_for): Warn and disable conditional modifier from
25917 lastprivate on loop iterators.
25918 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25919 member.
25920 * omp-general.c (omp_extract_for_data): Initialize it.
25921 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25922 member.
25923 (delete_omp_context): Delete it.
25924 (lower_lastprivate_conditional_clauses): New function.
25925 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25926 handle lastprivate conditional clauses.
25927 (lower_reduction_clauses): Add CLIST argument, emit it into
25928 the critical section if any.
25929 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25930 lower_reduction_clauses callers.
25931 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25932 to lower_lastprivate_clauses.
25933 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25934 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25935 clist into a critical section if not emitted there already by
25936 lower_reduction_clauses.
25937 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25938 callers.
25939 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25940 conditional variables.
25941 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25942 clause is present.
25943 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25944 expand_omp_for_static_chunk): Handle lastprivate conditional.
25945 (expand_omp_for): Handle fd.lastprivate_conditional like
25946 fd.have_reductemp.
25947
25948 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25949
25950 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25951 kernel does not exit cleanly.
25952 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25953
25954 2019-05-24 Jason Merrill <jason@redhat.com>
25955
25956 Revert:
25957 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25958
25959 2019-05-24 Richard Biener <rguenther@suse.de>
25960
25961 PR testsuite/90607
25962 * tree-loop-distribution.c (struct partition): Add location
25963 member.
25964 (partition_alloc): Initialize all fields.
25965 (generate_memset_builtin): Use the location recorded in the
25966 partition for the generated call.
25967 (generate_memcpy_builtin): Likewise.
25968 (classify_partition): Record the location of a single store
25969 as location for the partition.
25970
25971 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25972
25973 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25974 for lo-part.
25975
25976 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25977
25978 PR target/90588
25979 * common/config/aarch64/aarch64-common.c
25980 (aarch64_rewrite_selected_cpu): Change local temporary variable
25981 type from unsigned long to uint64_t.
25982 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25983 aarch64_get_extension_string_for_isa_flags): Change declaration to
25984 match new definition by replacing unsigned long with uint64_t.
25985
25986 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25987
25988 PR target/90568
25989 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25990 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25991 Handle stack_protect_test_<mode> codegen similarly to corresponding
25992 sub instruction.
25993
25994 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25995
25996 * config/i386/darwin.h: Reject -mfentry*.
25997 * doc/sourcebuild.texi: Document mfentry target support.
25998
25999 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26000
26001 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26002 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26003 false for PC-relative functions.
26004 (rs6000_output_function_prologue): Change called function name to
26005 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26006 name,1" for PC-relative functions.
26007 (rs6000_elf_declare_function_name): Change called function name to
26008 rs6000_global_entry_point_prologue_needed_p.
26009
26010 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26011
26012 PR target/90552
26013 * config/i386/i386.c (gen_rtx_cost):
26014 Use ix86_tune_cost instead of ix86_cost.
26015
26016 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26017 Michael Meissner <meissner@linux.ibm.com>
26018 Segher Boessenkool <segher@kernel.crashing.org>
26019
26020 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26021 OPTION_MASK_PCREL.
26022 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26023 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26024 (rs6000_fndecl_pcrel_p): Likewise.
26025 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26026 error if -mpcrel is requested without -mcpu=future.
26027 (rs6000_opt_masks): Add entry for pcrel.
26028 (rs6000_fndecl_pcrel_p): New function.
26029 (rs6000_pcrel_p): Likewise.
26030 * config/rs6000/rs6000.opt (mpcrel): New option.
26031 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26032
26033 2019-05-23 Jan Hubicka <jh@suse.cz>
26034 Martin Liska <mliska@suse.cz>
26035
26036 PR tree-optimization/90576
26037 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26038 poly_int_tree_p.
26039 (aliasing_component_refs_p): Fix three way size compare conditional;
26040 give up earlier in case we can not decide on equivalence.
26041
26042 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26043 Michael Meissner <meissner@linux.ibm.com>
26044 Segher Boessenkool <segher@kernel.crashing.org>
26045
26046 * config.gcc: Add future cpu.
26047 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26048 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26049 #define.
26050 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26051 (RS6000_CPU): New instantiation for future cpu.
26052 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26053 PROCESSOR_FUTURE.
26054 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26055 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26056 * config/rs6000/rs6000-tables.opt: Regenerate.
26057 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26058 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26059 (rs6000_machine_from_flags): Handle future cpu.
26060 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26061 PROCESSOR_POWER9 for now.
26062 (rs6000_adjust_cost): Likewise.
26063 (rs6000_issue_rate): Likewise.
26064 (rs6000_register_move_cost): Likewise.
26065 (rs6000_opt_masks): Add entry for future.
26066 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26067 (MASK_FUTURE): New #define.
26068 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26069 * config/rs6000/rs6000.opt (mfuture): New target option.
26070 * doc/invoke.texi (mcpu): Add future cpu.
26071
26072 2019-05-23 Martin Liska <mliska@suse.cz>
26073
26074 PR c++/90587
26075 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26076 operation points to a temporary (pointed via tree_to_wide_ref)
26077 that is out of scope after the &.
26078
26079 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26080
26081 PR c++/90592
26082 * doc/extend.texi (Function Names): Add missing word.
26083
26084 2019-05-23 Richard Biener <rguenther@suse.de>
26085
26086 PR tree-optimization/88440
26087 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26088 at -O[2s]+.
26089 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26090 generated call.
26091 (generate_memcpy_builtin): Likewise.
26092 (distribute_loop): Pass in whether to only distribute patterns.
26093 (prepare_perfect_loop_nest): Also allow size optimization.
26094 (pass_loop_distribution::execute): When optimizing a loop
26095 nest for size allow pattern replacement.
26096
26097 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26098
26099 PR target/90568
26100 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26101 of xor.
26102
26103 2019-05-23 Martin Liska <mliska@suse.cz>
26104
26105 PR sanitizer/90570
26106 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26107 expression similarly to gimplify_decl_expr.
26108
26109 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26110
26111 * cse.c (cse_dump_path): s/dump_file/f.
26112
26113 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26114
26115 PR c++/90462
26116 * diagnostic-format-json.cc: Include "selftest.h".
26117 (json_from_expanded_location): Only add "file" key for non-NULL
26118 file strings.
26119 (json_from_location_range): Don't add "start" and "finish"
26120 children if they are UNKNOWN_LOCATION.
26121 (selftest::test_unknown_location): New selftest.
26122 (selftest::test_bad_endpoints): New selftest.
26123 (selftest::diagnostic_format_json_cc_tests): New function.
26124 * json.cc (json::object::get): New function.
26125 (selftest::test_object_get): New selftest.
26126 (selftest::json_cc_tests): Call it.
26127 * json.h (json::object::get): New decl.
26128 * selftest-run-tests.c (selftest::run_tests): Call
26129 selftest::diagnostic_format_json_cc_tests.
26130 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26131 decl.
26132
26133 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26134 Andrew Stubbs <amd@codesourcery.com>
26135
26136 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26137 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26138 (kernel): Rename to...
26139 (main_kernel): ... this.
26140 (load_image): Load _init_array and _fini_array kernels.
26141 (run): Add argument for kernel to run.
26142 (main): Run init_array_kernel before main_kernel, and
26143 fini_array_kernel after.
26144 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26145 amdgpu_hsa_kernel attribute on functions.
26146 (gcn_disable_constructors): Delete.
26147 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26148 * config/gcn/crt0.c (size_t): Define.
26149 (_init_array, _fini_array): New.
26150 (__preinit_array_start, __preinit_array_end,
26151 __init_array_start, __init_array_end,
26152 __fini_array_start, __fini_array_end): Declare weak references.
26153
26154 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26155
26156 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26157
26158 2019-05-22 Jason Merrill <jason@redhat.com>
26159
26160 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26161
26162 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26163
26164 PR target/88483
26165 * config/i386/i386-options.c (ix86_init_machine_status): Set
26166 stack_frame_required to true.
26167 * config/i386/i386.c (ix86_get_frame_size): New function.
26168 (ix86_frame_pointer_required): Replace get_frame_size with
26169 ix86_get_frame_size.
26170 (ix86_compute_frame_layout): Likewise.
26171 (ix86_find_max_used_stack_alignment): Changed to void. Set
26172 stack_frame_required.
26173 (ix86_finalize_stack_frame_flags): Always call
26174 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26175 ix86_get_frame_size.
26176 * config/i386/i386.h (machine_function): Add stack_frame_required.
26177
26178 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26179
26180 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26181
26182 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26183
26184 * common/config/aarch64/aarch64-common.c
26185 (struct aarch64_option_extension, struct processor_name_to_arch,
26186 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26187 aarch64_contains_opt,
26188 aarch64_get_extension_string_for_isa_flags): Change type of
26189 variables storing flags to uint64_t.
26190 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26191 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26192 * config/aarch64/aarch64.c (struct processor,
26193 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26194 aarch64_validate_march, aarch64_override_options,
26195 aarch64_option_print, aarch64_handle_attr_isa_flags,
26196 aarch64_declare_function_name, aarch64_start_file): Make flag
26197 variables uint64_t.
26198 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26199 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26200 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26201 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26202 * config/aarch64/driver-aarch64.c
26203 (struct aarch64_arch_extension, struct aarch64_core_data,
26204 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26205 flag variables uint64_t.
26206 * doc/invoke.texi: Add documentation for new arguments.
26207
26208 2019-05-22 Richard Biener <rguenther@suse.de>
26209
26210 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26211 rewrite ...
26212 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26213
26214 2019-05-22 Martin Liska <mliska@suse.cz>
26215
26216 PR lto/90500
26217 * doc/extend.texi: Document the change.
26218
26219 2019-05-22 Richard Biener <rguenther@suse.de>
26220
26221 PR tree-optimization/90450
26222 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26223 (mem_ref_hasher::equal): Check it.
26224 (mem_ref_alloc): Initialize it.
26225 (gather_mem_refs_stmt): Set it.
26226
26227 2019-05-22 Richard Biener <rguenther@suse.de>
26228
26229 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26230 Add ABS_EXPR.
26231 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26232 as ABSU_EXPR.
26233
26234 2019-05-22 Alan Modra <amodra@gmail.com>
26235
26236 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26237 (ASM_CPU_SPEC): Conditionally add -many.
26238 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26239 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26240 (rs6000_file_start): ..extracted from here, and modified to
26241 test all ISA bits.
26242 (rs6000_output_function_prologue): Emit .machine as necessary.
26243
26244 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26245
26246 PR middle-end/90553
26247 * ira-lives.c (process_bb_node_lives): Consider defs
26248 for a call insn to be die before the call, not after.
26249
26250 * function.c (assign_parm_setup_block): Raise alignment of
26251 stacked parameter only for STRICT_ALIGNMENT targets.
26252
26253 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26254
26255 * config/rs6000/constraints.md (define_register_constraint "wz"):
26256 Delete.
26257 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26258 RS6000_CONSTRAINT_wz.
26259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26260 (rs6000_init_hard_regno_mode_ok): Adjust.
26261 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26262 * doc/md.texi (Machine Constraints): Adjust.
26263
26264 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26265
26266 * config/rs6000/constraints.md (define_register_constraint "wl"):
26267 Delete.
26268 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26269 RS6000_CONSTRAINT_wl.
26270 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26271 (rs6000_init_hard_regno_mode_ok): Adjust.
26272 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26273 * doc/md.texi (Machine Constraints): Adjust.
26274
26275 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26276
26277 * config/rs6000/constraints.md (define_register_constraint "wm"):
26278 Delete.
26279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26280 RS6000_CONSTRAINT_wm.
26281 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26282 (rs6000_init_hard_regno_mode_ok): Adjust.
26283 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26284 * doc/md.texi (Machine Constraints): Adjust.
26285
26286 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26287
26288 * config/rs6000/constraints.md (define_register_constraint "wk"):
26289 Delete.
26290 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26291 RS6000_CONSTRAINT_wk.
26292 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26293 (rs6000_init_hard_regno_mode_ok): Adjust.
26294 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26295 * doc/md.texi (Machine Constraints): Adjust.
26296
26297 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26298
26299 * config/rs6000/constraints.md (define_register_constraint "wj"):
26300 Delete.
26301 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26302 RS6000_CONSTRAINT_wj.
26303 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26304 (rs6000_init_hard_regno_mode_ok): Adjust.
26305 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26306 (VS_64dm): Delete.
26307 * config/rs6000/vsx.md: Ditto.
26308 * doc/md.texi (Machine Constraints): Adjust.
26309
26310 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26311
26312 * config/rs6000/constraints.md (define_register_constraint "wh"):
26313 Delete.
26314 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26315 RS6000_CONSTRAINT_wh.
26316 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26317 (rs6000_init_hard_regno_mode_ok): Adjust.
26318 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26319 * doc/md.texi (Machine Constraints): Adjust.
26320
26321 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26322
26323 PR target/90547
26324 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26325 Avoid calling gen_lowpart with CONST operand.
26326
26327 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26328
26329 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26330 field template_last_to_copy.
26331 (ssa_create_duplicates): Set it, and use it. Attempt to
26332 preserve more debug stmts.
26333
26334 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26335
26336 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26337 (signbit<mode>2): New expander
26338
26339 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26340
26341 PR bootstrap/87338
26342 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26343 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26344
26345 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26346
26347 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26348 %ebx and %ecx bafore calling cpuid with leaf 1 or
26349 non-constant leaf argument.
26350
26351 2019-05-21 Alan Modra <amodra@gmail.com>
26352
26353 PR target/90545
26354 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26355 power9 direct move cost.
26356
26357 2019-05-21 Richard Biener <rguenther@suse.de>
26358
26359 PR middle-end/90510
26360 * fold-const.c (fold_read_from_vector): New function.
26361 * fold-const.h (fold_read_from_vector): Declare.
26362 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26363 single-element insert permutations. Canonicalize selector
26364 further and fix issue with last commit.
26365
26366 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26367
26368 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26369 parameter with default value false to declaration.
26370 (split_edges_for_insertion): New inline function. Wrapper for
26371 split_critical_edges with for_edge_insertion_p = true.
26372 * tree-cfg.c (split_critical_edges): Don't split non-critical
26373 edges if for_edge_insertion_p is false. Fix whitespace.
26374 * tree-ssa-pre.c (pass_pre::execute): Call
26375 split_edges_for_insertion instead of split_critical_edges.
26376 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26377 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26378 (pass_data_sink_code): Update function name in the comment.
26379
26380 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26381
26382 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26383 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26384 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26385 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26386 positives.
26387
26388 2019-05-21 Martin Liska <mliska@suse.cz>
26389
26390 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26391 an extra newline.
26392 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26393 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26394 vec_lvsr.
26395 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26396 Quote a C type.
26397 (rs6000_function_arg): Likewise.
26398 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26399 (rs6000_expand_ternop_builtin): Use interval syntax.
26400 (get_element_number): Likewise.
26401 (altivec_expand_builtin): Likewise.
26402 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26403
26404 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26405
26406 PR c++/59813
26407 PR target/90418
26408 * function.h (struct function): Add calls_eh_return member.
26409 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26410 gimplifying __builtin_eh_return call.
26411 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26412 to cfun.
26413 (expand_call_inline): Or in src_cfun->calls_eh_return into
26414 dst_cfun->calls_eh_return.
26415 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26416 cfun->calls_eh_return.
26417 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26418 * lto-streamer-out.c (output_struct_function_base): Write
26419 calls_eh_return.
26420
26421 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26422
26423 PR rtl-optimization/43147
26424 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26425 IX86_BUILTIN_SHUFPD.
26426
26427 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26428
26429 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26430 (refs_may_alias_p_1): ... here; update stats.
26431 (refs_may_alias_p): Do not update stats here.
26432
26433 2019-05-20 Richard Biener <rguenther@suse.de>
26434
26435 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26436 doesn't produce pointers.
26437 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26438 the first operand points to.
26439
26440 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26441
26442 * tree-ssa-alias.c (compare_sizes): New function.
26443 (sompare_type_sizes): New function
26444 (aliasing_component_refs_p): Use it.
26445 (indirect_ref_may_alias_decl_p): Likewise.
26446
26447 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26448
26449 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26450
26451 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26452
26453 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26454 (LIBLSAN_EARLY_SPEC): Likewise.
26455 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26456
26457 2019-05-20 Martin Liska <mliska@suse.cz>
26458
26459 * config/i386/i386.c (ix86_libc_has_fast_function):
26460 Add ATTRIBUTE_UNUSED for the argument.
26461
26462 2019-05-20 Richard Biener <rguenther@suse.de>
26463
26464 * gimple-match-head.c: Include vec-perm-indices.h.
26465 * generic-match-head.c: Likewise.
26466 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26467 is included.
26468 * fold-const.c (fold_vec_perm): Export.
26469 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26470 (match.pd): ...here.
26471
26472 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26473
26474 * cfgloop.h (struct loop): Add simdlen member.
26475 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26476 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26477 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26478 as new argument to autovectorize_vector_sizes target hook. If
26479 loop->simdlen, pick up vector size where the vectorization factor
26480 is equal to loop->simd, and if there is none, fall back to the first
26481 successful one.
26482 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26483 caller.
26484 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26485 * omp-general.c (omp_max_vf): Likewise.
26486 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26487 * tree-vect-slp.c (vect_slp_bb): Likewise.
26488 * target.def (autovectorize_vector_sizes): Add ALL argument and
26489 document it.
26490 * doc/tm.texi: Adjust documentation.
26491 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26492 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26493 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26494 bool argument.
26495 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26496 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26497 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26498 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26499 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26500 preferred vector size is not 512-bit or 256-bit, just put those
26501 unpreferred ones last.
26502
26503 2019-05-20 Martin Liska <mliska@suse.cz>
26504
26505 * targhooks.c (default_libc_has_fast_function): New function.
26506 * targhooks.h (default_libc_has_fast_function): Likewise.
26507
26508 2019-05-20 Martin Liska <mliska@suse.cz>
26509
26510 PR middle-end/90263
26511 * builtins.c (expand_builtin_memory_copy_args): When having a
26512 target with fast mempcpy implementation do now use memcpy.
26513 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26514 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26515 * doc/tm.texi: Likewise.
26516 * doc/tm.texi.in: Likewise.
26517 * target.def:
26518 * expr.c (emit_block_move_hints): Add 2 new arguments.
26519 * expr.h (emit_block_move_hints): Bail out when libcall
26520 to memcpy would be used.
26521
26522 2019-05-20 Martin Liska <mliska@suse.cz>
26523
26524 * profile-count.c: Add vertical spacing in order
26525 to separate functions.
26526 * profile-count.h: Likewise.
26527
26528 2019-05-20 Martin Liska <mliska@suse.cz>
26529
26530 * profile-count.h: Do not use full qualified
26531 names if possible.
26532 * profile-count.c (profile_count::to_frequency): Likewise.
26533
26534 2019-05-20 Martin Liska <mliska@suse.cz>
26535
26536 * profile-count.h (enum profile_quality): Use capital letters
26537 for enum value names. Use the adjusted names.
26538 * profile-count.c: Use the adjusted names.
26539
26540 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26541
26542 * config/rs6000/constraints.md (define_register_constraint "wH"):
26543 Delete.
26544 (define_register_constraint "wI"): Delete.
26545 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26546 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26547 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26548 (rs6000_init_hard_regno_mode_ok): Adjust.
26549 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26550 resp. "d", or with "wa" as appropriate, all with "p8v".
26551 * config/rs6000/vsx.md: Ditto.
26552 * doc/md.texi (Machine Constraints): Adjust.
26553
26554 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26555
26556 * config/rs6000/constraints.md (define_register_constraint "wy"):
26557 Delete.
26558 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26559 RS6000_CONSTRAINT_wy.
26560 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26561 (rs6000_init_hard_regno_mode_ok): Adjust.
26562 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26563 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26564 (define_mode_attr Fisa): New.
26565 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26566 * doc/md.texi (Machine Constraints): Adjust.
26567
26568 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26569
26570 * config/rs6000/constraints.md (define_register_constraint "wu"):
26571 Delete.
26572 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26573 RS6000_CONSTRAINT_wu.
26574 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26575 (rs6000_init_hard_regno_mode_ok): Adjust.
26576 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26577 both with "p8v".
26578 (define_mode_attr Fa): Delete.
26579 * config/rs6000/vsx.md: Ditto.
26580 * doc/md.texi (Machine Constraints): Adjust.
26581
26582 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26583
26584 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26585 Delete.
26586 (define_register_constraint "wK"): Delete.
26587 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26588 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26589 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26590 (rs6000_init_hard_regno_mode_ok): Adjust.
26591 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26592 Replace "wK" constraint by "wH" with "p9v".
26593 * config/rs6000/vsx.md: Ditto.
26594 * doc/md.texi (Machine Constraints): Adjust.
26595
26596 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26597
26598 * config/rs6000/constraints.md (define_register_constraint "wb"):
26599 Delete.
26600 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26601 RS6000_CONSTRAINT_wb.
26602 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26603 (rs6000_init_hard_regno_mode_ok): Adjust.
26604 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26605 * config/rs6000/vsx.md: Ditto.
26606 * doc/md.texi (Machine Constraints): Adjust.
26607
26608 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26609
26610 * config/rs6000/constraints.md (define_register_constraint "wo"):
26611 Delete.
26612 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26613 RS6000_CONSTRAINT_wo.
26614 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26615 (rs6000_init_hard_regno_mode_ok): Adjust.
26616 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26617 * config/rs6000/altivec.md: Ditto.
26618 * doc/md.texi (Machine Constraints): Adjust.
26619
26620 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26621
26622 * config/darwin-c.c (darwin_register_objc_includes): Do not
26623 prepend the sysroot when building gnu-runtime header search
26624 paths.
26625
26626 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26627
26628 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26629 instead of direct output of the asm.
26630
26631 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26632
26633 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26634 argument to be type bool (was int before).
26635 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26636 at first use. Use type bool for some variables. Fix a theoretical
26637 eh_return bug for svr4.
26638
26639 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26640
26641 * config/rs6000/rs6000.md (isa): New attribute.
26642 (enabled): New attribute.
26643
26644 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26645
26646 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26647 assemble_start_function and assemble_end_function.
26648
26649 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26650
26651 PR middle-end/89433
26652 * omp-general.c (oacc_verify_routine_clauses): Change formal
26653 parameters. Add checking if already marked with an OpenACC
26654 'routine' directive. Adjust all users.
26655
26656 PR middle-end/89433
26657 * omp-general.c (oacc_build_routine_dims): Move some of its
26658 processing into...
26659 (oacc_verify_routine_clauses): ... this new function.
26660 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26661
26662 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26663
26664 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26665 formating of picbase labels to match other ports.
26666
26667 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26668
26669 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26670 in the generated code.
26671
26672 2019-05-16 Martin Sebor <msebor@redhat.com>
26673
26674 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26675 identifiers, keywords, operators, and types in diagnostics. Correct
26676 quoting, spelling, and sentence capitalization issues.
26677 (expand_builtin_atomic_is_lock_free): Same.
26678 (fold_builtin_next_arg): Same.
26679 * cfgexpand.c (expand_one_var): Same.
26680 (tree_conflicts_with_clobbers_p): Same.
26681 (expand_asm_stmt): Same.
26682 (verify_loop_structure): Same.
26683 * cgraphunit.c (process_function_and_variable_attributes): Same.
26684 * collect-utils.c (collect_execute): Same.
26685 * collect2.c (maybe_run_lto_and_relink): Same.
26686 (is_lto_object_file): Same.
26687 (scan_prog_file): Same.
26688 * convert.c (convert_to_real_1): Same.
26689 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26690 * except.c (verify_eh_tree): Same.
26691 * gcc.c (execute): Same.
26692 (eval_spec_function): Same.
26693 (run_attempt): Same.
26694 (driver::set_up_specs): Same.
26695 (compare_debug_auxbase_opt_spec_function): Same.
26696 * gcov-tool.c (unlink_gcda_file): Same.
26697 (do_merge): Same.
26698 (do_rewrite): Same.
26699 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26700 * gimplify.c (gimplify_asm_expr): Same.
26701 (gimplify_adjust_omp_clauses): Same.
26702 * hsa-gen.c (gen_hsa_addr_insns): Same.
26703 (gen_hsa_insns_for_load): Same.
26704 (gen_hsa_cmp_insn_from_gimple): Same.
26705 (gen_hsa_insns_for_operation_assignment): Same.
26706 (gen_get_level): Same.
26707 (gen_hsa_alloca): Same.
26708 (omp_simple_builtin::generate): Same.
26709 (gen_hsa_atomic_for_builtin): Same.
26710 (gen_hsa_insns_for_call): Same.
26711 * input.c (dump_location_info): Same.
26712 * ipa-devirt.c (compare_virtual_tables): Same.
26713 * ira.c (ira_setup_eliminable_regset): Same.
26714 * lra-assigns.c (lra_assign): Same.
26715 * lra-constraints.c (lra_constraints): Same.
26716 * lto-streamer-in.c (lto_input_mode_table): Same.
26717 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26718 (merge_and_complain): Same.
26719 (compile_offload_image): Same.
26720 (compile_images_for_offload_targets): Same.
26721 (debug_objcopy): Same.
26722 (run_gcc): Same.
26723 (main): Same.
26724 * opts.c (print_specific_help): Same.
26725 (parse_no_sanitize_attribute): Same.
26726 (print_help): Same.
26727 (handle_param): Same.
26728 * plugin.c (add_new_plugin): Same.
26729 (parse_plugin_arg_opt): Same.
26730 (try_init_one_plugin): Same.
26731 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26732 operators, and types in diagnostics. Correct quoting and spelling
26733 issues.
26734 * read-rtl-function.c (parse_edge_flag_token): Same.
26735 (function_reader::parse_enum_value): Same.
26736 * reg-stack.c (check_asm_stack_operands): Same.
26737 * regcprop.c (validate_value_data): Same.
26738 * sched-rgn.c (make_pass_sched_fusion): Same.
26739 * stmt.c (check_unique_operand_names): Same.
26740 * targhooks.c (default_target_option_pragma_parse): Same.
26741 * tlink.c (recompile_files): Same.
26742 * toplev.c (process_options): Same.
26743 (do_compile): Same.
26744 * trans-mem.c (diagnose_tm_1): Same.
26745 (ipa_tm_scan_irr_block): Same.
26746 (ipa_tm_diagnose_transaction): Same.
26747 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26748 format a tree code name in a diagnostic.
26749 (verify_types_in_gimple_min_lval): Same.
26750 (verify_types_in_gimple_reference): Same.
26751 (verify_gimple_call): Same.
26752 (verify_gimple_assign_unary): Same.
26753 (verify_gimple_assign_binary): Same.
26754 (verify_gimple_assign_ternary): Same.
26755 (verify_gimple_assign_single): Same.
26756 (verify_gimple_switch): Same.
26757 (verify_gimple_label): Same.
26758 (verify_gimple_phi): Same.
26759 (verify_gimple_in_seq): Same.
26760 (verify_eh_throw_stmt_node): Same.
26761 (collect_subblocks): Same.
26762 (gimple_verify_flow_info): Same.
26763 (do_warn_unused_result): Same.
26764 * tree-inline.c (expand_call_inline): Same.
26765 * tree-into-ssa.c (update_ssa): Same.
26766 * tree.c (tree_int_cst_elt_check_failed): Same.
26767 (tree_vec_elt_check_failed): Same.
26768 (omp_clause_operand_check_failed): Same.
26769 (verify_type_variant): Same.
26770 (verify_type): Same.
26771 * value-prof.c (verify_histograms): Same.
26772 * varasm.c (assemble_start_function): Same.
26773
26774 2019-05-16 Martin Sebor <msebor@redhat.com>
26775
26776 * config/i386/i386-expand.c (get_element_number): Quote keywords
26777 and other internal names in diagnostics. Adjust other diagnostic
26778 formatting issues noted by -Wformat-diag.
26779 * config/i386/i386-features.c
26780 (ix86_mangle_function_version_assembler_name): Same.
26781 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26782 * config/i386/i386.c (ix86_function_type_abi): Same.
26783 (ix86_function_ms_hook_prologue): Same.
26784 (classify_argument): Same.
26785 (ix86_expand_prologue): Same.
26786 (ix86_md_asm_adjust): Same.
26787 (ix86_memmodel_check): Same.
26788
26789 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26790
26791 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26792 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26793 and fpxx modes.
26794
26795 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 PR target/90497
26798 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26799 intrinsics without SSE/SSE2/SSSE3.
26800 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26801 check.
26802 (*mmx_uavgv8qi3): Likewise.
26803
26804 2019-05-17 Richard Biener <rguenther@suse.de>
26805
26806 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26807 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26808
26809 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26810
26811 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26812 vec_sldw insn pattern.
26813
26814 2019-05-17 Richard Biener <rguenther@suse.de>
26815
26816 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26817
26818 2019-05-17 Martin Liska <mliska@suse.cz>
26819
26820 PR driver/90496
26821 * toplev.c (output_stack_usage): With LTO and sanitizer it
26822 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26823 has no file location.
26824
26825 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26826
26827 PR c++/90484
26828 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26829 sz0 is equal to sz1, instead return false in that case.
26830
26831 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26832 has non-constant expression, force sctx.lane and use two
26833 argument IFN_GOMP_SIMD_LANE instead of single argument.
26834 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26835 two argument IFN_GOMP_SIMD_LANE without lhs.
26836 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26837 member.
26838 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26839 Define.
26840 (LOOP_REQUIRES_VERSIONING): Or in
26841 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26842 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26843 simd_if_cond.
26844 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26845 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26846 from simd if clause if needed.
26847
26848 2019-05-16 Richard Biener <rguenther@suse.de>
26849
26850 * tree-affine.c (expr_to_aff_combination): New function split
26851 out from...
26852 (tree_to_aff_combination): ... here.
26853 (aff_combination_expand): Avoid building a GENERIC tree.
26854
26855 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26856
26857 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26858 assemble_start_function and assemble_end_function calls.
26859 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26860 assemble_start_function and assemble_end_function.
26861 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26862 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26863 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26864 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26865 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26866 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26867 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26868 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26869 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26870 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26871 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26872 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26873 Likewise.
26874 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26875 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26876 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26877 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26878 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26879 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26880 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26881 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26882 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26883 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26884 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26885 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26886 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26887 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26888 Likewise.
26889 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26890 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26891 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26892
26893 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26894
26895 * tree-ssa-alias.c (alias_stats): Add
26896 aliasing_component_refs_p_may_alias and
26897 aliasing_component_refs_p_no_alias.
26898 (dump_alias_stats): Print aliasing_component_refs_p stats.
26899 (aliasing_component_refs_p): Update stats.
26900
26901 2019-05-16 Martin Liska <mliska@suse.cz>
26902
26903 PR lto/90500
26904 * multiple_target.c (expand_target_clones): Do not allow
26905 target_clones being used with a symbol that is an alias.
26906
26907 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26908
26909 PR tree-optimization/90394
26910 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26911 positives rather than ICE for cases where (code2 == NE_EXPR
26912 && code1 == BIT_AND_EXPR).
26913
26914 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26915
26916 PR fortran/90329
26917 * tree-core.h (struct tree_decl_common): Document
26918 decl_nonshareable_flag for PARM_DECLs.
26919 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26920 * calls.c (expand_call): Don't try tail call if caller
26921 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26922 passed on the stack and callee needs to pass any arguments on the
26923 stack.
26924 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26925 else if instead of series of mutually exclusive ifs. Handle
26926 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26927 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26928
26929 * lto-streamer.h (LTO_major_version): Bump to 9.
26930
26931 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26932
26933 PR tree-optimization/90106
26934 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26935 new parameter as new internal function call, also move it to new
26936 basic block.
26937 (use_internal_fn): Pass internal function call to
26938 shrink_wrap_one_built_in_call_with_conds.
26939
26940 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26941
26942 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26943 max_vf to 1.
26944 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26945 safelen_int and set loop->dont_vectorize.
26946
26947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26948
26949 PR target/89021
26950 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26951 SSE/SSE2/SSSE3.
26952 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26953 Likewise.
26954 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26955 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26956 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26957 is defined.
26958
26959 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26960
26961 PR target/89021
26962 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26963 define_insn_and_split to support SSE emulation.
26964 (*vec_extractv2sf_0): Likewise.
26965 (*vec_extractv2sf_1): Likewise.
26966 (*vec_extractv2si_0): Likewise.
26967 (*vec_extractv2si_1): Likewise.
26968 (*vec_extractv2si_zext_mem): Likewise.
26969 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26970 (vec_extractv2sf_1 splitter): Likewise.
26971 (vec_extractv2sfsf): Likewise.
26972 (vec_setv2si): Likewise.
26973 (vec_extractv2si_1 splitter): Likewise.
26974 (vec_extractv2sisi): Likewise.
26975 (vec_setv4hi): Likewise.
26976 (vec_extractv4hihi): Likewise.
26977 (vec_setv8qi): Likewise.
26978 (vec_extractv8qiqi): Likewise.
26979 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26980 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26981 (vec_extractv2sisi): Likewise.
26982 (vec_extractv4hihi): Likewise.
26983 (vec_extractv8qiqi): Likewise.
26984 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26985 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26986 (vec_initv2sisi): Likewise.
26987 (vec_initv4hihi): Likewise.
26988 (vec_initv8qiqi): Likewise.
26989 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26990 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26991 (vec_setv4hi): Likewise.
26992 (vec_setv8qi): Likewise.
26993
26994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26995
26996 PR target/89021
26997 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26998 TARGET_MMX_WITH_SSE.
26999 (MMXMODE:*mov<mode>_internal): Likewise.
27000 (MMXMODE:movmisalign<mode>): Likewise.
27001
27002 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27003
27004 PR target/89021
27005 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27006 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27007 (sse2_cvtpd2pi): Ditto.
27008 (sse2_cvttpd2pi): Ditto.
27009 (*vec_concatv2sf_sse4_1): Ditto.
27010 (*vec_concatv2sf_sse): Ditto.
27011 (*vec_concatv2si_sse4_1): Ditto.
27012 (*vec_concatv2si): Ditto.
27013 (*vec_concatv4si_0): Ditto.
27014 (*vec_concatv2di_0): Ditto.
27015
27016 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27017
27018 PR target/89021
27019 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27020
27021 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27022
27023 PR target/89021
27024 * config/i386/sse.md (ssse3_palignrdi): Changed to
27025 define_insn_and_split to support SSE emulation.
27026
27027 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27028
27029 PR target/89021
27030 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27031
27032 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 PR target/89021
27035 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27036 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27037 SSE emulation.
27038
27039 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27040
27041 PR target/89021
27042 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27043 or TARGET_MMX_WITH_SSE.
27044 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27045
27046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27047
27048 PR target/89021
27049 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27050
27051 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27052
27053 PR target/89021
27054 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27055 Changed to define_insn_and_split to support SSE emulation.
27056
27057 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27058
27059 PR target/89021
27060 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27061 Changed to define_insn_and_split to support SSE emulation.
27062
27063 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27064
27065 PR target/89021
27066 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27067 (*mmx_<emms>): This.
27068 (mmx_<emms>): New expander.
27069
27070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27071
27072 PR target/89021
27073 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27074 support.
27075 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27076
27077 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27078
27079 PR target/89021
27080 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27081
27082 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27083
27084 PR target/89021
27085 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27086
27087 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27088
27089 PR target/89021
27090 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27091 TARGET_MMX_WITH_SSE.
27092 (*mmx_uavgv4hi3): Add SSE emulation.
27093
27094 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27095
27096 PR target/89021
27097 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27098 and TARGET_MMX_WITH_SSE.
27099 (*mmx_uavgv8qi3): Add SSE emulation.
27100
27101 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27102
27103 PR target/89021
27104 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27105 maskmovdqu for __MMX_WITH_SSE__.
27106
27107 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27108
27109 PR target/89021
27110 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27111 TARGET_MMX and TARGET_MMX_WITH_SSE.
27112 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27113
27114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27115
27116 PR target/89021
27117 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27118 define_insn_and_split to support SSE emulation.
27119
27120 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27121
27122 PR target/89021
27123 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27124 and TARGET_MMX_WITH_SSE.
27125 (mmx_<code>v8qi3): Likewise.
27126 (smaxmin:<code>v4hi3): New.
27127 (umaxmin:<code>v8qi3): Likewise.
27128 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27129 (umaxmin:*mmx_<code>v8qi3): Likewise.
27130
27131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27132
27133 PR target/89021
27134 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27135 TARGET_MMX_WITH_SSE.
27136 (*mmx_pinsrw): Add SSE emulation.
27137
27138 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27139
27140 PR target/89021
27141 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27142
27143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27144
27145 PR target/89021
27146 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27147 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27148 SSE emulation.
27149
27150 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27151
27152 PR target/89021
27153 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27154 (sse_cvttps2pi): Likewise.
27155
27156 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27157
27158 PR target/89021
27159 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27160 TARGET_MMX_WITH_SSE.
27161 (mmx_pshufw_1): Add SSE emulation.
27162 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27163 TARGET_MMX_WITH_SSE to support SSE emulation.
27164
27165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27166
27167 PR target/89021
27168 * config/i386/constraints.md (Yw): New constraint.
27169 * config/i386/mmx.md (*vec_dupv2si): Changed to
27170 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27171 support SSE emulation.
27172
27173 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27174
27175 PR target/89021
27176 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27177 TARGET_MMX_WITH_SSE.
27178 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27179 support.
27180 (mmx_gt<mode>3): Likewise.
27181
27182 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 PR target/89021
27185 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27186 TARGET_MMX_WITH_SSE. Add SSE support.
27187
27188 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 PR target/89021
27191 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27192 TARGET_MMX_WITH_SSE.
27193 (any_logic:<code><mode>3): New.
27194 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27195 Add SSE support.
27196
27197 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27198
27199 PR target/89021
27200 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27201 TARGET_MMX_WITH_SSE. Add SSE emulation.
27202 (mmx_<shift_insn><mode>3): Likewise.
27203 (ashr<mode>3): New.
27204 (<shift_insn><mode>3): Likewise.
27205
27206 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27207
27208 PR target/89021
27209 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27210 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27211
27212 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27213
27214 PR target/89021
27215 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27216 TARGET_MMX_WITH_SSE.
27217 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27218 SSE support.
27219
27220 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27221
27222 PR target/89021
27223 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27224 TARGET_MMX_WITH_SSE.
27225 (mulv4hi3): New.
27226 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27227 support.
27228
27229 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27230
27231 PR target/89021
27232 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27233 (plusminus:mmx_<plusminus_insn><mode>3): Check
27234 TARGET_MMX_WITH_SSE.
27235 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27236 (<plusminus_insn><mode>3): New.
27237 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27238 (*mmx_<plusminus_insn><mode>3): Likewise.
27239
27240 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27241
27242 PR target/89021
27243 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27244 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27245 prototype.
27246 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27247 define_insn_and_split to support SSE emulation.
27248 (mmx_punpcklbw): Likewise.
27249 (mmx_punpckhwd): Likewise.
27250 (mmx_punpcklwd): Likewise.
27251 (mmx_punpckhdq): Likewise.
27252 (mmx_punpckldq): Likewise.
27253
27254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27255 Uros Bizjak <ubizjak@gmail.com>
27256
27257 PR target/89021
27258 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27259 New function.
27260 (ix86_split_mmx_pack): Likewise.
27261 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27262 New prototype.
27263 (ix86_split_mmx_pack): Likewise.
27264 * config/i386/i386.md (mmx_isa): New.
27265 (enabled): Also check mmx_isa.
27266 * config/i386/mmx.md (any_s_truncate): New code iterator.
27267 (s_trunsuffix): New code attr.
27268 (mmx_packsswb): Removed.
27269 (mmx_packssdw): Likewise.
27270 (mmx_packuswb): Likewise.
27271 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27272 MMX packsswb/packuswb with SSE2.
27273 (mmx_packssdw): Likewise.
27274 * config/i386/predicates.md (register_mmxmem_operand): New.
27275
27276 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27277
27278 PR target/89021
27279 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27280 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27281 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27282 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27283 (ix86_vector_mode_supported_p): Likewise.
27284 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27285
27286 2019-05-15 Martin Liska <mliska@suse.cz>
27287
27288 PR middle-end/90478
27289 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27290 Check for overflow.
27291
27292 2019-05-15 Richard Biener <rguenther@suse.de>
27293
27294 * tree-into-ssa.c (pass_build_ssa::execute): Run
27295 update_address_taken before going into SSA.
27296
27297 2019-05-15 Richard Biener <rguenther@suse.de>
27298
27299 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27300 as __BIT_FIELD_REF with type with -gimple.
27301
27302 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27303
27304 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27305 semantically equivalent branches (left over after prior refactorings).
27306
27307 2019-05-15 Richard Biener <rguenther@suse.de>
27308
27309 PR tree-optimization/88828
27310 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27311 bogus check.
27312
27313 2019-05-14 Richard Biener <rguenther@suse.de>
27314
27315 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27316 as __VIEW_CONVERT with -gimple.
27317
27318 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27319
27320 PR target/82920
27321 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27322 Darwin.
27323
27324 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27325
27326 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27327 define_split to become a define_insn_and_split.
27328
27329 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27330
27331 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27332 arguments.
27333 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27334 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27335 (sibcall_epilogue): Adjust.
27336 (epilogue): Adjust.
27337
27338 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27339
27340 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27341 to unsupported ones.
27342 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27343 * config.host: Likewise.
27344 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27345 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27346 __svr4__]: Remove "brand" fallback.
27347 [!KSTAT_DATA_STRING]: Remove.
27348 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27349 to *-*-solaris2*.
27350 (comdat_group): Likewise.
27351 (set_have_as_tls): Likewise.
27352 (gcc_cv_target_dl_iterate_phdr): Likewise.
27353 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27354 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27355 * configure: Regenerate.
27356 * doc/install.texi: Simplify Solaris target triplets.
27357 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27358 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27359 Remove Solaris 10 references.
27360 Remove obsolete Solaris bug reference.
27361 (Specific, sparc-sun-solaris2.10): Remove.
27362
27363 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27364
27365 * config/i386/i386.md (any_div): New code iterator.
27366 (paired_mod): New code attribute.
27367 (sgnprefix): Handle DIV and UDIV RTXes.
27368 (u): Ditto.
27369 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27370 and udivmod<mode>4 patterns using any_div code iterator.
27371 (divmod splitters): Macroize splitters using any_div code iterator.
27372 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27373 (*udivmodsi4_pow2_zext_2): Ditto.
27374 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27375 and *udivmod<mode>4_noext patterns using any_div code iterator.
27376 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27377 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27378 patterns using any_div code iterator.
27379 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27380 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27381 patterns using any_div code iterator.
27382 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27383 udivmodhiqi3 patterns using any_extend code iterator.
27384
27385 2019-05-14 Richard Biener <rguenther@suse.de>
27386 H.J. Lu <hongjiu.lu@intel.com>
27387
27388 PR tree-optimization/88828
27389 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27390 permuting in a single non-constant element not extracted
27391 from a vector.
27392
27393 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27394
27395 * internal-fn.def (SIGNBIT): New.
27396 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27397 defined.
27398 (signbitv4sf2): Likewise.
27399
27400 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27401
27402 PR target/90357
27403 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27404 next insn when the SRC reg is dead.
27405
27406 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27407
27408 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27409 (alloc_cand_and_find_basis): Ditto.
27410 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27411 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27412 (create_add_imm_cand, slsr_process_cast): Ditto.
27413 (slsr_process_copy, replace_mult_candidate): Ditto.
27414 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27415 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27416 (pass_strength_reduction::execute): Init the first NULL element.
27417
27418 2019-05-13 Nathan Sidwell <nathan@acm.org>
27419
27420 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27421 (run_attempt): Reformat line break.
27422
27423 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27424
27425 PR target/90418
27426 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27427 data registers in sibcall epilogues.
27428 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27429
27430 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27431
27432 PR target/89221
27433 * configure.ac (--enable-frame-pointer):
27434 Disable by default for cygwin and mingw.
27435 * configure: Regenerate.
27436
27437 2019-05-13 Nathan Sidwell <nathan@acm.org>
27438
27439 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27440 piece of code.
27441 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27442 (gen_member_die): Move abstract origin check earlier. Only VARs
27443 can be static_inline_p. Simplify splicing control flow.
27444
27445 2019-05-13 Richard Biener <rguenther@suse.de>
27446
27447 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27448 VIEW_CONVERT_EXPR.
27449 (vect_build_slp_tree_1): Likewise.
27450
27451 2019-05-13 Richard Biener <rguenther@suse.de>
27452
27453 PR tree-optimization/90402
27454 * tree-if-conv.c (tree_if_conversion): Value number only
27455 the loop body by making the latch an exit of the region
27456 as well.
27457 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27458 processing PHIs.
27459 (do_rpo_vn): Deal with multiple edges into the entry block
27460 that are not backedges inside the region by skipping PHIs
27461 of the entry block.
27462
27463 2019-05-13 Richard Biener <rguenther@suse.de>
27464
27465 PR tree-optimization/90316
27466 * tree-ssa-pre.c (insert_aux): Fold into ...
27467 (insert): ... this function. Use a RPO walk to reduce the
27468 number of required iterations.
27469
27470 2019-05-13 Martin Liska <mliska@suse.cz>
27471
27472 PR tree-optimization/90416
27473 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27474 string instead of passing the second part as va_arg argument.
27475
27476 2019-05-13 Martin Liska <mliska@suse.cz>
27477
27478 PR gcov-profile/90380
27479 * gcov.c (handle_cycle): Do not support zero cycle count,
27480 it should not be possible.
27481 (path_contains_zero_cycle_arc): New function.
27482 (circuit): Ignore zero cycle arc counts.
27483
27484 2019-05-13 Martin Liska <mliska@suse.cz>
27485
27486 PR gcov-profile/90380
27487 * gcov.c (enum loop_type): Remove the enum and
27488 the operator.
27489 (handle_cycle): Assert that we should not reach
27490 a negative count.
27491 (circuit): Use loop_found instead of a tri-state loop_type.
27492 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27493 happen.
27494
27495 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27496
27497 PR target/82920
27498 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27499 (ix86_output_indirect_branch_via_reg): Use output mechanism
27500 accounting for __USER_LABEL_PREFIX__.
27501 (ix86_output_indirect_branch_via_push): Likewise.
27502 (ix86_output_function_return): Likewise.
27503 (ix86_output_indirect_function_return): Likewise.
27504
27505 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27506
27507 * doc/md.texi: Document use of code attributes in rtx patterns.
27508 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27509 * read-rtl.c (find_code): Split out search loops into...
27510 (maybe_find_code): ...this new function.
27511 (check_code_iterator): Make the error message more informative.
27512 (check_code_attribute): New function.
27513 (rtx_reader::rtx_alloc_for_name): Likewise.
27514 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27515 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27516 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27517 <max_opp> directly as an rtx code instead of via a match_operator.
27518 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27519 (<su>abd<mode>_3): Update accordingly.
27520
27521 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27522
27523 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27524 is given, print the state of the EH "save world" computation for
27525 Darwin.
27526
27527 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27528
27529 PR c++/59813
27530 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27531 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27532
27533 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27534
27535 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27536 Use pinsrd for TARGET_SSE4_1.
27537 * config/i386/sse.md (movdi_to_sse): Ditto.
27538
27539 2019-05-10 Richard Biener <rguenther@suse.de>
27540
27541 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27542 (do_rpo_vn): Initialize next_value_id.
27543
27544 2019-05-10 Martin Liska <mliska@suse.cz>
27545
27546 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27547 Fix plural form.
27548
27549 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27550
27551 PR tree-optimization/90385
27552 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27553 arguments of the exit phis.
27554
27555 PR c++/90383
27556 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27557 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27558 id->do_not_fold.
27559 (copy_tree_body_r): Likewise.
27560 (copy_fn): Set id.do_not_fold to true.
27561
27562 2019-05-10 Martin Liska <mliska@suse.cz>
27563
27564 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27565 Reapply changes from r269790.
27566
27567 2019-05-10 Martin Liska <mliska@suse.cz>
27568
27569 PR middle-end/90340
27570 * doc/invoke.texi: New params.
27571 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27572 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27573 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27574 Use it.
27575 * tree-switch-conversion.h (struct jump_table_cluster):
27576 Likewise.
27577
27578 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27579
27580 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27581
27582 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27583
27584 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27585
27586 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27587
27588 PR rtl-optimization/88879
27589 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27590
27591 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27592
27593 PR target/90405
27594 * config/arm/arm.c (callee_saved_reg_p): Move before
27595 thumb_find_work_register.
27596 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27597 thumb_find_work_register. Only call df_get_live_out once.
27598 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27599 (thumb_find_work_register): Use
27600 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27601 algorithms to locate a spare call clobbered reg.
27602
27603 2019-05-09 Martin Liska <mliska@suse.cz>
27604
27605 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27606 and MAX_EXPR in GIMPLE FE format.
27607
27608 2019-05-09 Martin Liska <mliska@suse.cz>
27609
27610 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27611 * gimple-pretty-print.c (dump_gimple_bb_header):
27612 Dump BB count.
27613 (pp_cfg_jump): Dump edge probability.
27614 * profile-count.c (profile_quality_as_string): Simplify
27615 with a static array.
27616 (parse_profile_quality): New function.
27617 (profile_count::dump): Simplify with a static array.
27618 (profile_count::from_gcov_type): Add new argument.
27619 * profile-count.h (parse_profile_quality): Likewise.
27620 * predict.h (set_hot_bb_threshold): New.
27621 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27622 New param.
27623 * predict.c (get_hot_bb_threshold): Set from the new param.
27624 (set_hot_bb_threshold): New.
27625
27626 2019-05-09 Richard Biener <rguenther@suse.de>
27627
27628 PR tree-optimization/90395
27629 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27630 rewrite vector stores that throw internally.
27631
27632 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27633
27634 * cif-code.def (CHKP): Remove.
27635
27636 PR target/89221
27637 * configure.ac (--enable-frame-pointer): Disable by default for
27638 GNU systems.
27639 * configure: Regenerate.
27640
27641 2019-05-09 Alan Modra <amodra@gmail.com>
27642
27643 PR target/89271
27644 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27645 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27646 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27647 cost for general <-> vsx when direct moves are available.
27648 Cost union classes at minimal cost for any reg in the class.
27649 Correct calculation for moves between vsx, float, and altivec.
27650 Don't return a low cost for moves between special regs. Don't
27651 use hard coded register numbers.
27652 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27653 (rs6000_ira_change_pseudo_allocno_class): New function.
27654 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27655 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27656 alternatives.
27657 (movsi_internal1): Don't disparage vector alternatives.
27658 (mov<mode>_internal): Likewise, excepting alternative that
27659 will be split.
27660 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27661 we <- b alternative.
27662
27663 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27664
27665 PR c++/59813
27666 PR tree-optimization/89060
27667 * tree-ssa-live.h (live_vars_map): New typedef.
27668 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27669 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27670 (struct compute_live_vars_data): New type.
27671 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27672 live_vars_at_stmt, destroy_live_vars): New functions.
27673 * tree-tailcall.c: Include tree-ssa-live.h.
27674 (live_vars, live_vars_vec): New global variables.
27675 (find_tail_calls): Perform variable life analysis before punting.
27676 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27677 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27678 member.
27679 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27680 Perform variable life analysis to select variables that really need
27681 clobbers added.
27682 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27683 instead set id->eh_landing_pad_dest and assert it is the same.
27684 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27685
27686 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27687 Richard Earnshaw <rearnsha@arm.com>
27688
27689 PR target/88167
27690 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27691 function.
27692 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27693 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27694 register if both the epilogue and prologue can use call-clobbered
27695 regs.
27696 (thumb1_unexpanded_epilogue): Use
27697 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27698 picking temporaries for restoring high regs to match that of the
27699 prologue where possible.
27700 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27701 the list of work registers. Detect if the return address is still live
27702 at the end of the prologue and avoid using it for a work register if so.
27703 If the return address is not live, add LR to the list of pushable regs
27704 after the first pass.
27705
27706 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27707
27708 PR tree-optimization/90078
27709 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27710 (INFTY): Increase the value for infinite cost.
27711 (struct comp_cost): Promote type of members to int64_t.
27712 (infinite_cost): Don't set complexity in initialization.
27713 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27714 overflows to infinite_cost.
27715 (adjust_setup_cost): Promote type of parameter and cost computation
27716 to int64_t.
27717 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27718 int64_t.
27719 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27720 cost computation to int64_t.
27721 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27722 int64_t's format specifier in dump.
27723
27724 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27725
27726 PR tree-optimization/90240
27727 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27728 with respect to scaling factor pre-computed for each basic block.
27729 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27730 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27731 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27732 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27733 live range for array of loop's basic blocks. Cleanup aux field of
27734 loop's basic blocks.
27735
27736 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27737
27738 PR tree-optimization/90356
27739 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27740
27741 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27742
27743 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27744 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27745 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27746 (ix86_handle_option): Handle -mavx512bf16.
27747 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27748 to extra_headers.
27749 * config/i386/avx512bf16vlintrin.h: New.
27750 * config/i386/avx512bf16intrin.h: New.
27751 * config/i386/cpuid.h (bit_AVX512BF16): New.
27752 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27753 * config/i386/i386-builtin-types.def: Add new types.
27754 * config/i386/i386-builtin.def: Add new builtins.
27755 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27756 __AVX512BF16__.
27757 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27758 (ix86_option_override_internal): Handle BF16.
27759 (ix86_valid_target_attribute_inner_p): Ditto.
27760 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27761 * config/i386/i386-builtin.c (enum processor_features): Add
27762 F_AVX512BF16.
27763 (static const _isa_names_table isa_names_table): Ditto.
27764 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27765 (PTA_AVX512BF16): Ditto.
27766 * config/i386/i386.opt: Add -mavx512bf16.
27767 * config/i386/immintrin.h: Include avx512bf16intrin.h
27768 and avx512bf16vlintrin.h.
27769 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27770 avx512f_cvtneps2bf16_<mode><mask_name>,
27771 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27772 * config/i386/subst.md (mask_half): Add new subst.
27773 * doc/invoke.texi: Document -mavx512bf16.
27774
27775 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27776
27777 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27778 Delete declaration.
27779 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27780 (rs6000_debug_legitimize_reload_address): Delete.
27781 (rs6000_legitimize_reload_address_ptr): Delete.
27782 (rs6000_option_override_internal): Adjust.
27783 (mem_operand_gpr): Adjust comment.
27784 (legitimate_lo_sum_address_p): Ditto.
27785 (rs6000_legitimize_reload_address): Delete.
27786 (rs6000_debug_legitimize_reload_address): Delete.
27787 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27788
27789 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27790
27791 PR target/89765
27792 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27793 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27794 to compute vector element selector for both constant and variable
27795 operands.
27796
27797 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27798
27799 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27800 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27801 ashrdi3_cvt using SWI48 mode iterator.
27802
27803 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27804
27805 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27806 (aarch64_<su>abd<mode>_3): Likewise.
27807 (*aarch64_<su>abd<mode>_3): New define_insn.
27808 (<sur>sad<vsi2qi>): New define_expand.
27809 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27810 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27811 (build_vect_cond_expr): Likewise.
27812
27813 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27814
27815 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27816 clobbers outside of accessible_reg_set.
27817 * config/i386/i386.c (ix86_conditional_register_usage):
27818 Disable register sets by clearing corresponding bits in
27819 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27820 call_used_regs and don't clear corresponding reg_names array members.
27821
27822 2019-05-07 Richard Biener <rguenther@suse.de>
27823
27824 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27825 not specified still compute a comp_vectype for invariant
27826 compares.
27827
27828 2019-05-07 Richard Biener <rguenther@suse.de>
27829
27830 PR tree-optimization/90316
27831 * tree-ssa-pre.c (translate_vuse_through_block): When
27832 same_valid is NULL do not bother to search for a virtual
27833 PHI continuation.
27834 (phi_translate_1): When operands changed we cannot keep
27835 the same value-number so do not bother to ask whether
27836 that's possible from translate_vuse_through_block.
27837
27838 2019-05-07 Martin Liska <mliska@suse.cz>
27839
27840 * bitmap.c (bitmap_register): Come up with
27841 alloc_descriptor_max_uid and assign it for
27842 a new bitmap.
27843 (register_overhead): Use get_descriptor as
27844 a descriptor.
27845 (release_overhead): New.
27846 (bitmap_elem_to_freelist): Call it.
27847 (bitmap_elt_clear_from): Likewise.
27848 (bitmap_obstack_free): Likewise.
27849 (bitmap_move): Sensitively release memory.
27850 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27851 (bitmap_initialize): Initialize alloc_descriptor to zero.
27852 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27853
27854 2019-05-07 Richard Biener <rguenther@suse.de>
27855
27856 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27857 we build a SLP node. Remove max_size and limiting.
27858 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27859
27860 2019-05-07 Richard Biener <rguenther@suse.de>
27861
27862 PR tree-optimization/90316
27863 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27864 limit by reference.
27865 (walk_non_aliased_vuses): Take walking limit argument.
27866 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27867 walking if it is reached instead of just counting.
27868 (get_continuation_for_phi): Likewise.
27869 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27870 limiting to the callback.
27871 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27872 (vn_reference_lookup_3): Likewise.
27873 (vn_reference_lookup_pieces): Likewise.
27874 (vn_reference_lookup): Likewise.
27875 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27876 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27877 (avail_exprs_stack::lookup_avail_expr): Likewise.
27878
27879 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27880
27881 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27882 for comparaible types in the second direction even if first one
27883 hits incomparable type.
27884
27885 2019-05-07 Richard Biener <rguenther@suse.de>
27886
27887 PR lto/90369
27888 * lto-wrapper.c (debug_objcopy): Use the original filename
27889 including archive offset for the filename used for -save-temps.
27890
27891 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27892
27893 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27894 detection.
27895
27896 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27897 Hongtao Liu <hongtao.liu@intel.com>
27898
27899 PR target/89750
27900 PR target/86444
27901 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27902 Modified, original implementation isn't correct.
27903
27904 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27905
27906 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27907 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27908 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27909 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27910 (FRAME_POINTER_REGNUM): Change numbering.
27911 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27912 (alt_reg_names): Adjust.
27913 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27914 fixed.
27915 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27916 (DWARF_FRAME_REGISTERS): Delete.
27917 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27918 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27919 Adjust.
27920 (REG_ALLOC_ORDER): Adjust.
27921 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27922 (REG_CLASS_CONTENTS): Adjust.
27923 (RETURN_ADDR_RTX): Change comment.
27924 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27925 instead of 67.
27926 (REGISTER_NAMES): Adjust.
27927 (ADDITIONAL_REGISTER_NAMES): Adjust.
27928 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27929
27930 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27931
27932 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27933 Delete.
27934 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27935 (DWARF_FRAME_REGISTERS): Adjust.
27936 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27937 Adjust.
27938 (REG_ALLOC_ORDER): Adjust.
27939 (enum reg_class): Delete SPR_REGS.
27940 (REG_CLASS_NAMES): Delete SPR_REGS.
27941 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27942 (REGISTER_NAMES): Adjust.
27943 (ADDITIONAL_REGISTER_NAMES): Adjust.
27944 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27945 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27946 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27947 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27948 (htm_spr_regno): Delete.
27949 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27950 argument.
27951 (rs6000_dbx_register_number): Adjust.
27952
27953 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27954
27955 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27956
27957 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27958
27959 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27960 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27961
27962 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27963
27964 PR tree-optimization/88709
27965 PR tree-optimization/90271
27966 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27967 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27968 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27969 variable.
27970 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27971 of the store merging group is larger than
27972 PARAM_STORE_MERGING_MAX_SIZE parameter.
27973 (split_group): Add bzero_first argument. If set, always emit first
27974 the first store which must be = {} of the whole area and then for the
27975 rest of the stores consider all zero bytes as paddings.
27976 (imm_store_chain_info::output_merged_store): Check if first store
27977 is = {} of the whole area and if yes, determine which setting of
27978 bzero_first for split_group gives smaller number of stores. Adjust
27979 split_group callers.
27980 (lhs_valid_for_store_merging_p): Allow decls.
27981 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27982 no elts.
27983 (pass_store_merging::process_store): Likewise.
27984
27985 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27986
27987 PR target/89424
27988 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27989 handling of V1TImode.
27990
27991 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27992
27993 PR target/89221
27994 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27995 and enable_frame_pointer ...
27996 * configure.ac: ... here. Update help strings for
27997 --enable-frame-pointer.
27998 * configure: Regenerate.
27999 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28000 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28001 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28002 (USE_X86_64_FRAME_POINTER): Ditto.
28003
28004 2019-05-06 Martin Liska <mliska@suse.cz>
28005
28006 * config.gcc: Append to target_gtfiles and fix indentation.
28007
28008 2019-05-06 Richard Biener <rguenther@suse.de>
28009
28010 PR tree-optimization/90358
28011 * tree-vect-stmts.c (get_group_load_store_type): Properly
28012 detect unused upper half of load.
28013 (vectorizable_load): Likewise.
28014
28015 2019-05-06 Richard Biener <rguenther@suse.de>
28016
28017 PR tree-optimization/88828
28018 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28019 (simplify_vector_constructor): ...here. Handle constants in
28020 the constructor.
28021
28022 2019-05-06 Richard Biener <rguenther@suse.de>
28023
28024 PR tree-optimization/90328
28025 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28026 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28027 is valid in the loop nest before using it.
28028 (initialize_data_dependence_relation): Adjust.
28029 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28030 loop as loop-nest to dr_may_alias_p.
28031
28032 2019-05-06 Richard Biener <rguenther@suse.de>
28033
28034 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28035
28036 2019-05-06 Richard Biener <rguenther@suse.de>
28037
28038 PR tree-optimization/90316
28039 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28040 compute target on demand.
28041 (get_continuation_for_phi): Remove code walking stmts to
28042 get to a target virtual operand which could end up being
28043 quadratic.
28044
28045 2019-05-06 Martin Liska <mliska@suse.cz>
28046
28047 PR sanitizer/90312
28048 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28049 when -mabi is selected to a non-default version.
28050
28051 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28052 Martin Liska <mliska@suse.cz>
28053
28054 * Makefile.in: Add lto-dump.texi.
28055 * cgraph.h: Add new functions get_visibility_string and
28056 get_symtab_type_string.
28057 * doc/gcc.texi: Include lto-dump section.
28058 * doc/lto-dump.texi: New file.
28059 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28060 (parse_dump_option): Factor out this function.
28061 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28062 (parse_dump_option): Export the function.
28063 * symtab.c (symtab_node::get_visibility_string): New function.
28064 (symtab_node::get_symtab_type_string): Likewise.
28065
28066 2019-05-06 Martin Liska <mliska@suse.cz>
28067
28068 * config/i386/i386-builtins.c: New file.
28069 * config/i386/i386-builtins.h: New file.
28070 * config/i386/i386-expand.c: New file.
28071 * config/i386/i386-expand.h: New file.
28072 * config/i386/i386-features.c: New file.
28073 * config/i386/i386-features.h: New file.
28074 * config/i386/i386-options.c: New file.
28075 * config/i386/i386-options.h: New file.
28076 * config.gcc: Add new files into extra_objs and
28077 target_gtfiles.
28078 * config/i386/i386.c: Split content of the file
28079 into newly introduced files.
28080 * config/i386/i386.h: Declare common variables
28081 and macros.
28082 * config/i386/t-i386: Define dependencies for new files.
28083
28084 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28085
28086 PR target/89400
28087 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28088 Restrict 'all' variant to 32-bit configurations.
28089 (unaligned_loadhiu): Likewise.
28090 (unaligned_storehi): Likewise.
28091 (unaligned_storesi): Likewise.
28092 (unaligned_loadhis): Disable when compiling for thumb1.
28093
28094 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28095
28096 PR tree-optimization/90269
28097 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28098 Ignore clobbers.
28099
28100 2019-05-03 Martin Liska <mliska@suse.cz>
28101
28102 * hash-map.h: Add is_empty function.
28103 * hash-set.h: Likewise.
28104 * hash-table.h: Likewise.
28105 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28106 elements () == 0 (and similar usages).
28107 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28108 * gimplify.c (gimplify_bind_expr): Likewise.
28109 (gimplify_switch_expr): Likewise.
28110 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28111 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28112 * postreload-gcse.c (dump_hash_table): Likewise.
28113 (gcse_after_reload_main): Likewise.
28114 * predict.c (combine_predictions_for_bb): Likewise.
28115 * tree-parloops.c (reduction_phi): Likewise.
28116 (separate_decls_in_region): Likewise.
28117 (transform_to_exit_first_loop): Likewise.
28118 (gen_parallel_loop): Likewise.
28119 (gather_scalar_reductions): Likewise.
28120 (try_create_reduction_list): Likewise.
28121 * var-tracking.c (dump_vars): Likewise.
28122 (emit_notes_for_changes): Likewise.
28123 (vt_emit_notes): Likewise.
28124
28125 2019-05-03 Richard Biener <rguenther@suse.de>
28126
28127 PR tree-optimization/90316
28128 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28129 before running VN.
28130
28131 2019-05-03 Richard Biener <rguenther@suse.de>
28132
28133 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28134 peeling for gaps by loading only lower halves of vectors
28135 if possible.
28136 (vectorizable_load): Likewise.
28137
28138 2019-05-03 Richard Biener <rguenther@suse.de>
28139
28140 PR middle-end/89518
28141 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28142
28143 2019-05-03 Richard Biener <rguenther@suse.de>
28144
28145 PR middle-end/87314
28146 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28147 Handle STRING_CST vs DECL or STRING_CST.
28148
28149 2019-05-03 Richard Biener <rguenther@suse.de>
28150
28151 PR tree-optimization/88963
28152 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28153 vector loads feeding only BIT_FIELD_REFs to component
28154 loads. Rewrite stores fed by CONSTRUCTORs to component
28155 stores.
28156
28157 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28158
28159 * opts.h (finish_options): Remove lang_mask argument.
28160 (print_help, help_option_argument): Declare.
28161 * opts.c (print_help): Remove forward declaration, no longer static.
28162 (finish_options): Remove lang_mask argument, don't call print_help
28163 here.
28164 * opts-global.c (decode_options): Adjust finish_option caller, call
28165 print_help here.
28166
28167 PR tree-optimization/90303
28168 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28169 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28170
28171 2019-05-03 Richard Biener <rguenther@suse.de>
28172
28173 PR tree-optimization/89698
28174 * gimple-fold.c (canonicalize_constructor_val): Early out
28175 for constants, handle unfolded INTEGER_CSTs as they appear in
28176 C++ virtual table ctors.
28177
28178 2019-05-03 Richard Biener <rguenther@suse.de>
28179
28180 * passes.c (execute_function_todo): Remove dead code.
28181
28182 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28183
28184 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28185 the internal register number, for any "real" register.
28186
28187 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28188
28189 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28190 correct numbers for TFHAR, TFIAR, TEXASR.
28191
28192 2019-05-02 Richard Biener <rguenther@suse.de>
28193
28194 PR tree-optimization/89653
28195 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28196 update-address-taken before the pass.
28197 * passes.def (pass_tree_loop_init): Put comment before it.
28198
28199 2019-05-02 Richard Biener <rguenther@suse.de>
28200
28201 PR tree-optimization/89509
28202 * tree-ssa-structalias.c (compute_dependence_clique): Look
28203 at the first subvar when determining whether it is restrict.
28204
28205 2019-05-02 Richard Biener <rguenther@suse.de>
28206
28207 PR tree-optimization/90273
28208 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28209 useless debug stmts.
28210
28211 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28212
28213 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28214 ACLE branch.
28215 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28216 SVE ACLE branch.
28217 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28218 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28219 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28220 (vectorizable_reduction): Use the functions above to vectorize in a
28221 fully masked loop codes that don't have a conditional internal
28222 function.
28223
28224 2019-05-02 Martin Liska <mliska@suse.cz>
28225
28226 * cgraphclones.c: Call valid_attribute_p with 1 for
28227 target_clone.
28228 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28229 it's for target attribute.
28230 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28231 Add new boolean argument.
28232 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28233 Likewise.
28234 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28235 to ix86_valid_target_attribute_inner_p.
28236 (ix86_valid_target_attribute_p): Pass flags argument to
28237 ix86_valid_target_attribute_inner_p.
28238 (get_builtin_code_for_version): Use 0 as it's target attribute.
28239
28240 2019-05-02 Martin Liska <mliska@suse.cz>
28241
28242 * gcc.c (process_command): Add dummy file only
28243 if n_infiles == 0.
28244 * opts-global.c (decode_options): Pass lang_mask.
28245 * opts.c (print_help): New function.
28246 (finish_options): Print --help if help_option_argument
28247 is set.
28248 (common_handle_option): Factor out content of OPT__help_
28249 into print_help.
28250 * opts.h (finish_options): Add new argument.
28251
28252 2019-05-02 Martin Liska <mliska@suse.cz>
28253
28254 PR target/88809
28255 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28256 With -minline-all-stringops use inline expansion using 4B loop.
28257 * doc/invoke.texi: Document the change of
28258 -minline-all-stringops.
28259
28260 2019-05-01 Jeff Law <law@redhat.com>
28261
28262 PR tree-optimization/88797
28263 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28264 PHI feeds a conditional on the RHS of an assignment.
28265
28266 2019-04-30 Andrew Waterman <andrew@sifive.com>
28267 Jim Wilson <jimw@sifive.com>
28268
28269 * config/riscv/constraints.md (L): New.
28270 * config/riscv/predicates.md (lui_operand): New.
28271 (sfb_alu_operand): New.
28272 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28273 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28274 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28275 * config/riscv/risc.md (type): Add sfb_alu.
28276 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28277 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28278 (branch_zero<mode>): Delete.
28279 (mov<mode>cc): New.
28280 (mov<GPR:mode><X:mode>cc): Likewise.
28281 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28282
28283 2019-04-30 Nathan Sidwell <nathan@acm.org>
28284
28285 * tree.h (MARK_TS_EXP): New.
28286
28287 2019-04-30 Martin Liska <mliska@suse.cz>
28288
28289 * opts.c (enable_warning_as_error): Provide hints
28290 for unknown options.
28291
28292 2019-04-30 Martin Liska <mliska@suse.cz>
28293
28294 PR debug/90288
28295 * doc/invoke.texi: Add missing dash for gas-locview-support
28296 and gno-as-locview-support.
28297
28298 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28299
28300 PR target/89093
28301 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28302 whitespace at the start of target attribute string.
28303
28304 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28305
28306 PR target/86538
28307 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28308 Define __ARM_FEATURE_ATOMICS.
28309
28310 2019-04-30 Martin Liska <mliska@suse.cz>
28311
28312 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28313 into built_in_function enum. Remove code for endp == 2 and
28314 use BUILT_IN_* constants.
28315 (gimple_fold_builtin): Call the function with fcode.
28316
28317 2019-04-30 Martin Liska <mliska@suse.cz>
28318
28319 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28320 DECL_FUNCTION_CODE into ix86_builtins enum before
28321 the switch statement.
28322
28323 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28324
28325 PR tree-optimization/89475
28326 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28327 calls.
28328
28329 2019-04-30 Martin Liska <mliska@suse.cz>
28330
28331 PR translation/90274
28332 * opts.c (print_filtered_help): Wrap string in _(...).
28333
28334 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28335
28336 PR tree-optimization/90240
28337 Revert:
28338 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28339
28340 PR tree-optimization/90078
28341 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28342 checks for infinite_cost overflow.
28343
28344 2019-04-29 Jeff Law <law@redhat.com>
28345
28346 * passes.def: Move -Wrestrict pass after copy propagation.
28347
28348 2019-04-29 Maya Rashish <coypu@sdf.org>
28349
28350 * config.gcc (default_gnu_indirect_function): Default to yes
28351 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28352 sparc*-*-netbsd*, x86_64-*-netbsd*.
28353
28354 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28355
28356 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28357 where cond2 is NE_EXPR.
28358 (is_value_included_in): Update comment.
28359
28360 2019-04-29 Richard Biener <rguenther@suse.de>
28361
28362 PR tree-optimization/90278
28363 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28364 EH on comparison simplification.
28365
28366 2019-04-29 Jason Merrill <jason@redhat.com>
28367
28368 PR c++/82081 - tail call optimization breaks noexcept
28369 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28370 nothrow function to a might-throw function into a tail call.
28371
28372 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28373
28374 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28375 (DDR_INNER_LOOP): Likewise.
28376 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28377 (initialize_data_dependence_relation): Likewise.
28378 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28379
28380 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28381
28382 PR rtl-optimization/90257
28383 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28384 return value.
28385
28386 Revert the revert:
28387 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28388
28389 PR target/90178
28390 Revert:
28391 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28392
28393 Revert the revert:
28394 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28395
28396 Revert:
28397 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28398
28399 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28400
28401 2019-04-29 Richard Biener <rguenther@suse.de>
28402
28403 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28404 rhs issue a reset.
28405
28406 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28407
28408 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28409 varasm.h, and netbsd-protos.h.
28410
28411 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28412
28413 PR target/89261
28414 * config/i386/i386-protos.h (ix86_data_alignment): Change
28415 the second argument type to unsigned int.
28416 * config/i386/i386.c (ix86_data_alignment): Change "align"
28417 argument type to unsigned int.
28418
28419 2019-04-27 Martin Liska <mliska@suse.cz>
28420
28421 PR middle-end/90258
28422 * opt-suggestions.c (option_proposer::build_option_suggestions):
28423 When get_valid_option_values returns empty values, add the
28424 misspelling candidate.
28425
28426 2019-04-26 Jim Wilson <jimw@sifive.com>
28427
28428 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28429 parameter.
28430 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28431 Pass orig_mode to riscv_build_integer.
28432 (riscv_split_integer): Pass mode to riscv_move_integer.
28433 (riscv_legitimize_const_move): Likewise.
28434 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28435 promoted_mode. Replace force_reg call with code to load constant into
28436 promoted reg and then subreg it for the store.
28437 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28438 riscv_move_integer.
28439
28440 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28441
28442 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28443 corrupt codes.
28444
28445 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28446
28447 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28448 commentary about the encoding of precision.
28449
28450 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28451
28452 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28453 * config/i386/t-freebsd64: New file.
28454 * config.gcc: Add the t-freebsd64 for multilib support.
28455
28456 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28457
28458 * doc/extend.texi (vector_size): Add missing comma after @xref.
28459
28460 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28461
28462 * BASE-VER: Set to 10.0.0.
28463
28464 2019-04-25 Richard Biener <rguenther@suse.de>
28465
28466 PR middle-end/89765
28467 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28468 VIEW_CONVERT_EXPR into one operating on an rvalue.
28469
28470 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28471
28472 PR target/89929
28473 * config/i386/i386.c (feature_priority): Moved to file scope.
28474 (processor_features): Likewise.
28475 (processor_model): Likewise.
28476 (_arch_names_table): Likewise.
28477 (arch_names_table): Likewise.
28478 (_feature_list): Removed.
28479 (feature_list): Likewise.
28480 (_isa_names_table): Moved to file scope. Add priority.
28481 (isa_names_table): Likewise.
28482 (get_builtin_code_for_version): Replace feature_list with
28483 isa_names_table. Update error message for P_ZERO priority.
28484
28485 2019-04-25 Richard Biener <rguenther@suse.de>
28486
28487 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28488 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28489
28490 2019-04-24 Jeff Law <law@redhat.com>
28491
28492 PR tree-optimization/90037
28493 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28494 * passes.def: Replace all instance of phi-only cprop with the
28495 lattice propagator. Move propagation pass from after erroneous
28496 path isolation to before erroneous path isolation.
28497 * tree-ssa-phionlycprop.c: Remove.
28498
28499 2019-04-24 Richard Biener <rguenther@suse.de>
28500
28501 PR middle-end/90213
28502 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28503 by size and BITS_PER_UNIT on poly-wide-ints.
28504
28505 2019-04-25 Richard Biener <rguenther@suse.de>
28506
28507 PR middle-end/90194
28508 * match.pd: Add pattern to simplify view-conversion of an
28509 empty constructor.
28510
28511 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28512
28513 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28514 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28515 for Go on 32 bit AIX.
28516 * config/rs6000/aix72.h: Likewise.
28517
28518 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28519
28520 PR target/90193
28521 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28522 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28523
28524 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28525
28526 PR target/89952
28527 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28528 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28529 for restored hard frame pointer.
28530 (s390_sched_dependencies_evaluation): Implement new target hook.
28531 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28532
28533 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28534
28535 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28536 * config/arc/arc.c (arc_init): Cleanup warning message.
28537 (arc_override_options): Likewise.
28538
28539 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28540
28541 PR target/90187
28542 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28543 a register if both if_true and if_false are MEMs.
28544
28545 PR tree-optimization/90208
28546 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28547 after labels of new_bb, not before them.
28548
28549 PR tree-optimization/90211
28550 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28551 which are not SSA_NAMEs.
28552
28553 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28554
28555 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28556 AArch64.
28557 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28558
28559 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28560
28561 PR rtl-optimization/87979
28562 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28563 not equal zero.
28564
28565 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28566
28567 PR rtl-optimization/84032
28568 * modulo-sched.c (ps_insn_find_column): Change condition so that
28569 branch will always be the last insn in a row inside partial
28570 schedule.
28571
28572 2019-04-23 Richard Biener <rguenther@suse.de>
28573
28574 PR debug/90131
28575 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28576 dest_single_pred_p argument.
28577 (remove_forwarder_block): Adjust.
28578 (remove_forwarder_block_with_phi): Likewise.
28579
28580 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28581 Bernd Edlinger <bernd.edlinger@hotmail.de>
28582 Jakub Jelinek <jakub@redhat.com>
28583
28584 PR target/89093
28585 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28586 if used with general-regs-only.
28587 (arm_conditional_register_usage): Don't add non-general regs if
28588 general-regs-only.
28589 (arm_valid_target_attribute_rec): Handle general-regs-only.
28590 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28591 general-regs-only.
28592 (TARGET_HARD_FLOAT_SUB): Define.
28593 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28594 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28595 (TARGET_REALLY_IWMMXT2): Likewise.
28596 * config/arm/arm.opt: Add -mgeneral-regs-only.
28597 * doc/extend.texi: Document ARM general-regs-only target.
28598 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28599
28600 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28601
28602 PR tree-optimization/90078
28603 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28604 checks for infinite_cost overflow.
28605
28606 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28607
28608 PR tree-optimization/90021
28609 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28610 and check univariate against it.
28611 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28612 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28613
28614 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28615
28616 PR target/90178
28617 Revert:
28618 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28619
28620 Revert the revert:
28621 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28622
28623 Revert:
28624 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28625
28626 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28627
28628 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28629
28630 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28631 names using operand format, rather than hard-wired.
28632 (speculation_barrier): Likewise.
28633
28634 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28635
28636 PR tree-optimization/88055
28637 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28638 (gen_one_condition): Use it if !HONOR_NANS.
28639
28640 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28641
28642 PR middle-end/90139
28643 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28644 assign_temp instead of gen_reg_rtx.
28645
28646 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28647
28648 PR translation/90118
28649 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28650 Add missing space before %<.
28651
28652 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28653
28654 PR rtl-optimization/87871
28655 * ira-lives.c (make_object_dead): Don't add conflicts to
28656 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28657
28658 2019-04-18 Martin Sebor <msebor@redhat.com>
28659
28660 PR middle-end/89797
28661 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28662 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28663 assuming type size fits in SHWI.
28664
28665 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28666
28667 PR ipa/85051
28668 * ipa-inline.c (flatten_function): New parameter UPDATE.
28669 (ipa_inline, early_inliner): Use it.
28670
28671 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28672
28673 * fold-const.c (int_const_binop): Return early on failure.
28674
28675 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28676
28677 PR middle-end/85164
28678 * combine.c (force_int_to_mode): Cast the argument rather than
28679 the result of known_alignment.
28680 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28681
28682 2019-04-18 Richard Biener <rguenther@suse.de>
28683
28684 PR debug/90131
28685 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28686 out from ...
28687 (remove_forwarder_block): ... here.
28688 (remove_forwarder_block_with_phi): Also move debug stmts here.
28689
28690 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28691
28692 PR translation/79183
28693 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28694 inform where appropriate.
28695
28696 2019-04-18 Richard Biener <rguenther@suse.de>
28697
28698 * tree.c (get_qualified_type): Put found type variants at the
28699 head of the variant list.
28700
28701 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28702
28703 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28704
28705 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28706
28707 PR target/90125
28708 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28709 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28710 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28711 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28712 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28713
28714 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28715
28716 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28717 even for allocno's with no conflicts.
28718 (print_conflicts): Print an extra newline.
28719
28720 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28721
28722 * auto-inc-dec.c (attempt_change): Set the alignment of the
28723 temporary memory to that of the original.
28724
28725 2019-04-17 Joao Moreira <jmoreira@suse.de>
28726
28727 * targhooks.c (default_print_patchable_function_entry): Emit
28728 __patchable_function_entries section with writable flags to allow
28729 relocation resolution.
28730
28731 2019-04-17 Jonny Grant <jg@jguk.org>
28732
28733 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28734
28735 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28736
28737 PR middle-end/90095
28738 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28739 on lowpart SUBREGs.
28740
28741 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28742
28743 * config/arc/arc.c (arc_init): Format diagnostic string.
28744 (arc_override_options): Likewise.
28745 (check_if_valid_regno_const): Likewise.
28746 (arc_reorg): Likewise.
28747
28748 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28749
28750 PR target/17108
28751 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28752 name.
28753 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28754 name.
28755 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28756 (*movdi_update1): Use Pmode.
28757 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28758 (movdi_<mode>_update_stack): Rename to ...
28759 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28760 use Pmode.
28761 (*movsi_update1): Use Pmode.
28762 (*movsi_update2): Use Pmode.
28763 (movsi_update): Rename to ...
28764 (movsi_<mode>_update): ... this. Use Pmode.
28765 (movsi_update_stack): Fix condition.
28766 (*movhi_update1): Use Pmode. Fix argument to
28767 avoiding_indexed_address_p.
28768 (*movhi_update2): Ditto.
28769 (*movhi_update3): Ditto.
28770 (*movhi_update4): Ditto.
28771 (*movqi_update1): Ditto.
28772 (*movqi_update2): Ditto.
28773 (*movqi_update3): Ditto.
28774 (*movsf_update1, *movdf_update1): Merge, rename to...
28775 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28776 avoiding_indexed_address_p. Add "size" attribute.
28777 (*movsf_update2, *movdf_update2): Merge, rename to...
28778 (*mov<mode>_update2): This. Ditto.
28779 (*movsf_update3): Use Pmode. Fix argument to
28780 avoiding_indexed_address_p.
28781 (*movsf_update4): Ditto.
28782 (allocate_stack): Simplify condition. Adjust pattern names.
28783
28784 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28785
28786 PR target/89093
28787 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28788 whitespace at the start of target attribute string.
28789
28790 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28791
28792 PR target/84369
28793 * config/rs6000/power9.md: Add store forwarding bypass.
28794
28795 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28796
28797 PR debug/89528
28798 * valtrack.c (dead_debug_insert_temp): Reset debug references
28799 to the return value of a call being removed.
28800
28801 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28802
28803 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28804 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28805 implement target hook.
28806 (arc_memory_move_cost): New function.
28807 (TARGET_REGISTER_MOVE_COST): Define.
28808 (TARGET_MEMORY_MOVE_COST): Likewise.
28809 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28810 (MEMORY_MOVE_COST): Likewise.
28811
28812 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28813
28814 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28815 (sibcall_value_insn): Likewise.
28816 * config/arc/constraints.md (Rs5): Remove.
28817
28818 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28819
28820 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28821 for last two fake registers.
28822 (arc_conditional_register_usage): Make sure fake frame and arg
28823 pointer regs are in general regs class.
28824 (FRAME_POINTER_MASK): Remove.
28825 (RETURN_ADDR_MASK): Remove.
28826 (arc_must_save_register): Use hard frame regnum.
28827 (frame_restore_reg): Use hard_frame_pointer_rtx.
28828 (arc_save_callee_saves): Likewise.
28829 (arc_restore_callee_saves): Likewise.
28830 (arc_save_callee_enter): Likewise.
28831 (arc_restore_callee_leave): Likewise.
28832 (arc_save_callee_milli): Likewise.
28833 (arc_eh_return_address_location): Likewise.
28834 (arc_check_multi): Use hard frame regnum.
28835 (arc_can_eliminate): Likewise.
28836 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28837 for register allocator.
28838 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28839 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28840 (FRAME_POINTER_REGNUM): Change it to a fake register.
28841 (HARD_FRAME_POINTER_REGNUM): Defined.
28842 (ARG_POINTER_REGNUM): Change it to a new fake register.
28843 (ELIMINABLE_REGS): Update.
28844 (REGISTER_NAMES): Update names.
28845 * config/arc/arc.md (LP_START): Remove.
28846 (LP_END): Likewise.
28847 (shift_si3_loop): Update pattern.
28848
28849 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28850
28851 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28852 to avoid delay slot scheduling.
28853 (arc_must_save_register): Don't save SP.
28854 * config/arc/arc.md (stack_tie): Remove.
28855 (UNSPEC_ARC_STKTIE): Likewise.
28856
28857 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28858 Shiva Chen <shiva0217@gmail.com>
28859
28860 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28861 code gen with large shift amount.
28862
28863 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28864
28865 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28866 subreg.
28867
28868 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28869
28870 PR target/90096
28871 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28872 print -m64/-mx32/-m32 if it is true.
28873 (ix86_debug_options, ix86_function_specific_print): Pass true as
28874 ADD_ABI_P to ix86_target_string.
28875 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28876 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28877 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28878
28879 PR rtl-optimization/90082
28880 * dce.c (can_delete_call): New function.
28881 (deletable_insn_p, mark_insn): Use it.
28882
28883 PR tree-optimization/90090
28884 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28885 throw internally.
28886 (is_division_by_square): Likewise. Formatting fix.
28887
28888 2019-04-16 Richard Biener <rguenther@suse.de>
28889
28890 PR tree-optimization/56049
28891 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28892 equality check if alias-set zero will prevail.
28893
28894 2019-04-15 Jeff Law <law@redhat.com>
28895
28896 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28897 size and alignment as unsigned.
28898
28899 2019-04-15 Richard Biener <rguenther@suse.de>
28900
28901 PR debug/90074
28902 * tree-loop-distribution.c (destroy_loop): Preserve correct
28903 debug info.
28904
28905 2019-04-15 Richard Biener <rguenther@suse.de>
28906
28907 PR tree-optimization/90071
28908 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28909 abnormal operands from def stmts.
28910
28911 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28912
28913 PR rtl-optimization/89794
28914 * combine.c (count_auto_inc): New function.
28915 (try_combine): Count how many auto_inc expressions there were in the
28916 original instructions. Ensure we have the same number in the new
28917 instructions. Remove the code that tried to ensure auto_inc side
28918 effects on i1 and i0 are not lost.
28919
28920 2019-04-15 Richard Biener <rguenther@suse.de>
28921
28922 PR ipa/88936
28923 * tree.h (auto_var_p): Declare.
28924 * tree.c (auto_var_p): New function, split out from ...
28925 (auto_var_in_fn_p): ... here.
28926 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28927 member.
28928 (new_var_info): Initialize it.
28929 (set_uids_in_ptset): Also set the shadow variable uid if required.
28930 (ipa_pta_execute): Postprocess points-to solutions assigning
28931 shadow variable uids for locals that may reach their containing
28932 function recursively.
28933 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28934 assert but instead check whether the points-to solution is
28935 a singleton.
28936
28937 2019-04-15 Martin Jambor <mjambor@suse.cz>
28938
28939 PR ipa/pr89693
28940 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28941 the thunk chain.
28942
28943 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28944
28945 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28946
28947 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28948 Kito Cheng <kito.cheng@gmail.com>
28949 Shiva Chen <shiva0217@gmail.com>
28950
28951 * config/nds32/nds32-md-auxiliary.c
28952 (nds32_legitimize_pic_address): Use new PIC pattern.
28953 (nds32_legitimize_tls_address): Use new TLS pattern.
28954 (nds32_output_symrel): New.
28955 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28956 (nds32_alloc_relax_group_id): Ditto.
28957 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28958 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28959 relax_group_id.
28960 (nds32_group_tls_insn): Ditto.
28961 (nds32_group_float_insns): Ditto.
28962 * config/nds32/nds32.md (tls_le): New.
28963 (sym_got): Ditto.
28964
28965 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28966
28967 * configure: Add nds32 target for dwarf2 debug_line checking.
28968 * configure.ac: Regenerated.
28969
28970 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28971
28972 PR lto/89358
28973 * ipa-devirt.c (skip_in_fields_list_p): New.
28974 (odr_types_equivalent_p): Use it.
28975
28976 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28977
28978 PR target/89093
28979 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28980 instead of strncmp when checking for thumb and arm. Formatting fixes.
28981
28982 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28983
28984 * doc/install.texi: Document --with-target-system-zlib.
28985
28986 2019-04-12 Martin Sebor <msebor@redhat.com>
28987
28988 PR c/88383
28989 PR c/89288
28990 PR c/89798
28991 PR c/89797
28992 * targhooks.c (default_vector_alignment): Avoid assuming
28993 argument fits in SHWI.
28994 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28995 a shift expression.
28996 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28997
28998 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28999
29000 PR rtl-optimization/89965
29001 * dce.c: Include rtl-iter.h.
29002 (struct check_argument_load_data): New type.
29003 (check_argument_load): New function.
29004 (find_call_stack_args): Check for loads from stack slots still tracked
29005 in sp_bytes and punt if any is found.
29006
29007 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29008
29009 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29010
29011 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29012 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29013
29014 2019-04-12 Martin Liska <mliska@suse.cz>
29015
29016 PR middle-end/89970
29017 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29018 in error message.
29019 (separate_attrs): Handle multiple 'default's.
29020 (expand_target_clones): Rework error handling code.
29021
29022 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29023
29024 PR target/87532
29025 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29026 mode of vector rather than mode of destination for move instruction.
29027 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29028 Use QI inner mode with V16QI vector mode.
29029
29030 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29031
29032 PR target/52726
29033 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29034 "invalid %%t operand" in output_operand_lossage message.
29035
29036 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29037
29038 * config/s390/predicates.md (permute_pattern_operand): New
29039 predicate.
29040 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29041 operand for the permute pattern.
29042 ("*vec_perm<mode>"): New insn definition.
29043 ("bswap<mode>"): Generate the permute pattern operand in the
29044 expander and perform the operand reloads for pre arch13 level
29045 already.
29046 ("*bswap<mode>_emu"): Rename to ...
29047 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29048 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29049 Add the USE operand for the permute pattern.
29050 ("*vec_set_bswap_vec<mode>"): Likewise.
29051
29052 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29053
29054 PR c/89946
29055 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29056 and gcc_unreachable if it fails, just call tree_to_uhwi which
29057 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29058 Start warning message with a lower-case letter. Formatting fixes.
29059
29060 PR rtl-optimization/90026
29061 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29062 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29063 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29064 in cfglayout mode, use emit_barrier_after_bb.
29065
29066 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29067
29068 PR rtl-optimization/87763
29069 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29070 New Instruction.
29071
29072 2019-04-11 Tom de Vries <tdevries@suse.de>
29073
29074 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29075 max macro using statement expression.
29076
29077 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29078
29079 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29080 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29081 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29082 read_only_private_data_section using xcoff_private_rodata_section_name.
29083 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29084
29085 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29086
29087 PR target/90016
29088 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29089
29090 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29091
29092 PR rtl-optimization/89965
29093 * dce.c (sp_based_mem_offset): New function.
29094 (find_call_stack_args): Use sp_based_mem_offset.
29095
29096 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29097
29098 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29099
29100 2019-04-11 Richard Biener <rguenther@suse.de>
29101
29102 PR tree-optimization/90020
29103 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29104 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29105 * tree-ssa-pre.c (compute_avail): Use it to not put
29106 possibly trapping references after a call that might not
29107 return into EXP_GEN.
29108 * gcse.c (compute_hash_table_work): Do not elide
29109 marking a block containing a call if the call might not
29110 return.
29111
29112 2019-04-11 Richard Biener <rguenther@suse.de>
29113
29114 PR tree-optimization/90018
29115 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29116 Test both SLP and interleaving variants.
29117
29118 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29119
29120 * config/s390/8561.md: New file.
29121 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29122 Add arch13 cpu model.
29123 * config/s390/s390-opts.h (enum processor_type): Likewise.
29124 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29125 (s390_get_unit_mask): Likewise.
29126 (s390_is_fpd): Likewise.
29127 (s390_is_fxd): Likewise.
29128 * config/s390/s390.h (s390_tune_attr): Likewise.
29129 * config/s390/s390.md: Include arch13 pipeline description.
29130 * config/s390/s390.opt: Add arch13.
29131
29132 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29133
29134 PR rtl-optimization/87763
29135 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29136 New prototype.
29137 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29138 New function.
29139 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29140 New instruction.
29141 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29142 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29143 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29144 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29145
29146 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29147
29148 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29149 "Although" in -fipa-icf documentation.
29150
29151 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29152 of using multiple -g options.
29153
29154 2019-04-10 Martin Liska <mliska@suse.cz>
29155
29156 PR gcov-profile/89959
29157 * doc/gcov.texi: Make documentation of -x option
29158 more precise.
29159
29160 2019-04-10 Richard Biener <rguenther@suse.de>
29161
29162 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29163 member.
29164 (DR_GROUP_SAME_DR_STMT): Remove.
29165 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29166 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29167 replace with assert.
29168 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29169 (vect_record_grouped_load_vectors): Remove unreachable code.
29170
29171 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29172
29173 PR target/90016
29174 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29175 obsolete reference to N.
29176
29177 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29178
29179 PR middle-end/90025
29180 * expr.c (store_expr): Set properly size on the MEM passed to
29181 clear_storage.
29182
29183 PR c++/90010
29184 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29185 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29186 translation is needed, and when translation is needed, only append
29187 ... if the string length is hostsz or more bytes long. Avoid using
29188 strncpy or strcat.
29189
29190 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29191
29192 PR target/90024
29193 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29194 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29195 into three.
29196 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29197 differences directly.
29198 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29199
29200 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29201
29202 PR translation/90011
29203 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29204 from diagnostics.
29205 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29206 diagnostics.
29207 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29208 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29209 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29210 trailing space from -gsplit-dwarf diagnostics.
29211
29212 PR tree-optimization/89998
29213 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29214 instead of integer_type_node if possible, don't add ranges if return
29215 type is not compatible with int.
29216 * gimple-fold.c (gimple_fold_builtin_sprintf,
29217 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29218 integer_type_node.
29219
29220 2019-04-09 Martin Liska <mliska@suse.cz>
29221
29222 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29223 * doc/install.texi: Document the new config.
29224
29225 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29226
29227 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29228 use gimple_expr_type for load and store calls. Skip over the
29229 condition argument in a conditional internal function.
29230 Protect use of TREE_INT_CST_LOW.
29231
29232 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29233
29234 PR target/90015
29235 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29236 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29237 trailing period from it too.
29238
29239 2019-04-08 wu yuan <wuyuan5@huawei.com>
29240
29241 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29242 * config/aarch64/aarch64.md: Add "tsv110.md".
29243 * config/aarch64/tsv110.md: New file.
29244
29245 2019-04-08 Richard Biener <rguenther@suse.de>
29246
29247 PR tree-optimization/90006
29248 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29249 calls like lrint.
29250
29251 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29252
29253 PR target/83033
29254 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29255 construction.
29256 (fma_root_node): Likewise.
29257 (func_fma_steering): Likewise.
29258
29259 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29260
29261 PR rtl-optimization/89865
29262 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29263
29264 PR rtl-optimization/89865
29265 * config/i386/i386.md
29266 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29267 numbers not to clash with the additional operands[4].
29268 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29269 with extra register copy in the middle.
29270
29271 2019-04-08 Martin Liska <mliska@suse.cz>
29272
29273 PR gcov-profile/89961
29274 * doc/gcov.texi: Document data_file.
29275 * gcov.c (generate_results): Add data_info into JSON output.
29276
29277 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29278
29279 PR tree-optimization/89725
29280 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29281 loop's chrec as invariant symbol.
29282 * tree-chrec.h (chrec_contains_symbols): New parameter.
29283 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29284 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29285 function of loops not in DDR's loop_nest.
29286 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29287
29288 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29289
29290 PR target/89623
29291 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29292 Mask.
29293
29294 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29295
29296 PR target/89945
29297 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29298 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29299
29300 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29301
29302 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29303 targetm.fixed_condition_code_regs.
29304
29305 2019-04-05 Richard Biener <rguenther@suse.de>
29306
29307 PR debug/89892
29308 PR debug/89905
29309 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29310 debug bind stmts but reset them if they are not valid at the
29311 destination.
29312
29313 2019-04-05 Martin Liska <mliska@suse.cz>
29314
29315 PR translation/89936
29316 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29317 order to wrap keywords or arguments.
29318 * collect2.c (main): Likewise.
29319 (scan_prog_file): Likewise.
29320 (scan_libraries): Likewise.
29321 * common/config/riscv/riscv-common.c
29322 (riscv_subset_list::parsing_subset_version): Likewise.
29323 (riscv_subset_list::parse_std_ext): Likewise.
29324 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29325 Likewise.
29326 * config/arm/arm.c (arm_option_override): Likewise.
29327 * config/cris/cris.c (cris_print_operand): Likewise.
29328 * config/darwin-c.c (darwin_pragma_options): Likewise.
29329 (darwin_pragma_unused): Likewise.
29330 (darwin_pragma_ms_struct): Likewise.
29331 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29332 * config/i386/i386.c (print_reg): Likewise.
29333 (ix86_print_operand): Likewise.
29334 * config/i386/xm-djgpp.h: Likewise.
29335 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29336 * config/m32c/m32c.c (m32c_option_override): Likewise.
29337 * config/msp430/msp430.c (msp430_option_override): Likewise.
29338 * config/nds32/nds32.c (nds32_option_override): Likewise.
29339 * config/nvptx/mkoffload.c (main): Likewise.
29340 * config/rx/rx.c (rx_print_operand): Likewise.
29341 (valid_psw_flag): Likewise.
29342 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29343 (vms_pragma_nomember_alignment): Likewise.
29344 (vms_pragma_extern_model): Likewise.
29345 * lto-wrapper.c (compile_offload_image): Likewise.
29346 * omp-offload.c (oacc_parse_default_dims): Likewise.
29347 * symtab.c (symtab_node::verify_base): Likewise.
29348 * tlink.c (recompile_files): Likewise.
29349 (start_tweaking): Likewise.
29350 * tree-profile.c (parse_profile_filter): Likewise.
29351
29352 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29353
29354 PR tree-optimization/89956
29355 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29356 multiple negates of the same value.
29357
29358 2019-04-04 Martin Sebor <msebor@redhat.com>
29359
29360 PR middle-end/89957
29361 PR middle-end/89911
29362 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29363 have the same precision since the function crashes otherwise.
29364 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29365 has non-zero arguments.
29366
29367 2019-04-04 Martin Sebor <msebor@redhat.com>
29368
29369 PR middle-end/89934
29370 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29371 out if the number of arguments is less than expected.
29372
29373 2019-04-04 Jeff Law <law@redhat.com>
29374
29375 PR rtl-optimization/89399
29376 * ree.c (combine_set_extension): Use single_set rather than
29377 digging into PATTERN for items on the candidate list.
29378 (combine_reaching_defs): Likewise.
29379
29380 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29381
29382 PR rtl-optimization/46590
29383 * loop-invariant.c (find_defs): Move df_remove_problem and
29384 df_process_deferred_rescans to move_invariants.
29385 Move df_live_add_problem and df_live_set_all_dirty calls
29386 to move_invariants.
29387 (move_invariants): Likewise.
29388 (move_loop_invariants): Likewise, making the df_live calls
29389 conditional on -O. Remove the problem again if we added it
29390 locally.
29391
29392 2019-04-03 qing zhao <qing.zhao@oracle.com>
29393
29394 PR tree-optimization/89730
29395 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29396 -flive-patching=inline-only-static.
29397 (can_inline_edge_by_limits_p): Add the checking for
29398 -flive-patching=inline-only-static and grant always_inline
29399 even when -flive-patching=inline-only-static is specified.
29400
29401 2019-04-03 Jeff Law <law@redhat.com>
29402
29403 PR rtl-optimization/81025
29404 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29405
29406 2019-04-03 Richard Biener <rguenther@suse.de>
29407
29408 PR tree-optimization/84101
29409 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29410 regs.h for hard_regno_nregs.
29411 (cfun_returns): New helper.
29412 (vect_model_store_cost): When vectorizing a store to a decl
29413 we return and the function ABI returns in a multi-reg location
29414 account for the possible spilling that will happen.
29415
29416 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29417
29418 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29419 displacement addresses for vector mode operands.
29420
29421 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29422
29423 * config/arc/arc.c (GMASK_LEN): Define.
29424 (arc_restore_callee_saves): Restore first blink when
29425 !optimize_size.
29426
29427 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29428
29429 * doc/extend.texi: Add deprecated comment on sign-return-address
29430 function attribute and add mbranch-protection.
29431 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29432
29433 2019-04-03 Richard Biener <rguenther@suse.de>
29434
29435 PR lto/89896
29436 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29437 the all target phony.
29438
29439 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29440
29441 PR target/89902
29442 PR target/89903
29443 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29444 Return false for variable DImode shifts.
29445 (dimode_scalar_chain::compute_convert_gain): Do not handle
29446 register count operand in variable DImode shifts.
29447 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29448 count argument of a variable shift instruction to a vector register.
29449 (dimode_scalar_chain::convert_reg): Remove support to convert
29450 count argument of a variable shift instruction.
29451
29452 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29453
29454 PR rtl-optimization/84206
29455 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29456 iterating over loop headers.
29457
29458 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29459
29460 PR rtl-optimization/85876
29461 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29462 beyond the original fence.
29463
29464 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29465
29466 * config.gcc: Mark spu* targets as deprecated/obsolete.
29467
29468 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29469
29470 * config/s390/s390-builtin-types.def: New builtin function type
29471 definitions. Remove unused types.
29472 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29473 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29474 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29475 overloaded builtins.
29476 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29477 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29478 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29479 (vec_double, vec_signed, vec_unsigned): Define to use the new
29480 overloaded builtins.
29481 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29482 Remove expanders.
29483
29484 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29485
29486 * config/s390/s390-builtin-types.def: New builtin function type
29487 definitions.
29488 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29489 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29490 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29491 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29492 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29493 constant definitions.
29494 * config/s390/vecintrin.h (vec_search_string_cc)
29495 (vec_search_string_until_zero_cc): New builtin name definitions.
29496 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29497 expanders.
29498 ("vec_vstrs<mode>"): New insn definition.
29499
29500 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29501
29502 * config/s390/s390-builtin-types.def: Add new builtin function
29503 types.
29504 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29505 New overloaded builtins.
29506 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29507 s390_vsrd.
29508 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29509 (UNSPEC_VEC_SLDBYTE): ... this.
29510 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29511 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29512 definitions.
29513 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29514 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29515 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29516
29517 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29518
29519 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29520 New insn definition.
29521 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29522 * config/s390/vector.md (V_HW_HSD): ... here.
29523
29524 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29525
29526 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29527 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29528 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29529 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29530 New insn definitions.
29531
29532 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29533
29534 * config/s390/s390-builtin-types.def: Add new builtin function type.
29535 * config/s390/s390-builtins.def: Add overloaded builtin
29536 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29537 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29538 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29539 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29540 ("eltswap<mode>"): New expander.
29541 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29542 insn definitions.
29543
29544 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29545
29546 * config/s390/s390-builtin-types.def: Add new builtin function types.
29547 * config/s390/s390-builtins.def: Add overloaded builtin
29548 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29549 instructions.
29550 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29551 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29552 ("bswap<mode>"): New expander.
29553 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29554
29555 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29556
29557 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29558 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29559 vector builtin version number in __VEC__.
29560
29561 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29562
29563 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29564 iterators.
29565 (SFSI): New mode attribute.
29566 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29567 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29568 rename to ...
29569 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29570 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29571 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29572 ("floatsi<mode>2"): Add wcefb instruction.
29573
29574 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29575
29576 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29577 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29578 mode iterators.
29579 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29580 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29581 support 32 bit fp-int conversions. Rename to ...
29582 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29583 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29584 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29585 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29586 ... to these.
29587
29588 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29589
29590 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29591 if-then-else constructs if we can use the select instruction.
29592 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29593
29594 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29595
29596 * config/s390/s390.md ("*popcountdi_arch13_cc")
29597 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29598 definition.
29599 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29600 Append _z196 to make it ...
29601 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29602 ("popcounthi2_z196"): ... this.
29603 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29604 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29605
29606 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29607
29608 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29609 certain compares for arch13 in order to make use of the condition
29610 code result produced by the new instructions.
29611 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29612 nxrk, and nxgrk instruction patterns.
29613 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29614 (inv_no): Add new code iterator together with some attributes.
29615 ("*andc_split_<mode>"): Disable splitter for arch13.
29616 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29617 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29618 ("*<ANDOR:bitops_name>c<GPR:mode>")
29619 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29620 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29621 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29622 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29623
29624 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29625
29626 * common/config/s390/s390-common.c (processor_flags_table): New
29627 entry for arch13.
29628 * config.gcc: Support arch13 with the --with-arch= configure flag.
29629 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29630 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29631 * config/s390/s390.c (s390_get_sched_attrmask)
29632 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29633 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29634 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29635 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29636 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29637 definitions.
29638 * config/s390/s390.opt: Support arch13 as processor type in
29639 command line options.
29640
29641 2019-04-02 Martin Liska <mliska@suse.cz>
29642
29643 PR translation/89912
29644 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29645 Fix param description of graphite-max-arrays-per-scop.
29646
29647 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29648
29649 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29650 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29651 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29652
29653 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29654
29655 PR rtl-optimization/85412
29656 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29657 sel_sched_region_1, not after.
29658
29659 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29660
29661 PR rtl-optimization/86928
29662 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29663 compute_live if necessary.
29664 (sel_redirect_edge_and_branch): Likewise.
29665
29666 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29667
29668 PR rtl-optimization/89865
29669 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29670 register if it is a part of small class.
29671
29672 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29673
29674 PR rtl-optimization/87273
29675 * sel-sched-ir.c (merge_fences): Remove assert.
29676
29677 2019-04-01 Richard Biener <rguenther@suse.de>
29678
29679 PR tree-optimization/46590
29680 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29681 (dom_walker::m_reachability): Add in place of...
29682 (dom_walker::m_skip_unreachable_blocks): ...this.
29683 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29684 Move complex initialization ...
29685 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29686 lazily and initialize edge flags on each invocation.
29687 (dom_walker::bb_reachable): Use m_reachability.
29688
29689 2019-04-01 Martin Liska <mliska@suse.cz>
29690
29691 PR driver/89861
29692 * opt-suggestions.c (option_proposer::build_option_suggestions):
29693 Add variant without any argument in order to provide better
29694 hints.
29695
29696 2019-04-01 Richard Biener <rguenther@suse.de>
29697
29698 PR c/71598
29699 * gimple.c: Include langhooks.h.
29700 (gimple_get_alias_set): Treat enumeral types as the underlying
29701 integer type.
29702
29703 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29704 Eric Botcazou <ebotcazou@adacore.com>
29705
29706 PR rtl-optimization/89862
29707 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29708 that operates on the full registers for WORD_REGISTER_OPERATIONS
29709 architectures.
29710
29711 2019-03-29 Jim Wilson <jimw@sifive.com>
29712
29713 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29714 Clear MASK_RVC and then set if C subset supported.
29715
29716 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29717
29718 PR c/89872
29719 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29720 non-addressable complit into its initializer if it is volatile.
29721
29722 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29723
29724 * opts-common.c (integral_argument): Set errno properly in one case.
29725
29726 2019-03-29 Martin Liska <mliska@suse.cz>
29727
29728 * doc/invoke.texi: Remove -Wchkp from documentation.
29729
29730 2019-03-29 Martin Liska <mliska@suse.cz>
29731
29732 * dbgcnt.c (print_limit_reach): New function.
29733 (dbg_cnt): Use it.
29734
29735 2019-03-29 Martin Liska <mliska@suse.cz>
29736
29737 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29738 (dbg_cnt_process_opt): Parse first tokens aas
29739 dbg_cnt_process_single_pair is also using strtok.
29740
29741 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29742
29743 PR rtl-optimization/87485
29744 * function.c (expand_function_end): Move stack_protect_epilogue
29745 before loading of return value into hard register(s).
29746
29747 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29748
29749 PR middle-end/89621
29750 * tree-inline.h (struct copy_body_data): Add
29751 dont_remap_vla_if_no_change flag.
29752 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29753 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29754 and remap_type_2 returns false.
29755 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29756 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29757 only from where it is copied to nested contexts.
29758
29759 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29760
29761 PR target/89865
29762 * config/i386/i386.md (RMW operation with LEA peephole):
29763 Use LEAMODE mode attribute instead of SWI mode iterator for
29764 LEA pattern.
29765
29766 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29767
29768 PR target/89848
29769 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29770 Also process XEXP (src, 0) of a shift insn.
29771
29772 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29773
29774 PR middle-end/89725
29775 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29776 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29777
29778 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29779
29780 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29781 test.
29782 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29783 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29784 immediately after first one with df_analyze in between, but rather
29785 process all bbs, queueing ones that need second pass in a worklist,
29786 df_analyze, process queued debug insn changes and if second pass is
29787 needed, process bbs from worklist, df_analyze, process queued debug
29788 insns again.
29789
29790 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29791 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29792 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29793
29794 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29795
29796 PR c/79022
29797 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29798 definition.
29799
29800 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29801
29802 PR target/85667
29803 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29804 function for 32-bit MS_ABI.
29805 (function_value_ms_32): New function.
29806
29807 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29808
29809 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29810 (movdi): Call gen_movdi_symbol_save_scc.
29811 (gen_movdi_symbol_save_scc): New insn and split.
29812
29813 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29814
29815 PR rtl-optimization/89313
29816 * function.c (matching_constraint_num): New static function.
29817 (match_asm_constraints_1): Use it. Fixup white space and comment.
29818 Don't replace inputs with non-matching constraints which conflict
29819 with early clobber outputs.
29820
29821 2019-03-27 Jeff Law <law@redhat.com>
29822
29823 PR rtl-optimization/87761
29824 PR rtl-optimization/89826
29825 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29826 slightly later.
29827 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29828 note problem to get REG_DEAD/REG_UNUSED notes updated.
29829
29830 2019-03-27 Richard Biener <rguenther@suse.de>
29831
29832 PR tree-optimization/89463
29833 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29834 queue edges to remove.
29835 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29836 dead stmts. Delay edge removal until PHIs are removed to
29837 make debug-stmt creation not confused by seemingly degenerate
29838 PHIs.
29839
29840 2019-03-27 Alan Modra <amodra@gmail.com>
29841
29842 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29843 throughout file.
29844 * config/rs6000/darwin.h: Likewise.
29845 * config/rs6000/rs6000.c: Likewise.
29846
29847 2019-03-27 Alan Modra <amodra@gmail.com>
29848
29849 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29850 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29851
29852 2019-03-26 Andrew Waterman <andrew@sifive.com>
29853 Jim Wilson <jimw@sifive.com>
29854
29855 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29856 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29857 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29858 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29859 (generic_alu): Add auipc to type list.
29860 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29861 (riscv_microarchitecture): Declare.
29862 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29863 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29864 field.
29865 (riscv_microarchitecture): New.
29866 (sifive_7_tune_info): New.
29867 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29868 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29869 entries.
29870 (riscv_store_data_bypass_p): New.
29871 (riscv_option_override): Set riscv_microarchitecture from
29872 cpu->microarchitecture.
29873 * config/riscv/riscv.md: Include sifive-7.md.
29874 (type): Add auipc.
29875 (tune): New.
29876 (auipc<mode>): Change type to auipc.
29877 (restore_stack_nonlocal): New.
29878 * config/riscv/sifive-7.md: New.
29879 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29880
29881 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29882
29883 PR target/89827
29884 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29885 Also process XEXP (src, 0) of a shift insn.
29886
29887 2019-03-26 Richard Biener <rguenther@suse.de>
29888
29889 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29890 (copy_debug_stmt): Likewise.
29891 (expand_call_inline): Likewise.
29892 (copy_bb): Avoid redundant lookup & set of gimple_block.
29893 * gimple-low.c (lower_gimple_return): Likewise.
29894 (lower_builtin_setjmp): Likewise.
29895
29896 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29897
29898 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29899 is constant 0, turn into static const data member initialized to false.
29900 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29901 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29902
29903 2019-03-26 Jason Merrill <jason@redhat.com>
29904 Jakub Jelinek <jakub@redhat.com>
29905
29906 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29907 method.
29908 (mem_alloc_description::release_object_overhead): Fix comment typos.
29909 * hash-table.h (hash_table::~hash_table): Call
29910 release_instance_overhead only if m_entries is non-NULL, otherwise
29911 call unregister_descriptor.
29912
29913 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29914
29915 PR tree-optimization/81740
29916 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29917 In case of outer loop vectorization, check for backward dependence
29918 at the inner loop if outer loop dependence is reversed.
29919
29920 2019-03-26 Alan Modra <amodra@gmail.com>
29921
29922 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29923 rs6000_vector_mem init. Correct wI and wJ comment.
29924
29925 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29926
29927 PR rtl-optimization/88347
29928 PR rtl-optimization/88423
29929 * sched-deps.c (sched_analyze_insn): Take into account that for
29930 tablejumps the barrier appears after a label and a jump_table_data.
29931
29932 2019-03-25 Martin Sebor <msebor@redhat.com>
29933
29934 PR c/89812
29935 * c-common.c (check_user_alignment): Rename local. Correct maximum
29936 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29937 convert it to UHWI when it fits.
29938
29939 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29940
29941 PR debug/86964
29942 * dwarf2out.c (premark_used_variables): New function.
29943 (prune_unused_types_walk): Do not mark not premarked external
29944 variables.
29945 (prune_unused_types): Call premark_used_variables.
29946
29947 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29948
29949 PR rtl-optimization/89676
29950 * lra-constraints.c (curr_insn_transform): Do match reload for
29951 early clobbers when the match was successful only for different
29952 registers.
29953
29954 2019-03-25 Martin Sebor <msebor@redhat.com>
29955
29956 * doc/extend.texi (Common Type Attributes): Document vector_size.
29957 (Common Variable Attributes): Mention size constraint. Correct
29958 quoting and typos.
29959 (Vector Extensions): Use @dfn when defining bas type. Clarify
29960 base type and size constraints.
29961
29962 2019-03-25 Richard Biener <rguenther@suse.de>
29963
29964 PR tree-optimization/89789
29965 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29966 changes from non-undefined back to undefined.
29967
29968 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29969
29970 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29971 heap string and a gc string, but since this variable is unknown to
29972 ggc the gc string might get reused and corrupted. Fixed by always
29973 using a heap string.
29974
29975 2019-03-25 Richard Biener <rguenther@suse.de>
29976
29977 PR tree-optimization/89779
29978 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29979 to remove IV defs, delay actual removal.
29980 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29981 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29982 very end, properly also reset loop control IV information.
29983
29984 2019-03-25 Richard Biener <rguenther@suse.de>
29985
29986 PR tree-optimization/89802
29987 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29988 move EH data to folded stmt.
29989
29990 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29991
29992 * config/s390/s390-builtin-types.def: Remove few unused types and
29993 fix sort order for others.
29994
29995 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29996
29997 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29998 expected and found types with -mdebug during builtin matching.
29999
30000 2019-03-25 Richard Biener <rguenther@suse.de>
30001
30002 PR middle-end/89790
30003 * fold-const.c (operand_equal_p): Revert last change with
30004 updated comment.
30005
30006 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30007
30008 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30009 notes for the result of the __tls_get_addr calls.
30010 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30011
30012 2019-03-24 Jeff Law <law@redhat.com>
30013
30014 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30015
30016 PR rtl-optimization/87761
30017 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30018 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30019 as needed.
30020 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30021 rescans. Reprocess blocks as needed, calling df_analyze before
30022 reprocessing. Always call df_analyze before fixing up debug bind
30023 insns.
30024
30025 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30026
30027 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30028 big endian.
30029
30030 2019-03-22 Andrew Pinski <apinski@marvell.com>
30031
30032 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30033 attrribute for uxtw.
30034
30035 2019-03-26 Jeff Law <law@redhat.com>
30036
30037 PR rtl-optimization/87761
30038 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30039 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30040 (mips_split_move): Accept new INSN argument. Try to forward SRC
30041 into the next instruction.
30042 (mips_split_move_insn): Pass INSN through to mips_split_move.
30043
30044 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30045
30046 PR rtl-optimization/89676
30047 * lra-constraints.c (curr_insn_transform): Do match reload for
30048 early clobbers even if the match was successful.
30049
30050 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30051
30052 PR c++/87481
30053 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30054
30055 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30056
30057 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30058
30059 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30060
30061 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30062 <avx512>_fmsub_<mode>_mask3<round_name>,
30063 <avx512>_fnmadd_<mode>_mask3<round_name>,
30064 <avx512>_fnmsub_<mode>_mask3<round_name>,
30065 avx512f_vmfmadd_<mode>_mask3<round_name>,
30066 avx512f_vmfmsub_<mode>_mask3<round_name>,
30067 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30068 instead of register_operand and %v instead of v for match_operand 1.
30069 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30070 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30071 <round_nimm_predicate> instead of register_operand and %v instead of v
30072 for match_operand 1.
30073
30074 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30075 <avx512>_fmadd_<mode>_mask3<round_name>,
30076 <avx512>_fmsub_<mode>_mask<round_name>,
30077 <avx512>_fmsub_<mode>_mask3<round_name>,
30078 <avx512>_fnmadd_<mode>_mask<round_name>,
30079 <avx512>_fnmadd_<mode>_mask3<round_name>,
30080 <avx512>_fnmsub_<mode>_mask<round_name>,
30081 <avx512>_fnmsub_<mode>_mask3<round_name>,
30082 <avx512>_fmaddsub_<mode>_mask<round_name>,
30083 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30084 <avx512>_fmsubadd_<mode>_mask<round_name>,
30085 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30086 <round_nimm_predicate> instead of nonimmediate_operand.
30087 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30088 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30089 Use register_operand instead of <round_nimm_predicate> for the
30090 operand that needs to match output.
30091 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30092 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30093 Likewise. Formatting fixes.
30094
30095 PR target/89784
30096 * config/i386/i386.c (enum ix86_builtins): Remove
30097 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30098 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30099 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30100 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30101 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30102 __builtin_ia32_vfmsubss3_mask3): New builtins.
30103 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30104 avx512f_vmfmadd_<mode>_mask3<round_name>,
30105 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30106 *avx512f_vmfmsub_<mode>_mask<round_name>,
30107 avx512f_vmfmsub_<mode>_mask3<round_name>,
30108 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30109 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30110 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30111 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30112 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30113 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30114 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30115 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30116 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30117 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30118 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30119 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30120 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30121 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30122 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30123 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30124 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30125 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30126 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30127 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30128 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30129 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30130 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30131 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30132 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30133 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30134 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30135 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30136
30137 2019-03-21 Martin Sebor <msebor@redhat.com>
30138
30139 PR tree-optimization/89350
30140 * builtins.c (compute_objsize): Also ignore offsets whose upper
30141 bound is negative.
30142 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30143 (builtin_memref::builtin_memref): Initialize new member.
30144 Allow EXPR to be null.
30145 (builtin_memref::extend_offset_range): Replace local with a member.
30146 Avoid assuming pointer offsets are unsigned.
30147 (builtin_memref::set_base_and_offset): Determine base object
30148 before computing offset range.
30149 (builtin_access::builtin_access): Handle memset.
30150 (builtin_access::generic_overlap): Replace local with a member.
30151 (builtin_access::strcat_overlap): Same.
30152 (builtin_access::overlap): Same.
30153 (maybe_diag_overlap): Same.
30154 (maybe_diag_access_bounds): Same.
30155 (wrestrict_dom_walker::check_call): Handle memset.
30156 (check_bounds_or_overlap): Same.
30157
30158 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30159 Jakub Jelinek <jakub@redhat.com>
30160
30161 PR lto/89692
30162 * tree.c (fld_type_variant, fld_incomplete_type_of,
30163 fld_process_array_type): Call fld->pset.add and don't call
30164 add_tree_to_fld_list if it returns true.
30165 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30166 non-marked types from TYPE_NEXT_VARIANT list.
30167 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30168
30169 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30170
30171 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30172 to false, if true, don't alloc_entries during construction, but defer
30173 it to the first method that needs m_entries allocated.
30174 (hash_table::hash_table, hash_table::~hash_table,
30175 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30176 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30177 hash_table::clear_slot, hash_table::traverse_noresize,
30178 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30179 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30180 false.
30181 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30182 NO_INSERT instead of find_with_hash.
30183 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30184 hash_set::m_table): Add Lazy to template params of hash_table.
30185 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30186 * attribs.c (test_attribute_exclusions): Likewise.
30187 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30188 hash_set. Add tests for hash_set with Lazy = true.
30189
30190 2019-03-21 Richard Biener <rguenther@suse.de>
30191
30192 PR tree-optimization/89779
30193 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30194 checks with respect to released SSA names now having error_mark_node
30195 type.
30196 * fold-const.c (operand_equal_p): Likewise.
30197
30198 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30199
30200 PR target/89775
30201 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30202 available to ...
30203 (s390_optimize_register_info): Use global_not_special_regno_p to
30204 check for global regs.
30205
30206 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30207
30208 PR target/89752
30209 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30210 update this_alternative nor this_alternative_set.
30211
30212 2019-03-19 Jim Wilson <jimw@sifive.com>
30213
30214 PR target/89411
30215 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30216 align, size, offset. Use them to handle a BLKmode reference. Update
30217 comment.
30218 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30219
30220 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30221
30222 PR rtl-optimization/89768
30223 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30224 instead of GEN_INT.
30225 (unroll_loop_runtime_iterations): Likewise.
30226
30227 2019-03-19 Martin Sebor <msebor@redhat.com>
30228
30229 PR tree-optimization/89644
30230 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30231 rather than endptr as an indicator of nul-termination.
30232
30233 PR tree-optimization/89644
30234 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30235 arrays in determining sequence sizes in strncpy and stpncpy.
30236
30237 2019-03-19 Martin Liska <mliska@suse.cz>
30238
30239 PR middle-end/89737
30240 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30241 unlikely_edges if there's an edge that belongs to both these sets.
30242
30243 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30244
30245 PR target/89746
30246 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30247 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30248 go via a stack temporary.
30249
30250 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30251
30252 PR target/89378
30253 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30254 instead of gen_rtx_SUBREG.
30255 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30256
30257 2019-03-19 Richard Biener <rguenther@suse.de>
30258
30259 PR debug/88389
30260 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30261
30262 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30263
30264 PR lto/87809
30265 PR lto/89335
30266 * tree.c (free_lang_data_in_decl): Do not free context of C++
30267 destrutors.
30268
30269 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30270
30271 PR target/89506
30272 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30273 subs for the first alternative except when operands[3] is 1.
30274
30275 PR target/89752
30276 * gimplify.c (gimplify_asm_expr): For output argument with
30277 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30278 diagnose error.
30279
30280 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30281
30282 PR rtl-optimization/89753
30283 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30284 explicit unrolling factor even more robust.
30285
30286 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30287
30288 PR target/89726
30289 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30290 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30291 signed zeros, do another copysign after the compensation.
30292
30293 2019-03-18 Martin Sebor <msebor@redhat.com>
30294
30295 PR tree-optimization/89720
30296 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30297 more conservatively, the same as anti-range.
30298
30299 2019-03-18 Richard Biener <rguenther@suse.de>
30300
30301 PR middle-end/88945
30302 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30303 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30304 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30305 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30306
30307 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30308
30309 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30310 Extend queue to 1024 entries.
30311 Add "consumed" field.
30312 (gomp_print_output): Remove print_index parameter.
30313 Add final parameter.
30314 Change limit to unsigned.
30315 Use consumed field to implement circular buffer.
30316 Detect interrupted print in final pass.
30317 Flush output at the end.
30318 (run): Update gomp_print_output usage.
30319 (main): Initialize kernargs->output_data.consumed.
30320
30321 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30322
30323 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30324 calculation of the minimum number of scalar iterations for
30325 fully-predicated loops.
30326
30327 2019-03-18 Martin Jambor <mjambor@suse.cz>
30328
30329 PR tree-optimization/89546
30330 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30331 any propagation to its children took place.
30332
30333 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30334
30335 PR target/89627
30336 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30337 parameter, and make use of it.
30338 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30339
30340 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30341
30342 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30343 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30344 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30345 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30346 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30347 match what the ops is doing.
30348 (push_multi_fp_blink): Likewise.
30349 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30350 compiling for size and elf target.
30351 (arc_save_callee_enter): Adjust note to match what enter/leave
30352 operation does.
30353
30354 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30355
30356 * config/arc/arc.md (tst_movb): Fix constraint.
30357
30358 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30359
30360 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30361
30362 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30363
30364 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30365 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30366 reg_alloc_order references.
30367 (size_alloc_order): Define.
30368 (arc_adjust_reg_alloc_order): New function.
30369 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30370 order.
30371 (ADJUST_REG_ALLOC_ORDER): Define.
30372 (HONOR_REG_ALLOC_ORDER): Likewise.
30373
30374 2019-03-18 Richard Biener <rguenther@suse.de>
30375
30376 PR target/87561
30377 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30378 loads and stores a bit more.
30379
30380 2019-03-18 Richard Biener <rguenther@suse.de>
30381
30382 PR target/87561
30383 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30384 load pessimization to stores as well.
30385
30386 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30387
30388 PR middle-end/86979
30389 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30390 successor, use NULL as its av set.
30391
30392 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30393
30394 PR rtl-optimization/89721
30395 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30396
30397 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30398
30399 PR target/87532
30400 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30401 When handling vec_extract, use modular arithmetic to allow
30402 constant selectors greater than vector length.
30403 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30404 V1TImode vectors to have constant selector values greater than 0.
30405 Use modular arithmetic to compute vector index.
30406 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30407 index for in-memory vectors. Correct code generation for
30408 in-register vectors.
30409 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30410 compute index.
30411
30412 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30413
30414 PR c++/88534
30415 PR c++/88537
30416 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30417 VAR_DECL args.
30418
30419 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30420
30421 PR c++/89709
30422 * tree.c (inchash::add_expr): Strip any location wrappers.
30423 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30424 after hash verification.
30425
30426 PR debug/89704
30427 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30428 SIGN_EXTEND and ZERO_EXTEND.
30429
30430 2019-03-14 Jason Merrill <jason@redhat.com>
30431 Jakub Jelinek <jakub@redhat.com>
30432
30433 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30434 than if is_empty (*slot).
30435 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30436 existing elt and for elt removal.
30437 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30438 of already removed elt.
30439
30440 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30441
30442 PR target/89650
30443 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30444 REG_EH_REGION note.
30445
30446 2019-03-14 Martin Liska <mliska@suse.cz>
30447
30448 PR other/89712
30449 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30450
30451 2019-03-14 Richard Biener <rguenther@suse.de>
30452
30453 PR target/89711
30454 * config/i386/i386.c (make_resolver_func): Properly set
30455 DECL_CONTEXT on the RESULT_DECL.
30456 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30457
30458 2019-03-14 Richard Biener <rguenther@suse.de>
30459
30460 * gimple-pretty-print.c: Include cfgloop.h.
30461 (dump_gimple_phi): Adjust.
30462 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30463 (pp_cfg_jump): Adjust.
30464 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30465 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30466 (lower_phi_internal_fn): Remove.
30467 (verify_gimple_call): Remove IFN_PHI special-casing.
30468 (dump_function_to_file): Dump IL state.
30469 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30470 done to deal with PHI nodes being present in non-SSA state.
30471
30472 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30473
30474 PR ipa/89684
30475 * multiple_target.c (create_dispatcher_calls): Change
30476 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30477 In the node->iterate_referring loop, push *ref rather than ref, call
30478 ref->remove_reference () and always pass 0 to iterate_referring.
30479
30480 PR rtl-optimization/89679
30481 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30482 would contain a paradoxical SUBREG.
30483
30484 2019-03-14 Richard Biener <rguenther@suse.de>
30485
30486 PR tree-optimization/89710
30487 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30488 safe_dyn_cast.
30489
30490 2019-03-14 Martin Liska <mliska@suse.cz>
30491
30492 * coverage.c (coverage_begin_function): Stream also
30493 end_column.
30494 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30495 documentation about function declaration location.
30496 * gcov-dump.c (tag_function): Print whole range
30497 of function declaration.
30498 * gcov.c (struct function_info): Add end_column field.
30499 (function_info::function_info): Initialize it.
30500 (output_json_intermediate_file): Output {start,end}_column
30501 fields.
30502 (read_graph_file): Read end_column.
30503
30504 2019-03-14 Richard Biener <rguenther@suse.de>
30505
30506 PR middle-end/89698
30507 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30508 that the access types are similar.
30509
30510 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30511
30512 PR tree-optimization/89703
30513 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30514 aren't compatible also with builtin_decl_explicit. Check pure
30515 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30516 and BUILT_IN_STPNCPY{,_CHK}.
30517
30518 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30519
30520 PR target/89523
30521 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30522 addr32 prefix to VSIB address for X32.
30523 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30524 "%M2" to opcode.
30525 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30526 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30527 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30528 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30529 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30530 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30531 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30532 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30533 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30534 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30535 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30536 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30537 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30538 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30539 (*avx512f_scatterdi<mode>): Likewise.
30540
30541 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30542
30543 PR target/85860
30544 * lra-constraints.c (inherit_in_ebb): Update
30545 potential_reload_hard_regs along with live_hard_regs.
30546
30547 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30548
30549 PR debug/89498
30550 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30551 DWARF_OFFSET_SIZE.
30552 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30553
30554 2019-03-13 Martin Sebor <msebor@redhat.com>
30555
30556 PR tree-optimization/89662
30557 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30558 has a size.
30559
30560 2019-03-13 Richard Biener <rguenther@suse.de>
30561
30562 PR middle-end/89677
30563 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30564 throw FP expressions at tree-affine.
30565
30566 2019-03-14 Richard Biener <rguenther@suse.de>
30567
30568 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30569 dump negative integer constants using _Literal (type) -num.
30570
30571 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30572
30573 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30574 nonlocal_value member.
30575
30576 PR middle-end/88588
30577 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30578 (ipa_simd_modify_function_body): Handle PHIs.
30579
30580 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30581
30582 * config/s390/s390.c (s390_option_override_internal): Use more
30583 aggressive inlining parameters.
30584
30585 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30586
30587 * config/s390/3906.md: New file.
30588 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30589 (LONGRUNNING_THRESHOLD): Remove.
30590 (MAX_SCHED_MIX_SCORE): Decrease.
30591 (MAX_SCHED_MIX_DISTANCE): Decrease.
30592 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30593 (struct s390_sched_state): New struct to hold scheduling state.
30594 (S390_SCHED_STATE_NORMAL): Remove.
30595 (S390_SCHED_STATE_CRACKED): Remove.
30596 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30597 (s390_get_sched_attrmask): Use new attribute.
30598 (s390_get_unit_mask): Use new units.
30599 (s390_is_fpd): New function.
30600 (s390_is_fxd): New function.
30601 (s390_is_longrunning): New function.
30602 (s390_sched_score): Use new functions.
30603 (s390_sched_reorder): Likewise.
30604 (s390_sched_variable_issue): Rework and use new functions.
30605 (s390_sched_init): Use new functions.
30606 * config/s390/s390.h (s390_tune_attr): Add z14.
30607 * config/s390/s390.md: Add z14.
30608
30609 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30610
30611 * config/s390/2964.md: Update pipeline description.
30612 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30613 (LONGRUNNING_THRESHOLD): Remove.
30614 (LATENCY_FACTOR): Remove.
30615 (s390_get_unit_mask): Add unit.
30616 (s390_sched_score): Use fxd/fpd.
30617 (s390_sched_variable_issue): Use fxd/fpd.
30618
30619 2019-03-12 Martin Liska <mliska@suse.cz>
30620
30621 * config/i386/i386.c: Reword an error message.
30622
30623 2019-03-12 Martin Jambor <mjambor@suse.cz>
30624
30625 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30626 terminate with newline.
30627
30628 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30629
30630 PR target/52726
30631 * config/s390/s390.md (tabort): Use %wd instead of
30632 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30633 letters and periods.
30634 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30635 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30636 's with %< and %>.
30637
30638 PR middle-end/89663
30639 * builtins.c (expand_builtin_int_roundingfn,
30640 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30641 gcc_unreachable if validate_arglist fails.
30642
30643 2019-03-12 Richard Biener <rguenther@suse.de>
30644
30645 PR tree-optimization/89664
30646 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30647 free the occurance tree after the early out.
30648
30649 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30650
30651 PR middle-end/89655
30652 PR bootstrap/89656
30653 * vr-values.c (vr_values::update_value_range): If
30654 old_vr->varying_p (), don't update it, make new_vr also VARYING
30655 and return false.
30656
30657 2019-03-11 Martin Liska <mliska@suse.cz>
30658
30659 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30660 Fix double string quoting.
30661
30662 2019-03-11 Martin Liska <mliska@suse.cz>
30663
30664 * collect-utils.c (collect_wait): Wrap apostrophes
30665 in gcc internal format with %'.
30666 * collect2.c (main): Likewise.
30667 (scan_prog_file): Likewise.
30668 (scan_libraries): Likewise.
30669 * config/i386/i386.c (ix86_expand_call): Likewise.
30670 (ix86_handle_interrupt_attribute): Likewise.
30671 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30672 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30673 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30674 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30675 * symtab.c (symtab_node::verify_base): Likewise.
30676 * tree-cfg.c (verify_gimple_label): Likewise.
30677 * tree.c (verify_type_variant): Likewise.
30678
30679 2019-03-11 Martin Liska <mliska@suse.cz>
30680
30681 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30682 in a string format message and fix GNU coding style.
30683 (expand_builtin_set_thread_pointer): Likewise.
30684 * common/config/aarch64/aarch64-common.c
30685 (aarch64_rewrite_selected_cpu): Likewise.
30686 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30687 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30688 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30689 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30690 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30691 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30692 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30693 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30694 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30695 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30696 Likewise.
30697 * common/config/riscv/riscv-common.c
30698 (riscv_subset_list::parsing_subset_version): Likewise.
30699 (riscv_subset_list::parse_std_ext): Likewise.
30700 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30701 (riscv_subset_list::parse): Likewise.
30702 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30703 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30704 (aarch64_override_options_internal): Likewise.
30705 (aarch64_validate_mcpu): Likewise.
30706 (aarch64_validate_march): Likewise.
30707 (aarch64_validate_mtune): Likewise.
30708 (aarch64_override_options): Likewise.
30709 * config/alpha/alpha.c (alpha_option_override): Likewise.
30710 * config/arc/arc.c (arc_init): Likewise.
30711 (parse_mrgf_banked_regs_option): Likewise.
30712 (arc_override_options): Likewise.
30713 (arc_expand_builtin_aligned): Likewise.
30714 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30715 (arm_expand_builtin): Likewise.
30716 * config/arm/arm.c (arm_option_check_internal): Likewise.
30717 (arm_configure_build_target): Likewise.
30718 (arm_option_override): Likewise.
30719 (arm_options_perform_arch_sanity_checks): Likewise.
30720 (arm_handle_cmse_nonsecure_entry): Likewise.
30721 (arm_handle_cmse_nonsecure_call): Likewise.
30722 (arm_tls_referenced_p): Likewise.
30723 (thumb1_expand_prologue): Likewise.
30724 * config/avr/avr.c (avr_option_override): Likewise.
30725 * config/bfin/bfin.c (bfin_option_override): Likewise.
30726 * config/c6x/c6x.c (c6x_option_override): Likewise.
30727 * config/cr16/cr16.c (cr16_override_options): Likewise.
30728 * config/cris/cris.c (cris_option_override): Likewise.
30729 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30730 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30731 * config/darwin.c (darwin_override_options): Likewise.
30732 * config/frv/frv.c (frv_expand_builtin): Likewise.
30733 * config/h8300/h8300.c (h8300_option_override): Likewise.
30734 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30735 (ix86_option_override_internal): Likewise.
30736 (warn_once_call_ms2sysv_xlogues): Likewise.
30737 (ix86_expand_prologue): Likewise.
30738 (split_stack_prologue_scratch_regno): Likewise.
30739 (ix86_warn_parameter_passing_abi): Likewise.
30740 * config/ia64/ia64.c (fix_range): Likewise.
30741 * config/m68k/m68k.c (m68k_option_override): Likewise.
30742 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30743 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30744 (mips_set_compression_mode): Likewise.
30745 * config/mmix/mmix.c (mmix_option_override): Likewise.
30746 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30747 * config/msp430/msp430.c (msp430_option_override): Likewise.
30748 * config/nds32/nds32.c (nds32_option_override): Likewise.
30749 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30750 (nios2_option_override): Likewise.
30751 (nios2_expand_custom_builtin): Likewise.
30752 * config/nvptx/mkoffload.c (main): Likewise.
30753 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30754 * config/pa/pa.c (fix_range): Likewise.
30755 (pa_option_override): Likewise.
30756 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30757 (riscv_option_override): Likewise.
30758 * config/rl78/rl78.c (rl78_option_override): Likewise.
30759 * config/rs6000/aix61.h: Likewise.
30760 * config/rs6000/aix71.h: Likewise.
30761 * config/rs6000/aix72.h: Likewise.
30762 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30763 * config/rs6000/freebsd64.h: Likewise.
30764 * config/rs6000/linux64.h: Likewise.
30765 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30766 (rs6000_expand_zeroop_builtin): Likewise.
30767 (rs6000_expand_mtfsb_builtin): Likewise.
30768 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30769 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30770 (rs6000_invalid_builtin): Likewise.
30771 (rs6000_expand_split_stack_prologue): Likewise.
30772 * config/rs6000/rtems.h: Likewise.
30773 * config/rx/rx.c (valid_psw_flag): Likewise.
30774 (rx_expand_builtin): Likewise.
30775 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30776 * config/s390/s390.c (s390_expand_builtin): Likewise.
30777 (s390_function_profiler): Likewise.
30778 (s390_option_override_internal): Likewise.
30779 (s390_option_override): Likewise.
30780 * config/sh/sh.c (sh_option_override): Likewise.
30781 (sh_builtin_saveregs): Likewise.
30782 (sh_fix_range): Likewise.
30783 * config/sh/vxworks.h: Likewise.
30784 * config/sparc/sparc.c (sparc_option_override): Likewise.
30785 * config/spu/spu.c (spu_option_override): Likewise.
30786 (fix_range): Likewise.
30787 * config/visium/visium.c (visium_option_override): Likewise.
30788 (visium_handle_interrupt_attr): Likewise.
30789 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30790 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30791 (dbg_cnt_process_opt): Likewise.
30792 * dwarf2out.c (output_dwarf_version): Likewise.
30793 * except.c (expand_eh_return): Likewise.
30794 * gcc.c (defined): Likewise.
30795 (driver_handle_option): Likewise.
30796 (process_command): Likewise.
30797 (compare_files): Likewise.
30798 (driver::prepare_infiles): Likewise.
30799 (driver::do_spec_on_infiles): Likewise.
30800 (driver::maybe_run_linker): Likewise.
30801 * omp-offload.c (oacc_parse_default_dims): Likewise.
30802 * opts-global.c (handle_common_deferred_options): Likewise.
30803 * opts.c (parse_sanitizer_options): Likewise.
30804 (common_handle_option): Likewise.
30805 (enable_warning_as_error): Likewise.
30806 * passes.c (enable_disable_pass): Likewise.
30807 * plugin.c (parse_plugin_arg_opt): Likewise.
30808 (default_plugin_dir_name): Likewise.
30809 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30810 (default_pch_valid_p): Likewise.
30811 * toplev.c (init_asm_output): Likewise.
30812 (process_options): Likewise.
30813 (toplev::run_self_tests): Likewise.
30814 * tree-cfg.c (verify_gimple_call): Likewise.
30815 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30816 (tree_inlinable_function_p): Likewise.
30817 * var-tracking.c (vt_find_locations): Likewise.
30818
30819 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30820
30821 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30822 only on the else branch.
30823
30824 2019-03-11 Martin Liska <mliska@suse.cz>
30825
30826 * gcov.c (output_intermediate_json_line): Print function
30827 name of each line.
30828 (output_json_intermediate_file): Add new argument.
30829 * doc/gcov.texi: Document the change.
30830
30831 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30832
30833 PR rtl-optimization/89588
30834 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30835 explicit unrolling factor more robust.
30836
30837 2019-03-11 Richard Biener <rguenther@suse.de>
30838
30839 PR tree-optimization/89649
30840 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30841 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30842 on the prolog and epilog loops.
30843 (vect_loop_versioning): Return copy of loop.
30844 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30845 on the non-vectorized version of the loop.
30846
30847 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30848
30849 PR target/68924
30850 * config/i386/sse.md (*vec_extractv2di_0_sse):
30851 Add (=r,x) alternative and corresponding splitter.
30852
30853 2019-03-10 Martin Jambor <mjambor@suse.cz>
30854
30855 PR tree-optimization/85762
30856 PR tree-optimization/87008
30857 PR tree-optimization/85459
30858 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30859 it points to if there is a type changing MEM_REF. Adjust all callers.
30860 (build_accesses_from_assign): Disable total scalarization if
30861 contains_vce_or_bfcref_p returns true through the new parameter, for
30862 both rhs and lhs.
30863
30864 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30865
30866 PR c/88568
30867 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30868 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30869
30870 PR target/79645
30871 * common.opt (fdiagnostics-show-labels,
30872 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30873 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30874 gas-locview-support, ginline-points, ginternal-reset-location-views):
30875 Terminate description text with a dot.
30876 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30877 * config/mcore/mcore.opt (m210, m340): Likewise.
30878 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30879 mnops=): Start description text with a capital letter.
30880 * config/arc/arc.opt (msize-level=): Likewise.
30881 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30882 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30883 mnewlib): Likewise.
30884 * config/ft32/ft32.opt (msim): Likewise.
30885 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30886 (mnodiv, mnopm): Terminate description text with a dot.
30887 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30888 a colon.
30889 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30890 Likewise.
30891 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30892 text.
30893
30894 PR rtl-optimization/89634
30895 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30896 are modified in BB_END (e->src) instruction.
30897
30898 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30899
30900 PR target/79926
30901 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30902 messages more amenable to translation, and improve wording.
30903
30904 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30905
30906 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30907 ud- and du-chains between phases.
30908
30909 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30910
30911 PR debug/89631
30912 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30913 instead of POLY_INT_CST.
30914
30915 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30916
30917 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30918 requirement.
30919
30920 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30921
30922 PR target/68924
30923 PR target/78782
30924 PR target/87558
30925 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30926 (_mm_storeu_si64): Ditto.
30927
30928 2019-03-08 Martin Liska <mliska@suse.cz>
30929
30930 PR target/86952
30931 * config/i386/i386.c (ix86_option_override_internal): Disable
30932 jump tables when retpolines are used.
30933
30934 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30935
30936 PR go/63560
30937 * ipa-split.c (execute_split_functions): Do not split
30938 'noinline' or 'section' function.
30939
30940 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30941
30942 PR target/79846
30943 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30944 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30945 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30946
30947 PR ipa/80000
30948 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30949 from diagnostics. Formatting fixes.
30950
30951 PR target/85665
30952 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30953 warn_odr diagnostics.
30954
30955 PR other/80058
30956 * lra-constraints.c (process_alt_operands): Avoid one space before
30957 " at the end of line and another after " on another line in a string
30958 literal.
30959 * attribs.c (handle_dll_attribute): Likewise.
30960 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30961
30962 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30963 warning_at or inform messages in G_() if there is no ?:.
30964
30965 PR tree-optimization/89550
30966 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30967 returned true. Formatting fixes.
30968 (expand_builtin_strnlen): Formatting fixes.
30969 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30970 if warning_at returned true.
30971 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30972
30973 2019-03-08 Richard Biener <rguenther@suse.de>
30974
30975 PR middle-end/89578
30976 * cfgloop.h (struct loop): Add owned_clique field.
30977 * cfgloopmanip.c (copy_loop_info): Copy it.
30978 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30979 cliques.
30980 * tree-inline.c (copy_loops): Remap owned_clique.
30981 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30982 * lto-streamer-out.c (output_cfg): Likewise.
30983
30984 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30985
30986 PR target/80190
30987 * config/darwin.c: Include intl.h.
30988 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30989 composing the message out of two separate parts.
30990
30991 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30992
30993 PR target/80003
30994 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30995 doesn't start with a capital letter and doesn't end with a dot.
30996 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30997 with a capital letter.
30998 (ix86_mangle_function_version_assembler_name): Likewise.
30999 (ix86_generate_version_dispatcher_body): Likewise.
31000 (fold_builtin_cpu): Likewise.
31001 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31002 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31003 translators, wrap full type name in %qs.
31004
31005 PR translation/79999
31006 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31007 depend clause with source (or sink) modifier.
31008 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31009
31010 PR target/89602
31011 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31012 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31013 (avx512f_load<mode>_mask): New define_expand.
31014 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31015 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31016 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31017 __builtin_ia32_movess_mask): New builtins.
31018 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31019 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31020 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31021 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31022
31023 2019-03-07 Martin Jambor <mjambor@suse.cz>
31024
31025 PR lto/87525
31026 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31027 for extern inline functions.
31028
31029 2019-03-07 Martin Jambor <mjambor@suse.cz>
31030
31031 PR ipa/88235
31032 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31033 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31034 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31035 have multiple callees. At the end check if declarations match as
31036 opposed to cgraph_nodes.
31037
31038 2019-03-07 Martin Liska <mliska@suse.cz>
31039
31040 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31041 which is equivalent to searching for this in clones chain.
31042 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31043 names with a neighbour and special case first node in a chain.
31044
31045 2019-01-25 Jason Merrill <jason@redhat.com>
31046
31047 PR c++/80916 - spurious "static but not defined" warning.
31048 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31049 for an internal symbol with DECL_EXTERNAL.
31050
31051 2019-04-07 Richard Biener <rguenther@suse.de>
31052
31053 PR middle-end/89618
31054 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31055 * tree-inline.c (copy_loops): Simplify.
31056
31057 2019-03-07 Martin Liska <mliska@suse.cz>
31058
31059 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31060
31061 2019-03-07 Richard Biener <rguenther@suse.de>
31062
31063 PR tree-optimization/89595
31064 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31065 stmt iterator as reference, take boolean output parameter to
31066 indicate whether the stmt was removed and thus the iterator
31067 already advanced.
31068 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31069 stmts created by folding.
31070
31071 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31072
31073 PR c++/89585
31074 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31075 at toplevel.
31076
31077 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31078
31079 PR rtl-optimization/88845
31080 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31081 LRA.
31082 * lra.c (remove_scratches_1): New function.
31083 (remove_scratches): Use it.
31084 (lra_emit_move): Likewise.
31085
31086 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31087
31088 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31089 unaligned_access variable.
31090 * config/arc/arc.c (arc_override_options): Set unaligned access
31091 default on for HS CPUs.
31092 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31093
31094 2019-03-06 Martin Liska <mliska@suse.cz>
31095
31096 PR gcov-profile/89577
31097 * doc/gcov.texi: Prefer to use --coverage.
31098 * doc/sourcebuild.texi: Likewise.
31099
31100 2019-03-02 Jason Merrill <jason@redhat.com>
31101
31102 PR c++/86485 - -Wmaybe-unused with empty class ?:
31103 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31104
31105 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31106
31107 PR target/89587
31108 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31109 if_multiarch.
31110
31111 PR middle-end/89590
31112 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31113 exactly one argument.
31114
31115 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31116 Richard Sandiford <richard.sandiford@arm.com>
31117
31118 PR tree-optimization/89570
31119 * match.pd (vec_cond into cond_op simplification): Don't use
31120 get_conditional_internal_fn, use as_internal_fn (cond_op).
31121
31122 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31123
31124 PR target/89222
31125 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31126 to decide when to split off a non-zero offset from a symbol.
31127 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31128 in function symbols.
31129
31130 2019-03-05 Richard Biener <rguenther@suse.de>
31131
31132 PR tree-optimization/89594
31133 * tree-if-conv.c (pass_if_conversion::execute): Handle
31134 case where .LOOP_VECTORIZED_FUNCTION was removed.
31135
31136 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31137
31138 PR bootstrap/89560
31139 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31140 instead alloca it only when needed with the needed size.
31141
31142 PR tree-optimization/89570
31143 * match.pd (vec_cond into cond_op simplification): Guard with
31144 vectorized_internal_fn_supported_p test and #if GIMPLE.
31145
31146 PR tree-optimization/89566
31147 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31148 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31149 Punt if get_user_idx_format succeeds, but idx_format argument is
31150 not provided or doesn't have pointer type, or if idx_args is above
31151 number of provided arguments.
31152
31153 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31154
31155 PR tree-optimization/89437
31156 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31157
31158 2019-03-04 Richard Biener <rguenther@suse.de>
31159
31160 PR middle-end/89572
31161 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31162 safe_dyn_cast.
31163
31164 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31165
31166 PR tree-optimization/89487
31167 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31168 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31169 (distribute_loop): Don't do runtime alias check if there is non-
31170 addressable data reference.
31171 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31172 is a register variable.
31173
31174 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31175
31176 PR target/89506
31177 * config/arm/arm.md (cmpsi2_addneg): Use
31178 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31179 If operands[2] is 0 or INT_MIN, force use of subs.
31180 (*compare_scc splitter): Use gen_int_mode.
31181 (*negscc): Likewise.
31182 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31183
31184 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31185 Monk Chiang <sh.chiang04@gmail.com>
31186
31187 * common/config/riscv/riscv-common.c: Include sstream.
31188 (riscv_subset_list::to_string): New.
31189 (riscv_arch_str): Likewise.
31190 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31191 * config.in: Regen.
31192 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31193 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31194 (riscv_emit_attribute): New.
31195 (riscv_file_start): Emit attribute if needed.
31196 (riscv_option_override): Init riscv_emit_attribute_p.
31197 * config/riscv/riscv.opt (mriscv-attribute): New option.
31198 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31199 * configure: Regen.
31200 * doc/install.texi: Document --with-riscv-attribute.
31201 * doc/invoke.texi: Document -mriscv-attribute.
31202
31203 * common/config/riscv/riscv-common.c:
31204 Include config/riscv/riscv-protos.h.
31205 (INCLUDE_STRING): Defined.
31206 (RISCV_DONT_CARE_VERSION): Defined.
31207 (riscv_subset_t): Declare.
31208 (riscv_subset_t::riscv_subset_t): New.
31209 (riscv_subset_list): Declare.
31210 (riscv_subset_list::riscv_subset_list): New.
31211 (riscv_subset_list::~riscv_subset_list): Likewise.
31212 (riscv_subset_list::parsing_subset_version): Likewise.
31213 (riscv_subset_list::parse_std_ext): Likewise.
31214 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31215 (riscv_subset_list::add): Likewise.
31216 (riscv_subset_list::lookup): Likewise.
31217 (riscv_subset_list::xlen): Likewise.
31218 (riscv_subset_list::parse): Likewise.
31219 (riscv_supported_std_ext): Likewise.
31220 (current_subset_list): Likewise.
31221 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31222 parse.
31223
31224 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31225
31226 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31227 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31228 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31229
31230 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31231
31232 PR rtl-optimization/85899
31233 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31234 fallthru edges leading to the exit block.
31235
31236 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31237
31238 PR target/89517
31239 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31240 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31241
31242 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31243
31244 PR tree-optimization/89535
31245 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31246 for each operand. Calculate the fallback choice for mask operands
31247 and pass it to vect_get_vec_def_for_operand.
31248
31249 2019-03-01 Richard Biener <rguenther@suse.de>
31250
31251 PR middle-end/89541
31252 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31253 get virtual operands.
31254 (get_expr_operands): Handle CONST_DECL like other decls.
31255
31256 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31257
31258 PR middle-end/89503
31259 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31260 on DECL_P and EXPR_P.
31261
31262 2019-03-01 Richard Biener <rguenther@suse.de>
31263
31264 PR middle-end/89497
31265 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31266 argument, defaulted to zero.
31267 * passes.c (execute_function_todo): Pass down SSA update flags
31268 to cleanup_tree_cfg.
31269 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31270 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31271 form if requested.
31272 (cleanup_tree_cfg): Get and pass down SSA update flags.
31273
31274 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31275
31276 PR bootstrap/89539
31277 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31278 early_lto_debug argument.
31279
31280 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31281
31282 PR tree-optimization/89536
31283 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31284 only whether bit #0 of the value is 0 instead of the entire value.
31285
31286 2019-02-28 Marek Polacek <polacek@redhat.com>
31287
31288 PR c++/87068 - missing diagnostic with fallthrough statement.
31289 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31290 at the end of a seq, save its location to walk_stmt_info.
31291 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31292 a switch.
31293
31294 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31295
31296 PR lto/88585
31297 * tree.c (find_atomic_core_type): Move ahead in file.
31298 (check_base_type): Correctly compare alignments of atomic types.
31299
31300 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31301
31302 PR target/89455
31303 * config/i386/i386.c (get_builtin_code_for_version): Identify
31304 Westmere from PCLMUL, instead of AES.
31305
31306 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31307
31308 PR target/89434
31309 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31310 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31311 -UINTVAL (...).
31312
31313 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31314
31315 PR target/88530
31316 * config/aarch64/aarch64-option-extensions.def: Document it.
31317 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31318 if empty hwcaps.
31319
31320 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31321
31322 PR c/89520
31323 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31324 builtins if they don't have a single scalar floating point argument.
31325 Formatting fixes.
31326
31327 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31328
31329 PR rtl-optimization/89490
31330 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31331 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31332 block section is not mergeable.
31333
31334 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31335
31336 PR target/70341
31337 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31338 old define_insn to ...
31339 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31340 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31341 Rename old define_insn to ...
31342 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31343 (thumb2_casesi_internal_pic): New define_expand. Rename old
31344 define_insn to ...
31345 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31346 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31347 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31348
31349 2019-02-27 Richard Biener <rguenther@suse.de>
31350
31351 PR debug/88878
31352 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31353
31354 2019-02-27 Richard Biener <rguenther@suse.de>
31355
31356 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31357 building.
31358
31359 2019-02-27 Richard Biener <rguenther@suse.de>
31360
31361 PR debug/88878
31362 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31363 parameter, prefix section name with .gnu.debuglto_ if true.
31364 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31365 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31366
31367 2019-02-27 Richard Biener <rguenther@suse.de>
31368
31369 PR debug/89514
31370 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31371 rather than on use_debug_types, doing what output_die does.
31372 (value_format): Likewise.
31373
31374 2019-02-27 Martin Jambor <mjambor@suse.cz>
31375 Martin Sebor <msebor@redhat.com>
31376
31377 * doc/invoke.texi (Warning Options): Reword description of
31378 -Wno-absolute-value.
31379
31380 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31381
31382 PR tree-optimization/89280
31383 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31384 builtin_setjmp_setup_bb): New functions.
31385 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31386 When visiting __builtin_setjmp_setup block, queue in special
31387 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31388 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31389 from visited after the loop if they don't have any visited successor
31390 blocks.
31391
31392 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31393
31394 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31395 New function.
31396 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31397
31398 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31399
31400 PR c++/89507
31401 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31402 with types other than sizetype/ssizetype.
31403
31404 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31405
31406 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31407 (enum sparc_processor_type): ...this.
31408 (enum sparc_code_model_type): New enumeration type.
31409 (enum sparc_memory_model_type): Tweak comments.
31410 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31411 (mtune): Likewise.
31412 (mcmodel): Use sparc_code_model enumeration and variable.
31413 (sparc_code_model): New enumeration.
31414 (mdebug): Add Undocumented marker.
31415 * config/sparc/sparc.h (enum cmodel): Delete.
31416 (sparc_cmodel): Likewise.
31417 (TARGET_CM_MEDLOW): Adjust to above renaming.
31418 (TARGET_CM_MEDMID): Likewise.
31419 (TARGET_CM_MEDANY): Likewise.
31420 (TARGET_CM_EMBMEDANY): Likewise.
31421 * config/sparc/sparc.c (sparc_cmodel): Delete.
31422 (sparc_option_override): Remove string/value mapping support for the
31423 code model. Move code and memory model support to after the handling
31424 of target flags. Do private machine setup last.
31425 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31426 (sparc_legitimize_reload_address): Likewise.
31427 (sparc_output_mi_thunk): Likewise.
31428 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31429
31430 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31431
31432 PR tree-optimization/89500
31433 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31434 (handle_builtin_strlen): Remove noncst_bound variable. Always
31435 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31436 cst if the first cst bytes starting at x are known to be non-zero,
31437 even if the string is not zero terminated. Don't try to modify
31438 *si for strnlen. Update strlen_to_stridx only for strlen or if
31439 we can prove strnlen returns the same value as strlen would.
31440
31441 2019-02-26 Martin Liska <mliska@suse.cz>
31442
31443 * alloc-pool.h (struct pool_usage): Remove extra
31444 print_dash_line.
31445 * bitmap.h (struct bitmap_usage): Likewise.
31446 * ggc-common.c (struct ggc_usage): Likewise.
31447 * mem-stats.h (struct mem_usage): Likewise.
31448 (mem_alloc_description::dump): Print dash lines
31449 here and repeat header at the end of a table report.
31450 It's then more readable.
31451 * tree-phinodes.c (phinodes_print_statistics): Make
31452 horizontal alignment.
31453 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31454 * vec.c (struct vec_usage): Remove extra print_dash_line.
31455 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31456
31457 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31458
31459 * doc/extend.texi (__builtin_object_size):
31460 Use @pxref instead of @xref inside parenthesis.
31461 (__builtin_has_attribute): Add missing comma after @xref.
31462 (__builtin_object_size): Ditto.
31463 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31464
31465 2019-02-26 Jeff Law <law@redhat.com>
31466
31467 PR rtl-optimization/87761
31468 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31469 detect obviously dead insns and delete them.
31470
31471 2019-02-26 Richard Biener <rguenther@suse.de>
31472
31473 PR tree-optimization/89505
31474 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31475 to handle restrict pointed-to vars with multiple subvars
31476 correctly.
31477
31478 2019-02-26 Richard Biener <rguenther@suse.de>
31479
31480 PR tree-optimization/89489
31481 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31482
31483 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31484
31485 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31486 and move around comment.
31487 <BIT_AND_EXPR>: Likewise.
31488 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31489
31490 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31491
31492 PR target/89474
31493 * config/i386/i386.c (remove_partial_avx_dependency): Call
31494 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31495 after changing possibly many instructions to use that pseudo. Fix up
31496 insertion of v4sf_const0 setter at the start of bb.
31497
31498 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31499
31500 PR c/80409
31501 * doc/extend.texi (Variadic Pointer Args): New section.
31502
31503 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31504 Martin Sebor <msebor@gmail.com>
31505
31506 * common.opt (Wattribute-alias): Likewise.
31507 * doc/invoke.texi (Option Summary): List general form of
31508 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31509 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31510 Add cross-references.
31511 (-Wattribute-alias): Rewrite and correct default. Mention
31512 considered attributes (same as for -Wmissing-attributes).
31513
31514 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31515
31516 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31517 (_mm_cvtpd_ps): Likewise.
31518 (_mm_cvttpd_epi32): Likewise.
31519
31520 PR target/89338
31521 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31522 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31523
31524 PR target/89339
31525 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31526
31527 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31528
31529 PR target/88530
31530 * common/config/aarch64/aarch64-common.c
31531 (struct aarch64_option_extension): Add is_synthetic.
31532 (all_extensions): Use it.
31533 (TARGET_OPTION_INIT_STRUCT): Define hook.
31534 (struct gcc_targetm_common): Moved to end.
31535 (all_extensions_by_on): New.
31536 (opt_ext_cmp, typedef opt_ext): New.
31537 (aarch64_option_init_struct): New.
31538 (aarch64_contains_opt): New.
31539 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31540 * config/aarch64/aarch64-option-extensions.def
31541 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31542 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31543 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31544 Set is_synthetic to false.
31545 (crypto): Set is_synthetic to true.
31546 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31547 SYNTHETIC.
31548
31549 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31550
31551 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31552 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31553 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31554 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31555 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31556 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31557 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31558 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31559 Rename ...
31560 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31561 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31562 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31563 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31564 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31565 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31566 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31567 vfmlsl_laneq_high_f16): ... To this.
31568 * config/arm/neon.md: Update comments.
31569
31570 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31571
31572 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31573 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31574 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31575 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31576 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31577 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31578 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31579 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31580 Rename ...
31581 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31582 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31583 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31584 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31585 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31586 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31587 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31588 vfmlslq_laneq_high_f16): ... To this.
31589
31590 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31591
31592 PR rtl-optimization/86096
31593 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31594 comparing mw_order values.
31595
31596 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31597
31598 PR target/89434
31599 * config/arm/arm.md (*subsi3_carryin_const): Use
31600 arm_neg_immediate_operand predicate instead of
31601 arm_not_immediate_operand, "L" constraint instead of "K" and
31602 print it using %n2 instead of %B2.
31603 (*subsi3_carryin_const0): New define_insn.
31604 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31605 instead of arm_not_operand and "I" constraint instead of "K" and
31606 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31607 another match_operand and in the condition check that it is negation
31608 of operands[2].
31609 (*subsi3_carryin_compare_const0): New define_ins.
31610 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31611 *subsi3_carryin_const.
31612 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31613 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31614
31615 PR target/89438
31616 * config/arm.vfp.md (*negdf2_vfp): Use
31617 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31618 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31619
31620 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31621
31622 PR rtl-optimization/89445
31623 * simplify-rtx.c (simplify_ternary_operation): Don't use
31624 simplify_merge_mask on operands that may trap.
31625 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31626 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31627 second operand is CONST_VECTOR, check if any element could be zero.
31628 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31629 their operands can trap.
31630
31631 2019-02-23 Martin Sebor <msebor@redhat.com>
31632
31633 * gimple-ssa-sprintf.c (target_strtol): Rename...
31634 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31635 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31636 check for range error.
31637
31638 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31639
31640 PR driver/69471
31641 * opts-common.c (prune_options): Also prune joined switches
31642 with Negative and RejectNegative.
31643 * config/i386/i386.opt (march=): Add Negative(march=).
31644 (mtune=): Add Negative(mtune=).
31645 * doc/options.texi: Document Negative used together with Joined
31646 and RejectNegative.
31647
31648 2019-02-22 Martin Sebor <msebor@redhat.com>
31649
31650 * doc/extend.texi (Other Builtins): Add
31651 __builtin_is_constant_evaluated.
31652
31653 2019-02-22 Richard Biener <rguenther@suse.de>
31654
31655 PR tree-optimization/87609
31656 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31657
31658 2019-02-22 Jeff Law <law@redhat.com>
31659
31660 PR rtl-optimization/87761
31661 * config/mips/mips.md: Add new combiner pattern to recognize
31662 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31663
31664 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31665
31666 PR target/89324
31667 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31668 destination register in peepholes generating patterns for ADDS/SUBS.
31669 (add<mode>3_compare0,
31670 *addsi3_compare0_uxtw, add<mode>3_compareC,
31671 add<mode>3_compareV_imm, add<mode>3_compareV,
31672 *adds_<optab><ALLX:mode>_<GPI:mode>,
31673 *subs_<optab><ALLX:mode>_<GPI:mode>,
31674 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31675 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31676 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31677 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31678 sub<mode>3_compare1): Allow stack pointer for source register.
31679 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31680
31681 2019-02-22 Martin Sebor <msebor@redhat.com>
31682
31683 PR tree-optimization/88993
31684 PR tree-optimization/88853
31685 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31686 New helper.
31687 (sprintf_dom_walker::call_info::is_string_func): New helper.
31688 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31689 for formatted string functions.
31690 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31691
31692 2019-02-22 Martin Sebor <msebor@redhat.com>
31693
31694 PR c/89425
31695 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31696 unreachable subexpressions.
31697
31698 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31699 Hongtao Liu <hongtao.liu@intel.com>
31700 Sunil K Pandey <sunil.k.pandey@intel.com>
31701
31702 PR target/87007
31703 * config/i386/i386-passes.def: Add
31704 pass_remove_partial_avx_dependency.
31705 * config/i386/i386-protos.h
31706 (make_pass_remove_partial_avx_dependency): New.
31707 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31708 New function.
31709 (pass_data_remove_partial_avx_dependency): New.
31710 (pass_remove_partial_avx_dependency): Likewise.
31711 (make_pass_remove_partial_avx_dependency): Likewise.
31712 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31713 (*extendsfdf2): Add avx_partial_xmm_update.
31714 (truncdfsf2): Likewise.
31715 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31716 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31717
31718 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31719
31720 PR middle-end/85598
31721 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31722 analysis for pass.
31723
31724 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31725
31726 PR target/89444
31727 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31728 (PTA_SKYLAKE): Add PTA_AES.
31729 (PTA_GOLDMONT): Likewise.
31730
31731 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31732
31733 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31734 instruction if enabled.
31735 (aarch64_override_options): Remove reference to return address key.
31736
31737 2019-02-22 Richard Biener <rguenther@suse.de>
31738
31739 PR tree-optimization/89440
31740 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31741 not necessary assert.
31742
31743 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31744
31745 PR fortran/72741
31746 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31747 (oacc_replace_fn_attrib_attr): ... this new function.
31748 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31749 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31750
31751 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31752
31753 * config/arm/arm-cpus.in (ares): Rename to...
31754 (neoverse-n1): ... This. Add ares as alias.
31755 * config/arm/arm-tables.opt: Regenerate.
31756 * config/arm/arm-tune.md: Likewise.
31757 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31758
31759 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31760
31761 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31762 * config/aarch64/aarch64-tune.md: Regenerate.
31763 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31764
31765 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31766
31767 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31768 (neoversen1_tunings): ... This.
31769 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31770 (neoverse-n1): New CPU.
31771 * config/aarch64/aarch64-tune.md: Regenerate.
31772 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31773
31774 2019-02-22 Richard Biener <rguenther@suse.de>
31775
31776 PR middle-end/87609
31777 * cfghooks.h (dependence_hash): New typedef.
31778 (struct copy_bb_data): New type.
31779 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31780 (duplicate_block): Likewise.
31781 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31782 (copy_bbs): Create and pass down copy_bb_data.
31783 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31784 (rtl_duplicate_bb): Likewise.
31785 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31786 remap dependence info.
31787
31788 2019-02-22 Richard Biener <rguenther@suse.de>
31789
31790 PR tree-optimization/87609
31791 * tree-core.h (tree_base): Document special clique values.
31792 * tree-inline.c (remap_dependence_clique): Do not use the
31793 special clique value of one.
31794 (maybe_set_dependence_info): Use clique one.
31795 (clear_dependence_clique): New callback.
31796 (compute_dependence_clique): Clear clique one from all refs
31797 before assigning it (again).
31798
31799 2019-02-21 Martin Sebor <msebor@redhat.com>
31800
31801 * doc/extend.texi (__clear_cache): Correct signature.
31802
31803 2019-02-21 Ian Lance Taylor <iant@golang.org>
31804
31805 PR go/89170
31806 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31807 than output_constant_def.
31808 (add_constant_to_table): New static function.
31809 (output_constant_def): Call add_constant_to_table.
31810 (tree_output_constant_def): Likewise.
31811
31812 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31813
31814 PR c++/89285
31815 * builtins.c (fold_builtin_arith_overflow): If first two args are
31816 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31817 to ifn.
31818
31819 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31820
31821 PR target/87412
31822 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31823 error for -mindirect-branch/-mfunction-return with incompatible
31824 -fcf-protection.
31825
31826 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31827
31828 PR bootstrap/88714
31829 * constraints.md (q): Remove.
31830 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31831 instead of q.
31832
31833 2019-02-21 Martin Jambor <mjambor@suse.cz>
31834
31835 PR hsa/89302
31836 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31837 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31838 (omp_adjust_for_condition): ...here. Added necessary parameters.
31839 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31840 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31841 proper values to new parameters of omp_adjust_for_condition.
31842
31843 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31844
31845 PR middle-end/89412
31846 * expr.c (expand_assignment): If result is a MEM, use change_address
31847 instead of simplify_gen_subreg.
31848
31849 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31850 David Malcolm <dmalcolm@redhat.com>
31851
31852 PR middle-end/89091
31853 * fold-const.c (decode_field_reference): Return NULL_TREE if
31854 lang_hooks.types.type_for_size returns NULL. Check it before
31855 overwriting *exp_. Use return NULL_TREE instead of return 0.
31856
31857 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31858
31859 PR middle-end/88074
31860 PR middle-end/89415
31861 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31862 buggy mpc_norm.
31863
31864 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31865
31866 PR target/89397
31867 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31868 TARGET_SSE in addition to TARGET_SSE_MATH.
31869
31870 (ix86_excess_precision): Ditto.
31871 (ix86_float_exceptions_rounding_supported_p): Ditto.
31872 (use_rsqrt_p): Ditto.
31873 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31874
31875 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31876
31877 PR c/89410
31878 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31879 linenum_arith_t when determining if two adjacent line spans are
31880 close enough to merge.
31881 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31882 lines within each line_span.
31883
31884 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31885
31886 PR target/86487
31887 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31888 paradoxical SUBREGS.
31889
31890 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31891
31892 PR target/88100
31893 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31894 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31895 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31896 range checking it.
31897
31898 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31899
31900 * config/gcn/gcn.c (print_operand): Fix typo.
31901
31902 2019-02-19 Richard Biener <rguenther@suse.de>
31903
31904 PR middle-end/88074
31905 * toplev.c (do_compile): Initialize mpfr's exponent range
31906 based on available float modes.
31907
31908 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31909
31910 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31911 as long as the epilogue isn't completed.
31912
31913 2019-02-18 Martin Sebor <msebor@redhat.com>
31914
31915 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31916 __has_cpp_attribute, and __has_include.
31917
31918 2019-02-18 Martin Sebor <msebor@redhat.com>
31919
31920 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31921
31922 2019-02-18 Martin Sebor <msebor@redhat.com>
31923
31924 PR middle-end/89294
31925 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31926 expression.
31927 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31928
31929 2019-02-18 Richard Biener <rguenther@suse.de>
31930
31931 PR tree-optimization/89296
31932 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31933 of no-warning flag to cases that might emit the bogus warning.
31934
31935 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31936
31937 PR bootstrap/88714
31938 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31939 "q" constraint.
31940 * config/arm/vfp.md (*movdi_vfp): Likewise.
31941 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31942 "q" constraint for operands[0].
31943
31944 PR target/89369
31945 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31946 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31947 pattern in a temporary buffer.
31948 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31949 than 64-operands[2].
31950
31951 PR target/89361
31952 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31953 s390_indirect_branch_settings): Define unconditionally.
31954 (s390_set_current_function): Likewise, but guard the whole body except
31955 the s390_indirect_branch_settings call with
31956 #if S390_USE_TARGET_ATTRIBUTE.
31957 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31958
31959 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31960 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31961 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31962 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31963 HOST_WIDE_INT_1U instead of 1ULL.
31964 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31965 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31966 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31967 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31968 instead of 1UL.
31969 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31970 instead of 1ul.
31971
31972 2019-02-18 Martin Jambor <mjambor@suse.cz>
31973
31974 PR tree-optimization/89209
31975 * tree-sra.c (create_access_replacement): New optional parameter
31976 reg_tree. Use it as a type if non-NULL and access type is not of
31977 a register type.
31978 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31979 to create_access_replacement.
31980 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31981 Check lacc is non-NULL before attempting to re-create it on the RHS.
31982
31983 2019-02-18 Martin Liska <mliska@suse.cz>
31984
31985 PR ipa/89306
31986 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31987 by default.
31988 (symbol_table::free_edge): Recycle m_summary_id.
31989 * cgraph.h (get_summary_id): New.
31990 (symbol_table::release_symbol): Set m_summary_id to -1
31991 by default.
31992 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31993 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31994 function_summary to fast_function_summary.
31995 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31996 * ipa-pure-const.c (class funct_state_summary_t):
31997 Switch from function_summary to fast_function_summary.
31998 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31999 (class ipa_ref_opt_summary_t): Switch from function_summary
32000 to fast_function_summary.
32001 * symbol-summary.h (class function_summary_base): New class
32002 that is created from base of former function_summary.
32003 (function_summary_base::unregister_hooks): New.
32004 (class function_summary): Inherit from function_summary_base.
32005 (class call_summary_base): New class
32006 that is created from base of former call_summary.
32007 (class call_summary): Inherit from call_summary_base.
32008 (struct is_same): New.
32009 (class fast_function_summary): New summary class.
32010 (class fast_call_summary): New summary class.
32011 * vec.h (vec_safe_grow_cleared): New function.
32012
32013 2019-02-18 Martin Liska <mliska@suse.cz>
32014
32015 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32016 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32017 * doc/tm.texi: Document new target hook.
32018 * doc/tm.texi.in: Likewise.
32019 * target.def: Add new target macro.
32020 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32021 suffixes.
32022
32023 2019-02-17 Alan Modra <amodra@gmail.com>
32024
32025 PR target/89271
32026 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32027 output reg on add insn.
32028 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32029
32030 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32031
32032 PR target/89372
32033 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32034 (PMULHRSW): Likewise.
32035 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32036 TARGET_AVX2.
32037 (ssse3_pmulhrswv4hi3): New expander.
32038
32039 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32040
32041 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32042 MMX. Add isa attribute.
32043
32044 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32045
32046 PR rtl-optimization/66152
32047 * builtins.h (c_readstr): Declare.
32048 * builtins.c (c_readstr): Remove forward declaration. Add
32049 null_terminated_p argument, if false, read all bytes from the
32050 string instead of stopping after '\0'.
32051 * expr.c (string_cst_read_str): New function.
32052 (store_expr): Use string_cst_read_str instead of
32053 builtin_strncpy_read_str. Try to store by pieces the whole
32054 exp_len first, and only if that fails, split it up into
32055 store by pieces followed by clear_storage. Formatting fix.
32056
32057 * config/i386/i386.md (*movqi_internal): Remove static from
32058 buf variable. Use output_asm_insn (buf, operands); return "";
32059 instead of return buf;.
32060 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32061 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32062 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32063
32064 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32065
32066 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32067 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32068 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32069 (CC1_SPEC): Likewise.
32070 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32071
32072 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32073
32074 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32075 the base address on 64-bit strict-alignment platforms.
32076
32077 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32078
32079 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32080
32081 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32082
32083 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32084
32085 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32086
32087 PR rtl-optimization/88308
32088 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32089 on copied instruction.
32090
32091 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32092
32093 * final.c (insn_current_reference_address): Replace test on JUMP_P
32094 with test on jump_to_label_p.
32095 * config/visium/visium-passes.def: New file.
32096 * config/visium/t-visium (PASSES_EXTRA): Define.
32097 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32098 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32099 (TRAMPOLINE_ALIGNMENT): Define.
32100 * config/visium/visium.c (visium_option_override): Do not register
32101 the machine-specific reorg pass here.
32102 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32103 for the GR6.
32104 (output_branch): Adjust threshold for long branch instruction.
32105 * config/visium/visium.md (cpu): Move around.
32106 (length): Adjust for the GR6.
32107
32108 2019-02-15 Richard Biener <rguenther@suse.de>
32109 Jakub Jelinek <jakub@redhat.com>
32110
32111 PR tree-optimization/89278
32112 * tree-loop-distribution.c: Include tree-eh.h.
32113 (generate_memset_builtin, generate_memcpy_builtin): Call
32114 rewrite_to_non_trapping_overflow on builtin->size before passing it
32115 to force_gimple_operand_gsi.
32116
32117 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32118
32119 PR other/89342
32120 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32121 optimize_debug.
32122 * opth-gen.awk: Likewise.
32123
32124 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32125
32126 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32127 Enable MMX, SSE and SSE2 by default.
32128 * config/i386/i386.c (ix86_option_override_internal): Do not
32129 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32130
32131 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32132
32133 PR rtl-optimization/89354
32134 * combine.c (make_extraction): Punt if extraction_mode is narrower
32135 than len bits.
32136
32137 2019-02-14 Maya Rashish <coypu@sdf.org>
32138
32139 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32140 * config/netbsd-d.c: New file.
32141 * config/t-netbsd: Add netbsd-d.o
32142
32143 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32144
32145 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32146 affects_type_identity to true for aarch64_vector_pcs.
32147 (aarch64_comp_type_attributes): New function.
32148 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32149
32150 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32151
32152 PR target/88850
32153 * config/arm/iterators.md (ANY64): Add V4HF.
32154
32155 2019-02-14 Martin Liska <mliska@suse.cz>
32156
32157 PR rtl-optimization/89242
32158 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32159 process a transformation.
32160
32161 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32162
32163 PR tree-optimization/89314
32164 * fold-const.c (fold_binary_loc): Cast strlen argument to
32165 const char * before dereferencing it. Formatting fixes.
32166
32167 PR middle-end/89284
32168 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32169
32170 2019-02-13 Ian Lance Taylor <iant@golang.org>
32171
32172 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32173 and set current index for other optimizations.
32174
32175 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32176
32177 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32178 nonimmediate_operand as operand 2 predicate.
32179 (vec_set<VF2_512_256:mode>_0): Ditto.
32180 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32181 (*vec_concatv2si): Remove alternative 2.
32182 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32183 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32184 (vec_concatv2di): Split alternatives 4,5,6 to ...
32185 (*vec_concatv2di_0) ... new pattern.
32186
32187 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32188
32189 PR target/89190
32190 * config/arm/arm.c (ldm_stm_operation_p) Set
32191 addr_reg_in_reglist correctly for first register.
32192 (load_multiple_sequence): Remove dead base check.
32193 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32194
32195 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32196
32197 PR target/88847
32198 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32199 Expose as @aarch64_pred_mov.
32200 * config/aarch64/aarch64.c (aarch64_classify_address):
32201 Use expand_insn which legitimizes operands.
32202
32203 2019-02-13 Martin Liska <mliska@suse.cz>
32204
32205 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32206 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32207 and pointer_offset fields.
32208 (initialize_argument_information): Remove usage of dead
32209 fields.
32210 * cgraph.h (struct cgraph_thunk_info): Remove
32211 add_pointer_bounds_args.
32212 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32213 fields.
32214 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32215 fields.
32216 * config/i386/i386.c (ix86_function_arg_advance): Remove
32217 unrelated comment.
32218 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32219 (def_builtin): Remove usage of dead fields.
32220 (ix86_add_new_builtins): Likewise.
32221 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32222 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32223 (sem_function::init): Likewise.
32224 (sem_variable::merge): Likewise.
32225 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32226 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32227 * lto-cgraph.c (lto_output_node): Likewise.
32228 (lto_output_varpool_node): Likewise.
32229 (input_node): Likewise.
32230 (input_varpool_node): Likewise.
32231 * lto-streamer-out.c (lto_output): Likewise.
32232 * tree-inline.c (expand_call_inline): Remove usage of
32233 assign_stmts.
32234 * tree-inline.h (struct copy_body_data): Likewise.
32235 * varpool.c (varpool_node::dump): Likewise.
32236
32237 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32238
32239 PR middle-end/89303
32240 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32241 into pt->vars_contains_escaped_heap instead of setting
32242 pt->vars_contains_escaped_heap to it.
32243
32244 PR middle-end/89281
32245 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32246 INTVAL (size), compare it to GET_MODE_MASK instead of
32247 1 << GET_MODE_BITSIZE.
32248
32249 PR target/89290
32250 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32251 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32252 -mcmodel=large.
32253
32254 2019-02-13 Martin Liska <mliska@suse.cz>
32255
32256 PR lto/88858
32257 * cfgrtl.c (remove_barriers_from_footer): New function.
32258 (try_redirect_by_replacing_jump): Use it.
32259 (cfg_layout_redirect_edge_and_branch): Likewise.
32260
32261 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32262
32263 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32264 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32265 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32266 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32267 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32268 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32269 New BU_CRYPTO_2.
32270 * config/rs6000/rs6000.c (builtin_function_type)
32271 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32272 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32273 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32274 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32275 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32276
32277 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32278
32279 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32280 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32281
32282 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32283
32284 PR target/89229
32285 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32286 268678 and revision 268657.
32287 (*movti_internal): Likewise.
32288
32289 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32290
32291 PR target/89233
32292 * config/s390/s390.c (s390_decompose_address): Update comment.
32293 (s390_check_qrst_address): Reject invalid address forms after
32294 LRA.
32295
32296 2019-02-12 Martin Liska <mliska@suse.cz>
32297
32298 PR lto/88876
32299 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32300 we need default values of funct_state for a function that
32301 is not optimized.
32302
32303 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32304
32305 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32306 the object to pick the size of stores on strict-alignment platforms.
32307
32308 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32309 (*movdi_insn_sp32): Likewise.
32310 (*movdi_insn_sp64): Likewise.
32311
32312 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32313
32314 PR lto/88677
32315 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32316 types that needs constructiong.
32317 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32318
32319 2019-02-12 Richard Biener <rguenther@suse.de>
32320
32321 PR tree-optimization/89253
32322 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32323 duplicate the loop.
32324
32325 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32326
32327 PR lto/88147
32328 * input.c (selftest::test_line_offset_overflow): New selftest.
32329 (selftest::input_c_tests): Call it.
32330
32331 2019-02-11 Martin Sebor <msebor@redhat.com>
32332
32333 PR tree-optimization/88771
32334 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32335 when -Wstringop-overflow is set.
32336 (builtin_memref::builtin_memref): Adjust excessive upper bound
32337 only when lower bound is not excessive.
32338 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32339 -Wstringop-ovefflow.
32340 (maybe_diag_offset_bounds): Rename...
32341 (maybe_diag_access_bounds): ...to this.
32342 (check_bounds_or_overlap): Adjust for name change above.
32343
32344 2019-02-11 Martin Sebor <msebor@redhat.com>
32345
32346 PR c++/87996
32347 * builtins.c (max_object_size): Move from here...
32348 * builtins.h (max_object_size): ...and here...
32349 * tree.c (max_object_size): ...to here...
32350 * tree.h (max_object_size): ...and here.
32351
32352 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32353
32354 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32355 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32356 for correct semantics.
32357
32358 2019-02-11 Alan Modra <amodra@gmail.com>
32359
32360 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32361 -mlongcall and -mpltseq.
32362 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32363 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32364 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32365 * config/rs6000/sysv4.opt (mpltseq): New option.
32366 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32367 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32368 support is lacking. Don't allow -mpltseq with -mbss-plt.
32369 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32370 -mpltseq given for ELFv1.
32371 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32372 Only use UNSPEC_PLTSEQ for inline PLT calls.
32373 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32374 use UNSPEC_PLTSEQ for inline PLT calls.
32375 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32376 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32377 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32378 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32379 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32380 (pltseq_mtctr_<mode>): Likewise.
32381
32382 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32383
32384 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32385 Solaris ld.
32386 * configure: Regenerate.
32387
32388 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32389
32390 PR bootstrap/88714
32391 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32392 instead of r.
32393
32394 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32395
32396 * function.c (assign_parm_setup_block): Use the stored
32397 size, not the passed size, when allocating stack-space,
32398 also for a parameter with alignment larger than
32399 MAX_SUPPORTED_STACK_ALIGNMENT.
32400
32401 2019-02-11 Martin Liska <mliska@suse.cz>
32402
32403 PR ipa/89009
32404 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32405 * ipa-inline.c (inline_small_functions): Likewise.
32406 * ipa-pure-const.c (propagate_pure_const): Likewise.
32407 (propagate_nothrow): Likewise.
32408 * ipa-reference.c (propagate): Likewise.
32409 * ipa-utils.c (struct searchc_env): Remove unused field.
32410 (searchc): Always search across AVAIL_INTERPOSABLE.
32411 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32412 the only called IPA pure const can properly not propagate
32413 across interposable boundary.
32414 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32415
32416 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32417
32418 * config/nds32/nds32.md (call_internal, call_value_internal,
32419 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32420
32421 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32422
32423 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32424 typo.
32425
32426 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32427
32428 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32429 in comments
32430
32431 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32432
32433 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32434
32435 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32436
32437 PR tree-optimization/89268
32438 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32439 if preds is non-NULL.
32440
32441 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32442
32443 PR lto/89272
32444 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32445 polymorphic types.
32446
32447 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32448
32449 * config/nds32/nds32.md (trap): New pattern.
32450
32451 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32452
32453 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32454 dwarf span.
32455
32456 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32457
32458 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32459 to split POST_INC.
32460
32461 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32462
32463 * ipa-visibility.c (localize_node): Also do not localize
32464 LDPR_PREVAILING_DEF_IRONLY_EXP.
32465
32466 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32467
32468 PR lto/87957
32469 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32470 instead of type_with_linkage.
32471
32472 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32473
32474 PR ipa/88755
32475 * params.def (uninlined-function-insns, uninlined-function-time,
32476 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32477 bound so we don't get overflows.
32478
32479 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32480
32481 * config/rs6000/rs6000-string.c (expand_compare_loop,
32482 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32483 memcmp/strncmp.
32484
32485 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32486
32487 PR middle-end/89246
32488 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32489 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32490 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32491
32492 2019-02-09 Alan Modra <amodra@gmail.com>
32493
32494 PR target/88343
32495 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32496 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32497 setup.
32498
32499 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32500
32501 PR middle-end/88560
32502 * lra-constraints.c (process_alt_operands): Don't increase reject
32503 for memory when offset memory is required.
32504
32505 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32506
32507 * config/s390/vector.md: Implement vector copysign.
32508
32509 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32510
32511 * expr.c (expand_constructor): Correct indentations.
32512
32513 2019-02-08 Richard Biener <rguenther@suse.de>
32514
32515 PR tree-optimization/89247
32516 * tree-if-conv.c: Include tree-cfgcleanup.h.
32517 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32518 (tree_if_conversion): Pass through predicate vector.
32519 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32520 inline, see if any if-converted loops we refrece in
32521 LOOP_VECTORIZED calls vanished and fixup.
32522 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32523
32524 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32525
32526 * config/s390/constraints.md (jdd): New constraint.
32527
32528 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32529
32530 PR target/89229
32531 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32532 upper 16 vector registers without TARGET_AVX512VL.
32533 (*movti_internal): Likewise.
32534
32535 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32536
32537 PR rtl-optimization/89234
32538 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32539 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32540 (copy_reg_eh_region_note_backward): Likewise.
32541
32542 2019-02-08 Richard Biener <rguenther@suse.de>
32543
32544 PR middle-end/89223
32545 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32546 doesn't fit in HWI.
32547 (analyze_subscript_affine_affine): Handle failure from
32548 initialize_matrix_A.
32549
32550 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32551
32552 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32553 cfun everywhere.
32554
32555 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32556
32557 PR tree-optimization/86637
32558 PR tree-optimization/89235
32559 * tree-vect-loop.c (optimize_mask_stores): Add an
32560 auto_purge_vect_location sentinel to ensure that vect_location is
32561 purged on exit.
32562 * tree-vectorizer.c
32563 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32564 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32565 to ensure that vect_location is purged on exit.
32566 (pass_slp_vectorize::execute): Likewise, replacing the manual
32567 reset.
32568 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32569
32570 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32571
32572 * config/aarch64/iterators.md (max_opp): New code_attr.
32573 (USMAX): New code iterator.
32574 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32575 (aarch64_smax): Likewise.
32576 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32577 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32578 MINUS (MAX MIN).
32579
32580 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32581
32582 PR target/89229
32583 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32584 for TARGET_AVX512VL.
32585 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32586
32587 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32588
32589 * config/s390/s390-builtin-types.def: Add new types.
32590 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32591 (s390_vec_xlw4): Make the memory operand into a const pointer.
32592 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32593 float.
32594 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32595 a new vector type with the alignment of the scalar memory operand.
32596
32597 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32598 Jakub Jelinek <jakub@redhat.com>
32599
32600 PR bootstrap/88714
32601 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32602 arm_count_ldrdstrd_insns): New declarations.
32603 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32604 MINUS.
32605 (valid_operands_ldrd_strd): New function.
32606 (arm_count_ldrdstrd_insns): New function.
32607 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32608 sets instead of single DImode set and define new insns to match this.
32609
32610 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32611
32612 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32613 Make it a C initializer.
32614
32615 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32616
32617 PR/target 88850
32618 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32619
32620 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32621
32622 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32623 Use neon_dot<q> for type.
32624 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32625
32626 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32627
32628 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32629 Use neon_dot<q> for type.
32630 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32631 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32632
32633 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32634
32635 PR rtl-optimization/89225
32636 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32637 sizes check.
32638
32639 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32640
32641 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32642 after restoring registers saved to allocate the frame on Windows.
32643
32644 2019-02-06 Richard Biener <rguenther@suse.de>
32645
32646 PR tree-optimization/89182
32647 * graphite.h (cached_scalar_evolution_in_region): Declare.
32648 * graphite.c (struct seir_cache_key): New.
32649 (struct sese_scev_hash): Likewise.
32650 (seir_cache): New global.
32651 (cached_scalar_evolution_in_region): New function.
32652 (graphite_transform_loops): Allocate and release seir_cache.
32653 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32654 cached_scalar_evolution_in_region.
32655 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32656 Simplify.
32657 (scop_detection::graphite_can_represent_expr: Use
32658 cached_scalar_evolution_in_region.
32659 (scop_detection::stmt_simple_for_scop_p): Likewise.
32660 (find_params_in_bb): Likewise.
32661 (gather_bbs::before_dom_children): Likewise.
32662 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32663 (add_loop_constraints): Likewise.
32664
32665 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32666
32667 PR middle-end/89210
32668 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32669 operand to new_unary_operation only if both element types are integral
32670 and it isn't a widening conversion. Return NULL_TREE if
32671 new_unary_operation failed.
32672
32673 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32674
32675 PR target/88856
32676 * config/s390/s390.md: Remove load and test FP splitter.
32677
32678 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32679
32680 PR target/89112
32681 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32682 expand_compare_loop, expand_block_compare_gpr,
32683 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32684 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32685 #include "profile-count.h" and "predict.h" for types and functions
32686 needed to work with REG_BR_PROB notes.
32687
32688 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32689
32690 PR target/89112
32691 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32692 for the long branch case.
32693
32694 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32695
32696 PR target/89188
32697 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32698 can throw, non-call exceptions are enabled and we can't delete
32699 dead exceptions or alter cfg. Set must_clean if
32700 delete_insn_and_edges returns true, don't set it blindly for calls.
32701 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32702
32703 PR rtl-optimization/89195
32704 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32705 of the original MEM.
32706
32707 2019-02-05 Martin Liska <mliska@suse.cz>
32708
32709 PR gcov-profile/89000
32710 * gcov.c (function_summary): Remove argument.
32711 (file_summary): New function.
32712 (print_usage): Replace tabs with spaces.
32713 (generate_results): Use new function file_summary.
32714
32715 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32716
32717 PR target/89186
32718 * optabs.c (prepare_cmp_insn): Pass x and y to
32719 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32720
32721 2019-02-05 Richard Biener <rguenther@suse.de>
32722
32723 PR middle-end/89150
32724 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32725 (struct bitmap_element): Drop chain_prev so we properly recurse on
32726 the prev member, supporting tree views.
32727 (struct bitmap_head): GTY skip the obstack member.
32728
32729 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32730
32731 PR c/88698
32732 * doc/extend.texi (Vector Extensions): Add an example of using vector
32733 types together with x86 intrinsics.
32734
32735 2019-02-04 Alan Modra <amodra@gmail.com>
32736
32737 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32738 str[] size to 160, and comment.
32739
32740 2019-02-04 Alan Modra <amodra@gmail.com>
32741
32742 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32743 (rs6000_pltseq_template): Guard output of TLS markers with
32744 TARGET_TLS_MARKERS.
32745 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32746 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32747 to use inline PLT sequences.
32748 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32749 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32750 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32751
32752 2019-02-04 Martin Liska <mliska@suse.cz>
32753
32754 PR ipa/88985
32755 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32756 out when ipa_fn_summaries does not contain entry for callee.
32757
32758 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32759
32760 * config/sparc/sparc.h: Remove superfluous blank lines.
32761 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32762 (got_register_rtx): ...this.
32763 (sparc_got): Adjust to above renaming.
32764 (sparc_tls_got): Likewise.
32765 (sparc_delegitimize_address): Likewise.
32766 (sparc_output_mi_thunk): Likewise.
32767 (sparc_init_pic_reg): Likewise.
32768 (save_local_or_in_reg_p): Fix test on the GOT register.
32769 (USE_HIDDEN_LINKONCE): Move around.
32770 (get_pc_thunk_name): Likewise.
32771 (gen_load_pcrel_sym): Likewise.
32772 (load_got_register): Likewise.
32773
32774 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32775
32776 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32777 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32778
32779 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32780
32781 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32782 into consideration.
32783
32784 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32785
32786 * config.gcc (with_nds32_lib, glibc):
32787 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32788 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32789 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32790
32791 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32792
32793 PR target/89071
32794 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32795 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32796 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32797 (*rcpsf2_sse): Ditto.
32798 (*rsqrtsf2_sse): Ditto.
32799 (sse4_1_round<mode<2): Ditto.
32800
32801 2019-02-03 Richard Biener <rguenther@suse.de>
32802
32803 PR debug/87295
32804 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32805 orig.
32806
32807 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32808
32809 PR middle-end/87887
32810 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32811 Punt with warning on aggregate return or argument types. Ignore
32812 type/mode checking for uniform arguments.
32813
32814 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32815
32816 * combine.c (try_combine): Do not print "Can't combine" messages unless
32817 printing failed combination attempts.
32818
32819 2019-02-01 Martin Jambor <mjambor@suse.cz>
32820
32821 PR hsa/87863
32822 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32823 segment and global segment variables before making them static.
32824
32825 2019-02-01 Martin Jambor <mjambor@suse.cz>
32826
32827 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32828 missed optimization dump with dump_enabled_p.
32829
32830 2019-02-01 Richard Biener <rguenther@suse.de>
32831
32832 PR middle-end/88597
32833 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32834 the instantiate cache.
32835 (instantiate_scev_binary): Elide second operand procesing
32836 if equal to the first.
32837 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32838 (chrec_contains_undetermined): Likewise.
32839 (tree_contains_chrecs): Likewise.
32840
32841 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32842
32843 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32844
32845 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32846
32847 PR tree-optimization/89143
32848 * wide-int-range.h (wide_int_range_absu): Declare.
32849 * wide-int-range.cc (wide_int_range_absu): New function.
32850 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32851
32852 PR tree-optimization/88107
32853 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32854 instead of assertion that eh_region_outermost is non-NULL, if it
32855 is NULL, set *ALL to true and return NULL.
32856 (move_sese_region_to_fn): Adjust caller, if all is set, call
32857 duplicate_eh_regions with NULL region.
32858
32859 2019-02-01 Richard Biener <rguenth@suse.de>
32860
32861 PR rtl-optimization/88593
32862 * mode-switching.c (optimize_mode_switching): Free dominators before
32863 calling cleanup_cfg.
32864
32865 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32866
32867 PR tree-optimization/88932
32868 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32869
32870 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32871
32872 PR middle-end/89137
32873 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32874 bogus clang warning.
32875
32876 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32877
32878 PR target/89071
32879 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32880 alternative to avoid partial SSE register stall for TARGET_AVX.
32881 (truncdfsf2): Ditto.
32882 (sse4_1_round<mode>2): Ditto.
32883
32884 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32885
32886 PR tree-optimization/89008
32887 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32888 process anything of the form X * 0.
32889
32890 2019-01-31 Richard Biener <rguenther@suse.de>
32891
32892 PR tree-optimization/89135
32893 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32894 with abnormal preds.
32895
32896 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32897
32898 PR sanitizer/89124
32899 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32900 always_inline callees into no_sanitize_address callers.
32901
32902 2019-01-31 Richard Biener <rguenther@suse.de>
32903
32904 PR rtl-optimization/89115
32905 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32906
32907 2019-01-30 Martin Sebor <msebor@redhat.com>
32908
32909 PR other/89106
32910 * doc/extend.texi (cast to a union): Correct and expand.
32911
32912 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32913
32914 PR rtl-optimization/87246
32915 * lra-constraints.c (simplify_operand_subreg): Reload memory
32916 in subreg if the address became invalid.
32917
32918 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32919
32920 PR target/87064
32921 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32922 Disable for little-endian.
32923
32924 2019-01-30 Richard Biener <rguenther@suse.de>
32925
32926 PR rtl-optimization/89115
32927 * opts.c (default_options_optimization): Reduce
32928 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32929 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32930 to the default.
32931
32932 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32933
32934 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32935 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32936 type of vector element when vec_extract is implemented by direct
32937 move.
32938
32939 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32940
32941 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32942
32943 2019-01-30 Richard Biener <rguenther@suse.de>
32944
32945 PR tree-optimization/89111
32946 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32947 canonicalization to appropriately sized access types.
32948
32949 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32950
32951 PR c++/89105
32952 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32953 for arguments to functions that are TU-local and shouldn't be
32954 referenced by assembly.
32955
32956 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32957
32958 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32959 after '='.
32960
32961 2019-01-29 Martin Sebor <msebor@redhat.com>
32962
32963 PR c/88956
32964 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32965
32966 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32967
32968 PR c++/66676
32969 PR ipa/89104
32970 * omp-simd-clone.c (simd_clone_clauses_extract)
32971 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32972 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32973
32974 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32975
32976 * config.gcc: Force .init_array for ARC.
32977
32978 2019-01-29 Richard Biener <rguenther@suse.de>
32979
32980 PR debug/87295
32981 * dwarf2out.c (collect_skeleton_dies): New helper.
32982 (copy_decls_for_unworthy_types): Call it.
32983 (build_abbrev_table): Assert we do not try to replace
32984 DW_AT_signature refs with local refs.
32985
32986 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32987
32988 PR middle-end/89002
32989 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32990 for lastprivate/linear IV, push gimplify context around gimplify_assign
32991 and, if it needed any temporaries, pop it into a gimple bind around the
32992 sequence.
32993
32994 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32995
32996 * common.opt (-Wattribute-alias): Remove "no-" from name.
32997 Make -Wattribute-alias command line option and
32998 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32999
33000 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33001
33002 PR target/89073
33003 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33004 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33005 x86 ISA options.
33006 (bmi2): Add missing @opindex.
33007 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33008 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33009 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33010 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33011 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33012 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33013 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33014 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33015 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33016 xsavec, xsaveopt and xsaves options.
33017
33018 2019-01-28 Richard Biener <rguenther@suse.de>
33019
33020 PR debug/89076
33021 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33022 support removal.
33023
33024 2019-01-28 Richard Biener <rguenther@suse.de>
33025
33026 PR tree-optimization/88739
33027 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33028 BIT_FIELD_REFs only are applied to mode-precision operands
33029 when they are integral.
33030 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33031 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33032 BIT_FIELD_REFs of non-mode-precision integral operands.
33033
33034 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33035
33036 PR target/87214
33037 * config/i386/sse.md
33038 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33039 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33040 first constants in pairs are multiples of 2. Formatting fixes.
33041 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33042 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33043 first constants in each quadruple are multiples of 4. Formatting fixes.
33044
33045 2019-01-26 Martin Jambor <mjambor@suse.cz>
33046
33047 PR ipa/88933
33048 * tree-inline.c: Include tree-cfgcleanup.h.
33049 (delete_unreachable_blocks_update_callgraph): Move...
33050 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33051 ...here, make externally visible, make second argument bool, adjust
33052 all callers.
33053 * tree-cfgcleanup.c: Include cgraph.h.
33054 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33055 Declare.
33056 * ipa-prop.c: Include tree-cfgcleanup.h.
33057 (ipcp_transform_function): Call
33058 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33059
33060 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33061
33062 PR rtl-optimization/88846
33063 * ira.c (process_set_for_memref_referenced_p): New.
33064 (memref_referenced_p): Add new param. Use
33065 process_set_for_memref_referenced_p. Add new switch cases.
33066 (memref_used_between_p): Pass new arg to memref_referenced_p.
33067
33068 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33069
33070 PR target/88469
33071 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33072 argument ABI_BREAK. Set to true if the calculated alignment has
33073 changed in gcc-9. Check bit-fields for their base type alignment.
33074 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33075 (aarch64_function_arg_boundary): Likewise.
33076 (aarch64_gimplify_va_arg_expr): Likewise.
33077
33078 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33079
33080 PR middle-end/89037
33081 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33082 instead of accessing TREE_INT_CST_ELT directly.
33083
33084 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33085
33086 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33087 fenv_exceptions description.
33088
33089 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33090
33091 PR rtl-optimization/87763
33092 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33093 Allow SUBREG when matching CC_NZmode compare.
33094
33095 2019-01-25 Richard Biener <rguenther@suse.de>
33096
33097 PR tree-optimization/89049
33098 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33099 Look at the pattern stmt to determine if the stmt is vectorized.
33100
33101 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33102
33103 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33104 (pred_mov<mode>): Handle all-register forms using both a new
33105 alternative and a split.
33106
33107 2019-01-25 Richard Biener <rguenther@suse.de>
33108
33109 PR tree-optimization/86865
33110 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33111 Reject non-do-while loops.
33112
33113 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33114
33115 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33116 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33117 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33118 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33119 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33120 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33121 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33122 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33123 vlogical_operand, gpc_reg_operand, int_reg_operand,
33124 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33125 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33126 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33127 (save_world_operation, restore_world_operation, lmw_operation,
33128 stmw_operation): Use MEM_P and REG_P.
33129 (tie_operand): Use MEM_P.
33130 (vrsave_operation, crsave_operation): Use REG_P.
33131 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33132 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33133 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33134 (call_operand): Use HARD_REGISTER_P.
33135 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33136 Use CONST_INT_P.
33137 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33138 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33139 quad_aligned_load_p, replace_swapped_aligned_store,
33140 recombine_lvx_pattern, replace_swapped_aligned_load,
33141 recombine_stvx_pattern): Use MEM_P.
33142 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33143 Use MEM_P and SYMBOL_REF_P.
33144 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33145 (insn_is_swappable_p): Use REG_P and MEM_P.
33146 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33147 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33148 Use CONST_INT_P.
33149 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33150 Use CONST_DOUBLE_P.
33151 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33152 CONST_WIDE_INT_P.
33153 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33154 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33155 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33156 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33157 reg_or_subregno:
33158 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33159 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33160 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33161 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33162 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33163 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33164 rs6000_split_logical_di): Use CONST_INT_P.
33165 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33166 REG_P and SYMBOL_REF_P.
33167 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33168 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33169 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33170 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33171 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33172 (small_data_operand, print_operand_address): Use CONST_INT_P and
33173 SYMBOL_REF_P.
33174 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33175 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33176 Use HARD_REGISTER_NUM_P.
33177 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33178 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33179 SUBREG_P and SYMBOL_REF_P.
33180 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33181 and HARD_REGISTER_NUM_P.
33182 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33183 reg_or_subregno.
33184 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33185 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33186 MEM_P and REG_P.
33187 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33188 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33189 find_addr_reg): Use REG_P.
33190 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33191 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33192 (offsettable_ok_by_alignment, constant_pool_expr_p,
33193 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33194 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33195 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33196 rs6000_assemble_integer, create_TOC_reference,
33197 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33198 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33199 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33200 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33201 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33202 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33203 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33204 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33205 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33206 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33207 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33208 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33209 and cbranch<mode>4): Use CONST_INT_P.
33210 (multiple define_splits): Use REG_P and SUBREG_P.
33211 (define_expands call, call_value): Use MEM_P.
33212 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33213 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33214 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33215 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33216 and HARD_REGISTER_NUM_P.
33217 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33218
33219 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33220
33221 PR rtl-optimization/88948
33222 * rtl.h (prepare_copy_insn): New prototype.
33223 * gcse.c (prepare_copy_insn): New function, split out from
33224 process_insert_insn.
33225 (process_insert_insn): Use prepare_copy_insn.
33226 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33227 instead of gen_move_insn.
33228
33229 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33230
33231 PR debug/89006
33232 * config/i386/i386.c (ix86_pic_register_p): Return true for
33233 UNSPEC_SET_GOT too.
33234
33235 PR tree-optimization/88964
33236 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33237 punt if HONOR_SNANS (chrec).
33238
33239 PR middle-end/89015
33240 * tree-nested.c (convert_nonlocal_reference_stmt,
33241 convert_local_reference_stmt, convert_tramp_reference_stmt,
33242 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33243 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33244 or GIMPLE_OMP_TASK.
33245
33246 PR tree-optimization/89027
33247 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33248 for "omp simd array" variables.
33249
33250 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33251
33252 PR target/88469
33253 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33254 force the alignment of m_val.
33255
33256 2019-01-24 Richard Biener <rguenther@suse.de>
33257
33258 PR lto/87187
33259 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33260 When in "legacy" debug mode make sure to reset self-origins.
33261
33262 2019-01-24 Martin Liska <mliska@suse.cz>
33263
33264 PR gcov-profile/88994
33265 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33266 result will be always smaller or equal to the original.
33267 * gcov.c (mangle_name): Fix else branch where we should
33268 also copy to PTR and shift the pointer.
33269
33270 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33271
33272 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33273 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33274
33275 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33276
33277 * common/config/i386/i386-common.c
33278 (OPTION_MASK_ISA_ENQCMD_SET,
33279 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33280 (ix86_handle_option): Handle -menqcmd.
33281 * config.gcc (enqcmdintrin.h): New header file.
33282 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33283 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33284 -menqcmd.
33285 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33286 function type.
33287 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33288 __builtin_ia32_enqcmds): New builtins.
33289 * config/i386/i386-c.c (__ENQCMD__): New macro.
33290 * config/i386/i386-option.c (ix86_target_string): Add
33291 -menqcmd.
33292 (ix86_valid_target_attribute_inner_p): Likewise.
33293 * config/i386/i386-expand.c
33294 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33295 IX86_BUILTIN_ENQCMDS.
33296 * config/i386/i386.h (TARGET_ENQCMD): New.
33297 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33298 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33299 (movdir64b_<mode>): Parameterize to enable share expansion code
33300 with ENQCMD in function ix86_expand_builtin.
33301 * config/i386/i386.opt: Add -menqcmd.
33302 * config/i386/immintrin.h: Include enqcmdintrin.h.
33303 * config/i386/enqcmdintrin.h: New intrinsic file.
33304 * doc/invoke.texi: Add -menqcmd.
33305
33306 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33307 Steve Ellcey <sellcey@marvell.com>
33308
33309 PR target/85711
33310 * recog.c (address_operand): Return false on wrong mode for address.
33311 (constrain_operands): Check for mode with 'p' constraint.
33312
33313 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33314
33315 PR target/88998
33316 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33317 Disparage MMX alternative.
33318 (sse2_cvtpd2pi): Ditto.
33319 (sse2_cvttpd2pi): Ditto.
33320
33321 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33322
33323 PR driver/89014
33324 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33325 use-after-free of the result of
33326 aarch64_get_extension_string_for_isa_flags.
33327
33328 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33329
33330 PR c/44715
33331 * doc/extend.texi: Document break and continue behavior in
33332 statement expressions.
33333
33334 2019-01-23 Richard Biener <rguenther@suse.de>
33335
33336 PR tree-optimization/89008
33337 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33338 not leave another stray operand.
33339
33340 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33341
33342 * BASE-VER: Bump to 9.0.1.
33343
33344 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33345
33346 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33347 thunk that returns by reference, use the type of the return object
33348 of the thunk instead of that of the alias to build the dereference.
33349
33350 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33351
33352 * config/arc/atomic.md: Add operand to DMB instruction.
33353
33354 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33355
33356 PR tree-optimization/88964
33357 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33358 build_zero_cst instead of build_int_cst. Return false for loop
33359 invariants which honor signed zeros.
33360
33361 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33362
33363 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33364
33365 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33366
33367 PR target/88965
33368 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33369 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33370 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33371
33372 PR middle-end/88968
33373 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33374 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33375
33376 PR target/87064
33377 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33378 Disable for little endian.
33379
33380 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33381
33382 PR target/88469
33383 * config/arm/arm.c (arm_needs_double_word_align): Check
33384 DECL_BIT_FIELD_TYPE.
33385
33386 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33387 H.J. Lu <hongjiu.lu@intel.com>
33388
33389 PR target/88909
33390 * config/i386/i386-builtin.def: Add mask2 to all builtin
33391 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33392 SPECIAL_ARGS.
33393 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33394 (BDESC_FIRST): Likewise.
33395 (define_builtin): Add an argument for mask2. Updated to handle
33396 both ix86_isa_flags and ix86_isa_flags2.
33397 (define_builtin_const): Likewise.
33398 (define_builtin_pure): Likewise.
33399 (define_builtin2): Deleted.
33400 (define_builtin_const2): Likewise.
33401 (builtin_description): Add a member, mask2.
33402 (bdesc_*): Add mask2 to builtin initializations.
33403 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33404 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33405 support.
33406 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33407
33408 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33409
33410 PR target/88954
33411 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33412 noplt attribute.
33413
33414 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33415
33416 PR target/88469
33417 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33418 alignment is dominated by a bitfield with 64-bit aligned base type.
33419 (arm_function_arg): Emit a warning if the alignment has changed since
33420 earlier GCC releases.
33421 (arm_function_arg_boundary): Likewise.
33422 (arm_setup_incoming_varargs): Likewise.
33423
33424 2019-01-22 Richard Biener <rguenther@suse.de>
33425
33426 PR tree-optimization/88862
33427 * graphite-scop-detection.c
33428 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33429
33430 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33431
33432 * doc/extend.tex (AMD GCN Function Attributes): New section.
33433 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33434 * doc/invoke.texi (AMD GCN Options): New section.
33435 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33436
33437 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33438
33439 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33440 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33441
33442 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33443
33444 PR tree-optimization/88044
33445 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33446 is false in the first iteration, but !every_iteration, return false
33447 instead of true with niter->niter zero.
33448
33449 PR rtl-optimization/88904
33450 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33451 any nonequal registers before processing BB_END (b).
33452
33453 PR target/88905
33454 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33455 GET_MODE (op0).
33456 (expand_binop_directly, expand_doubleword_clz,
33457 expand_doubleword_popcount, expand_ctz, expand_ffs,
33458 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33459
33460 PR rtl-optimization/49429
33461 PR target/49454
33462 PR rtl-optimization/86334
33463 PR target/88906
33464 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33465 addressable from here...
33466 (emit_block_op_via_libcall): ... to here.
33467
33468 2019-01-22 Richard Biener <rguenther@suse.de>
33469
33470 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33471 auto_vec for cost vector to fix memleak.
33472 (vectorize_fold_left_reduction): Properly gather SLP defs.
33473 (vectorizable_comparison): Do not swap operands to properly
33474 gather SLP defs.
33475
33476 2019-01-22 Alan Modra <amodra@gmail.com>
33477
33478 PR target/88614
33479 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33480 stays a reg. Allow a const_int.
33481 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33482 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33483 (IS_NOMARK_TLSGETADDR): Define.
33484 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33485 (rs6000_output_tlsargs): New function.
33486 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33487 __tls_get_addr call takes an arg.
33488 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33489 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33490 delete split..
33491 (call_value_nonlocal_sysv): ..or here, delete split.
33492 (tls_gdld_nomark): Delete.
33493 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33494 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33495 (call_value_nonlocal_sysv): Likewise.
33496 (call_value_nonlocal_sysv_secure): Likewise.
33497 (call_value_nonlocal_aix): Likewise.
33498 (call_value_indirect_aix): Likewise.
33499 (call_value_indirect_elfv2): Likewise.
33500 (call_value_local32, call_value_local64): Disable for no-mark tls.
33501 (call_value_local_aix): Likewise.
33502
33503 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33504
33505 PR target/88938
33506 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33507 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33508
33509 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33510
33511 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33512 string contents as hash_map keys.
33513
33514 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33515
33516 PR c/88928
33517 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33518 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33519 instead of TYPE_ALIGN.
33520 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33521 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33522 pointer from TYPE_STUB_DECL.
33523
33524 2019-01-21 Richard Biener <rguenther@suse.de>
33525
33526 PR tree-optimization/88934
33527 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33528 at the possibly non-constant operand.
33529 (vect_get_constant_vectors): Adjust.
33530
33531 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33532
33533 PR target/71659
33534 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33535 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33536 instead of _X86INTRIN_H_INCLUDED.
33537 * onfig/i386/clwbintrin.h: Likewise.
33538 * config/i386/pkuintrin.h: Likewise.
33539 * config/i386/prfchwintrin.h: Likewise.
33540 * config/i386/rdseedintrin.h: Likewise.
33541 * config/i386/wbnoinvdintrin.h: Likewise.
33542 * config/i386/xsavecintrin.h: Likewise.
33543 * config/i386/xsavesintrin.h: Likewise.
33544 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33545 * config/i386/xsaveintrin.h: Likewise.
33546 * config/i386/xsaveoptintrin.h: Likewise.
33547 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33548 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33549 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33550 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33551 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33552 * config/i386/immintrin.h: Here.
33553
33554 2019-01-20 Martin Jambor <mjambor@suse.cz>
33555
33556 PR ipa/87615
33557 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33558 with aa_walk_budget.
33559 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33560 aa_walk_budget_p parameter.
33561 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33562 walk. Updated all callers.
33563 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33564 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33565 unmodified_parm.
33566 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33567 parameter info. Extract info from fbi. Pass fbi to recursive calls
33568 and to unmodified_parm.
33569 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33570 info, updated call to will_be_nonconstant_expr_predicate.
33571 (param_change_prob): New parameter fbi, limit AA walking.
33572 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33573 calls to various above functions.
33574 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33575 parameter. Use it to limit AA walking.
33576 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33577 fbi, limit AA walk.
33578 (detect_type_change): New parameter fbi, pass it on to
33579 detect_type_change_from_memory_writes.
33580 (detect_type_change_ssa): Likewise.
33581 (aa_overwalked): Removed.
33582 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33583 accordingly, adjust to the neew AA limiting scheme.
33584 (parm_ref_data_preserved_p): Likewise.
33585 (ipa_compute_jump_functions_for_edge): Adjust call to
33586 get_dynamic_type.
33587 (ipa_analyze_call_uses): Likewise.
33588 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33589 (ipa_analyze_node): Initialize aa_walk_budget.
33590 (ipcp_transform_function): Likewise.
33591 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33592 to get_dynamic_type.
33593
33594 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33595
33596 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33597 outside of #if CHECKING_P code.
33598
33599 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33600
33601 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33602 New function, split out from...
33603 (loop_versioning::analyze_stride): ...here.
33604 (loop_versioning::find_per_loop_multiplication): Use gassign.
33605 (loop_versioning::analyze_term_using_scevs): Return a success code.
33606 (loop_versioning::analyze_arbitrary_term): New function.
33607 (loop_versioning::analyze_address_fragment): Use
33608 analyze_arbitrary_term if all else fails.
33609
33610 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33611
33612 PR target/88892
33613 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33614 operands.
33615
33616 2019-01-18 Richard Biener <rguenther@suse.de>
33617
33618 PR tree-optimization/88903
33619 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33620 scalar stmts a SLP shift amount is composed of when detecting
33621 shifts by scalars.
33622
33623 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33624
33625 PR target/88799
33626 * config/arm/arm-cpus.in (mp): New feature.
33627 (sec): New feature.
33628 (fgroup ARMv7ve): Add mp and sec features.
33629 (arch armv7-a): Add options to allow mp and sec extensions.
33630 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33631 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33632 extenstions to the base architecture.
33633 (cpu cortex-a8): Add sec extension to the base architecture.
33634 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33635 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33636 variants down to the base v7-a varaint.
33637 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33638 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33639 of permitted extensions for -march=armv7-a and for
33640 -mcpu=generic-armv7-a.
33641
33642 2019-01-18 Martin Liska <mliska@suse.cz>
33643
33644 * params.def: Fix comment.
33645 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33646 name.
33647 (gimple_gen_ic_func_profiler): Likewise.
33648
33649 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33650
33651 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33652 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33653 and put in error checks for stack protector guard options.
33654 (aarch64_stack_protect_guard): New.
33655 (TARGET_STACK_PROTECT_GUARD): Define.
33656 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33657 (reg_stack_protect_address<mode>): New.
33658 (stack_protect_set): Adjust for SSP_GLOBAL.
33659 (stack_protect_test): Likewise.
33660 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33661 (-mstack-protector-guard): Likewise.
33662 (-mstack-protector-guard-offset): Likewise.
33663
33664 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33665
33666 PR tree-optimization/86214
33667 * tree-inline.h (struct copy_body_data): Add
33668 add_clobbers_to_eh_landing_pads member.
33669 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33670 (copy_edges_for_bb): Call it if EH edge destination is <
33671 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33672 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33673 if flag_stack_reuse != SR_NONE and clear it afterwards.
33674
33675 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33676
33677 PR target/85596
33678 * doc/install.texi (with-multilib-list): Document for aarch64.
33679
33680 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33681
33682 PR target/88734
33683 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33684 (("..."))) with ("...").
33685
33686 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33687
33688 * doc/extend.texi (Built-in Functions for Memory Model Aware
33689 Atomic Operations): Document atomic fetch and nand.
33690
33691 2019-01-18 Martin Liska <mliska@suse.cz>
33692 Richard Biener <rguenther@suse.de>
33693
33694 PR middle-end/88587
33695 * cgraph.h (create_version_clone_with_body): Add new argument
33696 with attributes.
33697 * cgraphclones.c (cgraph_node::create_version_clone): Add
33698 DECL_ATTRIBUTES to a newly created decl. And call
33699 valid_attribute_p so that proper cl_target_optimization_node
33700 is set for the newly created declaration.
33701 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33702 for declaration.
33703 (expand_target_clones): Do not call valid_attribute_p, it must
33704 be already done.
33705 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33706 vector types.
33707
33708 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33709
33710 PR target/88734
33711 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33712 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33713 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33714
33715 2019-01-17 Martin Sebor <msebor@redhat.com>
33716
33717 PR middle-end/88273
33718 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33719 Handle anti-ranges the same as no range at all.
33720
33721 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33722
33723 * config/aarch64/aarch64.c (cgraph.h): New include.
33724 (intl.h): New include.
33725 (supported_simd_type): New function.
33726 (currently_supported_simd_type): Ditto.
33727 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33728 (aarch64_simd_clone_adjust): Ditto.
33729 (aarch64_simd_clone_usable): Ditto.
33730 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33731 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33732 (TARGET_SIMD_CLONE_USABLE): Ditto.
33733 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33734 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33735 call.
33736
33737 2019-01-17 Martin Sebor <msebor@redhat.com>
33738
33739 PR tree-optimization/88800
33740 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33741 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33742 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33743 redundant argument. Add new argument and issue diagnostics under
33744 its control. Detect out-of-bounds access even with warnings
33745 disabled.
33746 (check_bounds_or_overlap): Change return type. Add argument.
33747 (wrestrict_dom_walker::check_call): Adjust.
33748 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33749 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33750 check_bounds_or_overlap's return value.
33751 (handle_builtin_stxncpy): Same.
33752 (handle_builtin_strcat): Same.
33753
33754 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33755 Kwok Cheung Yeung <kcy@codesourcery.com>
33756 Julian Brown <julian@codesourcery.com>
33757 Tom de Vries <tom@codesourcery.com>
33758
33759 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33760
33761 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33762
33763 * doc/sourcebuild.texi: Document dg-require-effective-target
33764 llvm_binutils and offload_gcn.
33765
33766 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33767 Kwok Cheung Yeung <kcy@codesourcery.com>
33768 Julian Brown <julian@codesourcery.com>
33769 Tom de Vries <tom@codesourcery.com>
33770
33771 * doc/sourcebuild.texi: Document dg-required-effective-target
33772 exceptions.
33773
33774 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33775 Kwok Cheung Yeung <kcy@codesourcery.com>
33776 Julian Brown <julian@codesourcery.com>
33777 Tom de Vries <tom@codesourcery.com>
33778 Jan Hubicka <hubicka@ucw.cz>
33779 Martin Jambor <mjambor@suse.cz>
33780
33781 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33782 * configure.ac: Check for dlopen.
33783 * configure: Regenerate.
33784
33785 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33786 Kwok Cheung Yeung <kcy@codesourcery.com>
33787 Julian Brown <julian@codesourcery.com>
33788 Tom de Vries <tom@codesourcery.com>
33789 Jan Hubicka <hubicka@ucw.cz>
33790 Martin Jambor <mjambor@suse.cz>
33791
33792 * common/config/gcn/gcn-common.c: New file.
33793 * config/gcn/driver-gcn.c: New file.
33794 * config/gcn/gcn-builtins.def: New file.
33795 * config/gcn/gcn-hsa.h: New file.
33796 * config/gcn/gcn-modes.def: New file.
33797 * config/gcn/gcn-opts.h: New file.
33798 * config/gcn/gcn-passes.def: New file.
33799 * config/gcn/gcn-protos.h: New file.
33800 * config/gcn/gcn-run.c: New file.
33801 * config/gcn/gcn-tree.c: New file.
33802 * config/gcn/gcn.c: New file.
33803 * config/gcn/gcn.h: New file.
33804 * config/gcn/gcn.opt: New file.
33805 * config/gcn/t-gcn-hsa: New file.
33806
33807 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33808 Kwok Cheung Yeung <kcy@codesourcery.com>
33809 Julian Brown <julian@codesourcery.com>
33810 Tom de Vries <tom@codesourcery.com>
33811 Jan Hubicka <hubicka@ucw.cz>
33812 Martin Jambor <mjambor@suse.cz>
33813
33814 * config/gcn/constraints.md: New file.
33815 * config/gcn/gcn-valu.md: New file.
33816 * config/gcn/gcn.md: New file.
33817 * config/gcn/predicates.md: New file.
33818
33819 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33820
33821 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33822 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33823 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33824 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33825
33826 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33827
33828 PR target/88851
33829 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33830 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33831 it and document registers.
33832
33833 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33834
33835 * config/aarch64/aarch64.c (ares_tunings): Define.
33836 * config/aarch64/aarch64-cores.def (ares): Use the above.
33837
33838 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33839
33840 PR target/88794
33841 Revert:
33842 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33843
33844 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33845 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33846 (_mm512_maskz_fixupimm_round_pd): Ditto.
33847 (_mm512_fixupimm_round_ps): Ditto.
33848 (_mm512_maskz_fixupimm_round_ps): Ditto.
33849 (_mm_fixupimm_round_sd): Ditto.
33850 (_mm_maskz_fixupimm_round_sd): Ditto.
33851 (_mm_fixupimm_round_ss): Ditto.
33852 (_mm_maskz_fixupimm_round_ss): Ditto.
33853 (_mm512_fixupimm_pd): Ditto.
33854 (_mm512_maskz_fixupimm_pd): Ditto.
33855 (_mm512_fixupimm_ps): Ditto.
33856 (_mm512_maskz_fixupimm_ps): Ditto.
33857 (_mm_fixupimm_sd): Ditto.
33858 (_mm_maskz_fixupimm_sd): Ditto.
33859 (_mm_fixupimm_ss): Ditto.
33860 (_mm_maskz_fixupimm_ss): Ditto.
33861 (_mm512_mask_fixupimm_round_pd): Update builtin.
33862 (_mm512_mask_fixupimm_round_ps): Ditto.
33863 (_mm_mask_fixupimm_round_sd): Ditto.
33864 (_mm_mask_fixupimm_round_ss): Ditto.
33865 (_mm512_mask_fixupimm_pd): Ditto.
33866 (_mm512_mask_fixupimm_ps): Ditto.
33867 (_mm_mask_fixupimm_sd): Ditto.
33868 (_mm_mask_fixupimm_ss): Ditto.
33869 * config/i386/avx512vlintrin.h:
33870 (_mm256_fixupimm_pd): Update parameters and builtin.
33871 (_mm256_maskz_fixupimm_pd): Ditto.
33872 (_mm256_fixupimm_ps): Ditto.
33873 (_mm256_maskz_fixupimm_ps): Ditto.
33874 (_mm_fixupimm_pd): Ditto.
33875 (_mm_maskz_fixupimm_pd): Ditto.
33876 (_mm_fixupimm_ps): Ditto.
33877 (_mm_maskz_fixupimm_ps): Ditto.
33878 (_mm256_mask_fixupimm_pd): Update builtin.
33879 (_mm256_mask_fixupimm_ps): Ditto.
33880 (_mm_mask_fixupimm_pd): Ditto.
33881 (_mm_mask_fixupimm_ps): Ditto.
33882 * config/i386/i386-builtin-types.def: Add new types and remove
33883 useless ones.
33884 * config/i386/i386-builtin.def: Update builtin definitions.
33885 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33886 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33887 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33888 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33889 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33890 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33891 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33892 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33893 * config/i386/subst.md:
33894 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33895 (round_saeonly_sd_mask_op4): Ditto.
33896 (round_saeonly_expand_operand5): Ditto.
33897 (round_saeonly_expand): Update.
33898
33899 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33900
33901 PR target/88794
33902 Revert:
33903 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33904
33905 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33906 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33907 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33908 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33909 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33910 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33911 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33912
33913 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33914
33915 PR target/88794
33916 Revert:
33917 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33918
33919 PR target/88489
33920 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33921 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33922 instead of UNSPEC_FIXUPIMM.
33923
33924 2019-01-17 Richard Biener <rguenther@suse.de>
33925
33926 PR lto/86736
33927 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33928 and friends for the LTO part of debug info.
33929
33930 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33931
33932 PR tree-optimization/86214
33933 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33934 if x == y.
33935
33936 PR rtl-optimization/88870
33937 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33938 throw if we can't alter the cfg or delete dead exceptions.
33939 (mark_insn): Don't call find_call_stack_args for such calls.
33940
33941 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33942
33943 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33944 prototypes for vec_st.
33945 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33946 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33947 mainly on signed/unsigned long long and double.
33948
33949 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33950
33951 PR target/88861
33952 * combine.c (delete_noop_moves): Convert to "bool" return,
33953 returning true if any edges are eliminated.
33954 (combine_instructions): Also return true if delete_noop_moves
33955 returns true.
33956
33957 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33958
33959 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33960 correct max nunits for endian swap.
33961 (aarch64_expand_fcmla_builtin): Correct subreg code.
33962 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33963 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33964 lane endianness.
33965
33966 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33967
33968 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33969 Handle split indirect COMPLEX_TYPE arguments.
33970
33971 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33972
33973 PR target/86891
33974 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33975 bit is set by add and compare.
33976 (CC_ADC): New CC_MODE.
33977 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33978 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33979 comparison. Add detection for CC_ADCmode.
33980 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33981 CC_ADCmode.
33982 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33983 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33984 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33985 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33986 to eliminate the need for zero-extending the operands.
33987 (add<mode>3_compareC_imm): Delete. Merge into ...
33988 (add<mode>3_compareC): ... this. Restructure the comparison to
33989 eliminate the need for zero-extending the operands.
33990 (add<mode>3_carryin): Use LTU for the overflow detection.
33991 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33992 Reexpress comparison for overflow.
33993 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33994 (add<mode>3_carryinC): Likewise.
33995 (add<mode>3_carryinV): Use LTU for carry between partials.
33996 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33997 handling of CC_Cmode and add CC_ADCmode.
33998 (aarch64_borrow_operation): Likewise.
33999
34000 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34001
34002 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34003 Remove patternmode.
34004 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34005 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34006 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34007 Remove endianness conversion.
34008
34009 2019-01-16 Martin Liska <mliska@suse.cz>
34010
34011 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34012 for GCC driver.
34013 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34014 a new argument.
34015 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34016 (path_prefix_reset): Move up in the source file.
34017 (find_fortran_preinclude_file): Make complex search for the
34018 fortran header files.
34019
34020 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34021
34022 * godump.c (go_output_typedef): When outputting a typedef, refer
34023 to the underlying type by its name and not its structure.
34024
34025 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34026
34027 PR c++/88795
34028 * tree.c (build_function_type): Assert that arg_types is not
34029 error_mark_node.
34030
34031 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34032
34033 PR inline-asm/52813
34034 * doc/extend.texi: Document that listing the stack pointer in the
34035 clobber list of an asm is a deprecated feature.
34036 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34037 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34038 warning instead of an error for clobbers of the stack pointer.
34039 Add a note explaining why.
34040
34041 2019-01-15 Richard Biener <rguenther@suse.de>
34042
34043 PR debug/88046
34044 * dwarf2out.c (gen_member_die): Do not generate inheritance
34045 DIEs late.
34046
34047 2019-01-15 Richard Biener <rguenther@suse.de>
34048
34049 PR tree-optimization/88855
34050 * tree-if-conv.c (combine_blocks): Collect
34051 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34052
34053 2019-01-15 Tom de Vries <tdevries@suse.de>
34054
34055 PR target/80547
34056 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34057 lhs == NULL_TREE for gang-level reduction.
34058
34059 2019-01-15 Richard Biener <rguenther@suse.de>
34060 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34061
34062 PR ipa/88788
34063 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34064 return true if SSA_NAME is already marked in visited bitmap.
34065 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34066
34067 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34068
34069 PR tree-optimization/88775
34070 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34071 equal == 0 equality pointer comparisons some more if compared in
34072 integral types and either one points to an automatic var and the
34073 other to a global, or we can prove at least one points to the middle
34074 or both point to start or both point to end.
34075
34076 2019-01-14 Andi Kleen <ak@linux.intel.com>
34077
34078 * Makefile.in: Lower autofdo sampling rate by 10x.
34079 * Makefile.tpl: Dito.
34080
34081 2019-01-14 Tom Honermann <tom@honermann.net>
34082
34083 * defaults.h: Define CHAR8_TYPE.
34084
34085 2019-01-14 Martin Sebor <msebor@redhat.com>
34086
34087 PR target/88638
34088 * doc/extend.texi (Darwin Format Checks): Clarify.
34089
34090 2019-01-14 Richard Biener <rguenther@suse.de>
34091
34092 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34093 whether we are in (simplify ...) or (match ...) context.
34094
34095 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34096
34097 PR rtl-optimization/88796
34098 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34099 * cfgexpand.c (stack_protect_prologue): Initialize
34100 crtl->stack_protect_guard_decl.
34101 * function.c (stack_protect_epilogue): Use it instead of calling
34102 targetm.stack_protect_guard again.
34103 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34104 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34105 crtl->stack_protect_guard_decl.
34106 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34107 on the returned MEM_EXPR.
34108
34109 2019-01-12 Tom de Vries <tdevries@suse.de>
34110
34111 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34112 vector length using -fopenacc-dim.
34113
34114 2019-01-12 Tom de Vries <tdevries@suse.de>
34115
34116 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34117 lengths into account.
34118
34119 2019-01-12 Svante Signell <svante.signell@gmail.com>
34120
34121 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34122 (TARGET_CAN_SPLIT_STACK): Define.
34123 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34124
34125 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34126
34127 * params.def (inline-unit-growth): Set to 40.
34128
34129 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34130
34131 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34132
34133 2019-01-12 Tom de Vries <tdevries@suse.de>
34134
34135 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34136 region calling vector-partitionable routine, set default_vector_length
34137 to WARP_SIZE.
34138
34139 2019-01-12 Tom de Vries <tdevries@suse.de>
34140
34141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34142 variable default_vector_length.
34143
34144 2019-01-12 Tom de Vries <tdevries@suse.de>
34145
34146 PR middle-end/88703
34147 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34148 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34149 dimensions limits.
34150
34151 2019-01-12 Tom de Vries <tdevries@suse.de>
34152
34153 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34154 (nvptx_goacc_validate_dims): Add used parameter.
34155 * doc/tm.texi: Regenerate.
34156 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34157 argument to call to targetm.goacc.validate_dims.
34158 (default_goacc_validate_dims): Add used
34159 parameter.
34160 * target.def (validate_dims): Add used parameter in DEFHOOK.
34161 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34162
34163 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34164
34165 PR middle-end/85956
34166 PR lto/88733
34167 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34168 field.
34169 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34170 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34171 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34172 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34173
34174 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34175
34176 PR rtl-optimization/87305
34177 * lra-assigns.c
34178 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34179 for little endian pseudos used as paradoxical subreg.
34180
34181 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34182
34183 PR tree-optimization/88693
34184 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34185 for STRING_CSTs that don't contain any NUL characters in the first
34186 TREE_STRING_LENGTH bytes.
34187
34188 2019-01-11 Alan Modra <amodra@gmail.com>
34189
34190 PR 88777
34191 PR 88614
34192 * genattrtab.c (min_fn): Don't translate values.
34193 (min_attr_value): Return INT_MAX when the value can't be calculated.
34194 Return minimum among any values that can be calculated.
34195 (max_attr_value): Adjust.
34196
34197 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34198
34199 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34200
34201 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34202
34203 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34204 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34205 (aarch64_return_call_with_max_clobbers): New function.
34206 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34207 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34208 argument.
34209 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34210 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34211 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34212 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34213 * cselib.c (cselib_process_insn): Add argument to
34214 targetm.hard_regno_call_part_clobbered call.
34215 * ira-conflicts.c (ira_build_conflicts): Ditto.
34216 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34217 * lra-constraints.c (inherit_reload_reg): Ditto.
34218 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34219 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34220 argument. Call targetm.return_call_with_max_clobbers.
34221 Add argument to targetm.hard_regno_call_part_clobbered call.
34222 (calls_have_same_clobbers_p): New function.
34223 (process_bb_lives): Add call_insn and last_call_insn variables.
34224 Pass call_insn to check_pseudos_live_through_calls.
34225 Modify if stmt to check targetm.return_call_with_max_clobbers.
34226 Update setting of flush variable.
34227 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34228 to false.
34229 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34230 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34231 targetm.hard_regno_call_part_clobbered call.
34232 * reginfo.c (choose_hard_reg_mode): Ditto.
34233 * regrename.c (check_new_reg_p): Ditto.
34234 * reload.c (find_equiv_reg): Ditto.
34235 * reload1.c (emit_reload_insns): Ditto.
34236 * sched-deps.c (deps_analyze_insn): Ditto.
34237 * sel-sched.c (init_regs_for_mode): Ditto.
34238 (mark_unavailable_hard_regs): Ditto.
34239 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34240 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34241 (return_call_with_max_clobbers): New target function.
34242 * doc/tm.texi: Regenerate.
34243 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34244 * hooks.c (hook_bool_uint_mode_false): Change to
34245 hook_bool_insn_uint_mode_false.
34246 * hooks.h (hook_bool_uint_mode_false): Ditto.
34247
34248 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34249
34250 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34251 (aarch64_remove_extra_call_preserved_regs): New function.
34252 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34253 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34254 * doc/tm.texi: Regenerate.
34255 * final.c (get_call_reg_set_usage): Call new hook.
34256 * target.def (remove_extra_call_preserved_regs): New hook.
34257 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34258 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34259
34260 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34261
34262 PR bootstrap/88714
34263 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34264 inside of pass_combine_1 dump rather than pass_profile_1.
34265
34266 2019-01-11 Tom de Vries <tdevries@suse.de>
34267
34268 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34269 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34270 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34271 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34272 num_workers 16.
34273
34274 2019-01-11 Tom de Vries <tdevries@suse.de>
34275
34276 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34277
34278 2019-01-11 Jan Beulich <jbeulich@suse.com>
34279
34280 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34281 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34282 sse2_cvtsi2sd): Add {l}.
34283 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34284 syntax.
34285
34286 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34287
34288 PR target/88785
34289 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34290 define_expand.
34291 (*float<floatunssuffix>v2div2sf2): New define_insn.
34292 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34293 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34294 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34295 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34296 match_operands with "const0_operand" "C".
34297
34298 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34299
34300 * config/aarch64/aarch64-builtins.c
34301 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34302 (aarch64_init_simd_builtins): ...Here
34303
34304 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34305
34306 PR rtl-optimization/87305
34307 * lra-assigns.c
34308 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34309 allocation for big endian pseudos used as paradoxical subregs and
34310 spill them if it is wrong.
34311 * lra-constraints.c (lra_constraints): Add a comment.
34312
34313 2019-01-10 Richard Biener <rguenther@suse.de>
34314
34315 PR tree-optimization/88792
34316 * tree-ssa-pre.c (get_representative_for): Do not return a
34317 value-number here.
34318
34319 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34320
34321 PR middle-end/84877
34322 PR bootstrap/88450
34323 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34324 (assign_parm_setup_block): Do the argument slot realignment here
34325 instead.
34326
34327 2019-01-10 Stefan Agner <stefan@agner.ch>
34328
34329 PR target/88648
34330 * config/arm/arm.c (arm_option_override_internal): Force
34331 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34332
34333 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34334
34335 PR c/88568
34336 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34337 DECL_EXTERNAL.
34338
34339 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34340
34341 * config/arm/arm-builtins.c
34342 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34343 (MAC_LANE_PAIR_QUALIFIERS): New.
34344 (arm_expand_builtin_args): Use it.
34345 (arm_expand_builtin_1): Likewise.
34346 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34347 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34348 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34349 * config/arm/arm_neon.h:
34350 (vcadd_rot90_f16): New.
34351 (vcaddq_rot90_f16): New.
34352 (vcadd_rot270_f16): New.
34353 (vcaddq_rot270_f16): New.
34354 (vcmla_f16): New.
34355 (vcmlaq_f16): New.
34356 (vcmla_lane_f16): New.
34357 (vcmla_laneq_f16): New.
34358 (vcmlaq_lane_f16): New.
34359 (vcmlaq_laneq_f16): New.
34360 (vcmla_rot90_f16): New.
34361 (vcmlaq_rot90_f16): New.
34362 (vcmla_rot90_lane_f16): New.
34363 (vcmla_rot90_laneq_f16): New.
34364 (vcmlaq_rot90_lane_f16): New.
34365 (vcmlaq_rot90_laneq_f16): New.
34366 (vcmla_rot180_f16): New.
34367 (vcmlaq_rot180_f16): New.
34368 (vcmla_rot180_lane_f16): New.
34369 (vcmla_rot180_laneq_f16): New.
34370 (vcmlaq_rot180_lane_f16): New.
34371 (vcmlaq_rot180_laneq_f16): New.
34372 (vcmla_rot270_f16): New.
34373 (vcmlaq_rot270_f16): New.
34374 (vcmla_rot270_lane_f16): New.
34375 (vcmla_rot270_laneq_f16): New.
34376 (vcmlaq_rot270_lane_f16): New.
34377 (vcmlaq_rot270_laneq_f16): New.
34378 (vcadd_rot90_f32): New.
34379 (vcaddq_rot90_f32): New.
34380 (vcadd_rot270_f32): New.
34381 (vcaddq_rot270_f32): New.
34382 (vcmla_f32): New.
34383 (vcmlaq_f32): New.
34384 (vcmla_lane_f32): New.
34385 (vcmla_laneq_f32): New.
34386 (vcmlaq_lane_f32): New.
34387 (vcmlaq_laneq_f32): New.
34388 (vcmla_rot90_f32): New.
34389 (vcmlaq_rot90_f32): New.
34390 (vcmla_rot90_lane_f32): New.
34391 (vcmla_rot90_laneq_f32): New.
34392 (vcmlaq_rot90_lane_f32): New.
34393 (vcmlaq_rot90_laneq_f32): New.
34394 (vcmla_rot180_f32): New.
34395 (vcmlaq_rot180_f32): New.
34396 (vcmla_rot180_lane_f32): New.
34397 (vcmla_rot180_laneq_f32): New.
34398 (vcmlaq_rot180_lane_f32): New.
34399 (vcmlaq_rot180_laneq_f32): New.
34400 (vcmla_rot270_f32): New.
34401 (vcmlaq_rot270_f32): New.
34402 (vcmla_rot270_lane_f32): New.
34403 (vcmla_rot270_laneq_f32): New.
34404 (vcmlaq_rot270_lane_f32): New.
34405 (vcmlaq_rot270_laneq_f32): New.
34406 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34407 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34408 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34409 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34410 vcmlaq_lane270): New.
34411 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34412 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34413 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34414 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34415 (arm_option_reconfigure_globals): Use them.
34416 * config/arm/iterators.md (VDF, VQ_HSF): New.
34417 (VCADD, VCMLA): New.
34418 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34419 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34420 New.
34421 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34422 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34423
34424 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34425
34426 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34427 Add qualifier_lane_pair_index.
34428 (emit-rtl.h): Include.
34429 (TYPES_QUADOP_LANE_PAIR): New.
34430 (aarch64_simd_expand_args): Use it.
34431 (aarch64_simd_expand_builtin): Likewise.
34432 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34433 New.
34434 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34435 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34436 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34437 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34438 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34439 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34440 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34441 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34442 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34443 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34444 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34445 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34446 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34447 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34448 Add __ARM_FEATURE_COMPLEX.
34449 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34450 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34451 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34452 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34453 fcmlaq_lane270): New.
34454 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34455 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34456 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34457 * config/aarch64/arm_neon.h:
34458 (vcadd_rot90_f16): New.
34459 (vcaddq_rot90_f16): New.
34460 (vcadd_rot270_f16): New.
34461 (vcaddq_rot270_f16): New.
34462 (vcmla_f16): New.
34463 (vcmlaq_f16): New.
34464 (vcmla_lane_f16): New.
34465 (vcmla_laneq_f16): New.
34466 (vcmlaq_lane_f16): New.
34467 (vcmlaq_rot90_lane_f16): New.
34468 (vcmla_rot90_laneq_f16): New.
34469 (vcmla_rot90_lane_f16): New.
34470 (vcmlaq_rot90_f16): New.
34471 (vcmla_rot90_f16): New.
34472 (vcmlaq_laneq_f16): New.
34473 (vcmla_rot180_laneq_f16): New.
34474 (vcmla_rot180_lane_f16): New.
34475 (vcmlaq_rot180_f16): New.
34476 (vcmla_rot180_f16): New.
34477 (vcmlaq_rot90_laneq_f16): New.
34478 (vcmlaq_rot270_laneq_f16): New.
34479 (vcmlaq_rot270_lane_f16): New.
34480 (vcmla_rot270_laneq_f16): New.
34481 (vcmlaq_rot270_f16): New.
34482 (vcmla_rot270_f16): New.
34483 (vcmlaq_rot180_laneq_f16): New.
34484 (vcmlaq_rot180_lane_f16): New.
34485 (vcmla_rot270_lane_f16): New.
34486 (vcadd_rot90_f32): New.
34487 (vcaddq_rot90_f32): New.
34488 (vcaddq_rot90_f64): New.
34489 (vcadd_rot270_f32): New.
34490 (vcaddq_rot270_f32): New.
34491 (vcaddq_rot270_f64): New.
34492 (vcmla_f32): New.
34493 (vcmlaq_f32): New.
34494 (vcmlaq_f64): New.
34495 (vcmla_lane_f32): New.
34496 (vcmla_laneq_f32): New.
34497 (vcmlaq_lane_f32): New.
34498 (vcmlaq_laneq_f32): New.
34499 (vcmla_rot90_f32): New.
34500 (vcmlaq_rot90_f32): New.
34501 (vcmlaq_rot90_f64): New.
34502 (vcmla_rot90_lane_f32): New.
34503 (vcmla_rot90_laneq_f32): New.
34504 (vcmlaq_rot90_lane_f32): New.
34505 (vcmlaq_rot90_laneq_f32): New.
34506 (vcmla_rot180_f32): New.
34507 (vcmlaq_rot180_f32): New.
34508 (vcmlaq_rot180_f64): New.
34509 (vcmla_rot180_lane_f32): New.
34510 (vcmla_rot180_laneq_f32): New.
34511 (vcmlaq_rot180_lane_f32): New.
34512 (vcmlaq_rot180_laneq_f32): New.
34513 (vcmla_rot270_f32): New.
34514 (vcmlaq_rot270_f32): New.
34515 (vcmlaq_rot270_f64): New.
34516 (vcmla_rot270_lane_f32): New.
34517 (vcmla_rot270_laneq_f32): New.
34518 (vcmlaq_rot270_lane_f32): New.
34519 (vcmlaq_rot270_laneq_f32): New.
34520 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34521 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34522 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34523 (FCADD, FCMLA): New.
34524 (rot): New.
34525 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34526
34527 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34528
34529 PR other/16615
34530
34531 * config/pa/pa.c: Change "can not" to "cannot".
34532 * gimple-ssa-evrp-analyze.c: Likewise.
34533 * ipa-icf.c: Likewise.
34534 * ipa-polymorphic-call.c: Likewise.
34535 * ipa-pure-const.c: Likewise.
34536 * lra-constraints.c: Likewise.
34537 * lra-remat.c: Likewise.
34538 * reload1.c: Likewise.
34539 * reorg.c: Likewise.
34540 * tree-ssa-uninit.c: Likewise.
34541
34542 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34543
34544 PR other/16615
34545
34546 * Makefile.in: Mechanically replace "can not" with "cannot".
34547 * alias.c: Likewise.
34548 * builtins.c: Likewise.
34549 * calls.c: Likewise.
34550 * cgraph.c: Likewise.
34551 * cgraph.h: Likewise.
34552 * cgraphclones.c: Likewise.
34553 * cgraphunit.c: Likewise.
34554 * combine-stack-adj.c: Likewise.
34555 * combine.c: Likewise.
34556 * common/config/i386/i386-common.c: Likewise.
34557 * config/aarch64/aarch64.c: Likewise.
34558 * config/alpha/sync.md: Likewise.
34559 * config/arc/arc.c: Likewise.
34560 * config/arc/predicates.md: Likewise.
34561 * config/arm/arm-c.c: Likewise.
34562 * config/arm/arm.c: Likewise.
34563 * config/arm/arm.h: Likewise.
34564 * config/arm/arm.md: Likewise.
34565 * config/arm/cortex-r4f.md: Likewise.
34566 * config/csky/csky.c: Likewise.
34567 * config/csky/csky.h: Likewise.
34568 * config/darwin-f.c: Likewise.
34569 * config/epiphany/epiphany.md: Likewise.
34570 * config/i386/i386.c: Likewise.
34571 * config/i386/sol2.h: Likewise.
34572 * config/m68k/m68k.c: Likewise.
34573 * config/mcore/mcore.h: Likewise.
34574 * config/microblaze/microblaze.md: Likewise.
34575 * config/mips/20kc.md: Likewise.
34576 * config/mips/sb1.md: Likewise.
34577 * config/nds32/nds32.c: Likewise.
34578 * config/nds32/predicates.md: Likewise.
34579 * config/pa/pa.c: Likewise.
34580 * config/rs6000/e300c2c3.md: Likewise.
34581 * config/rs6000/rs6000.c: Likewise.
34582 * config/s390/s390.h: Likewise.
34583 * config/sh/sh.c: Likewise.
34584 * config/sh/sh.md: Likewise.
34585 * config/spu/vmx2spu.h: Likewise.
34586 * cprop.c: Likewise.
34587 * dbxout.c: Likewise.
34588 * df-scan.c: Likewise.
34589 * doc/cfg.texi: Likewise.
34590 * doc/extend.texi: Likewise.
34591 * doc/fragments.texi: Likewise.
34592 * doc/gty.texi: Likewise.
34593 * doc/invoke.texi: Likewise.
34594 * doc/lto.texi: Likewise.
34595 * doc/md.texi: Likewise.
34596 * doc/objc.texi: Likewise.
34597 * doc/rtl.texi: Likewise.
34598 * doc/tm.texi: Likewise.
34599 * dse.c: Likewise.
34600 * emit-rtl.c: Likewise.
34601 * emit-rtl.h: Likewise.
34602 * except.c: Likewise.
34603 * expmed.c: Likewise.
34604 * expr.c: Likewise.
34605 * fold-const.c: Likewise.
34606 * genautomata.c: Likewise.
34607 * gimple-fold.c: Likewise.
34608 * hard-reg-set.h: Likewise.
34609 * ifcvt.c: Likewise.
34610 * ipa-comdats.c: Likewise.
34611 * ipa-cp.c: Likewise.
34612 * ipa-devirt.c: Likewise.
34613 * ipa-fnsummary.c: Likewise.
34614 * ipa-icf.c: Likewise.
34615 * ipa-inline-transform.c: Likewise.
34616 * ipa-inline.c: Likewise.
34617 * ipa-polymorphic-call.c: Likewise.
34618 * ipa-profile.c: Likewise.
34619 * ipa-prop.c: Likewise.
34620 * ipa-pure-const.c: Likewise.
34621 * ipa-reference.c: Likewise.
34622 * ipa-split.c: Likewise.
34623 * ipa-visibility.c: Likewise.
34624 * ipa.c: Likewise.
34625 * ira-build.c: Likewise.
34626 * ira-color.c: Likewise.
34627 * ira-conflicts.c: Likewise.
34628 * ira-costs.c: Likewise.
34629 * ira-int.h: Likewise.
34630 * ira-lives.c: Likewise.
34631 * ira.c: Likewise.
34632 * ira.h: Likewise.
34633 * loop-invariant.c: Likewise.
34634 * loop-unroll.c: Likewise.
34635 * lower-subreg.c: Likewise.
34636 * lra-assigns.c: Likewise.
34637 * lra-constraints.c: Likewise.
34638 * lra-eliminations.c: Likewise.
34639 * lra-lives.c: Likewise.
34640 * lra-remat.c: Likewise.
34641 * lra-spills.c: Likewise.
34642 * lra.c: Likewise.
34643 * lto-cgraph.c: Likewise.
34644 * lto-streamer-out.c: Likewise.
34645 * postreload-gcse.c: Likewise.
34646 * predict.c: Likewise.
34647 * profile-count.h: Likewise.
34648 * profile.c: Likewise.
34649 * recog.c: Likewise.
34650 * ree.c: Likewise.
34651 * reload.c: Likewise.
34652 * reload1.c: Likewise.
34653 * reorg.c: Likewise.
34654 * resource.c: Likewise.
34655 * rtl.def: Likewise.
34656 * rtl.h: Likewise.
34657 * rtlanal.c: Likewise.
34658 * sched-deps.c: Likewise.
34659 * sched-ebb.c: Likewise.
34660 * sched-rgn.c: Likewise.
34661 * sel-sched-ir.c: Likewise.
34662 * sel-sched.c: Likewise.
34663 * shrink-wrap.c: Likewise.
34664 * simplify-rtx.c: Likewise.
34665 * symtab.c: Likewise.
34666 * target.def: Likewise.
34667 * toplev.c: Likewise.
34668 * tree-call-cdce.c: Likewise.
34669 * tree-cfg.c: Likewise.
34670 * tree-complex.c: Likewise.
34671 * tree-core.h: Likewise.
34672 * tree-eh.c: Likewise.
34673 * tree-inline.c: Likewise.
34674 * tree-loop-distribution.c: Likewise.
34675 * tree-nrv.c: Likewise.
34676 * tree-profile.c: Likewise.
34677 * tree-sra.c: Likewise.
34678 * tree-ssa-alias.c: Likewise.
34679 * tree-ssa-dce.c: Likewise.
34680 * tree-ssa-dom.c: Likewise.
34681 * tree-ssa-forwprop.c: Likewise.
34682 * tree-ssa-loop-im.c: Likewise.
34683 * tree-ssa-loop-ivcanon.c: Likewise.
34684 * tree-ssa-loop-ivopts.c: Likewise.
34685 * tree-ssa-loop-niter.c: Likewise.
34686 * tree-ssa-phionlycprop.c: Likewise.
34687 * tree-ssa-phiopt.c: Likewise.
34688 * tree-ssa-propagate.c: Likewise.
34689 * tree-ssa-threadedge.c: Likewise.
34690 * tree-ssa-threadupdate.c: Likewise.
34691 * tree-ssa-uninit.c: Likewise.
34692 * tree-ssanames.c: Likewise.
34693 * tree-streamer-out.c: Likewise.
34694 * tree.c: Likewise.
34695 * tree.h: Likewise.
34696 * vr-values.c: Likewise.
34697
34698 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34699
34700 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34701 (ix86_split_xorsign): Ditto.
34702 * config/i386/i386.c (ix86_expand_xorsign): New function.
34703 (ix86_split_xorsign): Ditto.
34704 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34705 (xorsign<mode>3): New expander.
34706 (xorsign<mode>3_1): New insn_and_split pattern.
34707 * config/i386/sse.md (xorsign<mode>3): New expander.
34708
34709 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34710
34711 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34712 (*tablejump_sp64): Likewise.
34713 (*tablejump<P:mode>): ...this.
34714 (*call_address_sp32): Merge into...
34715 (*call_address_sp64): Likewise.
34716 (*call_address<P:mode>): ...this.
34717 (*call_symbolic_sp32): Merge into...
34718 (*call_symbolic_sp64): Likewise.
34719 (*call_symbolic<P:mode>): ...this.
34720 (call_value): Remove constraint and add predicate.
34721 (*call_value_address_sp32): Merge into...
34722 (*call_value_address_sp64): Likewise.
34723 (*call_value_address<P:mode>): ...this.
34724 (*call_value_symbolic_sp32): Merge into...
34725 (*call_value_symbolic_sp64): Likewise.
34726 (*call_value_symbolic<P:mode>): ...this.
34727 (*sibcall_symbolic_sp32): Merge into...
34728 (*sibcall_symbolic_sp64): Likewise.
34729 (*sibcall_symbolic<P:mode>): ...this.
34730 (sibcall_value): Remove constraint and add predicate.
34731 (*sibcall_value_symbolic_sp32): Merge into...
34732 (*sibcall_value_symbolic_sp64): Likewise.
34733 (*sibcall_value_symbolic<P:mode>): ...this.
34734 (window_save): Minor tweak.
34735 (*branch_sp32): Merge into...
34736 (*branch_sp64): Likewise.
34737 (*branch<P:mode>): ...this.
34738
34739 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34740 James Clarke <jrtc27@jrtc27.com>
34741
34742 PR target/84010
34743 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34744 consistently in TLS address generation and adjust code to the renaming
34745 of patterns. Mark calls to __tls_get_addr as const.
34746 * config/sparc/sparc.md (tgd_hi22): Turn into...
34747 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34748 (tgd_lo10): Turn into...
34749 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34750 (tgd_add32): Merge into...
34751 (tgd_add64): Likewise.
34752 (tgd_add<P:mode>): ...this and use Pmode throughout.
34753 (tldm_hi22): Turn into...
34754 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34755 (tldm_lo10): Turn into...
34756 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34757 (tldm_add32): Merge into...
34758 (tldm_add64): Likewise.
34759 (tldm_add<P:mode>): ...this and use Pmode throughout.
34760 (tldm_call32): Merge into...
34761 (tldm_call64): Likewise.
34762 (tldm_call<P:mode>): ...this and use Pmode throughout.
34763 (tldo_hix22): Turn into...
34764 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34765 (tldo_lox10): Turn into...
34766 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34767 (tldo_add32): Merge into...
34768 (tldo_add64): Likewise.
34769 (tldo_add<P:mode>): ...this and use Pmode throughout.
34770 (tie_hi22): Turn into...
34771 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34772 (tie_lo10): Turn into...
34773 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34774 (tie_ld64): Use DImode throughout.
34775 (tie_add32): Merge into...
34776 (tie_add64): Likewise.
34777 (tie_add<P:mode>): ...this and use Pmode throughout.
34778 (tle_hix22_sp32): Merge into...
34779 (tle_hix22_sp64): Likewise.
34780 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34781 (tle_lox22_sp32): Merge into...
34782 (tle_lox22_sp64): Likewise.
34783 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34784 (*tldo_ldub_sp32): Merge into...
34785 (*tldo_ldub_sp64): Likewise.
34786 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34787 (*tldo_ldub1_sp32): Merge into...
34788 (*tldo_ldub1_sp64): Likewise.
34789 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34790 (*tldo_ldub2_sp32): Merge into...
34791 (*tldo_ldub2_sp64): Likewise.
34792 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34793 (*tldo_ldsb1_sp32): Merge into...
34794 (*tldo_ldsb1_sp64): Likewise.
34795 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34796 (*tldo_ldsb2_sp32): Merge into...
34797 (*tldo_ldsb2_sp64): Likewise.
34798 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34799 (*tldo_ldub3_sp64): Use DImode throughout.
34800 (*tldo_ldsb3_sp64): Likewise.
34801 (*tldo_lduh_sp32): Merge into...
34802 (*tldo_lduh_sp64): Likewise.
34803 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34804 (*tldo_lduh1_sp32): Merge into...
34805 (*tldo_lduh1_sp64): Likewise.
34806 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34807 (*tldo_ldsh1_sp32): Merge into...
34808 (*tldo_ldsh1_sp64): Likewise.
34809 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34810 (*tldo_lduh2_sp64): Use DImode throughout.
34811 (*tldo_ldsh2_sp64): Likewise.
34812 (*tldo_lduw_sp32): Merge into...
34813 (*tldo_lduw_sp64): Likewise.
34814 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34815 (*tldo_lduw1_sp64): Use DImode throughout.
34816 (*tldo_ldsw1_sp64): Likewise.
34817 (*tldo_ldx_sp64): Likewise.
34818 (*tldo_stb_sp32): Merge into...
34819 (*tldo_stb_sp64): Likewise.
34820 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34821 (*tldo_sth_sp32): Merge into...
34822 (*tldo_sth_sp64): Likewise.
34823 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34824 (*tldo_stw_sp32): Merge into...
34825 (*tldo_stw_sp64): Likewise.
34826 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34827 (*tldo_stx_sp64): Use DImode throughout.
34828
34829 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34830
34831 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34832 check configure option to set BTI and Return Address Signing.
34833 * configure.ac: Add --enable-standard-branch-protection and
34834 --disable-standard-branch-protection.
34835 * configure: Regenerated.
34836 * doc/install.texi: Document the same.
34837
34838 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34839 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34840
34841 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34842 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34843 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34844 if bti is enabled.
34845 * config/aarch64/aarch64-bti-insert.c: New file.
34846 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34847 pass.
34848 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34849 new bti pass.
34850 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34851 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34852 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34853 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34854
34855 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34856
34857 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34858 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34859 Disable bti for -mbranch-protection=none.
34860 (aarch64_handle_standard_branch_protection): Enable bti for
34861 -mbranch-protection=standard.
34862 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34863 -mbranch-protection.
34864 (aarch64_bti_enabled): Check if bti is enabled.
34865 * config/aarch64/aarch64.opt: Declare target variable.
34866 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34867
34868 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34869
34870 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34871 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34872 (aarch64_expand_epilogue): Likewise.
34873 (aarch64_output_mi_thunk): Likewise.
34874 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34875 TAILCALL_ADDR_REGS to x16 and x17.
34876 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34877
34878 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34879
34880 * config/aarch64/aarch64-option-extensions.def: Define
34881 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34882 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34883 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34884 (AARCH64_FL_PREDRES): New.
34885 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34886 AARCH64_FL_PREDRES by default.
34887 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34888
34889 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34890
34891 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34892 ARMv8.5-A.
34893 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34894 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34895 * doc/invoke.texi: Document ARMv8.5-A.
34896
34897 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34898
34899 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34900 (xorsign<mode>3): Likewise.
34901
34902 2019-01-09 Jelinek <jakub@redhat.com>
34903
34904 PR middle-end/88758
34905 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34906 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34907
34908 PR rtl-optimization/88331
34909 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34910 not currently_expanding_to_rtl.
34911
34912 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34913
34914 * doc/invoke.texi (-Os): Remove trailing spaces.
34915 (-finline-functions): Remove reference to -O2.
34916
34917 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34918
34919 PR rtl-optimization/79593
34920 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34921
34922 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34923 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34924
34925 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34926
34927 PR bootstrap/88721
34928 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34929 to -1 on entry.
34930
34931 PR debug/88723
34932 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34933 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34934
34935 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34936
34937 PR target/88717
34938 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34939 ix86_avx_u128_mode_entry.
34940
34941 2019-01-08 Martin Liska <mliska@suse.cz>
34942
34943 PR tree-optimization/88753
34944 * tree-switch-conversion.c (switch_conversion::build_one_array):
34945 Come up with local variable constructor. Convert first to
34946 type of constructor values.
34947
34948 2019-01-08 Richard Biener <rguenther@suse.de>
34949
34950 PR tree-optimization/86554
34951 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34952 rpo_avail): Move earlier.
34953 (visit_nary_op): When value-numbering to expressions
34954 with different overflow behavior make sure there's an
34955 available expression on the path.
34956
34957 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34958
34959 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34960 aarch64_parse_branch_protection,
34961 struct aarch64_branch_protect_type,
34962 aarch64_handle_no_branch_protection,
34963 aarch64_handle_standard_branch_protection,
34964 aarch64_validate_mbranch_protection,
34965 aarch64_handle_pac_ret_protection,
34966 aarch64_handle_attr_branch_protection,
34967 accepted_branch_protection_string,
34968 aarch64_pac_ret_subtypes,
34969 aarch64_branch_protect_types,
34970 aarch64_handle_pac_ret_leaf): Define.
34971 (aarch64_override_options_after_change_1, aarch64_override_options):
34972 Add check for accepted_branch_protection_string.
34973 (aarch64_option_save): Save accepted_branch_protection_string.
34974 (aarch64_option_restore): Save accepted_branch_protection_string.
34975 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34976 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34977 msign-return-address.
34978 * doc/invoke.texi: Add mbranch-protection.
34979
34980 2019-01-08 Alan Modra <amodra@gmail.com>
34981
34982 PR target/88614
34983 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34984 Delete "unknownp" parameter. Adjust callers. Handle
34985 CONST_INT, PLUS, MINUS, and MULT.
34986 (attr_value_aligned): Renamed from or_attr_value.
34987 (min_attr_value): Return INT_MIN for unhandled rtl case..
34988 (min_fn): ..and translate to INT_MAX here.
34989 (write_length_unit_log): Modify to cope without "unknown".
34990 (write_attr_value): Handle IF_THEN_ELSE.
34991
34992 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34993
34994 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34995 optimization for masked stores.
34996
34997 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34998
34999 PR middle-end/88567
35000 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35001 output vector directly to duplicate_and_interleave instead of
35002 going through a temporary. Postpone insertion of ctor_seq to
35003 the end of the loop.
35004
35005 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35006
35007 PR target/86891
35008 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35009 unsigned_p. Handle signed and unsigned overflow correction as
35010 required.
35011 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35012 prototype.
35013 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35014 for operand 2.
35015 (add<mode>3_compareV_imm): Make this callable for expanding.
35016 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35017 aarch64_plus_operand for operand 2.
35018 (subv<GPI:mode>_insn): New insn pattern.
35019 (subv<GPI:mode>_imm): Likewise.
35020 (negv<GPI:mode>3): New expand pattern.
35021 (negv<GPI:mode>_insn): New insn pattern.
35022 (negv<GPI:mode>_cmp_only): Likewise.
35023 (cmpv<GPI:mode>_insn): Likewise.
35024 (subvti4): Use register_operand for operand 1. Update call to
35025 aarch64_expand_subvti.
35026 (usubvti4): Likewise.
35027 (negvti3): New expand pattern.
35028 (negdi_carryout): New insn pattern.
35029 (negvdi_carryinV): New insn pattern.
35030 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35031 version the named version.
35032 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35033 operands.
35034 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35035 patterns.
35036 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35037 patterns.
35038 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35039 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35040 (sub<mode>3_carryinCV): Delete.
35041 (sub<GPI:mode>3_carryinV): New expand pattern.
35042 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35043
35044 2019-01-07 Richard Biener <rguenther@suse.de>
35045
35046 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35047 of tree_operand_hash.
35048
35049 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35050
35051 PR tree-optimization/88598
35052 * tree.h (single_nonzero_element): Declare.
35053 * tree.c (single_nonzero_element): New function.
35054 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35055 if I is the only nonzero element of CST.
35056
35057 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35058
35059 PR tree-optimization/88598
35060 * tree.h (initializer_each_zero_or_onep): Declare.
35061 * tree.c (initializer_each_zero_or_onep): New function.
35062 (signed_or_unsigned_type_for): Handle float types too.
35063 (unsigned_type_for, signed_type_for): Update comments accordingly.
35064 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35065 x & { 0 or -1, 0 or -1, ... }.
35066
35067 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35068
35069 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35070 with x86_64-pc-linux-gnu.
35071
35072 2019-01-07 Tom de Vries <tdevries@suse.de>
35073
35074 PR target/85486
35075 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35076 function.
35077 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35078 routines.
35079
35080 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35081
35082 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35083 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35084 TARGET_AVX512F as condition.
35085
35086 PR debug/88723
35087 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35088 const_not_ok_for_debug_p target hook.
35089 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35090 on UNSPEC and subexpressions thereof if all subexpressions of the
35091 UNSPEC are CONSTANT_P.
35092
35093 PR tree-optimization/88676
35094 * tree-ssa-phiopt.c (two_value_replacement): New function.
35095 (tree_ssa_phiopt_worker): Call it.
35096
35097 PR sanitizer/88619
35098 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35099 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35100
35101 PR c++/85052
35102 * tree-vect-generic.c: Include insn-config.h and recog.h.
35103 (expand_vector_piecewise): Add defaulted ret_type argument,
35104 if non-NULL, use that in preference to type for the result type.
35105 (expand_vector_parallel): Formatting fix.
35106 (do_vec_conversion, do_vec_narrowing_conversion,
35107 expand_vector_conversion): New functions.
35108 (expand_vector_operations_1): Call expand_vector_conversion
35109 for VEC_CONVERT ifn calls.
35110 * internal-fn.def (VEC_CONVERT): New internal function.
35111 * internal-fn.c (expand_VEC_CONVERT): New function.
35112 * fold-const-call.c (fold_const_vec_convert): New function.
35113 (fold_const_call): Use it for CFN_VEC_CONVERT.
35114 * doc/extend.texi (__builtin_convertvector): Document.
35115
35116 2019-01-07 Tom de Vries <tdevries@suse.de>
35117
35118 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35119 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35120 vector_red_partition, vector_red_sym): New global variables.
35121 (nvptx_option_override): Initialize vector_red_sym.
35122 (nvptx_declare_function_name): Restore red_partition register.
35123 (nvptx_file_end): Emit code to declare the vector reduction variables.
35124 (nvptx_output_red_partition): New function.
35125 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35126 large vector reductions.
35127 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35128 (nvptx_init_builtins): Add VECTOR_ADDR.
35129 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35130 Handle nvptx_expand_shared_addr.
35131 (nvptx_get_shared_red_addr): Add vector argument and handle large
35132 vectors.
35133 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35134 large vectors.
35135 (nvptx_goacc_reduction_init): Likewise.
35136 (nvptx_goacc_reduction_fini): Likewise.
35137 (nvptx_goacc_reduction_teardown): Likewise.
35138 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35139 init,fini,teardown}.
35140 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35141 (nvptx_set_current_function): Init vector_red_partition.
35142 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35143 (nvptx_red_partition): New insn.
35144 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35145
35146 2019-01-07 Tom de Vries <tdevries@suse.de>
35147
35148 PR target/85381
35149 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35150 empty loops.
35151
35152 2019-01-07 Tom de Vries <tdevries@suse.de>
35153
35154 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35155 (nvptx_option_override): Init oacc_bcast_partition.
35156 (nvptx_init_oacc_workers): New function.
35157 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35158 (nvptx_needs_shared_bcast): New function.
35159 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35160 to propagate state.
35161 (nvptx_shared_propagate): Initialize vector bcast partition and
35162 synchronization state.
35163 (nvptx_single): Generalize to enable vectors to use shared-memory
35164 to propagate state.
35165 (nvptx_process_pars): Likewise.
35166 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35167 * config/nvptx/nvptx.h (struct machine_function): Add
35168 bcast_partition and sync_bar members.
35169
35170 2019-01-07 Tom de Vries <tdevries@suse.de>
35171
35172 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35173 (nvptx_apply_dim_limits): New function.
35174 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35175 PTX_WARP_SIZE.
35176
35177 2019-01-07 Tom de Vries <tdevries@suse.de>
35178
35179 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35180 as late as possible.
35181
35182 2019-01-07 Tom de Vries <tdevries@suse.de>
35183
35184 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35185 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35186 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35187 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35188 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35189
35190 2019-01-07 Tom de Vries <tdevries@suse.de>
35191
35192 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35193
35194 2019-01-07 Tom de Vries <tdevries@suse.de>
35195
35196 * omp-offload.c (oacc_get_min_dim): New function.
35197 * omp-offload.h (oacc_get_min_dim): Declare.
35198
35199 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35200
35201 PR target/88521
35202 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35203 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35204
35205 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35206
35207 PR tree-opt/86020
35208 Revert:
35209 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35210
35211 * ipa-inline.c (edge_badness): Use inlined_time instead of
35212 inline_summaries->get.
35213
35214 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35215
35216 * opts.c (enable_fdo_optimizations): Enable
35217 version-loops-for-strides, loop-interchange, unrol-and-jam
35218 and tree-loop-distribution.
35219 * invoke.texi: Document newly enabled options.
35220
35221 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35222
35223 * doc/invoke.texi (max-inline-insns-small): New parameters.
35224 * ipa-inline.c (want_early_inline_function_p): simplify.
35225 (want_inline_small_function_p): Fix pasto from previous patch;
35226 use max-inline-insns-small bound.
35227 * params.def (max-inline-insns-small): New param.
35228 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35229 variables correctly.
35230
35231 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35232
35233 * doc/invoke.texi: Document max-inline-insns-size,
35234 uninlined-function-insns, uninlined-function-time,
35235 uninlined-thunk-insns and uninlined-thunk-time.
35236 * params.def: Add max-inline-insns-size,
35237 uninlined-function-insns, uninlined-function-time,
35238 uninlined-thunk-insns and uninlined-thunk-time.
35239 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35240 new parameters.
35241 * ipa-inline.c (can_inline_edge_by_limits_p,
35242 want_inline_small_function_p): Use new parameters.
35243
35244 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35245
35246 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35247
35248 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35249
35250 PR middle-end/82564
35251 PR target/88620
35252 * expr.c (expand_assignment): For calls returning VLA structures
35253 if to_rtx is not a MEM, force it into a stack temporary.
35254
35255 PR debug/88635
35256 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35257 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35258 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35259 subexpressions of both operands.
35260 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35261 subrtxes are CONSTANT_P.
35262 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35263 2018-11-09 changes.
35264
35265 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35266
35267 * params.def (hot-bb-count-ws-permille): Set to 990.
35268
35269 2019-01-04 Martin Sebor <msebor@redhat.com>
35270
35271 PR c/88546
35272 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35273 leaf.
35274
35275 2019-01-04 Martin Sebor <msebor@redhat.com>
35276
35277 PR c/88363
35278 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35279
35280 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35281
35282 * gdbinit.in: Turn off pagination for the skip commands, restore
35283 it to previous state afterwards.
35284
35285 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35286
35287 PR target/88594
35288 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35289 of GET_MODE (opN) as modes of the libcall arguments.
35290
35291 2019-01-04 Jan Beulich <jbeulich@suse.com>
35292
35293 * config/i386/sse.md
35294 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35295 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35296 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35297 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35298 avx512f_vmcmp<mode>3<round_saeonly_name>,
35299 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35300 avx512f_maskcmp<mode>3,
35301 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35302 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35303 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35304 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35305 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35306 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35307 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35308 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35309 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35310 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35311 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35312 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35313 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35314 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35315 avx512cd_maskb_vec_dup<mode>,
35316 avx512cd_maskw_vec_dup<mode>,
35317 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35318 avx512dq_vmfpclass<mode>,
35319 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35320 instead of =Yk.
35321
35322 2019-01-03 Martin Sebor <msebor@redhat.com>
35323
35324 PR tree-optimization/88659
35325 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35326
35327 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35328
35329 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35330 unaligned vsx and avoid lxvd2x/stxvd2x.
35331 (gen_lvx_v4si_move): New function.
35332
35333 2019-01-03 Tom de Vries <tdevries@suse.de>
35334
35335 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35336 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35337 function.
35338 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35339
35340 2019-01-03 Tom de Vries <tdevries@suse.de>
35341
35342 * config/nvptx/nvptx.c (struct offload_attrs): New.
35343 (populate_offload_attrs): New function. Factor mask extraction out of
35344 nvptx_reorg. Add extraction of dimensions.
35345 (nvptx_reorg): Use populate_offload_attrs.
35346
35347 2019-01-03 Tom de Vries <tdevries@suse.de>
35348
35349 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35350 cases for oacc_min_dims_p and routine_p. Add asserts for
35351 oacc_default_dims_p and offload_region_p.
35352
35353 2019-01-03 Tom de Vries <tdevries@suse.de>
35354
35355 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35356 factored out of ...
35357 (nvptx_goacc_validate_dims): ... here.
35358
35359 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35360
35361 PR tree-optimization/85574
35362 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35363 structure.
35364 (struct ssa_equip_hash_traits): Declare.
35365 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35366
35367 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35368
35369 PR debug/88644
35370 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35371 change it to qualified_type.
35372
35373 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35374
35375 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35376 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35377
35378 2019-01-02 Martin Sebor <msebor@redhat.com>
35379 Jeff Law <law@redhat.com>
35380
35381 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35382 (get_range_strlen_tree): Update appropriately.
35383 (get_range_strlen)
35384 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35385
35386 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35387 rather than set_range_info.
35388 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35389 maybe_set_strlen_range. Handle potentially boundary crossing
35390 cases more conservatively.
35391 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35392 Call set_strlen_range.
35393 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35394
35395 PR middle-end/88663
35396 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35397 need the flexp argument.
35398 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35399 from calls to get_range_strlen. Update comments. Just update
35400 VAL for an unterminated const char array and let the reset of the
35401 code handle it normally. No longer try to set *flexp. Adjust
35402 return value.
35403 (get_range_strlen): Update for the new get_range_strlen API.
35404 (get_maxval_strlen): Similarly.
35405 (gimple_fold_builtin_strlen): Handle update meaning of return value
35406 from get_range_strlen.
35407 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35408 get_range_strlen API.
35409
35410 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35411
35412 PR lto/88130
35413 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35414 false at WPA time when body was removed.
35415
35416 2019-01-02 Martin Liska <mliska@suse.cz>
35417
35418 PR tree-optimization/88650
35419 * predict.c (set_even_probabilities): Calculate probability
35420 remainer only when really used.
35421
35422 2019-01-02 Richard Biener <rguenther@suse.de>
35423
35424 PR middle-end/88651
35425 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35426 widest_ints when mangling max_stmt_execution results.
35427
35428 2019-01-02 Richard Biener <rguenther@suse.de>
35429
35430 PR tree-optimization/88621
35431 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35432 bitfields when canoncalizing.
35433
35434 2019-01-02 Richard Biener <rguenther@suse.de>
35435
35436 PR target/87545
35437 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35438 cost of cheap SSE instruction.
35439
35440 2019-01-02 Richard Biener <rguenther@suse.de>
35441
35442 PR ipa/85574
35443 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35444 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35445 function.
35446 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35447 set after UIDs before splitting them.
35448
35449 2019-01-01 Martin Sebor <msebor@redhat.com>
35450 Jeff Law <law@redhat.com>
35451
35452 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35453 length is optimistic. If it is, then arrange to compute the
35454 conservative length as well.
35455
35456 * gimple-fold.h (get_range_strlen): Update prototype.
35457 * builtins.c (check_access): Update call to get_range_strlen to use
35458 c_strlen_data pointer. Change various variable accesses to instead
35459 pull data from the c_strlen_data structure.
35460 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35461 * calls.c (maybe_warn_nonstring_arg): Likewise.
35462 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35463 minimum length if maximum lengh is unknown.
35464 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35465 that used c_strlen, it's no longer needed. Restructure slightly.
35466 (format_string): Set unlikely range appropriately.
35467 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35468 formatting issues.
35469 (get_range_strlen): Accept c_strlen_data pointer for external
35470 call sites as well. Pass through to call to internal get_range_strlen.
35471 Adjust minlen, maxlen and maxbound as needed.
35472 (get_maxval_strlen): Update comments.
35473 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35474 to use c_strlen_data pointer. Change variable accesses to instead
35475 use c_strlen_data data members.
35476
35477 * gimple-fold.c (get_range_strlen): Update prototype.
35478 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35479 local variables. Use pdata to return information to caller.
35480 Update calls to get_range_strlen. Update pdata->maxbound.
35481 (get_range_strlen -- static version): Similarly.
35482 (get_range_strlen -- extern version): Update for internal
35483 get_range_strlen API change. Convert to external data format.
35484 (get_maxval_strlen): Similarly.
35485
35486 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35487
35488 * coverage.c (get_coverage_counts): Use current_function_decl.
35489 * profile.c (read_thunk_profile): New function.
35490 (branch_prob): Add THUNK parameter.
35491 * tree-profile.c (tree_profiling): Handle thunks.
35492 * value-prof.c (init_node_map): Handle thunks.
35493 * value-prof.h (branch_prob): Upate prototype.
35494 (read_thunk_profile): Declare.
35495
35496 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35497
35498 Update copyright years.
35499
35500 * gcc.c (process_command): Update copyright notice dates.
35501 * gcov-dump.c (print_version): Ditto.
35502 * gcov.c (print_version): Ditto.
35503 * gcov-tool.c (print_version): Ditto.
35504 * gengtype.c (create_file): Ditto.
35505 * doc/cpp.texi: Bump @copying's copyright year.
35506 * doc/cppinternals.texi: Ditto.
35507 * doc/gcc.texi: Ditto.
35508 * doc/gccint.texi: Ditto.
35509 * doc/gcov.texi: Ditto.
35510 * doc/install.texi: Ditto.
35511 * doc/invoke.texi: Ditto.
35512 \f
35513 Copyright (C) 2019 Free Software Foundation, Inc.
35514
35515 Copying and distribution of this file, with or without modification,
35516 are permitted in any medium without royalty provided the copyright
35517 notice and this notice are preserved.