opts.c (common_handle_option): Do not clear ipa_reference for -fprofile-use.
[gcc.git] / gcc / ChangeLog
1 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
2
3 * opts.c (common_handle_option): Do not clear ipa_reference for
4 -fprofile-use.
5
6 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
7
8 * ipa-split.c (split_function): Preserve 0 tp_first_run.
9
10 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
11
12 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
13 sanity check.
14
15 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
16
17 PR tree-optimization/92860
18 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
19 Optimization flag.
20
21 2019-12-07 Marek Polacek <polacek@redhat.com>
22
23 PR c++/91678 - wrong error with decltype and location wrapper.
24 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
25
26 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
27
28 PR middle-end/90840
29 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
30 sure to pass a valid inner mode in calls to simplify_gen_subreg.
31
32 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
33 David Malcolm <dmalcolm@redhat.com>
34 Jakub Jelinek <jakub@redhat.com>
35
36 PR c/87488
37 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
38 instead of ST sequence to terminate OSC 8 strings.
39
40 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
41 Vladimir Makarov <vmakarov@redhat.com>
42
43 PR rtl-optimization/92176
44 * lra.c (simplify_subreg_regno): Don't permit unconditional
45 changing mode for LRA too.
46
47 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
48
49 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
50 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
51 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
52 Handle them.
53
54 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
55
56 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
57 in the asm output.
58
59 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
60
61 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
62 (VEC_1REG_ALT): Likewise.
63 (VEC_ALL1REG_MODE): New mode iterator.
64 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
65 (VEC_1REG_INT_ALT): Likewise.
66 (VEC_ALL1REG_INT_MODE): New mode interator.
67 (VEC_ALL1REG_INT_ALT): Likewise.
68 (VEC_REG_MODE): Remove V64QI and V64HI.
69 (VEC_ALLREG_MODE): New mode interator.
70 (vec_merge): Change to VEC_ALLREG_MODE.
71 (vec_merge_with_clobber): Likewise.
72 (vec_merge_with_vcc): Likewise.
73 (mov<mode>): Likewise.
74 (mov<mode>_unspec): Likewise.
75 (*mov<mode>): Change to VEC_ALL1REG_MODE.
76 (mov<mode>_exec): Likewise.
77 (*mov<mode>_exec_match): Likewise.
78 (mov<mode>_sgprbase): Likewise.
79 (reload_in<mode>): Change to VEC_ALLREG_MODE.
80 (reload_out<mode>): Likewise.
81 (scalar address splits): Likewise.
82 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
83 (vec_set<mode>): Change to VEC_ALLREG_MODE.
84 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
85 (vec_duplicate<mode><exec>): Likewise.
86 (vec_extract<mode><scalar_mode>): Likewise.
87 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
88 (gather_load<mode>): Likewise.
89 (gather<mode>_exec): Likewise.
90 (gather<mode>_expr<exec>): Likewise.
91 (gather<mode>_insn_1offset<exec>): Likewise.
92 (gather<mode>_insn_1offset_ds<exec>): Likewise.
93 (gather<mode>_insn_2offsets<exec>): Likewise.
94 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
95 (VEC_INT_MODE): Remove V64QI and V64HI.
96 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
97 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
98 VEC_ALL1REG_MODE.
99 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
100 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
101 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
102 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
103 (maskstore<mode>di): Likewise.
104 (mask_gather_load<mode>): Likewise.
105 (mov_from_lane63_<mode>): Likewise.
106 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
107 and V64HImode vectorization.
108 (gcn_related_vector_mode): New function.
109 (TARGET_VECTORIZE_RELATED_MODE): New define.
110
111 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
112 Kwok Cheung Yeung <kcy@codesourcery.com>
113
114 * omp-low.c (lower_omp_target): For optional arguments, deref once
115 more to obtain the type.
116
117 2019-12-06 Richard Biener <rguenther@suse.de>
118
119 * match.pd (nop_convert): Remove empty match. Use nop_convert?
120 everywhere.
121
122 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
123
124 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
125 for empty vectors. Avoid using ordered_remove and instead
126 shuffle the vector as we go.
127
128 2019-12-06 Richard Biener <rguenther@suse.de>
129
130 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
131 VIEW_CONVERT{0,1,2}.
132 (expr::opt_grp): Add and initialize.
133 (lower_opt_convert): Rename to ...
134 (lower_opt): ... and work on opt_grp, simply switching operations
135 from being optional to being present or not.
136 (has_opt_convert): Rename to ...
137 (has_opt): ... and adjust.
138 (parser::parse_operation): Return the optional opt_grp,
139 remove special-casing of conditional operations and more generally
140 parse [digit]'?'.
141 (parser::parse_expr): Stick on the parsed opt_grp and perform
142 rough verification.
143 (parser::parse_for): Remove now unnecessary code.
144 (main): Likewise.
145 * doc/match-and-simplify.texi: Mention ? now works on all
146 unary operations and also match predicates.
147
148 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
149
150 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
151 functions, not inline clones.
152
153 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
154
155 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
156
157 2019-12-06 Richard Biener <rguenther@suse.de>
158
159 * genmatch.c (c_expr::gen_transform): Emit newlines from line
160 number changes rather than after every semicolon.
161
162 2019-12-06 Richard Biener <rguenther@suse.de>
163
164 PR tree-optimization/92819
165 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
166 into the last lane. For two-element vectors try inserting
167 into the last lane when inserting into the first fails.
168
169 2019-12-06 Jakub Jelinek <jakub@redhat.com>
170
171 * common.opt (fprofile-partial-training): Terminate description with
172 full stop.
173
174 2019-12-05 Martin Sebor <msebor@redhat.com>
175
176 PR middle-end/92622
177 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
178 left uninitialized by get_addr_base_and_unit_offset on failure.
179
180 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
181
182 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
183 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
184 (detect_type_change): Likewise.
185 (detect_type_change_ssa): Likewise.
186 (ipa_analyze_virtual_call_uses): Update.
187
188 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
189
190 * config/nios2/linux.h (LINK_EH_SPEC): Define.
191
192 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
193
194 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
195
196 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
197
198 * cgraphclones.c (localize_profile): New function.
199 (cgraph_node::create_clone): Use it for partial profiles.
200 * common.opt (fprofile-partial-training): New flag.
201 * doc/invoke.texi (-fprofile-partial-training): Document.
202 * ipa-cp.c (update_profiling_info): For partial profiles do not
203 set function profile to zero.
204 * profile.c (compute_branch_probabilities): With partial profile
205 watch if edge count is zero and turn all probabilities to guessed.
206 (compute_branch_probabilities): For partial profiles do not apply
207 profile when entry count is zero.
208 * tree-profile.c (tree_profiling): Only do value_profile_transformations
209 when profile is read.
210
211 2019-12-05 Sudakshina Das <sudi.das@arm.com>
212
213 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
214 check from if condition.
215
216 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
217
218 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
219 and Fortran's optional arguments, unconditionally add the is-present
220 condition before the libgomp call.
221
222 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
223
224 PR middle-end/92768
225 * tree-core.h (OEP_BITWISE): New flag.
226 * fold-const.c (operand_compare::operand_equal_p): Handle it.
227 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
228
229 2019-12-05 Richard Biener <rguenther@suse.de>
230
231 PR middle-end/92818
232 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
233 heuristics on what don't care element to choose.
234 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
235
236 2019-12-05 Martin Liska <mliska@suse.cz>
237
238 PR gcov-profile/92817
239 * coverage.c (build_gcov_exit_decl): Remove superfluous
240 void_type_node.
241
242 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
243
244 * config/msp430/msp430.md (cbranch<mode>4): Use
245 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
246 dest operand of CMP instruction.
247 (cbranchpsi4_real): Likewise.
248 (cbranchqi4_real): Likewise.
249 (cbranchhi4_real): Likewise.
250 (cbranchpsi4_reversed): Likewise.
251 (cbranchqi4_reversed): Likewise.
252 (cbranchhi4_reversed): Likewise.
253
254 2019-12-05 Richard Biener <rguenther@suse.de>
255
256 PR tree-optimization/92803
257 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
258 invariant vector construction.
259
260 2019-12-05 Martin Liska <mliska@suse.cz>
261
262 PR gcov-profile/91971
263 * coverage.c (coverage_init): Mangle full path
264 only when -fprofile-dir is used.
265
266 2019-12-05 Jakub Jelinek <jakub@redhat.com>
267
268 PR target/92791
269 * config/i386/i386.md (movstrict<mode>): Move test for
270 TARGET_PARTIAL_REG_STALL and not optimizing for size from
271 expander's condition to the body - FAIL; in that case.
272
273 2019-12-03 Martin Sebor <msebor@redhat.com>
274
275 PR middle-end/91582
276 * builtins.c (gimple_call_alloc_size): New function.
277 (compute_objsize): Add argument. Call gimple_call_alloc_size.
278 Handle variable offsets and indices.
279 * builtins.h (gimple_call_alloc_size): Declare.
280 (compute_objsize): Add argument.
281 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
282 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
283
284 2019-12-04 Julian Brown <julian@codesourcery.com>
285
286 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
287
288 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
289
290 PR bootstrap/92661
291 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
292 rs6000.h.
293 (altivec_overloaded_builtins): Move to rs6000-call.c.
294 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
295 rs6000-c.c.
296 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
297 (altivec_overloaded_builtins): Moved from rs6000-c.c.
298 (rs6000_common_init_builtins): Do no define builtins that overload
299 builtins that have been disabled.
300
301 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
302
303 * config/arm/arm.c (arm_option_override_internal):
304 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
305
306 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
307
308 * config/aarch64/aarch64.c
309 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
310 (thunderx_tunings): Likewise.
311 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
312 (thunderx2t99_tunings): Likewise.
313 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
314 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
315
316 2019-12-04 Richard Biener <rguenther@suse.de>
317
318 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
319 empty CTOR and memset partial-def registering. Take advantage
320 of fancy offset analysis in memset handling.
321
322 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
323
324 * fold-const.c (native_encode_vector_part): Handle
325 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
326 (native_decode_vector_tree): Delete, moving the bulk of the code to...
327 (native_interpret_vector_part): ...this new function. Use a pointer
328 and length instead of a vec<> and start index.
329 (native_interpret_vector): Use native_interpret_vector_part.
330 (fold_view_convert_vector_encoding): Likewise.
331
332 2019-12-04 Richard Biener <rguenther@suse.de>
333
334 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
335 non-constant defs in the most trivial way.
336 (vn_reference_lookup_3): Also push down SSA partial defs.
337
338 2019-12-04 Martin Liska <mliska@suse.cz>
339
340 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
341 Initialize count of newly created BB.
342
343 2019-12-04 Jakub Jelinek <jakub@redhat.com>
344
345 PR tree-optimization/92734
346 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
347 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
348
349 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
350
351 PR target/92760
352 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
353 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
354
355 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
356
357 * ipa-fnsummary.c: Include tree-into-ssa.h.
358 (compute_fn_summary): Call update_ssa.
359
360 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
361
362 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
363 is set only for symbol in comdat group.
364 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
365
366 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
367
368 * cgraph.c: Include tree-into-ssa.h
369 (cgraph_node::get_body): Call update_ssa.
370 * cgraphunit.c (cgraph_node::expand): Likewise.
371 * lto-streamer-in.c (input_function): Do not call update_ssa.
372
373 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
374
375 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
376 an array element size if array_element_size is already an invariant.
377 Similarly don't gimplify and install a field offset if
378 component_ref_field_offset is already an invariant.
379
380 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
381
382 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
383 with POLY_INT_CST size is made to a fixed-size object, force the
384 object to live in memory.
385
386 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
387
388 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
389 for the data mode.
390
391 2019-12-03 Richard Biener <rguenther@suse.de>
392
393 PR tree-optimization/92758
394 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
395 operation on uniform vectors.
396
397 2019-12-03 Richard Biener <rguenther@suse.de>
398
399 PR tree-optimization/92645
400 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
401 from or to a properly aligned register variable.
402
403 2019-12-03 Matthias Klose <doko@ubuntu.com>
404
405 * Makefile.in (SOURCES): Add doc/lto-dump.1.
406 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
407 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
408
409 2019-12-03 Richard Biener <rguenther@suse.de>
410
411 PR tree-optimization/92751
412 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
413 when a clobber ends up in the partial-def vector.
414 (vn_reference_lookup_3): Let clobbers be handled by the
415 assignment from CTOR handling.
416
417 2019-12-03 Jakub Jelinek <jakub@redhat.com>
418
419 PR tree-optimization/92734
420 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
421 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
422 inner subtraction.
423
424 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
425 Jakub Jelinek <jakub@redhat.com>
426
427 PR target/92744
428 * config/i386/i386.md (peephole2 for *swap<mode>): Use
429 general_reg_operand predicates instead of register_operand.
430
431 2019-12-03 Richard Biener <rguenther@suse.de>
432
433 PR tree-optimization/92645
434 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
435 a full def of a vector via a BIT_INSERT_EXPR.
436
437 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
438
439 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
440 static.
441 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
442 decl.
443
444 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
445
446 PR middle-end/92741
447 * fold-const.c (fold_convertible_p): Check vector types more
448 thoroughly.
449
450 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
451
452 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
453 (aarch64_expand_mov_immediate): Use it when attempting to measure
454 the length of an SVE vector.
455 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
456 SVE is enabled.
457
458 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
459
460 * config/aarch64/aarch64-sve-builtins.h
461 (gimple_folder::force_vector): Declare.
462 * config/aarch64/aarch64-sve-builtins.cc
463 (gimple_folder::force_vector): New function.
464 * config/aarch64/aarch64-sve-builtins-base.cc
465 (svcmp_impl::fold): Likewise.
466 (svdup_impl::fold): Handle svdup_z too.
467
468 2019-12-02 Martin Liska <mliska@suse.cz>
469
470 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
471 function.
472 (debug_tree_odr_name): New.
473 * ipa-utils.h (get_odr_name_for_type): New.
474
475 2019-12-02 Richard Biener <rguenther@suse.de>
476
477 PR tree-optimization/92742
478 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
479 touch the def-type but verify it is consistent with the
480 original stmts.
481
482 2019-12-02 Jakub Jelinek <jakub@redhat.com>
483
484 PR tree-optimization/92712
485 * match.pd ((A * B) +- A -> (B +- 1) * A,
486 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
487 even when we don't know anything about range of A, but do know
488 something about range of B and the simplification won't introduce
489 new UB.
490
491 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
492
493 PR ipa/92133
494 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
495 (ipa-cp-min-recursive-probability): Likewise.
496 * params.opt (ipa-cp-max-recursive-depth): New.
497 (ipa-cp-min-recursive-probability): Likewise.
498 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
499 val_p and unlimited.
500 (self_recursively_generated_p): New function.
501 (get_val_across_arith_op): Likewise.
502 (propagate_vals_across_arith_jfunc): Add constant propagation for
503 self-recursive function.
504 (incorporate_penalties): Do not penalize pure self-recursive function.
505 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
506 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
507 (get_info_about_necessary_edges): Relax hotness check for edge to
508 self-recursive function.
509 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
510
511 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
512
513 PR target/92499
514
515 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
516 objects of flexible types to be small if they have internal linkage
517 or are declared extern.
518 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
519 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
520 instead of the size of the object initializer.
521 * tree.c (flexible_array_type_p): Move from C front end, and
522 generalize to handle fields in non-C structures.
523 * tree.h (flexible_array_type_p): Declare.
524
525 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
526
527 * profile-count.h (profile_count::operator<): Use IPA value for
528 comparsion.
529 (profile_count::operator>): Likewise.
530 (profile_count::operator<=): Likewise.
531 (profile_count::operator>=): Likewise.
532 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
533
534 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
535
536 * ipa-inline.c (compute_max_insns): Return int64_t.
537 (inline_small_functions): Simplify.
538
539 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
540
541 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
542 scaling happen.
543
544 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
545
546 * cgraph.h (symtab_node): Add symver flag.
547 * cgraphunit.c (process_symver_attribute): New.
548 (process_common_attributes): Use process_symver_attribute.
549 * lto-cgraph.c (lto_output_node): Stream symver.
550 (lto_output_varpool_node): Stream symver.
551 (input_overwrite_node): Stream symver.
552 (input_varpool_node): Stream symver.
553 * output.h (do_assemble_symver): Decalre.
554 * symtab.c (symtab_node::dump_base): Dump symver.
555 (symtab_node::verify_base): Verify symver.
556 (symtab_node::resolve_alias): Handle symver.
557 * varasm.c (do_assemble_symver): New function.
558 * varpool.c (varpool_node::assemble_aliases): Use it.
559 * doc/extend.texi: (symver attribute): Document.
560 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
561
562 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
563
564 * target.h (type_context_kind): New enum.
565 (verify_type_context): Declare.
566 * target.def (verify_type_context): New target hook.
567 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
568 * doc/tm.texi: Regenerate.
569 * tree.c (verify_type_context): New function.
570 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
571 Declare.
572 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
573 New function.
574 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
575 (TARGET_VERIFY_TYPE_CONTEXT): Define.
576
577 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
578
579 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
580 * cgraph.h (cgraph_node): Add unit_id and
581 merged_extern_inline.
582 (symbol_table): Add max_unit.
583 (symbol_table::symbol_table): Initialize it.
584 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
585 merged_comdat, merged_extern_inline.
586 (cgraph_node::create_clone): Likewise.
587 (cgraph_node::create_version_clone): Likewise.
588 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
589 calls.
590 * ipa-fnsummary.h (cross_module_call_p): New inline function.
591 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
592 * ipa-inline.c (inline_small_functions): Likewise.
593 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
594 copy merged_comdat and merged_extern_inline.
595 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
596 merged_extern_inline and unit_id.
597 (input_overwrite_node): Stream in these.
598 (input_cgraph_1): Set unit_base.
599 * lto-streamer.h (lto_file_decl_data): Add unit_base.
600 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
601
602 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
603
604 * gcc.c (process_command): Only warn about an ineffective `-x'
605 option if any input files have actually been supplied.
606
607 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
608
609 * doc/install.texi (Options specification): Remove the list of
610 target library subdirectories supporting
611 `--enable-version-specific-runtime-libs'. Document defaults for
612 the option.
613
614 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
615
616 PR rtl-optimization/92283
617 * lra.c (lra): Update reg notes after inheritance sub-pass and
618 before constraint sub-pass.
619
620 2019-11-29 Richard Biener <rguenther@suse.de>
621
622 PR tree-optimization/91003
623 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
624 operand number, avoid handling the non-condition operands of
625 COND_EXPRs as comparisons.
626 (vect_get_constant_vectors): Pass down the operand number.
627 (vect_get_slp_defs): Likewise.
628
629 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
630
631 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
632 generic_expr_could_trap_p to check if the condition of COND_EXPR or
633 VEC_COND_EXPR can trap.
634
635 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
636
637 PR tree-optimization/92677
638 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
639 to zero when dissolving a group of strided accesses.
640
641 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
642
643 PR tree-optimization/92596
644 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
645 operations.
646 (vectorizable_operation): Likewise, instead of relying on
647 vect_get_mask_type_for_stmt to do this.
648 (vect_get_vector_types_for_stmt): Always return a vector type
649 immediately, rather than deferring the choice for boolean results.
650 Use a vector mask type instead of a normal vector if
651 vect_use_mask_type_p.
652 (vect_get_mask_type_for_stmt): Delete.
653 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
654 mask_producers argument and special boolean_type_node handling.
655 (vect_determine_vf_for_stmt): Remove mask_producers argument and
656 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
657 (vect_determine_vectorization_factor): Update call accordingly.
658 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
659 boolean_type_node handling.
660 (vect_slp_analyze_node_operations_1): Likewise.
661
662 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
663
664 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
665 (vect_use_mask_type_p): New function.
666 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
667 mask precision to the pattern statement.
668 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
669 and use it to initialize the new stmt's mask precision.
670 (search_type_for_mask_1): Delete.
671 (search_type_for_mask): Replace with...
672 (integer_type_for_mask): ...this new function. Use the information
673 cached in the stmt_vec_info.
674 (vect_recog_bool_pattern): Update accordingly.
675 (build_mask_conversion): Pass the scalar type associated with the
676 mask type to append_pattern_def_seq.
677 (vect_recog_mask_conversion_pattern): Likewise. Call
678 integer_type_for_mask instead of search_type_for_mask.
679 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
680 of search_type_for_mask.
681 (possible_vector_mask_operation_p): New function.
682 (vect_determine_mask_precision): Likewise.
683 (vect_determine_stmt_precisions): Call it.
684
685 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
686
687 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
688 the slp_tree parameter with a group size parameter.
689 (vect_get_mask_type_for_stmt): Likewise.
690 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
691 (vect_get_mask_type_for_stmt): Likewise.
692 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
693 call accordingly.
694
695 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
696
697 * tree-vect-stmts.c (vectorizable_operation): Punt early
698 on codes that are handled elsewhere.
699
700 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
701
702 * doc/sourcebuild.texi (vect_bool_cmp): Document.
703 * tree-vect-patterns.c (search_type_for_mask_1): If neither
704 operand to a boolean comparison is a natural vector mask,
705 handle both operands like normal integers instead.
706
707 2019-11-29 Richard Biener <rguenther@suse.de>
708
709 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
710 out early for too large objects.
711
712 2019-11-29 Martin Jambor <mjambor@suse.cz>
713
714 PR ipa/92476
715 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
716 the summary only if the summary exists.
717 (find_more_scalar_values_for_callers_subset): Check node_dead in
718 the summary only if the summary exists.
719 (ipcp_store_bits_results): Ignore nodes without lattices.
720 (ipcp_store_vr_results): Likewise.
721 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
722 header files required by them.
723 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
724
725 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
726
727 PR tree-optimization/92710
728 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
729 vector mask arguments.
730
731 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
732
733 * profile-count.c (profile_count::to_cgraph_frequency,
734 profile_count::to_sreal_scale): Check for compaibility of counts.
735 * profile-count.h (compatible_p): Make public; add checking for
736 global0 versus global types.
737 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
738
739 2019-11-29 Richard Biener <rguenther@suse.de>
740
741 PR tree-optimization/92715
742 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
743 out for uniform vectors and source vectors with less elements
744 than the destination.
745
746 2019-11-29 Martin Liska <mliska@suse.cz>
747
748 PR lto/91574
749 * ipa-devirt.c (types_same_for_odr): Check for existence
750 of TYPE_NAMEs first.
751
752 2019-11-29 Richard Biener <rguenther@suse.de>
753
754 PR tree-optimization/92704
755 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
756 in loops performing only loads.
757
758 2019-11-29 Julian Brown <julian@codesourcery.com>
759
760 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
761 BT_DFLOAT128_PTR) Remove.
762 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
763 TI_DFLOAT128_PTR_TYPE): Remove.
764 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
765 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
766 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
767 dfloat128_ptr_type_node): Remove macros.
768
769 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
770
771 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
772 formatting.
773 (*movdi_internal64): Ditto.
774
775 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
776
777 PR target/92602
778 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
779 indexed_or_indirect_operand to be memory_operand.
780 (bswap<mode>2_store for HSI): Ditto.
781 (bswapdi2_load): Ditto.
782 (bswapdi2_store): Ditto.
783
784 2019-11-28 Martin Liska <mliska@suse.cz>
785
786 PR debug/46558
787 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
788 headers for translation.
789
790 2019-11-28 Martin Liska <mliska@suse.cz>
791
792 PR lto/92609
793 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
794 consistently.
795
796 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
797
798 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
799 checks.
800
801 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
802
803 * profile-count.c (profile_count::combine_with_ipa_count): Return
804 uninitialized count if called on ininitialized count.
805
806 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
807
808 * ipa-inline-transform.c (inline_transform): Scale profile before
809 redirecting.
810
811 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
812
813 * profile-count.h (profile_count::max): Work on profiles of different
814 type.
815 (profile_count::apply_scale): Be sure that ret is not local or global0
816 type if num is global.
817
818 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
819
820 * profile-count.h (profile_count::max): Work on profiles of different
821 type.
822 (profile_count::apply_scale): Be sure that ret is not local or global0
823 type if num is global.
824
825 2019-11-28 Martin Jambor <mjambor@suse.cz>
826
827 PR ipa/92697
828 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
829 ifunc_resolvers.
830 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
831 Removed trailig whitespace.
832
833 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
834
835 * profile-count.h (profile_count::combine_with_ipa_count_within):
836 Declare.
837 * profile-count.c (profile_count::combine_with_ipa_count_within):
838 New.
839 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
840 it.
841
842 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
843
844 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
845 of counters are done same way.
846
847 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
848
849 * ipa-cp.c (update_profiling_info): Fix scaling.
850
851 2019-11-28 Richard Biener <rguenther@suse.de>
852
853 PR tree-optimization/92645
854 * tree-inline.c (remap_gimple_stmt): When the return value
855 is not wanted, elide GIMPLE_RETURN.
856
857 2019-11-28 Richard Biener <rguenther@suse.de>
858
859 PR tree-optimization/92645
860 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
861 conversions inside a mode class. Remove restriction on
862 preserving the element size.
863 (simplify_vector_constructor): Deal with the above and for
864 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
865 and VEC_PACK_TRUNC_EXPR.
866
867 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
868
869 Must use push insn to pass varargs arguments of DFmode because
870 otherwise the middle-end generates wrong code.
871
872 PR target/92055
873 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
874
875 2019-11-28 Jakub Jelinek <jakub@redhat.com>
876
877 PR tree-optimization/92691
878 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
879 in function comment.
880 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
881 calls, return !handle_printf_call rather than always returning true.
882 (check_and_optimize_stmt): Describe return value meaning in function
883 comment. Formatting fix.
884
885 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
886
887 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
888 combination of globa0 and global counters..
889
890 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
891
892 PR target/92566
893 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
894 by VECTOR_UNIT_NONE_P instead.
895
896 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
897
898 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
899 Refine VF to VF_AVX512VL.
900
901 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
902
903 * config/rs6000/rs6000.md (movsi_internal): Reformat.
904 (movdi_internal64): Reformat.
905
906 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
907
908 PR bootstrap/92661
909 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
910 builtin if we don't have an actual type.
911 (builtin_function_type): If the builtin function uses a DFP type
912 and decimal float has been disabled, then return NULL_TREE.
913
914 2019-11-27 Jakub Jelinek <jakub@redhat.com>
915
916 PR rtl-optimization/92510
917 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
918 of comparison into a comparison with different mode if both imode and
919 omode are scalar integral modes.
920
921 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
922
923 PR rtl-optimization/90007
924 * recog.c (constrain_operands): Permit hard registers too for
925 memory when LRA is used.
926
927 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
928
929 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
930 between Coldfire and regular m68k.
931 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
932
933 2019-11-27 Richard Biener <rguenther@suse.de>
934
935 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
936 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
937 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
938 * optabs-tree.c (supportable_convert_operation): Do not call
939 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
940 * optabs-tree.h (supportable_convert_operation): Adjust.
941 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
942 * doc/tm.texi: Regenerate.
943 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
944 * tree-vect-generic.c (expand_vector_conversion): Likewise.
945 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
946 unused decl parameter and adjust.
947 (vect_create_vectorized_promotion_stmts): Likewise.
948 (vectorizable_conversion): Adjust.
949
950 2019-11-27 Richard Biener <rguenther@suse.de>
951
952 PR tree-optimization/92690
953 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
954 converting elements not originally converted.
955
956 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
957
958 PR middle-end/92463
959 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
960 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
961 mpfr_rnd_t instead of mp_rnd_t.
962 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
963 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
964 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
965 Use mpfr_exp_t instead of mp_exp_t.
966 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
967 MPFR_RNDx instead of GMP_RNDx.
968 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
969 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
970 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
971 of mp_rnd_t and remove MPFR_RNDx poisoning.
972 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
973
974 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
975
976 PR tree-optimization/91790
977 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
978 DR for vect_setup_realignment when first_stmt_info is different
979 from first_stmt_info_for_drptr.
980
981 2019-11-27 Richard Biener <rguenther@suse.de>
982
983 PR tree-optimization/92645
984 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
985 CTORs with just a subset of the original vectors.
986
987 2019-11-27 Richard Biener <rguenther@suse.de>
988
989 PR middle-end/92674
990 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
991 edges and instead record blocks in bitmap.
992 (gimple_expand_calls_inline): Adjust.
993 (fold_marked_statements): Delay EH cleanup until all folding is
994 done.
995 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
996 inlining finished.
997
998 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
999
1000 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1001 LRA is enabled.
1002 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1003 disabled.
1004
1005 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1006
1007 PR debug/92664
1008 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1009
1010 2019-11-26 Martin Sebor <msebor@redhat.com>
1011
1012 PR tree-optimization/92683
1013 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1014 inadvertently removed in a previous change. Rename local variable
1015 for clarity.
1016
1017 2019-11-26 Richard Biener <rguenther@suse.de>
1018
1019 PR middle-end/92669
1020 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1021 NULL pre_order.
1022
1023 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1024
1025 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1026
1027 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1028
1029 PR tree-optimization/92644
1030 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1031 next to INTEGER_CST checks.
1032
1033 2019-11-26 Richard Biener <rguenther@suse.de>
1034
1035 PR tree-optimization/92645
1036 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1037 do not build the operation from scalars if the operand is.
1038
1039 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1040
1041 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1042 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1043 definitions.
1044
1045 2019-11-25 Martin Liska <mliska@suse.cz>
1046
1047 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1048 up used dump message.
1049
1050 2019-11-25 Martin Liska <mliska@suse.cz>
1051
1052 PR bootstrap/92653
1053 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1054 too strict checking assert.
1055
1056 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1057
1058 PR c/91985
1059 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1060 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1061 error_mark_node if corresponding global tree node is NULL.
1062 * tree.c (build_common_tree_nodes): Do not initialize
1063 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1064 decimal floating-point not supported.
1065
1066 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1067
1068 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1069 types.
1070
1071 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1072
1073 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1074 Replace code for non-CONST_INT constants with gcc_unreachable.
1075 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1076 compare and test.
1077 (CMPMODE): New mode_iterator.
1078 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1079 cbranch<mode>4.
1080 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1081 cstore<mode>4.
1082 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1083 operand.
1084 (bit test insns patterns): Use nonimmediate_operand, not
1085 register_operand, for source operands that allow memory in
1086 their constraints.
1087 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1088 Use register_operand, not nonimmediate_operand, for the
1089 destinations.
1090 (DBCC): New mode_iterator.
1091 (dbcc peepholes): Use it to reduce duplication.
1092 (trap): Use const_true_rtx, not const1_rtx.
1093 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1094 from m68k_subword_comparison_operand and changed to handle
1095 SImode.
1096
1097 PR target/91851
1098 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1099 declaration.
1100 (m68k_init_cc): New declaration.
1101 (m68k_output_compare_di, m68k_output_compare_si)
1102 (m68k_output_compare_hi, m68k_output_compare_qi)
1103 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1104 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1105 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1106 m68k_output_branch_float, m68k_output_branch_float_rev):
1107 Likewise.
1108 (valid_dbcc_comparison_p_2, flags_in_68881)
1109 (output_btst): Remove declaration.
1110 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1111 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1112 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1113 (flags_compare_op0, flags_compare_op1, flags_operand1,
1114 flags_operand2, flags_valid): New static variables.
1115 (m68k_find_flags_value, m68k_init_cc): New functions.
1116 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1117 remember_compare_flags): New static functions.
1118 (output_dbcc_and_branch): New argument CODE. Use it, and add
1119 PLUS and MINUS to the possible codes. All callers changed.
1120 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1121 and INSN arguments, add CODE arg. Return the comparison code
1122 to use. All callers changed. Use CODE instead of
1123 next_insn_tests_no_inequality, and replace cc_status management
1124 with changing the return code.
1125 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1126 RTX_COMPARE or RTX_COMM_COMPARE.
1127 (output_move_simode, output_move_qimode): Call
1128 handle_flags_for_move.
1129 (notice_update_cc): Delete function.
1130 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1131 m68k_output_compare_hi, m68k_output_compare_qi,
1132 m68k_output_compare_fp, m68k_output_branch_integer,
1133 m68k_output_branch_integer_rev, m68k_output_scc,
1134 m68k_output_branch_float, m68k_output_branch_float_rev,
1135 m68k_output_scc_float): New functions.
1136 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1137 once at the start, and set flags_valid and flags_operand1 if the
1138 flags are usable.
1139 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1140 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1141 definitions.
1142 (CC_STATUS_INIT): Define.
1143 * config/m68k/m68k.md (flags_valid): New define_attr.
1144 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1145 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1146 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1147 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1148 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1149 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1150 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1151 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1152 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1153 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1154 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1155 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1156 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1157 ctrapqi4, conditional_trap): Delete patterns.
1158 (cbranchdi4_insn): New pattern.
1159 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1160 test high part only. When testing EQ or NE, generate beq0_di
1161 and bne0_di patterns directly.
1162 (cstoredi4): When testing LT or GE, test high part only.
1163 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1164 patterns.
1165 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1166 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1167 cmp2_cf_predicate): New define_mode_attrs.
1168 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1169 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1170 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1171 New patterns.
1172 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1173 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1174 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1175 New patterns.
1176 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1177 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1178 Likewise.
1179 (BTST): New define_mode_iterator.
1180 (btst_predicate, btst_constraint, btst_range): New
1181 define_mode_attrs.
1182 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1183 patterns.
1184 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1185 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1186 patterns): Set attr "flags_valid".
1187 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1188 management. Set attr "flags_valid".
1189 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1190 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1191 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1192 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1193 manual CC_STATUS management.
1194 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1195 unnamed strict_lowpart subhi and subqi patterns): Set attr
1196 "flags_valid".
1197 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1198 Remove code to operate on address regs and assert the case
1199 does not occur.
1200 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1201 manual CC_STATUS_INIT.
1202 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1203 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1204 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1205 one_cmplqi2, unnamed strict_lowpart patterns
1206 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1207 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1208 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1209 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1210 CC_STATUS_INIT.
1211 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1212 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1213 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1214 unnamed strict_low_part patterns for HI and
1215 QI versions): Set attr "flags_valid".
1216 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1217 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1218 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1219 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1220 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1221 (various unnamed peepholes): Adjust compare/branch sequences
1222 for new cbranch patterns.
1223 (dbcc peepholes): Likewise, and output the comparison here
1224 as well.
1225 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1226 (fp_src_operand): Allow constant zero.
1227 (address_reg_operand): New predicate.
1228
1229 * rtl.h (inequality_comparisons_p): Remove declaration.
1230 * recog.h (next_insn_tests_no_inequality): Likewise.
1231 * rtlanal.c (inequality_comparisons_p): Delete function.
1232 * recog.c (next_insn_tests_no_inequality): Likewise.
1233
1234 2019-11-25 Richard Biener <rguenther@suse.de>
1235
1236 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1237 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1238 properly re-building the visited hash-map for each lane.
1239
1240 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1241
1242 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1243 gcn_md_reorg): Remove unused variables.
1244 (gcn_emutls_var_init): Add missing (but unreachable) return
1245 to silence warning.
1246 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1247 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1248 an uninitialized variable.
1249
1250 2019-11-25 Martin Jambor <mjambor@suse.cz>
1251
1252 PR ipa/92109
1253 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1254 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1255 (cgraph_materialize_clone): Move removel from clone tree to the
1256 the new method and use it instead.
1257 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1258 bodies of clones, also remove it from the clone tree.
1259
1260 2019-11-25 Martin Jambor <mjambor@suse.cz>
1261
1262 PR ipa/91956
1263 * ipa-sra.c (process_isra_node_results): Put the new node to the
1264 same comdat group as the original node.
1265
1266 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1267
1268 Build double32 / long-double32 multilibs if needed.
1269
1270 PR target/92055
1271 * config/avr/t-avr:
1272 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1273 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1274 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1275 tm_defines and pass to genmultilib.awk.
1276 * config/avr/genmultilib.awk: Use these variables to add double32
1277 and / or long-double32 multilib(s) as needed.
1278 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1279
1280 2019-11-25 Richard Biener <rguenther@suse.de>
1281
1282 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1283 loop body, defaulted to NULL.
1284 (single_likely_exit): Add exit vector argument
1285 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1286 (number_of_iterations_exit): Likewise.
1287 (number_of_iterations_exit_assumptions): Likewise.
1288 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1289 if not NULL.
1290 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1291 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1292 Compute exit vector around call to single_likely_exit.
1293 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1294 loop body to loop_only_exit_p.
1295 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1296 caller.
1297 (number_of_iterations_exit_assumptions): Get loop body from caller
1298 if not NULL.
1299 (number_of_iterations_exit): Pass through new loop body arg.
1300 (infer_loop_bounds_from_undefined): Get loop body from caller.
1301 (estimate_numbers_of_iterations): Compute loop body once.
1302
1303 2019-11-25 Richard Biener <rguenther@suse.de>
1304
1305 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1306 auto_bb_flag instead of an sbitmap for visited handling.
1307
1308 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1309
1310 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1311 iterator.
1312 (vector_fp_comparison_complex): Likewise.
1313 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1314 define_and_split.
1315 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1316 Likewise.
1317 (vector_lt<mode> for VEC_F): Refactor with
1318 vector_fp_comparison_simple.
1319 (vector_le<mode> for VEC_F): Likewise.
1320 (vector_unge<mode> for VEC_F): Likewise.
1321 (vector_unle<mode> for VEC_F): Likewise.
1322 (vector_ne<mode> for VEC_F): Likewise.
1323 (vector_ungt<mode> for VEC_F): Likewise.
1324 (vector_unlt<mode> for VEC_F): Likewise.
1325 (vector_ltgt<mode> for VEC_F): Refactor with
1326 vector_fp_comparison_complex.
1327 (vector_ordered<mode> for VEC_F): Likewise.
1328 (vector_uneq<mode> for VEC_F): Likewise.
1329 (vector_unordered<mode> for VEC_F): Likewise.
1330
1331 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1332
1333 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1334 COMPARE, representing an overflow detection.
1335
1336 * combine.c (combine_instructions): Record costs for jumps.
1337
1338 * combine.c (can_combine_p): Allow autoinc in jumps.
1339
1340 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1341
1342 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1343 * doc/invoke.texi (max-inline-insns-single-O2,
1344 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1345 early-inlining-insns-O2): Remove documentation.
1346 * ipa-fnsummary.c (analyze_function_body,
1347 compute_fn_summary): Use opt_for_fn when accessing parameters.
1348 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1349 inline_insns_auto, can_inline_edge_by_limits_p,
1350 want_early_inline_function_p, big_speedup_p,
1351 want_inline_small_function_p, want_inline_self_recursive_call_p,
1352 recursive_inlining, compute_max_insns, inline_small_functions):
1353 Likewise.
1354 * opts.c (default_options): Add -O3 defaults for
1355 OPT__param_early_inlining_insns_,
1356 OPT__param_inline_heuristics_hint_percent_,
1357 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1358 * params.opt (-param=early-inlining-insns-O2=,
1359 -param=inline-heuristics-hint-percent-O2=,
1360 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1361 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1362 -param=inline-min-speedup=, -param=inline-unit-growth=,
1363 -param=large-function-growth=, -param=large-stack-frame=,
1364 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1365 -param=max-inline-insns-recursive=,
1366 -param=max-inline-insns-recursive-auto=,
1367 -param=max-inline-insns-single=,
1368 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1369 -param=max-inline-recursive-depth=,
1370 -param=max-inline-recursive-depth-auto=,
1371 -param=min-inline-recursive-probability=,
1372 -param=partial-inlining-entry-probability=,
1373 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1374 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1375 Optimization.
1376
1377 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1378
1379 * ipa-fnsummary.c: Fix comment typos.
1380 * ipa-ref.h: Likewise.
1381 * ipa-predicate.h: Likewise.
1382 * ipa-split.c: Likewise.
1383 * ipa-inline-analysis.c: Likewise.
1384 * ipa-predicate.c: Likewise.
1385 * ipa-devirt.c: Likewise.
1386 * ipa-icf.h: Likewise.
1387 * profile-count.c: Likewise.
1388 * ipa-icf.c: Likewise.
1389 (sem_function::equals_wpa): Fix typos in dump messages.
1390 * ipa-icf-gimple.h: Fix comment typos.
1391 * ipa-inline-transform.c: Likewise.
1392 * ipa-polymorphic-call.c: Likewise.
1393 * ipa-fnsummary.h: Likewise.
1394 * ipa-inline.c: Likewise.
1395 (dump_inline_stats): Fix typo in debug dump message.
1396 * profile-count.h: Fix comment typos.
1397
1398 PR target/92615
1399 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1400 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1401 register_operand, force x into register before storing it into dest.
1402 Formatting fix.
1403
1404 PR middle-end/83859
1405 * doc/extend.texi (attribute access): Fix a typo.
1406
1407 PR rtl-optimization/92610
1408 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1409 cse_cfg_altered is set, even when tem is 0.
1410 (rest_of_handle_cse_after_global_opts): Likewise.
1411
1412 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR c++/92458
1415 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1416 tree_hash): Move to ...
1417 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1418 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1419 types.
1420 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1421
1422 PR tree-optimization/92618
1423 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1424 containing the auto_vec and a tree.
1425 (undistribute_bitref_for_vector): Handle the case when element type
1426 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1427 fixes.
1428
1429 2019-11-22 Martin Sebor <msebor@redhat.com>
1430
1431 PR middle-end/83859
1432 * attribs.h (struct attr_access): New.
1433 * attribs.c (decl_attributes): Add an informational note.
1434 * builtins.c (check_access): Make extern. Consistently set no-warning
1435 after issuing a warning. Handle calls through function pointers. Set
1436 no-warning.
1437 * builtins.h (check_access): Declare.
1438 * calls.c (rdwr_access_hash): New type.
1439 (rdwr_map): Same.
1440 (init_attr_rdwr_indices): New function.
1441 (maybe_warn_rdwr_sizes): Same.
1442 (initialize_argument_information): Call init_attr_rdwr_indices.
1443 Call maybe_warn_rdwr_sizes.
1444 (get_size_range): Avoid null argument.
1445 * doc/extend.texi (attribute access): Document new attribute.
1446
1447 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1448
1449 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1450 (ACC_LDS_SIZE): Define.
1451 (OTHER_LDS_SIZE): Define.
1452 (LDS_SIZE): Redefine using above.
1453 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1454
1455 2019-11-22 Martin Sebor <msebor@redhat.com>
1456
1457 PR middle-end/88226
1458 * builtins.c (check_nul_terminated_array): New function.
1459 (fold_builtin_0): Remove declaration.
1460 (fold_builtin_1): Same.
1461 (fold_builtin_2): Same.
1462 (fold_builtin_3): Same.
1463 (fold_builtin_strpbrk): Add argument.
1464 (fold_builtin_strspn): Same.
1465 (fold_builtin_strcspn): Same.
1466 (expand_builtin_strcat): Call it. Remove unused argument.
1467 (expand_builtin_stpncpy): Same.
1468 (expand_builtin_strncat): Same.
1469 (expand_builtin_strncpy): Same. Adjust indentation.
1470 (expand_builtin_strcmp): Same.
1471 (expand_builtin_strncmp): Same.
1472 (expand_builtin_fork_or_exec): Same.
1473 (expand_builtin): Handle more built-ins.
1474 (fold_builtin_2): Add argument.
1475 (fold_builtin_n): Make static. Add argument.
1476 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1477 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1478 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1479 (fold_call_stmt): Pass new argument to fold_builtin_n.
1480 * builtins.h: Correct a comment.
1481 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1482 check_nul_terminated_array.
1483 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1484 check_nul_terminated_array.
1485 (handle_builtin_strchr): Same.
1486 (handle_builtin_string_cmp): Same.
1487
1488 2019-11-22 Martin Sebor <msebor@redhat.com>
1489
1490 PR tree-optimization/92501
1491 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1492 handle unterminated arrays. Rename local variables for clarity.
1493
1494 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1495
1496 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1497 granulated_sgprs according to architecture.
1498
1499 2019-11-22 Jan Hubicka <jh@suse.cz>
1500
1501 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1502 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1503 (memory_block_pool::reduce_free_list): ... this one.
1504 (memory_block_pool::trim): New static function.
1505 * memory-block.h (memory_block_pool::freelist_size): New constant
1506 (memory_block_pool::clear_free_list): Rename to ...
1507 (memory_block_pool::reduce_free_list): ... this one.
1508 (memory_block_pool::trim): Declare.
1509
1510 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1511
1512 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1513 vect_cost_for_stmt.
1514 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1515 here rather than...
1516 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1517
1518 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1519
1520 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1521 (bic_cmp0_noout): New pattern.
1522 (bic_cmp0): Likewise.
1523 (neg_scc_insn): Remove pattern.
1524 (not_scc_insn): Likewise.
1525
1526 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1527
1528 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1529
1530 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1531
1532 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1533 pedwarn instead of warning_at for fallthrough not preceding a case
1534 or default label.
1535
1536 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1537
1538 PR tree-optimization/92608
1539 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1540 of dyn_cast.
1541
1542 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1543
1544 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1545 New predicate.
1546 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1547 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1548 special for FP comparisons that need a cror instruction eventually.
1549 (rs6000_emit_fp_cror): New function.
1550 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1551 instruction, for normal FP modes, with HONOR_NANS.
1552 (rs6000_emit_cbranch): Reformat.
1553 * config/rs6000/rs6000.md (fp_rev): New iterator.
1554 (fp_two): New iterator.
1555 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1556 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1557 *cbranch_2insn: New define_insn_and_split.
1558
1559 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1560
1561 PR tree-optimization/92526
1562 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1563 versioning for alignment if the accesses do not have a consistent
1564 mask, rather than asserting that the masks are consistent.
1565
1566 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1567
1568 PR tree-optimization/92595
1569 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1570 check.
1571 (vectorizable_store, vectorizable_load): Likewise.
1572
1573 2019-11-21 Jan Hubicka <jh@suse.cz>
1574
1575 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1576 (resolve_noninline_speculation, inline_small_functions): Avoid
1577 redundant updates.
1578
1579 2019-11-21 Richard Biener <rguenther@suse.de>
1580
1581 * lra.c (lra_insn_recog_data_pool): New.
1582 (free_insn_recog_data): Adjust.
1583 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1584 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1585
1586 2019-11-21 Richard Biener <rguenther@suse.de>
1587
1588 PR tree-optimization/92596
1589 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1590
1591 2019-11-21 Jan Hubicka <jh@suse.cz>
1592
1593 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1594 ready for some vectors to not be allocated.
1595 (evaluate_properties_for_edge): Document better; make
1596 known_vals and known_aggs caller allocated; avoid determining
1597 values of parameters which are not used.
1598 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1599 known_aggs.
1600 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1601 (do_estimate_edge_size): Likewise.
1602 (do_estimate_edge_hints): Likewise.
1603 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1604 values are not known.
1605 (ipa_release_agg_values): Add option to not release vector itself.
1606 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1607
1608 2019-11-21 Richard Biener <rguenther@suse.de>
1609
1610 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1611 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1612 (loop_iterator::loop_iterator): Adjust.
1613 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1614 (compute_dominance_frontiers): ... this. Hoist invariant
1615 get_immediate_dominator call.
1616 (compute_idf): Use a work-set instead of a work-list for more
1617 optimal iteration order and duplicate avoidance.
1618 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1619 the vector all the time, instead pre-allocate the vector only
1620 once.
1621 (delete_update_ssa): Simplify.
1622 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1623
1624 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1625
1626 PR tree-optimization/91355
1627 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1628 for early_bb scaled count with best_bb count comparison.
1629
1630 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1631 preffer -> prefer.
1632 * ipa-inline.c (edge_badness): Likewise.
1633 * lto-streamer.h (class lto_location_cache): Likewise.
1634 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1635 gratutious -> gratuitous.
1636
1637 2019-11-21 Richard Biener <rguenther@suse.de>
1638
1639 Revert
1640 2019-09-17 Richard Biener <rguenther@suse.de>
1641
1642 PR tree-optimization/91790
1643 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1644 use the correct DR for setting up realignment.
1645
1646 2019-11-21 Richard Biener <rguenther@suse.de>
1647
1648 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1649 (equiv_class_obstack): New.
1650 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1651 (perform_var_substitution): Initialize equiv_class_obstack.
1652 (free_var_substitution_info): Free equiv_class_obstack.
1653
1654 2019-11-20 Jan Hubicka <jh@suse.cz>
1655
1656 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1657 edge growth when callee function is very large.
1658 * ipa-inline.h (estimate_min_edge_growth): New.
1659
1660 2019-11-20 Jan Hubicka <jh@suse.cz>
1661
1662 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1663 negative time in calls summary; correct roundoff errors
1664 leading to negative times.
1665 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1666 if present.
1667 (ipa_update_overall_fn_summary): Add RESET parameter.
1668 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1669 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1670
1671 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1672
1673 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1674 def types for two-operation SLP.
1675
1676 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1677
1678 PR testsuite/92366
1679 * doc/sourcebuild.texi (vect_char_add): Document.
1680
1681 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1682
1683 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1684 * function.c (record_final_call): Record even calls that might
1685 have been in the cgraph.
1686 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1687 callees.
1688
1689 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1690
1691 * configure.ac: Use https for gcc.gnu.org
1692 * configure: Regenerated.
1693 * doc/install.texi: Use https for gcc.gnu.org.
1694 * doc/sourcebuild.texi: Likewise.
1695
1696 2019-11-20 Julian Brown <julian@codesourcery.com>
1697
1698 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1699
1700 2019-11-20 Jan Hubicka <jh@suse.cz>
1701
1702 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1703 parameter and update call_size_time_table.
1704 (ipa_fn_summary::max_size_time_table_size): New constant.
1705 (estimate_calls_size_and_time_1): Break out from ...
1706 (estimate_calls_size_and_time): ... here; implement summary production.
1707 (summarize_calls_size_and_time): New function.
1708 (ipa_call_context::estimate_size_and_time): Bypass
1709 estimate_calls_size_and_time for leaf functions.
1710 (ipa_update_overall_fn_summary): Likewise.
1711 * ipa-fnsummary.h (call_size_time_table): New.
1712 (ipa_fn_summary::account_size_time): Update prototype.
1713
1714 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1715
1716 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1717
1718 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1719
1720 PR85678
1721 * common.opt (fcommon): Change init to 1.
1722 * doc/invoke.texi (-fcommon): Update documentation.
1723
1724 2019-11-20 Jan Hubicka <jh@suse.cz>
1725
1726 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1727 to ordinary array.
1728
1729 2019-11-20 Jan Hubicka <jh@suse.cz>
1730
1731 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1732 Add allocator parameter.
1733 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1734 (fibonacci_heap<K,V>::m_allocator): New.
1735 (fibonacci_heap<K,V>::m_own_allocator): New.
1736 (fibonacci_heap<K,V>::insert): Use allocator.
1737 (fibonacci_heap<K,V>::extract_min): Likewise.
1738 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1739 allocator.
1740 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1741 on stack.
1742 * fibonacci_heap.c: Include alloc-pool
1743 (test_empty_heap): Initialize allocator.
1744 (test_union): Likewise.
1745 * bb-reorder.c: Include alloc-pool.h.
1746 * tracer.c: Inlclude alloc-pool.h.
1747
1748 2019-11-20 Jan Hubicka <jh@suse.cz>
1749
1750 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1751 Preallocate for 32 entries.
1752 (DFS::worklist): Likewise.
1753 (DFS::DFS): Do not initialize sccstack and worklist.
1754 (DFS::~DFS): Do not release sccstack.
1755
1756 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1757
1758 PR target/92573
1759 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1760 Handle UNORDERED if !HONOR_NANS.
1761
1762 2019-11-20 Jan Hubicka <jh@suse.cz>
1763
1764 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1765 (edge_badness): ... here.
1766 (inline_small_functions): Use monotonicity of badness calculation
1767 to avoid redundant updates.
1768
1769 2019-11-20 Richard Biener <rguenther@suse.de>
1770
1771 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1772 constructors we are actually analyzing.
1773 (vect_slp_check_for_constructors): Do not vectorize uniform
1774 constuctors, do not dump here.
1775
1776 2019-11-20 Richard Biener <rguenther@suse.de>
1777
1778 PR tree-optimization/92537
1779 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1780 vectorization validity check...
1781 (vect_slp_analyze_operations): ... here.
1782
1783 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1784
1785 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1786 (make_pass_arc_predicate_delay_insns): Likewise.
1787 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1788 method, remove clone.
1789 (class pass_arc_predicate_delay_insns): Likewise.
1790 (arc_init): Remove registering of ARC specific passes.
1791 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1792 * config/arc/arc-passes.def: New file.
1793
1794 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1795
1796 PR middle-end/90840
1797 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1798 and has a mode that doesn't have corresponding integral type.
1799
1800 PR target/90867
1801 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1802 clear opts->x_ix86_isa_flags{,2} here...
1803 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1804 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1805
1806 PR c/90898
1807 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1808 assertion.
1809 (insert_clobbers_for_var): Fix a typo in function comment.
1810
1811 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1812 Jakub Jelinek <jakub@redhat.com>
1813
1814 PR middle-end/91195
1815 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1816 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1817 load.
1818
1819 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1820
1821 Make 0-series device specs work with older versions of avr-gcc.
1822
1823 PR target/92545
1824 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1825 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1826 <*link_pm_base_address>: Don't write spec.
1827 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1828
1829 2019-11-20 Richard Biener <rguenther@suse.de>
1830
1831 PR c/92088
1832 * builtins.c (compute_objsize): Deal with VLAs.
1833
1834 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1835
1836 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1837 from common code.
1838 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1839 call new function.
1840 (power9_sched_reorder2): Call new function.
1841 (rs6000_sched_reorder2): Likewise.
1842
1843 2019-11-18 Jan Hubicka <jh@suse.cz>
1844
1845 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1846 (estimate_calls_size_and_time): Update.
1847
1848 2019-11-18 Jan Hubicka <jh@suse.cz>
1849
1850 * ipa-inline.c (inlining_speedup): New function.
1851 (edge_badness): Use it.
1852
1853 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1854 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1855
1856 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1857 Mark as not having "likely" version.
1858 * config/mips/mips.md (insn_count): The simd_div instruction with
1859 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1860 (can_delay): Exclude simd_branch.
1861 (defile_delay *): Add simd_branch instructions.
1862 They have one regular delay slot.
1863
1864 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1865
1866 Revert:
1867 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1868
1869 * cse.c (cse_insn): Delete no-op register moves too.
1870 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1871 Take a second comparison to control the value for NE.
1872 (mask_to_comparison): Handle unsigned comparisons.
1873 (simplify_logical_relational_operation): Likewise. Update call
1874 to comparison_to_mask. Handle AND if !HONOR_NANs.
1875 (simplify_binary_operation_1): Call the above for AND too.
1876
1877 2019-11-19 Martin Liska <mliska@suse.cz>
1878
1879 * toplev.c (general_init): Move the call...
1880 (toplev::main): ... here as we need init_options_struct
1881 being called.
1882
1883 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1884
1885 PR target/79262
1886 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1887 vec_to_scalar_cost.
1888
1889 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1890
1891 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1892 (armv7-a): Likewise.
1893 (armv7ve): Likewise.
1894
1895 2019-11-19 Richard Biener <rguenther@suse.de>
1896
1897 PR tree-optimization/92581
1898 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1899 condition reduction chains gather all conditions involved
1900 for computing the index reduction vector.
1901
1902 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1903
1904 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1905 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1906 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1907 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1908 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1909 (aarch64_init_memtag_builtins): New.
1910 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1911 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1912 (aarch64_expand_builtin_memtag): New.
1913 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1914 (AARCH64_BUILTIN_SUBCODE): New macro.
1915 (aarch64_resolve_overloaded_memtag): New.
1916 (aarch64_resolve_overloaded_builtin_general): New. Call
1917 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1918 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1919 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1920 (aarch64_resolve_overloaded_builtin): Call
1921 aarch64_resolve_overloaded_builtin_general.
1922 * config/aarch64/aarch64-protos.h
1923 (aarch64_resolve_overloaded_builtin_general): New declaration.
1924 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1925 (TARGET_MEMTAG): Likewise.
1926 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1927 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1928 (irg, gmi, subp, addg, ldg, stg): New instructions.
1929 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1930 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1931 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1932 (__arm_mte_get_tag): Likewise.
1933 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1934 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1935 * config/arm/types.md (memtag): New.
1936 * doc/invoke.texi (-memtag): Update description.
1937
1938 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1939
1940 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1941 to define __GCC_ASM_FLAG_OUTPUTS__.
1942 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1943 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1944 depending on TARGET_THUMB1.
1945 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1946
1947 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR target/92549
1950 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1951
1952 PR middle-end/91450
1953 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1954 operand is negative and one non-negative, compare the non-negative
1955 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1956 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1957 and s2 == 0, unless one of them is known to be negative. Remove
1958 tem2 variable, use tem where tem2 has been used before.
1959
1960 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1961
1962 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1963
1964 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1965
1966 PR tree-optimization/92557
1967 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1968 vmode rather than asserting it always is.
1969
1970 2019-11-19 Richard Biener <rguenther@suse.de>
1971
1972 PR tree-optimization/92554
1973 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1974 for the actual condition stmt and deal with sign-changes.
1975
1976 2019-11-19 Richard Biener <rguenther@suse.de>
1977
1978 PR tree-optimization/92555
1979 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1980 for non-SLP stmts.
1981
1982 2019-11-19 Martin Liska <mliska@suse.cz>
1983
1984 PR bootstrap/92540
1985 * config/riscv/riscv.c (riscv_address_insns): Initialize
1986 addr in order to remove boostrap -Wmaybe-uninitialized
1987 error.
1988
1989 2019-11-18 Martin Sebor <msebor@redhat.com>
1990
1991 PR tree-optimization/92493
1992 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1993 assignment.
1994
1995 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1996
1997 * cfgloop.c (get_loop_body_in_custom_order): New.
1998 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1999 * tree-loop-distribution.c (class loop_distribution): New.
2000 (bb_top_order_cmp): Remove.
2001 (bb_top_order_cmp_r): New.
2002 (create_rdg_vertices): Move into class loop_distribution.
2003 (stmts_from_loop): Same as above.
2004 (update_for_merge): Same as above.
2005 (partition_merge_into): Same as above.
2006 (get_data_dependence): Same as above.
2007 (data_dep_in_cycle_p): Same as above.
2008 (update_type_for_merge): Same as above.
2009 (build_rdg_partition_for-vertex): Same as above.
2010 (classify_builtin_ldst): Same as above.
2011 (classify_partition): Same as above.
2012 (share_memory_accesses): Same as above.
2013 (rdg_build_partitions): Same as above.
2014 (pg_add_dependence_edges): Same as above.
2015 (build_partition_graph): Same as above.
2016 (merge_dep_scc_partitions): Same as above.
2017 (break_alias_scc_partitions): Same as above.
2018 (finalize_partitions): Same as above.
2019 (distribute_loop): Same as above.
2020 (bb_top_order_init): New method
2021 (bb_top_order_destroy): New method.
2022 (get_bb_top_order_index_size): New method.
2023 (get_bb_top_order_index_index): New method.
2024 (get_bb_top_order_index_index): New method.
2025 (loop_distribution::execute): New method.
2026 (pass_loop_distribution::execute): Instantiate loop_distribution.
2027
2028 2019-11-18 Jan Hubicka <jh@suse.cz>
2029
2030 PR ipa/92508
2031 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2032 caches.
2033 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2034
2035 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2036
2037 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2038 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2039 * doc/md.texi: Document them.
2040 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2041 internal functions.
2042 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2043 * internal-fn.c (check_ptrs_direct): New macro.
2044 (expand_check_ptrs_optab_fn): Likewise.
2045 (direct_check_ptrs_optab_supported_p): Likewise.
2046 (internal_check_ptrs_fn_supported_p): New fuction.
2047 * tree-data-ref.c: Include internal-fn.h.
2048 (create_ifn_alias_checks): New function.
2049 (create_intersect_range_checks): Use it.
2050 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2051 (optab, cmp_op): Handle it.
2052 (raw_war, unspec): New int attributes.
2053 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2054 constants.
2055 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2056 New predicate.
2057 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2058 expander.
2059 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2060 pattern.
2061
2062 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2063
2064 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2065 empty constructors.
2066
2067 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 * cse.c (cse_insn): Delete no-op register moves too.
2070 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2071 Take a second comparison to control the value for NE.
2072 (mask_to_comparison): Handle unsigned comparisons.
2073 (simplify_logical_relational_operation): Likewise. Update call
2074 to comparison_to_mask. Handle AND if !HONOR_NANs.
2075 (simplify_binary_operation_1): Call the above for AND too.
2076
2077 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2078
2079 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2080 splitting the main code out into...
2081 (native_encode_vector_part): ...this new function.
2082 (native_decode_vector_tree): New function.
2083 (fold_view_convert_vector_encoding): Likewise.
2084 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2085 to VECTOR_TYPEs.
2086
2087 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2088
2089 * tree-data-ref.c (create_intersect_range_checks_index): If the
2090 alias pair describes simple WAW and WAR dependencies, just check
2091 whether the first B access overlaps later A accesses.
2092 (create_waw_or_war_checks): New function that performs the same
2093 optimization on addresses.
2094 (create_intersect_range_checks): Call it.
2095
2096 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2097
2098 * lra-constraints.c (valid_address_p): Take the operand and a
2099 constraint as argument. If the operand is a MEM and the constraint
2100 is a memory constraint, check whether the eliminated form of the
2101 MEM already satisfies the constraint.
2102 (process_address_1): Update calls accordingly.
2103
2104 2019-11-18 Tom Tromey <tromey@adacore.com>
2105
2106 * doc/tm.texi: Rebuild.
2107 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2108 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2109
2110 2019-11-18 Richard Biener <rguenther@suse.de>
2111
2112 PR tree-optimization/92516
2113 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2114 argument, hoist bst_map creation/destruction to ...
2115 (vect_analyze_slp): ... here, forming a true graph with
2116 SLP instances being the entries.
2117 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2118 (vect_detect_hybrid_slp): Use one visited set for all
2119 graph entries.
2120 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2121 to hash-sets of slp_tree.
2122 (vect_slp_analyze_operations): Likewise.
2123 (vect_bb_slp_scalar_cost): Remove wrapper.
2124 (vect_bb_vectorization_profitable_p): Use one visited set for
2125 all graph entries.
2126 (vect_schedule_slp_instance): Elide bst_map use.
2127 (vect_schedule_slp): Likewise.
2128
2129 2019-11-18 Richard Biener <rguenther@suse.de>
2130
2131 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2132 was vectorized with just external refs fail.
2133
2134 2019-11-18 Martin Liska <mliska@suse.cz>
2135
2136 PR ipa/92525
2137 * ipa-icf.c (sem_function::init): Unset m_checker
2138 at the end of the function.
2139
2140 2019-11-18 Richard Biener <rguenther@suse.de>
2141
2142 PR tree-optimization/92558
2143 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2144 reducting the width of a reduction vector def update new_phis.
2145
2146 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2147
2148 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2149 and s390*-*-linux-musl* targets.
2150 * configure: Regenerate.
2151
2152 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2153
2154 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2155 (MUSL_DYNAMIC_LINKER64): Define.
2156
2157 2019-11-18 Martin Liska <mliska@suse.cz>
2158
2159 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2160 message for an unknown counter.
2161 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2162 (dbg_cnt_process_opt): Remove unreachable code.
2163
2164 2019-11-18 Martin Liska <mliska@suse.cz>
2165
2166 PR ipa/92529
2167 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2168 Compare LHS types of NOP_EXPR.
2169
2170 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2171
2172 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2173 "initial_pass_name" argument -- by running "*clean_state" pass.
2174 Also free the "initial_pass_name" when done.
2175
2176 2019-11-18 Richard Biener <rguenther@suse.de>
2177
2178 PR rtl-optimization/92462
2179 * alias.c (find_base_term): Restrict the look through ANDs.
2180 (find_base_value): Likewise.
2181
2182 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2183
2184 Add support for AVR devices from the 0-series.
2185
2186 PR target/92545
2187 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2188 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2189 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2190 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2191 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2192 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2193 for spec definitions.
2194 * doc/avr-mmcu.texi: Regenerate.
2195
2196 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2197
2198 PR target/92448
2199 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2200 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2201 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2202 (ix86_reassociation_width): Ditto.
2203 * config/i386/i386-options.c (ix86_option_override_internal):
2204 Replace TARGET_AVX128_OPTIAML with
2205 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2206 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2207 (TARGET_AVX128_OPTIMAL): Deleted.
2208 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2209 DEF_TUNE.
2210
2211 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2212
2213 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2214 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2215 just SI.
2216 (cceq_rev_compare): Rename to...
2217 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2218 just SI.
2219 (define_split for <bd>tf_<mode>): Add SImode first argument to
2220 gen_cceq_ior_compare.
2221
2222 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2223
2224 * common/config/powerpcspe: Delete.
2225
2226 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2227
2228 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2229 output in UNSPEC_WRFFR.
2230
2231 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2232
2233 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2234 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2235
2236 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2237
2238 * tree-data-ref.c (create_intersect_range_checks_index)
2239 (create_intersect_range_checks): Print dump messages.
2240
2241 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2242
2243 * tree-data-ref.c (dump_alias_pair): New function.
2244 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2245
2246 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2247
2248 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2249 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2250 merging data references with different steps.
2251 (create_intersect_range_checks_index): Take a
2252 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2253 Bail out if DR_ALIAS_MIXED_STEPS is set.
2254 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2255 instead of two dr_with_seg_lens. Update call to
2256 create_intersect_range_checks_index.
2257 (create_runtime_alias_checks): Update call accordingly.
2258
2259 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2260
2261 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2262 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2263 (dr_with_seg_len_pair_t::sequencing): New enum.
2264 (dr_with_seg_len_pair_t::flags): New member variable.
2265 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2266 parameter and initialize the flags member variable.
2267 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2268 call accordingly.
2269 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2270 Ensure the two data references in an alias pair are in statement
2271 order, if there is a defined order.
2272 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2273 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2274 swapped the references in a dr_with_seg_len_pair_t. OR together
2275 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2276 try to restore the original dr_with_seg_len order, updating the
2277 flags if that fails.
2278
2279 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2280
2281 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2282 swapping the dr_as based on init values until we've decided
2283 whether to merge them.
2284
2285 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2286
2287 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2288 two accesses in each dr_with_seg_len_pair_t before trying to
2289 combine separate dr_with_seg_len_pair_ts.
2290 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2291 that here.
2292 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2293
2294 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2295
2296 * config/aarch64/aarch64-sve.md
2297 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2298 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2299 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2300 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2301 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2302 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2303 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2304 pattern.
2305 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2306 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2307 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2308 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2309
2310 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2311
2312 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2313 (SVE_4HSI): New mode iterators.
2314 (ANY_EXTEND2): New code iterator.
2315 * config/aarch64/aarch64-sve.md
2316 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2317 Extend to...
2318 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2319 ...this, handling extension to partial modes as well as full modes.
2320 Describe the extension as a predicated rather than unpredicated
2321 extension.
2322 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2323 Likewise extend to...
2324 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2325 ...this, making the same adjustments.
2326 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2327 Likewise extend to...
2328 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2329 ...this, making the same adjustments.
2330 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2331 Likewise extend to...
2332 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2333 ...this, making the same adjustments.
2334 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2335 New pattern.
2336 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2337 extension predicate.
2338 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2339 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2340 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2341 Describe the extension as a predicated rather than unpredicated
2342 extension.
2343 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2344 Likewise. Canonicalize to a constant extension predicate.
2345 * config/aarch64/aarch64-sve-builtins-base.cc
2346 (svld1_gather_extend_impl::expand): Add an extra predicate for
2347 the extension.
2348 (svldff1_gather_extend_impl::expand): Likewise.
2349
2350 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2351
2352 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2353 iterators.
2354 * config/aarch64/aarch64-sve.md
2355 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2356 (gather_load<SVE_24:mode><v_int_container>): ...this.
2357 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2358 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2359 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2360 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2361 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2362 New pattern.
2363 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2364 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2365 Allow the nominal extension predicate to be different from the
2366 load predicate.
2367 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2368 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2369
2370 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2371
2372 * config/aarch64/aarch64-sve.md
2373 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2374 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2375 function.
2376 (aarch64_sve_adjust_stmt_cost): Call it.
2377
2378 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2379
2380 * config/aarch64/aarch64-sve.md
2381 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2382 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2383 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2384 Combine into...
2385 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2386 ...this new pattern, handling extension to partial modes as well
2387 as full modes. Describe the extension as a predicated rather than
2388 unpredicated extension.
2389 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2390 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2391 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2392 Combine into...
2393 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2394 ...this new pattern, handling extension to partial modes as well
2395 as full modes. Describe the extension as a predicated rather than
2396 unpredicated extension.
2397 * config/aarch64/aarch64-sve-builtins.cc
2398 (function_expander::use_contiguous_load_insn): Add an extra
2399 predicate for extending loads.
2400 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2401 (aarch64_sve_adjust_stmt_cost): Likewise.
2402 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2403 the cost of SVE vector stmts.
2404
2405 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2406
2407 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2408 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2409 * config/aarch64/aarch64-sve.md
2410 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2411 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2412 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2413 comment. Avoid new narrower_mask ambiguity.
2414 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2415 (*cond_uxt<mode>_2): Update comment.
2416 (*cond_uxt<mode>_any): Likewise.
2417
2418 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2419
2420 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2421 float modes.
2422 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2423 function.
2424 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2425 new vector float modes.
2426 (aarch64_sve_container_bits): New function.
2427 (aarch64_sve_pred_mode): Likewise.
2428 (aarch64_get_mask_mode): Use it.
2429 (aarch64_sve_element_int_mode): Handle structure modes and partial
2430 modes.
2431 (aarch64_sve_container_int_mode): New function.
2432 (aarch64_vectorize_related_mode): Return SVE modes when given
2433 SVE modes. Handle partial modes, taking the preferred number
2434 of units from the size of the given mode.
2435 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2436 in registers.
2437 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2438 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2439 (aarch64_split_sve_subreg_move): Use the mode form of
2440 aarch64_sve_pred_mode.
2441 (aarch64_secondary_reload): Handle partial modes in the same way
2442 as full big-endian vectors.
2443 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2444 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2445 merging with the Advanced SIMD modes. If two modes have the
2446 same size, try the Advanced SIMD mode first.
2447 (aarch64_simd_valid_immediate): Use the container rather than
2448 the element mode for INDEX constants.
2449 (aarch64_simd_vector_alignment): Make the alignment of partial
2450 SVE vector modes the same as their minimum size.
2451 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2452 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2453 (mov<SVE_ALL:mode>): ...this.
2454 (movmisalign<SVE_FULL:mode>): Extend to...
2455 (movmisalign<SVE_ALL:mode>): ...this.
2456 (*aarch64_sve_mov<mode>_le): Rename to...
2457 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2458 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2459 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2460 partial modes regardless of endianness.
2461 (aarch64_sve_reload_be): Rename to...
2462 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2463 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2464 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2465 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2466 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2467 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2468 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2469 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2470 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2471 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2472 (maskload<SVE_FULL:mode><vpred>): Extend to...
2473 (maskload<SVE_ALL:mode><vpred>): ...this.
2474 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2475 (maskstore<SVE_ALL:mode><vpred>): ...this.
2476 (vec_duplicate<SVE_FULL:mode>): Extend to...
2477 (vec_duplicate<SVE_ALL:mode>): ...this.
2478 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2479 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2480 (sve_ld1r<SVE_FULL:mode>): Extend to...
2481 (sve_ld1r<SVE_ALL:mode>): ...this.
2482 (vec_series<SVE_FULL_I:mode>): Extend to...
2483 (vec_series<SVE_I:mode>): ...this.
2484 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2485 (*vec_series<SVE_I:mode>_plus): ...this.
2486 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2487 new VPRED ambiguity.
2488 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2489 (add<SVE_FULL_I:mode>3): Extend to...
2490 (add<SVE_I:mode>3): ...this.
2491 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2492 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2493 (VPRED, vpred): Likewise.
2494 (Vctype): New iterator.
2495 (vw): Remove SVE modes.
2496
2497 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2498
2499 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2500 (SVE_PARTIAL_I): ...this.
2501 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2502
2503 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2504
2505 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2506 (SVE_FULL): ...this.
2507 (SVE_I): Rename to...
2508 (SVE_FULL_I): ...this.
2509 (SVE_F): Rename to...
2510 (SVE_FULL_F): ...this.
2511 (SVE_BHSI): Rename to...
2512 (SVE_FULL_BHSI): ...this.
2513 (SVE_HSD): Rename to...
2514 (SVE_FULL_HSD): ...this.
2515 (SVE_HSDI): Rename to...
2516 (SVE_FULL_HSDI): ...this.
2517 (SVE_HSF): Rename to...
2518 (SVE_FULL_HSF): ...this.
2519 (SVE_SD): Rename to...
2520 (SVE_FULL_SD): ...this.
2521 (SVE_SDI): Rename to...
2522 (SVE_FULL_SDI): ...this.
2523 (SVE_SDF): Rename to...
2524 (SVE_FULL_SDF): ...this.
2525 (SVE_S): Rename to...
2526 (SVE_FULL_S): ...this.
2527 (SVE_D): Rename to...
2528 (SVE_FULL_D): ...this.
2529 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2530 * config/aarch64/aarch64-sve2.md: Likewise.
2531
2532 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2533
2534 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2535 New option.
2536 * doc/invoke.texi: Document it.
2537 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2538 By default, return VECT_COMPARE_COSTS for SVE.
2539
2540 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2541
2542 * target.h (VECT_COMPARE_COSTS): New constant.
2543 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2544 * doc/tm.texi: Regenerate.
2545 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2546 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2547 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2548 Likewise.
2549 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2550 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2551 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2552 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2553 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2554 (_loop_vec_info::vec_inside_cost): New member variables.
2555 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2556 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2557 (vect_analyze_loop): When autovectorize_vector_modes returns
2558 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2559 vector mode and picking the one with the lowest cost.
2560 (vect_estimate_min_profitable_iters): Record the computed costs
2561 in the loop_vec_info.
2562
2563 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2564
2565 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2566 element type rather than an element mode.
2567 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2568 Use get_vectype_for_scalar_type to query the natural types
2569 for a given element type rather than basing everything on
2570 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2571 query to MAX_FIXED_MODE_SIZE.
2572 (duplicate_and_interleave): Update call accordingly.
2573 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2574
2575 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2576
2577 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2578 optional maximum nunits.
2579 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2580 takes an slp_tree.
2581 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2582 (vect_get_mask_type_for_stmt): Likewise.
2583 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2584 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2585 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2586 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2587 to get an assumed vector type for data references.
2588 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2589 (vect_update_all_shared_vectypes): Likewise.
2590 (vect_build_slp_tree_1): Pass the group size to
2591 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2592 for BB vectorization.
2593 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2594 before building the vectof from scalars.
2595 (vect_analyze_slp_instance): Pass the group size to
2596 get_vectype_for_scalar_type.
2597 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2598 types for BB vectorization here; just handle the case in which
2599 we deferred the choice for booleans.
2600 (vect_get_constant_vectors): Pass the slp_tree to
2601 get_vectype_for_scalar_type.
2602 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2603 (vectorizable_call): Likewise.
2604 (vectorizable_simd_clone_call): Likewise.
2605 (vectorizable_conversion): Likewise.
2606 (vectorizable_shift): Likewise.
2607 (vectorizable_operation): Likewise.
2608 (vectorizable_comparison): Likewise.
2609 (vect_is_simple_cond): Take the slp_tree as argument and
2610 pass it to get_vectype_for_scalar_type.
2611 (vectorizable_condition): Update call accordingly.
2612 (get_vectype_for_scalar_type): Take a group_size argument.
2613 For BB vectorization, limit the the vector to that number
2614 of elements. Also define an overload that takes an slp_tree.
2615 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2616 pass it to get_vectype_for_scalar_type.
2617 (vect_get_vector_types_for_stmt): Add a group_size argument
2618 and pass it to get_vectype_for_scalar_type. Don't use the
2619 cached vector type for BB vectorization if a group size is given.
2620 Handle data references in that case.
2621 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2622 pass it to get_mask_type_for_scalar_type.
2623
2624 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2625
2626 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2627 parameter.
2628 (estimate_edge_time): Use it.
2629 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2630 ret_nonspec_time parameter.
2631
2632 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2633
2634 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2635
2636 2019-11-15 Nick Clifton <nickc@redhat.com>
2637 Szabolcs Nagy <szabolcs.nagy@arm.com>
2638
2639 PR target/65649
2640 * config/microblaze/microblaze.c (print_operand): Print value as long.
2641
2642 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2643
2644 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2645 accidental commit.
2646
2647 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2648
2649 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2650 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2651
2652 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2653
2654 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2655 (gcn_conditional_register_usage): Use constants in place of hard-coded
2656 values.
2657 (gcn_hsa_declare_function_name): Set lower bound for number of
2658 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2659 MAX_NORMAL_VGPR_COUNT.
2660
2661 2019-11-15 Martin Jambor <mjambor@suse.cz>
2662
2663 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2664 declaration.
2665
2666 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2667
2668 * config/gcn/gcn.c (default_requested_args): New.
2669 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2670 set with default_requested_args.
2671 (gcn_conditional_register_usage): Limit register usage of non-kernel
2672 functions. Reassign fixed registers if a non-standard set of args is
2673 requested.
2674 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2675
2676 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2677
2678 PR ipa/92528
2679 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2680 aggregate jump function when inlined-to caller has no edge summary.
2681
2682 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2683
2684 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2685
2686 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2687
2688 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2689 prologue use of v0.
2690 (print_operand_address): Use v1 for zero vector offset.
2691
2692 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2693
2694 PR tree-optimization/92515
2695 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2696 types when converting a vector/scalar shift into a vector/vector one,
2697 using tree_nop_conversion_p instead of useless_type_conversion_p.
2698 Move the conversion code to the transform block.
2699
2700 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2701
2702 * read-rtl-function.c
2703 (function_reader::add_fixup_source_location): Take additional
2704 parameter of a column.
2705 (function_reader::maybe_read_location): Optionally parse column
2706 information and pass to add_fixup_source_location.
2707
2708 2019-11-15 Richard Biener <rguenther@suse.de>
2709
2710 PR tree-optimization/92512
2711 * tree-vect-loop.c (check_reduction_path): Fix operand index
2712 computability check. Add check for second use in COND_EXPRs.
2713
2714 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2715
2716 PR target/92515
2717 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2718 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2719
2720 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2721
2722 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2723 register class for VCC_LO and VCC_HI.
2724 (gcn_spill_class): Use SGPR_REGS to spill registers in
2725 VCC_CONDITIONAL_REG.
2726
2727 2019-11-15 Richard Biener <rguenther@suse.de>
2728
2729 PR tree-optimization/92324
2730 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2731 singedness of SLP reduction epilouge operations. Also reduce
2732 the vector width for SLP reductions before doing elementwise
2733 operations if possible.
2734
2735 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2736
2737 * passes.c (skip_pass): Set epilogue_completed if skipping the
2738 pro_and_epilogue pass.
2739
2740 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2741
2742 * passes.c (should_skip_pass_p): Always run "dfinish".
2743
2744 2019-11-15 Richard Biener <rguenther@suse.de>
2745
2746 * ipa-inline.c (inline_small_functions): Move assignment
2747 to next before call destroying edge.
2748
2749 2019-11-15 Richard Biener <rguenther@suse.de>
2750
2751 PR tree-optimization/92039
2752 PR tree-optimization/91975
2753 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2754 previous change, treat invariants consistently as non-constant.
2755 (tree_estimate_loop_size): Ternary ops with just the first op
2756 constant are not optimized away.
2757
2758 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2759
2760 * gimplify.c (gimplify_call_expr): Don't call
2761 omp_resolve_declare_variant after gimplification.
2762 * omp-general.c (omp_context_selector_matches): For isa that might
2763 match in some other function, defer if in declare simd function.
2764 (omp_context_compute_score): Don't look for " score" in construct
2765 trait set. Set *score to -1 if it can't ever match.
2766 (omp_resolve_declare_variant): If any variants need to be deferred,
2767 don't punt immediately, but compute scores of all variants and if
2768 ther eis a score winner that doesn't need to be deferred, return that.
2769
2770 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2771
2772 * ipa-comdats.c: Fix comments typo.
2773 * ipa-profile.c: Fix comments typo.
2774 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2775 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2776 (gimple_gen_ic_func_profiler): Likewise.
2777 (pass_ipa_tree_profile::gate): Fix comments typo.
2778
2779 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2780
2781 * ipa-inline.c (inline_small_functions): Update iterator of next.
2782
2783 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2784
2785 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2786 register is suitable for the mode.
2787
2788 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2789
2790 * range-op.h (range_operator::fold_range): Return a bool.
2791 * range-op.cc (range_operator::wi_fold): Assert supported type.
2792 (range_operator::fold_range): Assert supported type and return true.
2793 (operator_equal::fold_range): Return true.
2794 (operator_not_equal::fold_range): Same.
2795 (operator_lt::fold_range): Same.
2796 (operator_le::fold_range): Same.
2797 (operator_gt::fold_range): Same.
2798 (operator_ge::fold_range): Same.
2799 (operator_plus::op1_range): Adjust call to fold_range.
2800 (operator_plus::op2_range): Same.
2801 (operator_minus::op1_range): Same.
2802 (operator_minus::op2_range): Same.
2803 (operator_exact_divide::op1_range): Same.
2804 (operator_lshift::fold_range): Return true and adjust fold_range call.
2805 (operator_rshift::fold_range): Same.
2806 (operator_cast::fold_range): Return true.
2807 (operator_logical_and::fold_range): Same.
2808 (operator_logical_or::fold_range): Same.
2809 (operator_logical_not::fold_range): Same.
2810 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2811 (operator_bitwise_not::op1_range): Same.
2812 (operator_cst::fold_range): Return true.
2813 (operator_identity::fold_range): Return true.
2814 (operator_negate::fold_range): Return true and adjust fold_range call.
2815 (operator_addr_expr::fold_range): Return true.
2816 (operator_addr_expr::op1_range): Adjust call to fold_range.
2817 (range_cast): Same.
2818 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2819 (range_fold_unary_symbolics_p): Same.
2820
2821 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2822
2823 PR tree-optimization/92506
2824 * range-op.cc (range_operator::fold_range): Start with range undefined.
2825 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2826 overflow is varying.
2827
2828 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2829
2830 * range-op.cc (*operator*::*range): Remove calls to
2831 range_intersect, range_invert, and range_union in favor of calling
2832 the in-place API methods.
2833 (range_tests): Same.
2834 * range.cc (range_intersect): Remove.
2835 (range_union): Remove.
2836 (range_invert): Remove.
2837 * range.h (range_intersect): Remove.
2838 (range_union): Remove.
2839 (range_intersect): Remove.
2840
2841 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2842
2843 PR rtl-optimization/92430
2844 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2845 (pass_jump_after_combine::execute): Perform jump threading
2846 unconditionally.
2847
2848 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2849 Doug Rupp <rupp@adacore.com>
2850 Olivier Hainque <hainque@adacore.com>
2851
2852 * config.gcc: Collapse the arm-vxworks entries into
2853 a single arm-wrs-vxworks7* one, bpabi based. Update
2854 the default cpu from arm8 to armv7-a
2855 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2856 we always use ARM_UNWIND_INFO.
2857 (DWARF2_UNWIND_INFO): Remove redefinition.
2858 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2859 (VXWORKS_PERSONALITY): Define, to "llvm".
2860 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2861
2862 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2863
2864 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2865 _VX_CPU instead of CPU and handle arm_arch8.
2866
2867 2019-11-14 Doug Rupp <rupp@adacore.com>
2868 Olivier Hainque <hainque@adacore.com>
2869 Jerome Lambourg <lambourg@adacore.com>
2870
2871 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2872 * config/aarch64/aarch64-vxworks.h: New file.
2873 * config/aarch64/t-aarch64-vxworks: New file.
2874
2875 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2876 Olivier Hainque <hainque@adacore.com>
2877
2878 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2879 definition, pointless with a VxWorks specific version
2880 of crtstuff.
2881 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2882 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2883 New local macros, controlling the addition of vxworks specific
2884 crtstuff objects depending on the EH mechanism and kind of
2885 module being linked.
2886 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2887
2888 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2889 Jerome Lambourg <lambourg@adacore.com>
2890 Olivier Hainque <hainque@adacore.com>
2891
2892 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2893 common macro definitions, conveying VXWORKS7 or 64bit general
2894 variations. Add a block to set gcc_cv_initfini_array
2895 unconditionally to "yes" for VxWorks7.
2896 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2897 by default. Update some comments.
2898 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2899 default, to be added the end of VXWORKS_LIBS_RTP.
2900 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2901 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2902 redefine.
2903 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2904 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2905 to account for the now available TLS abilities.
2906 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2907 (VXWORKS_HAVE_TLS): Likewise.
2908
2909 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2910
2911 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2912 (vect_slp_convert_to_external): Likewise.
2913 (vect_slp_analyze_node_operations): If analysis fails, try building
2914 the node from scalars instead.
2915
2916 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2917
2918 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2919 between vector types.
2920 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2921 non-widening and non-narrowing path to handle standard
2922 conversion codes, if the target supports them.
2923 * expr.c (convert_move): Try using the extend and truncate optabs
2924 for vectors.
2925 * optabs-tree.c (supportable_convert_operation): Likewise.
2926 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2927 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2928 (trunc<mode><Vnarrowq>2): New patterns.
2929
2930 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2931
2932 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2933 require vectype and nunits_vectype to have the same size;
2934 instead assert that nunits_vectype has at least as many
2935 elements as vectype. Don't compute a separate nunits_vectype
2936 if the scalar type is obviously the same as vectype's.
2937 Tweak dump messages.
2938
2939 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2940
2941 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2942 function.
2943 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2944 (TARGET_VECTORIZE_RELATED_MODE): Define.
2945
2946 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2947
2948 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2949 (vec_info::used_vector_mode): New member variable.
2950 (vect_chooses_same_modes_p): Declare.
2951 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2952 chosen vector mode in vec_info::used_vector_mode.
2953 (vect_chooses_same_modes_p): New function.
2954 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2955 the same vector statements multiple times.
2956 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2957
2958 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2959
2960 * machmode.h (opt_machine_mode::operator==): New function.
2961 (opt_machine_mode::operator!=): Likewise.
2962 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2963 (get_related_vectype_for_scalar_type): Delete.
2964 (get_vectype_for_scalar_type_and_size): Declare.
2965 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2966 whether analysis passed or failed, and with what vector modes.
2967 Use related_vector_mode to check whether trying a particular
2968 vector mode would be redundant with the autodetected mode,
2969 and print a dump message if we decide to skip it.
2970 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2971 (vect_create_epilog_for_reduction): Use
2972 get_related_vectype_for_scalar_type instead of
2973 get_vectype_for_scalar_type_and_size.
2974 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2975 with...
2976 (get_related_vectype_for_scalar_type): ...this new function.
2977 Take a starting/"prevailing" vector mode rather than a vector size.
2978 Take an optional nunits argument, with the same meaning as for
2979 related_vector_mode. Use related_vector_mode when not
2980 auto-detecting a mode, falling back to mode_for_vector if no
2981 target mode exists.
2982 (get_vectype_for_scalar_type): Update accordingly.
2983 (get_same_sized_vectype): Likewise.
2984 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2985
2986 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2987
2988 * tree-vect-stmts.c (vectorizable_call): Require the types
2989 to have the same size.
2990
2991 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2992
2993 * tree-vect-stmts.c (vectorizable_call): If an operand is
2994 constant or external, use get_vectype_for_scalar_type
2995 rather than get_same_sized_vectype to get its vector type.
2996 (vectorizable_conversion, vectorizable_shift): Likewise.
2997 (vectorizable_operation): Likewise.
2998
2999 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3000
3001 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3002 (vec_info::vector_mode): ...this new field.
3003 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3004 (vect_analyze_loop, vect_transform_loop): Likewise.
3005 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3006 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3007 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3008 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3009 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3010
3011 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3012
3013 * target.h (vector_sizes, auto_vector_sizes): Delete.
3014 (vector_modes, auto_vector_modes): New typedefs.
3015 * target.def (autovectorize_vector_sizes): Replace with...
3016 (autovectorize_vector_modes): ...this new hook.
3017 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3018 Replace with...
3019 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3020 * doc/tm.texi: Regenerate.
3021 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3022 (default_autovectorize_vector_modes): New function.
3023 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3024 (default_autovectorize_vector_modes): New function.
3025 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3026 of autovectorize_vector_sizes. Use the number of units in the mode
3027 to calculate the maximum VF.
3028 * omp-low.c (omp_clause_aligned_alignment): Use
3029 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3030 Use a loop based on related_mode to iterate through all supported
3031 vector modes for a given scalar mode.
3032 * optabs-query.c (can_vec_mask_load_store_p): Use
3033 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3034 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3035 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3036 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3037 Replace with...
3038 (aarch64_autovectorize_vector_modes): ...this new function.
3039 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3040 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3041 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3042 (arc_autovectorize_vector_modes): ...this new function.
3043 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3044 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3045 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3046 (arm_autovectorize_vector_modes): ...this new function.
3047 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3048 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3049 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3050 (ix86_autovectorize_vector_modes): ...this new function.
3051 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3052 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3053 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3054 (mips_autovectorize_vector_modes): ...this new function.
3055 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3056 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3057
3058 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3059
3060 * tree-vect-stmts.c (vectorizable_shift): Check the number
3061 of vector elements as well as the type mode when deciding
3062 whether an op1_vectype is compatible. Reuse the result of
3063 this check when generating vector statements.
3064
3065 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3066
3067 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3068 targetm.vectorize.preferred_simd_mode returns an integer mode,
3069 use mode_for_vector to decide what the vector type's mode
3070 should actually be. Use build_vector_type_for_mode instead
3071 of build_vector_type.
3072
3073 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3074
3075 * target.def (get_mask_mode): Take a vector mode itself as argument,
3076 instead of properties about the vector mode.
3077 * doc/tm.texi: Regenerate.
3078 * targhooks.h (default_get_mask_mode): Update to reflect new
3079 get_mode_mask interface.
3080 * targhooks.c (default_get_mask_mode): Likewise. Use
3081 related_int_vector_mode.
3082 * optabs-query.c (can_vec_mask_load_store_p): Update call
3083 to get_mask_mode.
3084 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3085 first that the original mode really is a vector.
3086 * tree.c (build_truth_vector_type_for): Likewise.
3087 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3088 get_mode_mask interface.
3089 (aarch64_expand_sve_vcond): Update call accordingly.
3090 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3091 get_mode_mask interface.
3092 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3093
3094 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3095
3096 * tree.h (build_truth_vector_type): Delete.
3097 (build_same_sized_truth_vector_type): Likewise.
3098 * tree.c (build_truth_vector_type): Rename to...
3099 (build_truth_vector_type_for): ...this. Make static and take
3100 a vector type as argument.
3101 (truth_type_for): Update accordingly.
3102 (build_same_sized_truth_vector_type): Delete.
3103 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3104 instead of build_same_sized_truth_vector_type.
3105 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3106 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3107 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3108 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3109 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3110 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3111 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3112 (vectorizable_store, vectorizable_condition): Likewise.
3113 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3114 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3115 build_truth_vector_type.
3116 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3117 Use truth_type_for instead of build_same_sized_truth_vector_type.
3118 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3119
3120 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3121
3122 * tree.h (build_truth_vector_type_for_mode): Declare.
3123 * tree.c (build_truth_vector_type_for_mode): New function,
3124 split out from...
3125 (build_truth_vector_type): ...here.
3126 (build_opaque_vector_type): Fix head comment.
3127 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3128 vec_info parameter.
3129 (vect_halve_mask_nunits): Replace vec_info parameter with the
3130 mode of the new vector.
3131 (vect_double_mask_nunits): Likewise.
3132 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3133 (vect_double_mask_nunits): Likewise.
3134 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3135 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3136 to vect_halve_mask_nunits, getting the required mode from the unpack
3137 patterns.
3138 (vect_set_loop_condition_masked): Update call accordingly.
3139 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3140 parameter and update call to vect_double_mask_nunits.
3141 (vectorizable_conversion): Update call accordingly.
3142 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3143 (vectorizable_call): Update call accordingly.
3144 (supportable_widening_operation): Update call to
3145 vect_halve_mask_nunits.
3146 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3147 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3148
3149 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3150
3151 * machmode.h (mode_for_int_vector): Delete.
3152 (related_int_vector_mode): Declare.
3153 * stor-layout.c (mode_for_int_vector): Delete.
3154 (related_int_vector_mode): New function.
3155 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3156 instead of mode_for_int_vector.
3157 (expand_vec_perm_const): Likewise.
3158 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3159 (aarch64_evpc_sve_tbl): Likewise.
3160 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3161 (s390_expand_vcond): Likewise.
3162
3163 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3164
3165 * target.def (related_mode): New hook.
3166 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3167 * doc/tm.texi: Regenerate.
3168 * targhooks.h (default_vectorize_related_mode): Declare.
3169 * targhooks.c (default_vectorize_related_mode): New function.
3170 * machmode.h (related_vector_mode): Declare.
3171 * stor-layout.c (related_vector_mode): New function.
3172 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3173 * optabs-query.c (qimode_for_vec_perm): Likewise.
3174 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3175 (vectorizable_store, vectorizable_load): Likewise
3176
3177 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3178
3179 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3180 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3181 * config/arm/arm-c.c (arm_cpu_builtins): Define
3182 __GCC_ASM_FLAG_OUTPUTS__.
3183 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3184 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3185 Define __GCC_ASM_FLAG_OUTPUTS__.
3186 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3187 * doc/extend.texi (FlagOutputOperands): Add documentation
3188 for ARM and AArch64.
3189
3190 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3191 * config/arm/predicates.md (nz_comparison_operator): Rename
3192 from noov_comparison_operator.
3193 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3194 (arm_gen_dicompare_reg): Likewise.
3195 (maybe_get_arm_condition_code): Likewise.
3196 (thumb1_final_prescan_insn): Likewise.
3197 (arm_emit_coreregs_64bit_shift): Likewise.
3198 * config/arm/arm.md (addsi3_compare0): Likewise.
3199 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3200 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3201 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3202 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3203 (*mulsi3addsi_compare0_scratch): Likewise.
3204 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3205 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3206 (*zeroextractsi_compare0_scratch): Likewise.
3207 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3208 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3209 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3210 (andsi_not_shiftsi_si_scc): Likewise.
3211 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3212 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3213 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3214 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3215 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3216 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3217 (return_addr_mask, *check_arch2): Likewise.
3218 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3219 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3220 (compare_scc splitters): Likewise.
3221 (movcond_addsi): Likewise.
3222 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3223 (*thumb2_addsi3_compare0_scratch): Likewise.
3224 (*thumb2_mulsi_short_compare0): Likewise.
3225 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3226 (compare peephole2s): Likewise.
3227 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3228 nz_comparison_operator names.
3229 (cbranchsi4_insn): Likewise.
3230
3231 * config/arm/constraints.md (c): Use cc_register predicate.
3232
3233 * config/aarch64/constraints.md (c): New constraint.
3234
3235 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3236
3237 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3238 ipa_merge_fn_summary_after_inlining): Micro optimize.
3239
3240 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3241
3242 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3243
3244 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3245
3246 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3247 (ipa_value_range_from_jfunc): New function.
3248 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3249 known_value_ranges parameter; use it to evalulate conditions.
3250 (evaluate_properties_for_edge): Compute known value ranges.
3251 (ipa_fn_summary_t::duplicate): Update use of
3252 evaluate_conditions_for_known_args.
3253 (estimate_ipcp_clone_size_and_time): Likewise.
3254 (ipa_merge_fn_summary_after_inlining): Likewise.
3255 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3256
3257 2019-11-14 Martin Liska <mliska@suse.cz>
3258
3259 * ipa-inline.c (want_inline_small_function_p): Use
3260 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3261 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3262
3263 2019-11-14 Martin Liska <mliska@suse.cz>
3264
3265 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3266 of a callee to get value of the param.
3267 * ipa-inline.c (inline_insns_auto): Use proper
3268 opt_for_fn.
3269 * opts.c (maybe_default_option): Do not overwrite param
3270 value if optimization level does not match. Note that
3271 params usually have default value set via Init() keyword.
3272 * params.opt: Remove -param=max-inline-insns-auto-O2.
3273 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3274 * doc/invoke.texi: Remove documentation of
3275 max-inline-insns-auto-O2.
3276
3277 2019-11-14 Martin Liska <mliska@suse.cz>
3278
3279 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3280 Do not initialize m_other_count.
3281 (switch_conversion::collect): Do not count m_default_count and
3282 m_other_count as we use frequencies for edges.
3283 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3284
3285 2019-11-14 Martin Liska <mliska@suse.cz>
3286
3287 PR other/92329
3288 * doc/invoke.texi: Document -fallocation-dce.
3289
3290 2019-11-14 Martin Liska <mliska@suse.cz>
3291
3292 PR target/92389
3293 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3294 PTA_ICELAKE_CLIENT which is later interited by
3295 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3296
3297 2019-11-14 Martin Liska <mliska@suse.cz>
3298
3299 * ipa-icf.c (sem_item_optimizer::execute): Save
3300 loaded_symbols.
3301 (sem_item_optimizer::parse_nonsingleton_classes):
3302 Return number of loaded symbols.
3303 (sem_item_optimizer::merge_classes): Print
3304 statistics about totally needed symbols.
3305 * ipa-icf.h (parse_nonsingleton_classes): Change return
3306 type.
3307 (merge_classes): Add one argument.
3308
3309 2019-11-14 Martin Liska <mliska@suse.cz>
3310
3311 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3312 func_checker::hash_operand by handling of FIELD_DECLs.
3313
3314 2019-11-14 Martin Liska <mliska@suse.cz>
3315
3316 * ipa-icf-gimple.h (func_checker::func_checker): Add
3317 default constructor.
3318 * ipa-icf.c (sem_function::init): Make operand_equal_p
3319 and hash_operand public.
3320 (sem_item::add_expr): Remove.
3321 (sem_item::add_type): Remove.
3322 (sem_function::hash_stmt): Use m_checker for hashing
3323 of GIMPLE statements.
3324 (sem_function::parse): Init with checker.
3325 (sem_variable::parse): Pass NULL as checker.
3326 (sem_item_optimizer::parse_funcs_and_vars):
3327 Pass checker to ::parse function.
3328 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3329 (sem_variable::parse): New function.
3330 (sem_variable::get_hash): Only return computed hash value.
3331 (sem_variable::init): Initialize hash of a variable.
3332 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3333 to couple of functions as a new argument.
3334
3335 2019-11-14 Martin Liska <mliska@suse.cz>
3336
3337 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3338 bail out reason.
3339 (func_checker::compare_gimple_assign): Likewise.
3340
3341 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3342
3343 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3344 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3345 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3346
3347 * omp-general.c (omp_context_name_list_prop): New function.
3348 (omp_context_selector_matches): Use it. Return 0 if it returns
3349 NULL.
3350 (omp_context_selector_props_compare): Allow equivalency of an
3351 identifier and a string literal containing no embedded zeros.
3352
3353 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3354
3355 * range-op.cc (RANGE3): Remove.
3356 (range_tests): Remove all selftest that check for multi-ranges.
3357 Put tests in namespace selftest.
3358 * selftest.h: Move range_tests into namespace selftest.
3359 * value-range.h (class value_range): Unfriend range_tests.
3360
3361 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3362
3363 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3364 normalize_symbolics and normalize_addresses working in place.
3365 (range_fold_unary_symbolics_p): Same.
3366 (range_fold_unary_symbolics_p): Same.
3367 * value-range.cc (num_pairs): Same.
3368 (lower_bound): Same.
3369 (upper_bound): Same.
3370 (contains_p): Same.
3371 (normalize_addresses): Same.
3372 (normalize_symbolics): Same.
3373 * value-range.h (normalize_symbolics): Same.
3374 (normalize_addresses): Same.
3375
3376 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3377
3378 PR ipa/91682
3379 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3380 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3381 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3382 (ipa_agg_jump_function): Remove member function equal_to.
3383 (ipa_agg_jump_function_p): Remove typedef.
3384 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3385 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3386 information for aggregate jump function.
3387 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3388 record last definition statement.
3389 (load_from_unmodified_param_or_agg): New function.
3390 (ipa_known_agg_contents_list): Add new field type and value, remove
3391 field constant.
3392 (build_agg_jump_func_from_list): Rename parameter const_count to
3393 value_count, build aggregate jump function from ipa_load_agg_data.
3394 (analyze_agg_content_value): New function.
3395 (extract_mem_content): Analyze memory store assignment to prepare
3396 information for aggregate jump function generation.
3397 (determine_known_aggregate_parts): Add new parameter fbi, remove
3398 parameter aa_walk_budeget_p.
3399 (update_jump_functions_after_inlining): Update aggregate jump function.
3400 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3401 (try_make_edge_direct_simple_call): Add new parameter new_root.
3402 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3403 new_root_info.
3404 (update_indirect_edges_after_inlining): Pass new argument to
3405 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3406 (ipa_write_jump_function): Write aggregate jump function to file.
3407 (ipa_read_jump_function): Read aggregate jump function from file.
3408 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3409 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3410 (ipa_agg_value_from_node): Likewise.
3411 (ipa_agg_value_set_from_jfunc): Likewise.
3412 (propagate_vals_across_arith_jfunc): Likewise.
3413 (propagate_aggregate_lattice): Likewise.
3414 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3415 (propagate_vals_across_pass_through): Call
3416 propagate_vals_across_arith_jfunc.
3417 (get_clone_agg_value): Move forward.
3418 (propagate_aggs_across_jump_function): Handle value propagation for
3419 aggregate jump function.
3420 (agg_jmp_p_vec_for_t_vec): Remove.
3421 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3422 with vec<ipa_agg_value>.
3423 (copy_plats_to_inter, intersect_with_plats): Likewise.
3424 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3425 (intersect_aggregate_with_edge): Likewise.
3426 (find_aggregate_values_for_callers_subset): Likewise.
3427 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3428 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3429 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3430 (gather_context_independent_values): Likewise.
3431 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3432 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3433 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3434 (evaluate_properties_for_edge): Likewise.
3435 (estimate_edge_devirt_benefit): Likewise.
3436 (estimate_edge_size_and_time): Likewise.
3437 (estimate_calls_size_and_time): Likewise.
3438 (ipa_call_context::ipa_call_context): Likewise.
3439 (estimate_ipcp_clone_size_and_time): Likewise.
3440 * ipa-fnsummary.h (ipa_call_context): Replace
3441 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3442 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3443 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3444 (do_estimate_edge_size): Likewise.
3445 (do_estimate_edge_hints): Likewise.
3446
3447 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3448
3449 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3450 binary operations.
3451
3452 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3453
3454 * ipa-profile.c (check_argument_count): Check properly that e_info
3455 is non-NULL; do not check descriptors.
3456
3457 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3458
3459 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3460 check for ipa profiles.
3461
3462 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3463
3464 PR c++/92421
3465 * ipa-prop.c (update_indirect_edges_after_inlining):
3466 Mark parameter as used.
3467 * ipa-inline.c (recursive_inlining): Reset node cache
3468 after inlining.
3469 (inline_small_functions): Remove checking ifdef.
3470 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3471 cache consistency.
3472
3473 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3474
3475 PR ipa/92498
3476 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3477 is NULL.
3478 (ipa_profile): Fix reversed test.
3479
3480 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3481
3482 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3483 (propagate_constants_topo): Fix typo.
3484
3485 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3486
3487 * Makefile.in (OBJS): Add value-range.o.
3488 (GTFILES): Add value-range.h.
3489 * gengtype.c (open_base_files): Add value-range.h to list of
3490 header files.
3491 * tree-vrp.c: Move the following value_range related functions:
3492 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3493 constant_p, set_undefined, set_varying, may_contain_p,
3494 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3495 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3496 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3497 value_inside_range, ranges_from_anti_range, union_ranges,
3498 intersect_ranges, intersect_helper, union_helper, union_,
3499 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3500 upper_bound, contains_p, invert, intersect...
3501 * value-range.cc: ...to here.
3502 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3503 associated inline methods from here...
3504 * value-range.h: ...to here.
3505
3506 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3507
3508 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3509 instead of asserting its value.
3510
3511 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3512
3513 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3514 constructors and set methods so value_range_kind is the last
3515 argument and defaults to VR_RANGE.
3516 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3517 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3518 * ipa-prop.c (ipa_get_value_range): Same.
3519 (ipa_compute_jump_functions_for_edge): Same.
3520 * range-op.cc (value_range_from_overflowed_bounds): Same.
3521 (operator_cast::op1_range): Same.
3522 (range_tests): Same.
3523 * range.cc (range_nonzero): Same.
3524 * tree-ssanames.c (get_range_info): Same.
3525 * tree-vrp.c (value_range_equiv::set): Same.
3526 (value_range::value_range): Same.
3527 (value_range_equiv::value_range_equiv): Same.
3528 (value_range_equiv::update): Same.
3529 (value_range_equiv::deep_copy): Same.
3530 (value_range_equiv::move): Same.
3531 (value_range_equiv::set_undefined): Same.
3532 (value_range::set): Same.
3533 (value_range::set_nonzero): Same.
3534 (ranges_from_anti_range): Same.
3535 (extract_range_from_plus_minus_expr): Same.
3536 (value_range::intersect_helper): Same.
3537 (value_range_equiv::intersect): Same.
3538 (value_range::union_helper): Same.
3539 (value_range_equiv::union_): Same.
3540 (value_range::normalize_symbolics): Same.
3541 (value_range::invert): Same.
3542 (determine_value_range_1): Same.
3543 * tree-vrp.h (class value_range): Same.
3544 (class value_range_equiv): Same.
3545 * vr-values.c (set_value_range_to_nonnegative): Same.
3546 (set_value_range_to_truthvalue): Same.
3547 (vr_values::update_value_range): Same.
3548 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3549 (vr_values::extract_range_from_binary_expr): Same.
3550 (vr_values::extract_range_from_comparison): Same.
3551 (vr_values::extract_range_basic): Same.
3552 (vr_values::adjust_range_with_scev): Same.
3553 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3554 (vr_values::extract_range_from_phi_node): Same.
3555
3556 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3557
3558 * tree-dump.c (dequeue_and_dump): Print first tree operand
3559 for VIEW_CONVERT_EXPR.
3560
3561 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3562
3563 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3564 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3565 * real.c (get_max_float): Add norm_max argument.
3566 * real.h (get_max_float): Update prototype.
3567 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3568 get_max_float.
3569
3570 2019-11-13 Martin Liska <mliska@suse.cz>
3571
3572 * dbgcnt.c (test_sorted_dbg_counters): New.
3573 (dbgcnt_c_tests): Likewise.
3574 * selftest-run-tests.c (selftest::run_tests): Likewise.
3575 * selftest.h (dbgcnt_c_tests): Likewise.
3576
3577 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3578 Martin Jambor <mjambor@suse.cz>
3579
3580 PR ipa/92454
3581 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3582 (identify_dead_nodes): Likewise.
3583
3584 2019-11-13 Martin Liska <mliska@suse.cz>
3585
3586 * ipa-icf.c (sem_function::equals_private): Do not overuse
3587 push/pop_cfun functions.
3588
3589 2019-11-13 Martin Liska <mliska@suse.cz>
3590
3591 * common.opt: Document change of -fdbg-cnt option.
3592 * dbgcnt.c (DEBUG_COUNTER): Remove.
3593 (dbg_cnt_is_enabled): Remove.
3594 (dbg_cnt): Work with new intervals.
3595 (dbg_cnt_set_limit_by_index): Set to new
3596 list of intervals.
3597 (dbg_cnt_set_limit_by_name): Likewise.
3598 (dbg_cnt_process_single_pair): Process new format.
3599 (dbg_cnt_process_opt): Likewise.
3600 (dbg_cnt_list_all_counters): Likewise.
3601 * doc/invoke.texi: Document change of -fdbg-cnt option.
3602 (cmp_tuples): New.
3603
3604 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3605
3606 * ipa-inline.c (ipa_inline): Check that function is defined before
3607 flattening.
3608
3609 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3610 Julian Brown <julian@codesourcery.com>
3611
3612 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3613 flag_worker_partitioning is not set.
3614 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3615 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3616
3617 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3618
3619 * config/gcn/gcn-run.c (heap_region): New global variable.
3620 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3621 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3622 (get_kernarg_region): Move contents to ....
3623 (get_memory_region): .... here.
3624 (get_heap_region): New function.
3625 (init_device): Initialize the heap_region.
3626 (device_malloc): Add region parameter.
3627 (struct kernargs): Move heap ....
3628 (heap): ... to global scope.
3629 (main): Allocate heap separate to kernargs.
3630
3631 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3632
3633 * ipa-prop.c (ipa_print_node_jump_functions,
3634 ipa_print_node_params): Print info about missing summaries.
3635
3636 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3637
3638 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3639 the cost of generating loop masks.
3640
3641 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3642
3643 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3644 New function.
3645 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3646 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3647 (vect_transform_loop): Likewise.
3648 (vect_analyze_loop_costing): Don't take the cost of versioning
3649 into account for the static profitability threshold if it turns
3650 out that no versioning is needed.
3651
3652 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3653
3654 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3655 and target_option_default_node to get -fprofile-generate ctors working
3656 right with LTO.
3657
3658 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3659
3660 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3661 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3662 (vectorizable_assignment): Don't add a cost for nop conversions.
3663 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3664 Likewise.
3665 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3666
3667 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3668
3669 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3670 number of ncopies as an additional argument.
3671 (vectorizable_conversion): Update call accordingly. Use "modifier"
3672 to check whether a conversion is between vectors with the same
3673 numbers of units.
3674
3675 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3676
3677 * config/aarch64/aarch64-sve-builtins-functions.h
3678 (unary_count::expand): Use aarch64_sve_int_mode instead of
3679 mode_for_int_vector.
3680
3681 2019-11-13 Martin Liska <mliska@suse.cz>
3682
3683 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3684
3685 2019-11-13 Martin Liska <mliska@suse.cz>
3686
3687 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3688 Remove call to finalize_options_struct.
3689
3690 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3691
3692 PR target/92055
3693 * config/avr/t-avr (avr-mcus): Do not depend on
3694 $(srcdir)/config/avr/t-multilib.
3695
3696 2019-11-13 Richard Biener <rguenther@suse.de>
3697
3698 PR tree-optimization/92473
3699 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3700 direct optab reduction in the correct type.
3701
3702 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3703
3704 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3705 hexadecimal literal.
3706
3707 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3708
3709 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3710 UNORDERED if !HONOR_NANS (DFmode).
3711 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3712 if !HONOR_NANS (<MODE>mode).
3713
3714 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3715
3716 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3717 (ipcp_verify_propagated_values): Likewise.
3718 (propagate_constants_across_call): Likewise.
3719 (propagate_constants_topo): Likewise.
3720 (ipcp_propagate_stage): Likewise.
3721
3722 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3723
3724 PR ipa/92471
3725 * ipa-profile.c (check_argument_count): Break out from ...;
3726 watch for missing summaries.
3727 (ipa_profile): Here.
3728
3729 2019-11-12 Martin Sebor <msebor@redhat.com>
3730
3731 PR tree-optimization/92412
3732 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3733 extern variables.
3734
3735 2019-11-12 Martin Sebor <msebor@redhat.com>
3736
3737 PR middle-end/83688
3738 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3739 (directive::argno): New member.
3740 (format_result::aliases, format_result::alias_count): New data members.
3741 (format_result::append_alias): New member function.
3742 (fmtresult::dst_offset): New data member.
3743 (pass_sprintf_length::call_info::dst_origin): New data member.
3744 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3745 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3746 (get_origin_and_offset): Same.
3747 (format_string): Call it.
3748 (format_directive): Call append_alias and set directive argument
3749 number.
3750 (maybe_warn_overlap): New function.
3751 (pass_sprintf_length::compute_format_length): Call it.
3752 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3753 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3754
3755 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3756
3757 PR rtl-optimization/92430
3758 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3759 dominance info at the beginning.
3760
3761 2019-11-12 Richard Biener <rguenther@suse.de>
3762
3763 PR tree-optimization/92460
3764 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3765 expression before gimplifying.
3766
3767 2019-11-12 Richard Biener <rguenther@suse.de>
3768
3769 PR tree-optimization/92461
3770 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3771 stmt after propagation.
3772
3773 2019-11-12 Martin Liska <mliska@suse.cz>
3774
3775 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3776 Use SET_OPTION_IF_UNSET.
3777 (ix86_option_override_internal): Likewise.
3778 * opts.c (default_options_optimization): Likewise.
3779 (finish_options): Likewise.
3780 (enable_fdo_optimizations): Likewise.
3781 (common_handle_option): Likewise.
3782
3783 2019-11-12 Martin Liska <mliska@suse.cz>
3784
3785 * common/common-target.def: Remove option_validate_param and
3786 option_default_params.
3787 * common/common-targhooks.c (default_option_validate_param):
3788 Remove.
3789 * common/common-targhooks.h (default_option_validate_param):
3790 Remove.
3791 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3792 Remove usage of this.
3793 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3794 (aarch64_option_validate_param): Likewise.
3795 (aarch64_option_default_params): Likewise
3796 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3797 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3798 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3799 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3800 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3801 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3802 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3803 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3804 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3805 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3806 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3807 guard_size here.
3808 * doc/tm.texi: Remove option_default_params and option_validate_param.
3809 * doc/tm.texi.in: Likewise.
3810
3811 2019-11-12 Martin Liska <mliska@suse.cz>
3812
3813 * common/common-target.def:
3814 Do not mention set_default_param_value
3815 and set_param_value.
3816 * doc/tm.texi: Likewise.
3817
3818 2019-11-12 Martin Liska <mliska@suse.cz>
3819
3820 * common.opt: Remove param_values.
3821 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3822 Remove finalize_options_struct.
3823 * gcc.c (driver::decode_argv): Do not call global_init_params
3824 and finish_params.
3825 (driver::finalize): Do not call params_c_finalize
3826 and finalize_options_struct.
3827 * opt-suggestions.c (option_proposer::get_completions): Remove
3828 special casing of params.
3829 (option_proposer::find_param_completions): Remove.
3830 (test_completion_partial_match): Update expected output.
3831 * opt-suggestions.h: Remove find_param_completions.
3832 * opts-common.c (add_misspelling_candidates): Add
3833 --param with a space.
3834 * opts.c (handle_param): Remove.
3835 (init_options_struct):. Remove init_options_struct and
3836 similar calls.
3837 (finalize_options_struct): Remove.
3838 (common_handle_option): Use SET_OPTION_IF_UNSET.
3839 * opts.h (finalize_options_struct): Remove.
3840 * toplev.c (general_init): Do not call global_init_params.
3841 (toplev::finalize): Do not call params_c_finalize and
3842 finalize_options_struct.
3843
3844 2019-11-12 Martin Liska <mliska@suse.cz>
3845
3846 * Makefile.in: Remove PARAMS_H and params.list
3847 and params.options.
3848 * params-enum.h: Remove.
3849 * params-list.h: Remove.
3850 * params-options.h: Remove.
3851 * params.c: Remove.
3852 * params.def: Remove.
3853 * params.h: Remove.
3854 * asan.c: Do not include params.h.
3855 * auto-profile.c: Likewise.
3856 * bb-reorder.c: Likewise.
3857 * builtins.c: Likewise.
3858 * cfgcleanup.c: Likewise.
3859 * cfgexpand.c: Likewise.
3860 * cfgloopanal.c: Likewise.
3861 * cgraph.c: Likewise.
3862 * combine.c: Likewise.
3863 * common/config/aarch64/aarch64-common.c: Likewise.
3864 * common/config/gcn/gcn-common.c: Likewise.
3865 * common/config/ia64/ia64-common.c: Likewise.
3866 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3867 * common/config/rs6000/rs6000-common.c: Likewise.
3868 * common/config/sh/sh-common.c: Likewise.
3869 * config/aarch64/aarch64.c: Likewise.
3870 * config/alpha/alpha.c: Likewise.
3871 * config/arm/arm.c: Likewise.
3872 * config/avr/avr.c: Likewise.
3873 * config/csky/csky.c: Likewise.
3874 * config/i386/i386-builtins.c: Likewise.
3875 * config/i386/i386-expand.c: Likewise.
3876 * config/i386/i386-features.c: Likewise.
3877 * config/i386/i386-options.c: Likewise.
3878 * config/i386/i386.c: Likewise.
3879 * config/ia64/ia64.c: Likewise.
3880 * config/rs6000/rs6000-logue.c: Likewise.
3881 * config/rs6000/rs6000.c: Likewise.
3882 * config/s390/s390.c: Likewise.
3883 * config/sparc/sparc.c: Likewise.
3884 * config/visium/visium.c: Likewise.
3885 * coverage.c: Likewise.
3886 * cprop.c: Likewise.
3887 * cse.c: Likewise.
3888 * cselib.c: Likewise.
3889 * dse.c: Likewise.
3890 * emit-rtl.c: Likewise.
3891 * explow.c: Likewise.
3892 * final.c: Likewise.
3893 * fold-const.c: Likewise.
3894 * gcc.c: Likewise.
3895 * gcse.c: Likewise.
3896 * ggc-common.c: Likewise.
3897 * ggc-page.c: Likewise.
3898 * gimple-loop-interchange.cc: Likewise.
3899 * gimple-loop-jam.c: Likewise.
3900 * gimple-loop-versioning.cc: Likewise.
3901 * gimple-ssa-split-paths.c: Likewise.
3902 * gimple-ssa-sprintf.c: Likewise.
3903 * gimple-ssa-store-merging.c: Likewise.
3904 * gimple-ssa-strength-reduction.c: Likewise.
3905 * gimple-ssa-warn-alloca.c: Likewise.
3906 * gimple-ssa-warn-restrict.c: Likewise.
3907 * graphite-isl-ast-to-gimple.c: Likewise.
3908 * graphite-optimize-isl.c: Likewise.
3909 * graphite-scop-detection.c: Likewise.
3910 * graphite-sese-to-poly.c: Likewise.
3911 * graphite.c: Likewise.
3912 * haifa-sched.c: Likewise.
3913 * hsa-gen.c: Likewise.
3914 * ifcvt.c: Likewise.
3915 * ipa-cp.c: Likewise.
3916 * ipa-fnsummary.c: Likewise.
3917 * ipa-inline-analysis.c: Likewise.
3918 * ipa-inline.c: Likewise.
3919 * ipa-polymorphic-call.c: Likewise.
3920 * ipa-profile.c: Likewise.
3921 * ipa-prop.c: Likewise.
3922 * ipa-split.c: Likewise.
3923 * ipa-sra.c: Likewise.
3924 * ira-build.c: Likewise.
3925 * ira-conflicts.c: Likewise.
3926 * loop-doloop.c: Likewise.
3927 * loop-invariant.c: Likewise.
3928 * loop-unroll.c: Likewise.
3929 * lra-assigns.c: Likewise.
3930 * lra-constraints.c: Likewise.
3931 * modulo-sched.c: Likewise.
3932 * opt-suggestions.c: Likewise.
3933 * opts.c: Likewise.
3934 * postreload-gcse.c: Likewise.
3935 * predict.c: Likewise.
3936 * reload.c: Likewise.
3937 * reorg.c: Likewise.
3938 * resource.c: Likewise.
3939 * sanopt.c: Likewise.
3940 * sched-deps.c: Likewise.
3941 * sched-ebb.c: Likewise.
3942 * sched-rgn.c: Likewise.
3943 * sel-sched-ir.c: Likewise.
3944 * sel-sched.c: Likewise.
3945 * shrink-wrap.c: Likewise.
3946 * stmt.c: Likewise.
3947 * targhooks.c: Likewise.
3948 * toplev.c: Likewise.
3949 * tracer.c: Likewise.
3950 * trans-mem.c: Likewise.
3951 * tree-chrec.c: Likewise.
3952 * tree-data-ref.c: Likewise.
3953 * tree-if-conv.c: Likewise.
3954 * tree-inline.c: Likewise.
3955 * tree-loop-distribution.c: Likewise.
3956 * tree-parloops.c: Likewise.
3957 * tree-predcom.c: Likewise.
3958 * tree-profile.c: Likewise.
3959 * tree-scalar-evolution.c: Likewise.
3960 * tree-sra.c: Likewise.
3961 * tree-ssa-ccp.c: Likewise.
3962 * tree-ssa-dom.c: Likewise.
3963 * tree-ssa-dse.c: Likewise.
3964 * tree-ssa-ifcombine.c: Likewise.
3965 * tree-ssa-loop-ch.c: Likewise.
3966 * tree-ssa-loop-im.c: Likewise.
3967 * tree-ssa-loop-ivcanon.c: Likewise.
3968 * tree-ssa-loop-ivopts.c: Likewise.
3969 * tree-ssa-loop-manip.c: Likewise.
3970 * tree-ssa-loop-niter.c: Likewise.
3971 * tree-ssa-loop-prefetch.c: Likewise.
3972 * tree-ssa-loop-unswitch.c: Likewise.
3973 * tree-ssa-math-opts.c: Likewise.
3974 * tree-ssa-phiopt.c: Likewise.
3975 * tree-ssa-pre.c: Likewise.
3976 * tree-ssa-reassoc.c: Likewise.
3977 * tree-ssa-sccvn.c: Likewise.
3978 * tree-ssa-scopedtables.c: Likewise.
3979 * tree-ssa-sink.c: Likewise.
3980 * tree-ssa-strlen.c: Likewise.
3981 * tree-ssa-structalias.c: Likewise.
3982 * tree-ssa-tail-merge.c: Likewise.
3983 * tree-ssa-threadbackward.c: Likewise.
3984 * tree-ssa-threadedge.c: Likewise.
3985 * tree-ssa-uninit.c: Likewise.
3986 * tree-switch-conversion.c: Likewise.
3987 * tree-vect-data-refs.c: Likewise.
3988 * tree-vect-loop.c: Likewise.
3989 * tree-vect-slp.c: Likewise.
3990 * tree-vrp.c: Likewise.
3991 * tree.c: Likewise.
3992 * value-prof.c: Likewise.
3993 * var-tracking.c: Likewise.
3994
3995 2019-11-12 Martin Liska <mliska@suse.cz>
3996
3997 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3998 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3999 macro.
4000 (asan_sanitize_allocas_p): Likewise.
4001 (asan_emit_stack_protection): Likewise.
4002 (asan_protect_global): Likewise.
4003 (instrument_derefs): Likewise.
4004 (instrument_builtin_call): Likewise.
4005 (asan_expand_mark_ifn): Likewise.
4006 * auto-profile.c (auto_profile): Likewise.
4007 * bb-reorder.c (copy_bb_p): Likewise.
4008 (duplicate_computed_gotos): Likewise.
4009 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4010 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4011 (try_crossjump_bb): Likewise.
4012 * cfgexpand.c (defer_stack_allocation): Likewise.
4013 (stack_protect_classify_type): Likewise.
4014 (pass_expand::execute): Likewise.
4015 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4016 (estimate_reg_pressure_cost): Likewise.
4017 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4018 * combine.c (combine_instructions): Likewise.
4019 (record_value_for_reg): Likewise.
4020 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4021 (aarch64_option_default_params): Likewise.
4022 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4023 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4024 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4025 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4026 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4027 (aarch64_allocate_and_probe_stack_space): Likewise.
4028 (aarch64_expand_epilogue): Likewise.
4029 (aarch64_override_options_internal): Likewise.
4030 * config/alpha/alpha.c (alpha_option_override): Likewise.
4031 * config/arm/arm.c (arm_option_override): Likewise.
4032 (arm_valid_target_attribute_p): Likewise.
4033 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4034 * config/i386/i386.c (get_probe_interval): Likewise.
4035 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4036 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4037 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4038 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4039 (get_stack_clash_protection_guard_size): Likewise.
4040 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4041 * config/s390/s390.c (allocate_stack_space): Likewise.
4042 (s390_emit_prologue): Likewise.
4043 (s390_option_override_internal): Likewise.
4044 * config/sparc/sparc.c (sparc_option_override): Likewise.
4045 * config/visium/visium.c (visium_option_override): Likewise.
4046 * coverage.c (get_coverage_counts): Likewise.
4047 (coverage_compute_profile_id): Likewise.
4048 (coverage_begin_function): Likewise.
4049 (coverage_end_function): Likewise.
4050 * cse.c (cse_find_path): Likewise.
4051 (cse_extended_basic_block): Likewise.
4052 (cse_main): Likewise.
4053 * cselib.c (cselib_invalidate_mem): Likewise.
4054 * dse.c (dse_step1): Likewise.
4055 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4056 (get_max_insn_count): Likewise.
4057 (make_debug_insn_raw): Likewise.
4058 (init_emit): Likewise.
4059 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4060 * final.c (compute_alignments): Likewise.
4061 * fold-const.c (fold_range_test): Likewise.
4062 (fold_truth_andor): Likewise.
4063 (tree_single_nonnegative_warnv_p): Likewise.
4064 (integer_valued_real_single_p): Likewise.
4065 * gcse.c (want_to_gcse_p): Likewise.
4066 (prune_insertions_deletions): Likewise.
4067 (hoist_code): Likewise.
4068 (gcse_or_cprop_is_too_expensive): Likewise.
4069 * ggc-common.c: Likewise.
4070 * ggc-page.c (ggc_collect): Likewise.
4071 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4072 (MAX_DATAREFS): Likewise.
4073 (OUTER_STRIDE_RATIO): Likewise.
4074 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4075 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4076 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4077 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4078 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4079 (imm_store_chain_info::output_merged_store): Likewise.
4080 (pass_store_merging::process_store): Likewise.
4081 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4082 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4083 (scop_to_isl_ast): Likewise.
4084 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4085 (optimize_isl): Likewise.
4086 * graphite-scop-detection.c (build_scops): Likewise.
4087 * haifa-sched.c (set_modulo_params): Likewise.
4088 (rank_for_schedule): Likewise.
4089 (model_add_to_worklist): Likewise.
4090 (model_promote_insn): Likewise.
4091 (model_choose_insn): Likewise.
4092 (queue_to_ready): Likewise.
4093 (autopref_multipass_dfa_lookahead_guard): Likewise.
4094 (schedule_block): Likewise.
4095 (sched_init): Likewise.
4096 * hsa-gen.c (init_prologue): Likewise.
4097 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4098 (cond_move_process_if_block): Likewise.
4099 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4100 (merge_agg_lats_step): Likewise.
4101 (devirtualization_time_bonus): Likewise.
4102 (hint_time_bonus): Likewise.
4103 (incorporate_penalties): Likewise.
4104 (good_cloning_opportunity_p): Likewise.
4105 (ipcp_propagate_stage): Likewise.
4106 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4107 (set_switch_stmt_execution_predicate): Likewise.
4108 (analyze_function_body): Likewise.
4109 (compute_fn_summary): Likewise.
4110 * ipa-inline-analysis.c (estimate_growth): Likewise.
4111 * ipa-inline.c (caller_growth_limits): Likewise.
4112 (inline_insns_single): Likewise.
4113 (inline_insns_auto): Likewise.
4114 (can_inline_edge_by_limits_p): Likewise.
4115 (want_early_inline_function_p): Likewise.
4116 (big_speedup_p): Likewise.
4117 (want_inline_small_function_p): Likewise.
4118 (want_inline_self_recursive_call_p): Likewise.
4119 (edge_badness): Likewise.
4120 (recursive_inlining): Likewise.
4121 (compute_max_insns): Likewise.
4122 (early_inliner): Likewise.
4123 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4124 * ipa-profile.c (ipa_profile): Likewise.
4125 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4126 (ipa_analyze_node): Likewise.
4127 (ipcp_transform_function): Likewise.
4128 * ipa-split.c (consider_split): Likewise.
4129 * ipa-sra.c (allocate_access): Likewise.
4130 (process_scan_results): Likewise.
4131 (ipa_sra_summarize_function): Likewise.
4132 (pull_accesses_from_callee): Likewise.
4133 * ira-build.c (loop_compare_func): Likewise.
4134 (mark_loops_for_removal): Likewise.
4135 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4136 * loop-doloop.c (doloop_optimize): Likewise.
4137 * loop-invariant.c (gain_for_invariant): Likewise.
4138 (move_loop_invariants): Likewise.
4139 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4140 (decide_unroll_runtime_iterations): Likewise.
4141 (decide_unroll_stupid): Likewise.
4142 (expand_var_during_unrolling): Likewise.
4143 * lra-assigns.c (spill_for): Likewise.
4144 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4145 * modulo-sched.c (sms_schedule): Likewise.
4146 (DFA_HISTORY): Likewise.
4147 * opts.c (default_options_optimization): Likewise.
4148 (finish_options): Likewise.
4149 (common_handle_option): Likewise.
4150 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4151 (if): Likewise.
4152 * predict.c (get_hot_bb_threshold): Likewise.
4153 (maybe_hot_count_p): Likewise.
4154 (probably_never_executed): Likewise.
4155 (predictable_edge_p): Likewise.
4156 (predict_loops): Likewise.
4157 (expr_expected_value_1): Likewise.
4158 (tree_predict_by_opcode): Likewise.
4159 (handle_missing_profiles): Likewise.
4160 * reload.c (find_equiv_reg): Likewise.
4161 * reorg.c (redundant_insn): Likewise.
4162 * resource.c (mark_target_live_regs): Likewise.
4163 (incr_ticks_for_insn): Likewise.
4164 * sanopt.c (pass_sanopt::execute): Likewise.
4165 * sched-deps.c (sched_analyze_1): Likewise.
4166 (sched_analyze_2): Likewise.
4167 (sched_analyze_insn): Likewise.
4168 (deps_analyze_insn): Likewise.
4169 * sched-ebb.c (schedule_ebbs): Likewise.
4170 * sched-rgn.c (find_single_block_region): Likewise.
4171 (too_large): Likewise.
4172 (haifa_find_rgns): Likewise.
4173 (extend_rgns): Likewise.
4174 (new_ready): Likewise.
4175 (schedule_region): Likewise.
4176 (sched_rgn_init): Likewise.
4177 * sel-sched-ir.c (make_region_from_loop): Likewise.
4178 * sel-sched-ir.h (MAX_WS): Likewise.
4179 * sel-sched.c (process_pipelined_exprs): Likewise.
4180 (sel_setup_region_sched_flags): Likewise.
4181 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4182 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4183 * toplev.c (print_version): Likewise.
4184 (process_options): Likewise.
4185 * tracer.c (tail_duplicate): Likewise.
4186 * trans-mem.c (tm_log_add): Likewise.
4187 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4188 * tree-data-ref.c (split_constant_offset): Likewise.
4189 (compute_all_dependences): Likewise.
4190 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4191 * tree-inline.c (remap_gimple_stmt): Likewise.
4192 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4193 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4194 (create_parallel_loop): Likewise.
4195 * tree-predcom.c (determine_unroll_factor): Likewise.
4196 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4197 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4198 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4199 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4200 (dse_optimize_redundant_stores): Likewise.
4201 (dse_classify_store): Likewise.
4202 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4203 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4204 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4205 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4206 (try_peel_loop): Likewise.
4207 (tree_unroll_loops_completely): Likewise.
4208 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4209 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4210 (MAX_CONSIDERED_GROUPS): Likewise.
4211 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4212 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4213 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4214 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4215 (L1_CACHE_SIZE_BYTES): Likewise.
4216 (L2_CACHE_SIZE_BYTES): Likewise.
4217 (should_issue_prefetch_p): Likewise.
4218 (schedule_prefetches): Likewise.
4219 (determine_unroll_factor): Likewise.
4220 (volume_of_references): Likewise.
4221 (add_subscript_strides): Likewise.
4222 (self_reuse_distance): Likewise.
4223 (mem_ref_count_reasonable_p): Likewise.
4224 (insn_to_prefetch_ratio_too_small_p): Likewise.
4225 (loop_prefetch_arrays): Likewise.
4226 (tree_ssa_prefetch_arrays): Likewise.
4227 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4228 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4229 (convert_mult_to_fma): Likewise.
4230 (math_opts_dom_walker::after_dom_children): Likewise.
4231 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4232 (hoist_adjacent_loads): Likewise.
4233 (gate_hoist_loads): Likewise.
4234 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4235 (compute_partial_antic_aux): Likewise.
4236 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4237 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4238 (vn_reference_lookup): Likewise.
4239 (do_rpo_vn): Likewise.
4240 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4241 * tree-ssa-sink.c (select_best_block): Likewise.
4242 * tree-ssa-strlen.c (new_stridx): Likewise.
4243 (new_addr_stridx): Likewise.
4244 (get_range_strlen_dynamic): Likewise.
4245 (class ssa_name_limit_t): Likewise.
4246 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4247 (create_variable_info_for_1): Likewise.
4248 (init_alias_vars): Likewise.
4249 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4250 (tail_merge_optimize): Likewise.
4251 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4252 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4253 (thread_jumps::find_jump_threads_backwards): Likewise.
4254 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4255 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4256 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4257 (jump_table_cluster::can_be_handled): Likewise.
4258 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4259 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4260 (param_switch_conversion_branch_ratio): Likewise.
4261 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4262 (vect_enhance_data_refs_alignment): Likewise.
4263 (vect_prune_runtime_alias_test_list): Likewise.
4264 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4265 (vect_get_datarefs_in_loop): Likewise.
4266 (vect_analyze_loop): Likewise.
4267 * tree-vect-slp.c (vect_slp_bb): Likewise.
4268 * tree-vectorizer.h: Likewise.
4269 * tree-vrp.c (find_switch_asserts): Likewise.
4270 (vrp_prop::check_mem_ref): Likewise.
4271 * tree.c (wide_int_to_tree_1): Likewise.
4272 (cache_integer_cst): Likewise.
4273 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4274 (reverse_op): Likewise.
4275 (vt_find_locations): Likewise.
4276
4277 2019-11-12 Martin Liska <mliska@suse.cz>
4278
4279 * Makefile.in: Include params.opt.
4280 * flag-types.h (enum parloops_schedule_type): Add
4281 parloops_schedule_type used in params.opt.
4282 * params.opt: New file.
4283
4284 2019-11-12 Martin Liska <mliska@suse.cz>
4285
4286 * common.opt: Remove --param and --param= options.
4287 * opt-functions.awk: Mark CL_PARAMS for options
4288 that have Param keyword.
4289 * opts-common.c (decode_cmdline_options_to_array):
4290 Replace --param key=value with --param=key=value.
4291 * opts.c (print_filtered_help): Remove special
4292 printing of params.
4293 (print_specific_help): Update title for params.
4294 (common_handle_option): Do not handle OPT__param.
4295 opts.h (SET_OPTION_IF_UNSET): New macro.
4296 * doc/options.texi: Document Param keyword.
4297
4298 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4299 Frederik Harwath <frederik@codesourcery.com>
4300 Thomas Schwinge <thomas@codesourcery.com>
4301
4302 gcc/
4303 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4304 enumeration constant.
4305 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4306 (is_gimple_omp_offloaded): Likewise.
4307 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4308 constant. Adjust the value of ORT_NONE accordingly.
4309 (is_gimple_stmt): Handle OACC_SERIAL.
4310 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4311 (gomp_needs_data_present): Likewise.
4312 (gimplify_adjust_omp_clauses): Likewise.
4313 (gimplify_omp_workshare): Handle OACC_SERIAL.
4314 (gimplify_expr): Likewise.
4315 * omp-expand.c (expand_omp_target):
4316 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4317 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4318 * omp-low.c (is_oacc_parallel): Rename function to...
4319 (is_oacc_parallel_or_serial): ... this.
4320 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4321 (scan_sharing_clauses): Adjust accordingly.
4322 (scan_omp_for): Likewise.
4323 (lower_oacc_head_mark): Likewise.
4324 (convert_from_firstprivate_int): Likewise.
4325 (lower_omp_target): Likewise.
4326 (check_omp_nesting_restrictions): Handle
4327 GF_OMP_TARGET_KIND_OACC_SERIAL.
4328 (lower_oacc_reductions): Likewise.
4329 (lower_omp_target): Likewise.
4330 * tree.def (OACC_SERIAL): New tree code.
4331 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4332
4333 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4334
4335 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4336
4337 PR target/92449
4338 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4339 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4340
4341 PR tree-optimization/92452
4342 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4343 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4344 MINUS_EXPR on it.
4345
4346 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4347
4348 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4349 safelen with 0.
4350
4351 2019-11-12 Alan Modra <amodra@gmail.com>
4352
4353 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4354 element of unspec vec.
4355 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4356 PC-relative TLS.
4357 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4358 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4359 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4360 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4361
4362 2019-11-12 Alan Modra <amodra@gmail.com>
4363
4364 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4365 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4366 (IS_NOMARK_TLSGETADDR): Likewise.
4367 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4368 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4369 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4370 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4371 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4372 (rs6000_indirect_call_template_1): Likewise.
4373 (rs6000_pltseq_template): Likewise.
4374 (rs6000_opt_vars): Remove "tls-markers" entry.
4375 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4376 with TARGET_ELF.
4377 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4378 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4379 (pltseq_plt_pcrel<mode>): Likewise.
4380 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4381 (call_value_local64): Likewise.
4382 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4383 output and length attribute sub-expression.
4384 (call_value_nonlocal_sysv<mode>),
4385 (call_value_nonlocal_sysv_secure<mode>),
4386 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4387 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4388 (call_value_indirect_pcrel<mode>): Likewise.
4389 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4390 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4391 * configure: Regenerate.
4392 * config.in: Regenerate.
4393
4394 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4395
4396 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4397 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4398 address being a prefixed load/store.
4399 (stack_protect_testdi): Deal with either address being a prefixed
4400 load.
4401
4402 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4403
4404 PR bootstrap/92433
4405 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4406 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4407 std::swap.
4408
4409 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4410
4411 PR tree-optimization/92420
4412 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4413 up file.
4414 (get_group_load_store_type): Use it for reversed SLP accesses.
4415
4416 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4417
4418 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4419 summary.
4420 (ipcp_transformation_t::duplicate): Break out from ...
4421 (ipa_node_params_t::duplicate): ... here; add copying of agg
4422 replacements.
4423 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4424 (ipcp_transformation_t): Add duplicate.
4425
4426 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4427
4428 PR fortran/91828
4429 * doc/install.texi: Document that the minimum MPFR version is
4430 3.1.0.
4431
4432 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4433
4434 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4435 use new register constraint letters.
4436
4437 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4438
4439 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4440 as well, if interesting recover the symbol and re-legitimize the
4441 pic address.
4442
4443 2019-11-11 Martin Liska <mliska@suse.cz>
4444
4445 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4446 alphabetically.
4447
4448 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4449
4450 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4451 account when checking if there are enough iterations to vectorize
4452 epilogue.
4453
4454 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4455 Kwok Cheung Yeung <kcy@codesourcery.com>
4456
4457 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4458 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4459 (LANG_HOOKS_DECLS): Rename also here.
4460 * langhooks.h (lang_hooks_for_decls): Rename
4461 omp_is_optional_argument to omp_check_optional_argument; take
4462 additional bool argument.
4463 * omp-general.h (omp_check_optional_argument): Likewise.
4464 * omp-general.h (omp_check_optional_argument): Likewise.
4465 * omp-low.c (lower_omp_target): Update calls; handle absent
4466 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4467
4468 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4469
4470 PR target/87833
4471 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4472 -fPIC and -shared the last to create offload image.
4473
4474 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4475
4476 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4477 of 'offset'.
4478
4479 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4480 (config.status): Use/depend on it.
4481 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4482 * configure: Regenerate.
4483
4484 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4485
4486 PR tree-optimization/88760
4487 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4488 * gcc/common/config/rs6000/rs6000-common.c
4489 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4490 Turn on -funroll-loops and -munroll-only-small-loops.
4491 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4492 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4493 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4494 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4495 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4496 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4497
4498 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4499
4500 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4501 Make scalar_load, vector_load, unaligned_load and
4502 vector_gather_load cost more to conform hardware latency and
4503 insn cost settings.
4504
4505 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4506
4507 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4508 (MACHO_SYMBOL_LINKER_VIS_P): New.
4509
4510 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4511
4512 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4513 registers in eliminable_regset.
4514
4515 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4516
4517 * ipa-inline.c (compute_uninlined_call_time,
4518 compute_inlined_call_time): Take edge frequency as
4519 parameter rather than computing it by itself.
4520 (big_speedup_p, edge_badness): Manually CSE sreal
4521 frequency calculations.
4522
4523 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4524
4525 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4526 case where profiles are same.
4527
4528 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4529
4530 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4531
4532 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4533
4534 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4535 args summaries of inlined edge unless it holds info about
4536 described reference.
4537
4538 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4539
4540 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4541 (*movcc_internal1): Rename to...
4542 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4543
4544 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4545
4546 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4547 (cgraph_node::create_virtual_clone): Copy it.
4548 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4549 summaries.
4550 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4551 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4552 is disabled.
4553 (propagate_constants_across_call): If callee is not analyzed, give up.
4554 (propagate_constants_topo): Lower to bottom latties of all callees of
4555 functions with ipa-cp disabled.
4556 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4557 (cgraph_edge_brings_value_p): Check for availability first.
4558 (create_specialized_node): Set ipcp_clone.
4559 (ipcp_store_bits_results): Check that info is present.
4560 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4561 thunks.
4562 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4563 conservative when callee summary is missing.
4564 (remap_edge_summaries): Lookup call summary only when needed.
4565 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4566 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4567 Use get_create.
4568 (ipa_analyze_node): Use get_create.
4569 (propagate_controlled_uses): Do not propagate when function is not
4570 analyzed.
4571 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4572 (ipa_read_node_info): Use get_create.
4573 * ipa-prop.h (IPA_NODE_REF): Use get.
4574 (IPA_NODE_REF_GET_CREATE): New.
4575
4576 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4577
4578 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4579 on function symbol.
4580
4581 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4582
4583 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4584 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4585 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4586 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4587
4588 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4589
4590 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4591 capping the growth cumulated.
4592 (offline_size): Break out from ...
4593 (estimate_growth): ... here.
4594 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4595 parameters.
4596 (growth_likely_positive): Turn to ...
4597 (growth_positive_p): Re-implement.
4598 * ipa-inline.h (growth_likely_positive): Remove.
4599 (growth_positive_p): Declare.
4600 * ipa-inline.c (want_inline_small_function_p): Use
4601 growth_positive_p.
4602 (want_inline_function_to_all_callers_p): Likewise.
4603
4604 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4605
4606 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4607 calculation of min_size.
4608 (ipa_update_overall_fn_summary): Likewise.
4609
4610 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4611
4612 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4613 estimate_edge_devirt_benefit when not computing hints;
4614 do not compute time when not asked for.
4615 (estimate_calls_size_and_time): Pass NULL hints and time when
4616 these are not computed; do not evaluate hint predicates when these are
4617 not computed.
4618 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4619 frequency.
4620
4621 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4622
4623 PR tree-optimization/92401
4624 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4625 if res_op->code is an expression with code length 1.
4626 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4627 if res_op->code is an expression with code length 2.
4628 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4629 if res_op->code is an expression with code length 3.
4630
4631 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4632
4633 * config/darwin.c (machopic_mcount_stub_name): Validate the
4634 symbol stub name when it is created.
4635 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4636 stub validation.
4637
4638 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4639
4640 * symtab.c: Fix comment typos.
4641 * cgraphunit.c: Likewise.
4642 * cgraph.h: Likewise.
4643 * cgraphclones.c: Likewise.
4644 * cgraph.c: Likewise.
4645 * varpool.c: Likewise.
4646 * tree-ssa-strlen.c: Likewise.
4647 * ipa-sra.c: Likewise.
4648 (scan_expr_access, check_all_callers_for_issues): Fix typo
4649 in a dump message.
4650
4651 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4652
4653 * config/darwin-protos.h: Add include quard.
4654
4655 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4656
4657 * range-op.h (range_operator::fold_range): Return result in a
4658 reference parameter instead of by value.
4659 (range_operator::wi_fold): Same.
4660 * range-op.cc (range_operator::wi_fold): Return result in a reference
4661 parameter instead of by value.
4662 (range_operator::fold_range): Same.
4663 (value_range_from_overflowed_bounds): Same.
4664 (value_range_with_overflow): Same
4665 (create_possibly_reversed_range): Same.
4666 (operator_equal::fold_range): Same.
4667 (operator_not_equal::fold_range): Same.
4668 (operator_lt::fold_range): Same.
4669 (operator_le::fold_range): Same.
4670 (operator_gt::fold_range): Same.
4671 (operator_ge::fold_range): Same.
4672 (operator_plus::wi_fold): Same.
4673 (operator_plus::op1_range): Change call to fold_range.
4674 (operator_plus::op2_range): Change call to fold_range.
4675 (operator_minus::wi_fold): Return result via reference parameter.
4676 (operator_minus::op1_range): Change call to fold_range.
4677 (operator_minus::op2_range): Change call to fold_range.
4678 (operator_min::wi_fold): Return result via reference parameter.
4679 (operator_max::wi_fold): Same.
4680 (cross_product_operator::wi_cross_product): Same.
4681 (operator_mult::wi_fold): Same.
4682 (operator_div::wi_fold): Same.
4683 (operator_div op_floor_div): Fix whitespace.
4684 (operator_exact_divide::op1_range): Change call to fold_range.
4685 (operator_lshift::fold_range): Return result via reference parameter.
4686 (operator_lshift::wi_fold): Same.
4687 (operator_rshift::fold_range): Same.
4688 (operator_rshift::wi_fold): Same.
4689 (operator_cast::fold_range): Same.
4690 (operator_cast::op1_range): Change calls to fold_range.
4691 (operator_logical_and::fold_range): Return result via reference.
4692 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4693 (operator_bitwise_and::wi_fold): Return result via reference.
4694 (operator_logical_or::fold_range): Same.
4695 (operator_bitwise_or::wi_fold): Same.
4696 (operator_bitwise_xor::wi_fold): Same.
4697 (operator_trunc_mod::wi_fold): Same.
4698 (operator_logical_not::fold_range): Same.
4699 (operator_bitwise_not::fold_range): Same.
4700 (operator_bitwise_not::op1_range): Change call to fold_range.
4701 (operator_cst::fold_range): Return result via reference.
4702 (operator_identity::fold_range): Same.
4703 (operator_abs::wi_fold): Same.
4704 (operator_absu::wi_fold): Same.
4705 (operator_negate::fold_range): Same.
4706 (operator_negate::op1_range): Change call to fold_range.
4707 (operator_addr_expr::fold_range): Return result via reference.
4708 (operator_addr_expr::op1_range): Change call to fold_range.
4709 (operator_pointer_plus::wi_fold): Return result via reference.
4710 (operator_pointer_min_max::wi_fold): Same.
4711 (operator_pointer_and::wi_fold): Same.
4712 (operator_pointer_or::wi_fold): Same.
4713 (range_op_handler): Change call to fold_range.
4714 (range_cast): Same.
4715 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4716 fold_range.
4717 (range_fold_unary_symbolics_p): Same.
4718 (range_fold_binary_expr): Same.
4719 (range_fold_unary_expr): Same.
4720
4721 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4722
4723 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4724 vector type as an argument rather than reading it from the
4725 stmt_vec_info.
4726 (vect_create_epilog_for_reduction): Update accordingly.
4727 (vectorizable_reduction): Likewise.
4728 (vect_transform_cycle_phi): Likewise.
4729
4730 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4731
4732 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4733 the comparison codes that make sense for the mode used, and only the
4734 codes that can be done with a single branch instruction.
4735
4736 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4737
4738 PR tree-optimization/92351
4739 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4740 peeling the main loop for alignment, make sure to set the misalignment
4741 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4742
4743 2019-11-08 Richard Biener <rguenther@suse.de>
4744
4745 * dbgcnt.def (ivopts_loop): Add.
4746 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4747 ivopts_loop before optimizing a loop.
4748
4749 2019-11-08 Richard Biener <rguenther@suse.de>
4750
4751 PR ipa/92409
4752 * tree-inline.c (declare_return_variable): Properly handle
4753 type mismatches for the return slot.
4754
4755 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4756
4757 PR target/92095
4758 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4759 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4760 change.
4761 (got_helper_needed): New static variable.
4762 (output_load_pcrel_sym): New function.
4763 (get_pc_thunk_name): Remove after inlining...
4764 (load_got_register): ...here. Rework the initialization of the GOT
4765 register and of the GOT helper.
4766 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4767 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4768 helper must be emitted. Use output_asm_insn instead of fprintf.
4769 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4770 if optimization is enabled.
4771 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4772 by calling output_load_pcrel_sym.
4773
4774 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4775
4776 * tree-sra.c (create_access): Delay disqualifying the base
4777 for poly_int values until we know we have a base.
4778
4779 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4780
4781 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4782 for loops with SIMDUID set. Enable epilogue vectorization for loops
4783 with SIMDLEN set after finding a main loop with a VF that matches it.
4784
4785 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR target/92038
4788 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4789 value only, return non-NULL if there is a single non-clobber
4790 constituent store even if there are constituent clobbers and return
4791 one of clobber constituent stores if all constituent stores are
4792 clobbers.
4793 (split_group): Handle clobbers.
4794 (imm_store_chain_info::output_merged_store): When computing
4795 bzero_first, look after all clobbers at the start. Don't count
4796 clobber stmts in orig_num_stmts, except if the first orig store is
4797 a clobber covering the whole area and split_stores cover the whole
4798 area, consider equal number of stmts ok. Punt if split_stores
4799 contains only ->orig stores and their number plus number of original
4800 clobbers is equal to original number of stmts. For ->orig, look past
4801 clobbers in the constituent stores.
4802 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4803 stmts.
4804 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4805 rhs.
4806 (store_valid_for_store_merging_p): Allow clobber stmts.
4807 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4808
4809 PR c++/92384
4810 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4811 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4812 slot.
4813 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4814 force creation of a unique data.stack_parm slot.
4815
4816 2019-11-08 Richard Biener <rguenther@suse.de>
4817
4818 * genmatch.c (expr::gen_transform): Use the resimplify
4819 member function instead of hard-coding the gimple_resimplifyN variant.
4820 (dt_simplify::gen_1): Likewise.
4821
4822 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4823
4824 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4825 POLY_INT_CST.
4826
4827 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4828
4829 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4830 instead of INTEGER_CST.
4831
4832 2019-11-08 Richard Biener <rguenther@suse.de>
4833
4834 PR tree-optimization/92324
4835 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4836 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4837 sign-conversions as necessary.
4838 (vectorizable_reduction): Reject conversions in the chain
4839 that are not sign-conversions, base analysis on a non-converting
4840 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4841 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4842 for debug stmts.
4843 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4844 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4845
4846 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4847
4848 PR target/92055
4849 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4850 Fix a missing '-' when displaying these options in the
4851 help screen.
4852
4853 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4854
4855 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4856
4857 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4858
4859 * config/aarch64/aarch64-builtins.c
4860 (aarch64_builtin_vectorized_function): Remove bswap handling.
4861
4862 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4863
4864 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4865 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4866 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4867 Treat the vector types as indivisible.
4868
4869 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4870
4871 * optabs.def (gather_load_optab, mask_gather_load_optab)
4872 (scatter_store_optab, mask_scatter_store_optab): Turn into
4873 conversion optabs, with the offset mode given explicitly.
4874 * doc/md.texi: Update accordingly.
4875 * config/aarch64/aarch64-sve-builtins-base.cc
4876 (svld1_gather_impl::expand): Likewise.
4877 (svst1_scatter_impl::expand): Likewise.
4878 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4879 (expand_scatter_store_optab_fn): Likewise.
4880 (direct_gather_load_optab_supported_p): Likewise.
4881 (direct_scatter_store_optab_supported_p): Likewise.
4882 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4883 to be argument 4.
4884 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4885 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4886 argument with the offset vector type. Require the two vector
4887 types to have the same number of elements but allow their element
4888 sizes to be different. Treat the optabs as conversion optabs.
4889 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4890 prototype accordingly.
4891 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4892 (supports_vec_convert_optab_p): ...this new function.
4893 (supports_vec_gather_load_p): Update accordingly.
4894 (supports_vec_scatter_store_p): Likewise.
4895 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4896 Replace the offset sign and bits parameters with a scalar type tree.
4897 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4898 Pass back the offset vector type instead of the scalar element type.
4899 Allow the offset to be wider than the memory elements. Search for
4900 an offset type that the target supports, stopping once we've
4901 reached the maximum of the element size and pointer size.
4902 Update call to internal_gather_scatter_fn_supported_p.
4903 (vect_check_gather_scatter): Update calls accordingly.
4904 When testing a new scale before knowing the final offset type,
4905 check whether the scale is supported for any signed or unsigned
4906 offset type. Check whether the target supports the source and
4907 target types of a conversion before deciding whether to look
4908 through the conversion. Record the chosen offset_vectype.
4909 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4910 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4911 directly from the gs_info's offset_vectype instead. Pass a zero
4912 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4913 * tree-vect-stmts.c (check_load_store_masking): Update call to
4914 internal_gather_scatter_fn_supported_p, passing the offset vector
4915 type recorded in the gs_info.
4916 (vect_truncate_gather_scatter_offset): Update call to
4917 vect_check_gather_scatter, leaving it to search for a valid
4918 offset vector type.
4919 (vect_use_strided_gather_scatters_p): Convert the offset to the
4920 element type of the gs_info's offset_vectype.
4921 (vect_get_gather_scatter_ops): Get the offset vector type directly
4922 from the gs_info.
4923 (vect_get_strided_load_store_ops): Likewise.
4924 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4925 and IFN_MASK_GATHER_LOAD.
4926 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4927 (gather_load<mode><v_int_equiv>): ...this.
4928 (mask_gather_load<mode>): Rename to...
4929 (mask_gather_load<mode><v_int_equiv>): ...this.
4930 (scatter_store<mode>): Rename to...
4931 (scatter_store<mode><v_int_equiv>): ...this.
4932 (mask_scatter_store<mode>): Rename to...
4933 (mask_scatter_store<mode><v_int_equiv>): ...this.
4934
4935 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4936
4937 PR target/92132
4938 * config/rs6000/predicates.md
4939 (signed_or_equality_comparison_operator): New predicate.
4940 (unsigned_or_equality_comparison_operator): Likewise.
4941 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4942 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4943 * config/rs6000/vector.md
4944 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4945 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4946 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4947 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4948 vector modes and same-size integer vector modes.
4949 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4950 (vector_lt<mode> for VEC_F): New expand.
4951 (vector_le<mode> for VEC_F): Likewise.
4952 (vector_ne<mode> for VEC_F): Likewise.
4953 (vector_unge<mode> for VEC_F): Likewise.
4954 (vector_ungt<mode> for VEC_F): Likewise.
4955 (vector_unle<mode> for VEC_F): Likewise.
4956 (vector_unlt<mode> for VEC_F): Likewise.
4957 (vector_uneq<mode>): Expose name.
4958 (vector_ltgt<mode>): Likewise.
4959 (vector_unordered<mode>): Likewise.
4960 (vector_ordered<mode>): Likewise.
4961
4962 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4963
4964 PR target/92295
4965 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4966 Enhance ix86_expand_vector_init_concat.
4967
4968 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4969
4970 * doc/invoke.texi (-Wold-style-definition): Document () not being
4971 considered an old-style definition for C2x.
4972
4973 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4974
4975 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4976 Enhance comment.
4977 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4978 insn patterns using ldcw instruction.
4979 (memory_barrier): Remove insn pattern using sync instruction.
4980 * config/pa/pa.opt (coherent-ldcw): New option.
4981 (ordered): New option.
4982
4983 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4984
4985 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4986 valid conditions.
4987
4988 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4989
4990 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4991 typo - mistmatch -> mismatch.
4992 * ipa-profile.c (ipa_profile): Likewise.
4993 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4994 - mistmatch -> mismatch.
4995
4996 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4997
4998 * simplify-rtx.c (comparison_to_mask): New function.
4999 (mask_to_comparison): New function.
5000 (simplify_logical_relational_operation): New function.
5001 (simplify_binary_operation_1): Call
5002 simplify_logical_relational_operation.
5003
5004 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5005
5006 PR other/92090
5007 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5008 modes for integer constants.
5009
5010 2019-11-07 Jan Hubicka <jh@suse.cz>
5011
5012 PR ipa/92406
5013 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5014 summary.
5015
5016 2019-11-07 Jan Hubicka <jh@suse.cz>
5017
5018 * optc-save-gen.awk: Generate cl_target_option_free
5019 and cl_optimization_option_free.
5020 * opth-en.awk: Declare cl_target_option_free
5021 and cl_optimization_option_free.
5022 * tree.c (free_node): Use it.
5023
5024 2019-11-06 Jan Hubicka <jh@suse.cz>
5025
5026 * lto-streamer-in.c: Include alloc-pool.h.
5027 (freeing_string_slot_hasher): Remove.
5028 (string_slot_allocator): New object allocator.
5029 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5030 (file_name_obstack): New obstack.
5031 (canon_file_name): Allocate in obstack and allocator.
5032 (lto_reader_init): Initialize obstack and allocator.
5033 (lto_free_file_name_hash): New function.
5034 * lto-streamer.h (lto_free_file_name_hash): New.
5035
5036 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5037
5038 PR tree-optimization/89134
5039 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5040 * params.def: Add min-loop-cond-split-prob.
5041 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5042 outside checks on loop into the function.
5043 (split_info): New class.
5044 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5045 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5046 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5047 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5048 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5049 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5050 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5051 (split_loop_on_cond): Likewise.
5052 (tree_ssa_split_loops): Add loop split on conditional statement.
5053
5054 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5055
5056 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5057 pattern.
5058
5059 2019-11-07 Richard Biener <rguenther@suse.de>
5060
5061 PR tree-optimization/92405
5062 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5063 restrict lane-reducing ops to single stmt chains.
5064
5065 2019-11-07 Martin Jambor <mjambor@suse.cz>
5066
5067 PR lto/70929
5068 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5069 * cgraph.h (gimple_check_call_matching_types): Remove
5070 * cgraph.c (gimple_check_call_args): Likewise.
5071 (gimple_check_call_matching_types): Likewise.
5072 (symbol_table::create_edge): Do not call
5073 gimple_check_call_matching_types.
5074 (cgraph_edge::make_direct): Likewise.
5075 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5076 * value-prof.h (check_ic_target): Remove.
5077 * value-prof.c (check_ic_target): Remove.
5078 (gimple_ic_transform): Do nat call check_ic_target.
5079 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5080 (afdo_indirect_call): Likewise.
5081 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5082 gimple_check_call_matching_types.
5083 * ipa-inline.c (early_inliner): Likewise.
5084
5085 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5086
5087 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5088 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5089 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5090 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5091 * config/arm/iterators.md (USSAT16): New int_iterator.
5092 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5093 (sup): Likewise.
5094 * config/arm/predicates.md (ssat16_imm): New predicate.
5095 (usat16_imm): Likewise.
5096 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5097
5098 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5099
5100 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5101 New define_insns.
5102 (arm_<simd32_op>): New define_expands.
5103 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5104 __smuad, __smuadx): Define.
5105 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5106 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5107 (SIMD32_BINOP_Q): Likewise.
5108 (simd32_op): Handle the above.
5109 * config/arm/unspecs.md: Define unspecs for the above.
5110
5111 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5112
5113 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5114 * config/arm/arm.md (APSRGE_REGNUM): Define.
5115 (arm_<simd32_op>): New define_insn.
5116 (arm_sel): Likewise.
5117 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5118 (CALL_USED_REGISTERS): Likewise.
5119 (REG_ALLOC_ORDER): Likewise.
5120 (FIRST_PSEUDO_REGISTER): Update value.
5121 (ARM_GE_BITS_READ): Define.
5122 * config/arm/arm.c (arm_conditional_register_usage): Clear
5123 APSRGE_REGNUM from operand_reg_set.
5124 (arm_ge_bits_access): Define.
5125 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5126 ARM_BUIILTIN_sel.
5127 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5128 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5129 FAIL if ARM_GE_BITS_READ.
5130 (*arm_add<mode>3): New define_insn.
5131 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5132 (*arm_sub<mode>3): New define_insn.
5133 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5134 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5135 __usub16): Define.
5136 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5137 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5138 (simd32_op): Handle the above.
5139 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5140 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5141 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5142 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5143
5144 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5145
5146 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5147 (arm_smlabb): New define_expand.
5148 (*maddhisi4tb): Rename to...
5149 (maddhisi4tb): ... This.
5150 (*maddhisi4tt): Rename to...
5151 (maddhisi4tt): ... This.
5152 (arm_smlatb_setq): New define_insn.
5153 (arm_smlatb): New define_expand.
5154 (arm_smlatt_setq): New define_insn.
5155 (arm_smlatt): New define_expand.
5156 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5157 (arm_<smlaw_op>): New define_expand.
5158 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5159 __smlawb, __smlawt): Define.
5160 * config/arm_acle_builtins.def: Define builtins for the above.
5161 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5162 (slaw_op): New int_attribute.
5163 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5164
5165 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5166
5167 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5168 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5169 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5170 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5171 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5172 (ss_op): New code_attr.
5173
5174 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5175
5176 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5177 * config/arm/arm.md (APSRQ_REGNUM): Define.
5178 (add_setq): New define_subst.
5179 (add_clobber_q_name): New define_subst_attr.
5180 (add_clobber_q_pred): Likewise.
5181 (maddhisi4): Change to define_expand. Split into mult and add if
5182 ARM_Q_BIT_READ.
5183 (arm_maddhisi4): New define_insn.
5184 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5185 (*maddhisi4tt): Likewise.
5186 (arm_ssat): New define_expand.
5187 (arm_usat): Likewise.
5188 (arm_get_apsr): New define_insn.
5189 (arm_set_apsr): Likewise.
5190 (arm_saturation_occurred): New define_expand.
5191 (arm_set_saturation): Likewise.
5192 (*satsi_<SAT:code>): Rename to...
5193 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5194 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5195 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5196 (CALL_USED_REGISTERS): Mark apsrq.
5197 (FIRST_PSEUDO_REGISTER): Update value.
5198 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5199 (machine_function): Add q_bit_access.
5200 (ARM_Q_BIT_READ): Define.
5201 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5202 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5203 operand_reg_set.
5204 (arm_q_bit_access): Define.
5205 * config/arm/arm-builtins.c: Include stringpool.h.
5206 (arm_sat_binop_imm_qualifiers,
5207 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5208 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5209 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5210 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5211 SET_SAT_QUALIFIERS): Likewise.
5212 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5213 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5214 Handle 0 argument expander.
5215 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5216 (arm_check_builtin_call): Define.
5217 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5218 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5219 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5220 (arm_q_bit_access): Likewise.
5221 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5222 __saturation_occurred, __set_saturation_occurred): Define.
5223 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5224 saturation_occurred, set_saturation_occurred.
5225 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5226 (UNSPEC_APSR_READ): Likewise.
5227 (VUNSPEC_APSR_WRITE): Likewise.
5228 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5229 (*arm_ssadd<mode>3): New define_insn.
5230 (sssub<mode>3): Convert to define_expand.
5231 (*arm_sssub<mode>3): New define_insn.
5232 (ssmulsa3): Convert to define_expand.
5233 (*arm_ssmulsa3): New define_insn.
5234 (usmulusa3): Convert to define_expand.
5235 (*arm_usmulusa3): New define_insn.
5236 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5237 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5238 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5239
5240 2019-11-07 Martin Liska <mliska@suse.cz>
5241
5242 PR c++/92354
5243 * cgraph.c (delete_function_version): Clear global
5244 variable version_info_node if equal to deleted
5245 function.
5246
5247 2019-11-07 Martin Liska <mliska@suse.cz>
5248
5249 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5250 of CONSTRUCTOR_NO_CLEARING.
5251 (operand_compare::hash_operand): Likewise.
5252
5253 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5254
5255 Support 64-bit double and 64-bit long double configurations.
5256
5257 PR target/92055
5258 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5259 --with-long-double=.
5260 * config/avr/t-multilib: Remove.
5261 * config/avr/t-avr: Output of genmultilib.awk is now fully
5262 dynamically generated and no more part of the repo.
5263 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5264 Pass them down to...
5265 * config/avr/genmultilib.awk: ...here and handle them.
5266 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5267 (-mlong-double=, avr_long_double). New option and var.
5268 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5269 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5270 Set default as requested by --with-double=
5271 (TARGET_HANDLE_OPTION): Define to this...
5272 (avr_handle_option): ...new hook worker.
5273 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5274 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5275 (avr_double_lib): New proto for spec function.
5276 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5277 (DRIVER_SELF_SPECS): Call %:double-lib.
5278 * config/avr/avr.c (avr_option_override): Assert
5279 sizeof(long double) >= sizeof(double) for the target.
5280 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5281 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5282 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5283 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5284 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5285 New built-in define depending on --with-double=, --with-long-double=.
5286 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5287 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5288 * doc/install.texi (Cross-Compiler-Specific Options)
5289 <--with-double=, --with-long-double=>: Doc.
5290
5291 2019-11-07 Richard Biener <rguenther@suse.de>
5292
5293 * dbgcnt.def (gimple_unroll): New.
5294 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5295 gimple_unroll debug counter before applying transform.
5296 (try_peel_loop): Likewise.
5297
5298 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5299
5300 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5301 frame pointer in multiple registers.
5302 (ira_setup_eliminable_regset): Setup eliminable_regset,
5303 ira_no_alloc_regs and regs_ever_live for frame pointer in
5304 multiple registers.
5305
5306 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5307
5308 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5309 V2DI modes.
5310
5311 2019-11-06 Jan Hubicka <jh@suse.cz>
5312
5313 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5314 allocations.
5315 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5316 Do not silently ignore summary corruptions.
5317
5318 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5319
5320 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5321 the epilogue if there are peeled iterations for it to handle.
5322
5323 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5324
5325 * config/arc/arc.c (arc_split_ior): Add asserts.
5326 (arc_split_mov_const): Likewise.
5327 (arc_check_ior_const): Do not match known short immediate values.
5328 * config/arc/arc.md (movsi): Don't split predicated instructions
5329 (iorsi): Likewise.
5330
5331 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5332
5333 * config/arc/arc.opt (mea): Update help string.
5334 * doc/invoke.texi(ARC): Update mea option info.
5335
5336 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5337
5338 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5339 (zero_extendqisi2_ac): Likewise.
5340 (zero_extendhisi2_i): Likewise.
5341 (extendqihi2_i): Likewise.
5342 (extendqisi2_ac): Likewise.
5343 (extendhisi2_i): Likewise.
5344
5345 2019-11-06 Richard Biener <rguenther@suse.de>
5346
5347 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5348 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5349 Simplify single_defuse_cycle condition.
5350
5351 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5352
5353 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5354 epilogue loop, make sure that the VF is small enough or that
5355 the epilogue loop can be fully-masked.
5356
5357 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5358
5359 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5360 loop when we've finished, rather than returning directly from
5361 the loop. Use a local variable to track whether we're still
5362 searching for the preferred simdlen. Make vect_epilogues
5363 record whether the next iteration should try to treat the
5364 loop as an epilogue.
5365
5366 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5367
5368 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5369 __arc_hard_float__, __ARC_HARD_FLOAT__,
5370 __arc_soft_float__, __ARC_SOFT_FLOAT__
5371
5372 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5373
5374 PR tree-optimization/92317
5375 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5376 update phi's with constant phi arguments.
5377
5378 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5379 Alexandre Oliva <oliva@adacore.com>
5380
5381 * common.opt (-fcallgraph-info[=]): New option.
5382 * doc/invoke.texi (Developer options): Document it.
5383 * opts.c (common_handle_option): Handle it.
5384 * builtins.c (expand_builtin_alloca): Record allocation if
5385 -fcallgraph-info=da.
5386 * calls.c (expand_call): If -fcallgraph-info, record the call.
5387 (emit_library_call_value_1): Likewise.
5388 * flag-types.h (enum callgraph_info_type): New type.
5389 * explow.c: Include stringpool.h.
5390 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5391 * function.c (allocate_stack_usage_info): New.
5392 (allocate_struct_function): Call it for -fcallgraph-info.
5393 (prepare_function_start): Call it otherwise.
5394 (record_final_call, record_dynamic_alloc): New.
5395 * function.h (struct callinfo_callee): New.
5396 (CALLEE_FROM_CGRAPH_P): New.
5397 (struct callinfo_dalloc): New.
5398 (struct stack_usage): Add callees and dallocs.
5399 (record_final_call, record_dynamic_alloc): Declare.
5400 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5401 object if -fcallgraph-info=da.
5402 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5403 * print-tree.h (print_decl_identifier): Declare.
5404 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5405 * print-tree.c: Include print-tree.h.
5406 (print_decl_identifier): New function.
5407 * toplev.c: Include print-tree.h.
5408 (callgraph_info_file): New global variable.
5409 (callgraph_info_external_printed): Likewise.
5410 (output_stack_usage): Rename to...
5411 (output_stack_usage_1): ... this. Make it static, add cf
5412 parameter. If -fcallgraph-info=su, print stack usage to cf.
5413 If -fstack-usage, use print_decl_identifier for
5414 pretty-printing.
5415 (INDIRECT_CALL_NAME): New.
5416 (dump_final_node_vcg_start): New.
5417 (dump_final_callee_vcg, dump_final_node_vcg): New.
5418 (output_stack_usage): New.
5419 (lang_dependent_init): Open and start file if
5420 -fcallgraph-info. Allocated callgraph_info_external_printed.
5421 (finalize): If callgraph_info_file is not null, finish it,
5422 close it, and release callgraph_info_external_printed.
5423
5424 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5425 Frederik Harwath <frederik@codesourcery.com>
5426 Thomas Schwinge <thomas@codesourcery.com>
5427
5428 * omp-low.c (struct omp_context): New fields
5429 local_reduction_clauses, outer_reduction_clauses.
5430 (new_omp_context): Initialize these.
5431 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5432 (scan_omp_for): Check reduction clauses for incorrect nesting.
5433
5434 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5435
5436 PR inline-asm/92352
5437 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5438 operands with non-memory constraints.
5439
5440 2019-11-05 Martin Sebor <msebor@redhat.com>
5441
5442 PR tree-optimization/92373
5443 * tree.c (component_ref_size): Only consider initializers of objects
5444 of matching struct types.
5445 Return null for instances of interior zero-length arrays.
5446
5447 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5448
5449 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5450
5451 2019-11-05 Jason Merrill <jason@redhat.com>
5452
5453 PR tree-optimization/91825
5454 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5455
5456 2019-11-05 Jim Wilson <jimw@sifive.com>
5457
5458 PR middle-end/92263
5459 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5460 optimize_insn_for_speed_p is true.
5461
5462 2019-11-05 Martin Sebor <msebor@redhat.com>
5463
5464 PR middle-end/92333
5465 PR middle-end/82608
5466 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5467 size.
5468 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5469 name and location for a temporary variable.
5470
5471 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5472
5473 * tree-vrp.c (value_range::value_range): Fix whitespace.
5474 (defined_ranges_p): Same.
5475 (range_fold_binary_symbolics_p): Same.
5476 (value_range::intersect_helper): Same.
5477 (value_range::union_helper): Same.
5478 * tree-vrp.h (range_fold_binary_expr): Same.
5479
5480 2019-11-04 Martin Sebor <msebor@redhat.com>
5481
5482 PR middle-end/92341
5483 PR middle-end/82612
5484 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5485 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5486 of message printed in a warning for empty arrays.
5487 (vrp_prop::check_mem_ref): Also handle function parameters and
5488 empty arrays.
5489
5490 2019-11-05 Richard Biener <rguenther@suse.de>
5491
5492 PR tree-optimization/92371
5493 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5494 on the original stmt of live stmts in the chain.
5495 (vectorizable_live_operation): Look at the original stmt when
5496 checking STMT_VINFO_REDUC_DEF.
5497
5498 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5499
5500 * gimple-fold.c, gimple-loop-versioning.cc,
5501 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5502 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5503 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5504 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5505 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5506 value_range_equiv, and value_range_base to value_range.
5507
5508 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5509
5510 * expr.c (build_personality_function): Fix generated type to
5511 match actual personality functions.
5512
5513 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5514
5515 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5516 enough bytes for the NULL character.
5517
5518 2019-11-05 Richard Biener <rguenther@suse.de>
5519
5520 PR tree-optimization/92280
5521 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5522 had a single use do not create a new CTOR.
5523 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5524 BIT_FIELD_REF of a CTOR via GENERIC.
5525
5526 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5527
5528 * config/s390/s390.c (s390_vector_alignment): Check if the value
5529 fits into uhwi before using it.
5530
5531 2019-11-05 Martin Liska <mliska@suse.cz>
5532
5533 * symbol-summary.h: Use ggc_delete.
5534
5535 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5536
5537 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5538 Change vec_perm field to 10.
5539
5540 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5541
5542 * doc/install.texi: Further fix syntax for html generation.
5543
5544 2019-11-05 Martin Liska <mliska@suse.cz>
5545
5546 * symbol-summary.h: Rename allocator to m_allocator and
5547 add comment.
5548
5549 2019-11-05 Richard Biener <rguenther@suse.de>
5550
5551 PR tree-optimization/92324
5552 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5553 all signed or unsigned operations.
5554
5555 2019-11-05 Jan Hubicka <jh@suse.cz>
5556
5557 * hsa-brig.c: Include alloc-pool.h
5558 * hsa-dump.c: Likewise.
5559 * hsa-gen.c: Likewise.
5560 * hse-regalloc.c: Likewise.
5561 * ipa-hsa.c: Likewise.
5562 * ipa-predicate.c: Likewise.
5563 * ipa-reference.c: Likewise.
5564 * ipa-sra.c: Likewise.
5565 * omp-expand.c: Likewise.
5566 * omp-general.c: Likewise.
5567 * omp-low.c: Likewise.
5568 * sumbol-summary.h (function_summary_base): Add allocator.
5569 (function_summary<T *>::function_summary): Update construction.
5570 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5571 (call_summary_base): Add allcator.
5572 (call_summary<T *>::call_summary): Update construction.
5573 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5574
5575 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5576
5577 PR tree-optimization/91945
5578 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5579 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5580 Formatting fix.
5581
5582 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5583
5584 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5585 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5586 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5587 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5588 (vrp_set_zero_nonzero_bits): Move to...
5589 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5590 (vr_values::simplify_bit_ops_using_ranges): Rename
5591 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5592
5593 2019-11-05 Martin Liska <mliska@suse.cz>
5594
5595 PR c++/92339
5596 * fold-const.c (operand_compare::hash_operand): Remove
5597 FIELD_DECL handling.
5598
5599 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5600
5601 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5602 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5603 static.
5604
5605 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5606
5607 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5608 properly handle symbolics.
5609 (range_compatible_p): Remove.
5610
5611 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5612
5613 * common.opt (-fabi-version): Document =14.
5614 * doc/invoke.texi (C++ Dialect Options): Likewise.
5615
5616 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5617
5618 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5619
5620 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5621
5622 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5623 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5624 gcn_omp_device_kind_arch_isa.
5625 * config/gcn/t-omp-device: New file.
5626 * configure.ac: Support gcn for omp_device_property.
5627 * configure: Regenerate.
5628
5629 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5630
5631 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5632 (vrp_val_max): Same.
5633 (vrp_val_is_min): Same.
5634 (vrp_val_is_max): Same.
5635 (value_range_base::nonzero_p): Remove last argument to
5636 vrp_val_is_max.
5637 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5638 (vrp_val_max): Same.
5639 (vrp_val_is_min): Same.
5640 (vrp_val_is_max): Same.
5641 (value_range_base::set_varying): Remove last argument to vrp_val*.
5642 (value_range_base::dump): Same.
5643 (value_range_base::set): Same.
5644 (value_range_base::normalize_symbolics): Same.
5645 (value_range_base::num_pairs): Same.
5646 (value_range_base::lower_bound): Same.
5647 (value_range_base::upper_bound): Same.
5648 (ranges_from_anti_range): Remove handle_pointers argument.
5649 (value_range_base::singleton_p): Remove last argument to
5650 ranges_from_anti_range.
5651
5652 2019-11-04 Jan Hubicka <jh@suse.cz>
5653
5654 * ipa-reference.c (init_function_info): Initialize
5655 info->global.statics_read.
5656
5657 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5658
5659 * tree-vrp.c (value_range_base::invert): Use constructors to build
5660 range.
5661
5662 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5663
5664 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5665 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5666
5667 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5668
5669 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5670 VR_UNDEFINED.
5671
5672 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5673
5674 * tree-vrp.c (dump_assert_info): New.
5675 (dump_asserts_info): New.
5676
5677 2019-11-04 Jan Hubicka <jh@suse.cz>
5678
5679 * ipa-inline-transform.c: Include ipa-utils.h
5680 (inline_call): Set thunk_expansion flag.
5681 * ipa-utils.h (thunk_expansion): Declare.
5682 * ipa-devirt.c (thunk_expansion): New global var.
5683 (devirt_node_removal_hook): Do not invalidate cache while
5684 doing thunk expansion.
5685
5686 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5687
5688 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5689
5690 2019-11-04 Martin Sebor <msebor@redhat.com>
5691
5692 PR tree-optimization/92349
5693 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5694 memebers have constant sizes.
5695
5696 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5697
5698 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5699 parameter.
5700 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5701 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5702 vect_analyze_loop.
5703
5704 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5705
5706 * expr.c (store_constructor): Modify to handle single element vectors.
5707 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5708 constructors.
5709 (vect_slp_check_for_constructors): New function.
5710 (vect_slp_analyze_bb_1): Call new function to check for vector
5711 constructors.
5712 (vectorize_slp_instance_root_stmt): New function.
5713 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5714 constructors.
5715 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5716
5717 2019-11-04 Richard Biener <rguenther@suse.de>
5718
5719 PR tree-optimization/92345
5720 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5721 we produced a reduction chain.
5722 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5723 LOOP_VINFO_REDUCTIONS.
5724
5725 2019-11-04 Jan Hubicka <jh@suse.cz>
5726
5727 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5728 duplicate summaries.
5729 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5730 first.
5731 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5732 access call summaries.
5733 (dump_ipa_call_summary): Be ready for missing edge summaries.
5734 (analyze_function_body): Use get instead of get_create to access
5735 edge summary.
5736 (estimate_calls_size_and_time): Do not access summaries of
5737 inlined edges; sanity check they are missing.
5738 (ipa_call_context::estimate_size_and_time): Use get instead
5739 of get_create to access node summary.
5740 (inline_update_callee_summaries): Do not update depth of
5741 inlined edge.
5742 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5743 growth caches.
5744 (ipa_merge_fn_summary_after_inlining): Use get instead
5745 of get_create.
5746 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5747 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5748 fast summary.
5749 (initialize_growth_caches): Update.
5750 (do_estimate_edge_time): Remove redundant copy of context.
5751 (ipa_remove_from_growth_caches): New function.
5752 * ipa-inline.c (flatten_function): Update overall summary
5753 only when optimizing.
5754 (inline_to_all_callers): Update overall summary of function
5755 inlined to.
5756 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5757 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5758 to false.
5759
5760 2019-11-04 Richard Biener <rguenther@suse.de>
5761
5762 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5763 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5764
5765 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5766
5767 * ggc-common.c: Include system.h before malloc.h.
5768
5769 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5770
5771 * configure.ac: Pass --enable-obsolete=* and
5772 --enable-option-checking=* down to build configure, and fail
5773 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5774 * configure: Rebuild.
5775 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5776 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5777
5778 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5779
5780 * config.in: Regenerate.
5781 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5782 -mtiny-printf is used without GCC being configured with
5783 --enable-newlib-nano-formatted-io.
5784 * config/msp430/msp430.h (LINK_SPEC): Pass
5785 "--wrap puts --wrap printf" when -mtiny-printf is used.
5786 * config/msp430/msp430.opt: Document -mtiny-printf.
5787 * configure: Regenerate.
5788 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5789 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5790 --enable-newlib-nano-formatted-io is passed.
5791 * doc/invoke.texi: Document -mtiny-printf.
5792
5793 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5794
5795 * configure: Regenerate.
5796
5797 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5798
5799 * config/msp430/driver-msp430.c
5800 (msp430_get_linker_devices_include_path): New spec function.
5801 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5802 (extract_devices_dir_from_exec_prefix): New function.
5803 (extract_devices_dir_from_collect_gcc): New function.
5804 (msp430_check_env_var_for_devices): New function.
5805 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5806 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5807 devices.csv was not found using other methods.
5808 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5809 New prototype.
5810 (msp430_dirname): Likewise.
5811 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5812 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5813 msp430_get_linker_devices_include_path.
5814 (TARGET_EXTRA_PRE_INCLUDES): Define.
5815 * doc/invoke.texi: Document new ways of searching for support files.
5816
5817 2019-11-04 Richard Biener <rguenther@suse.de>
5818
5819 PR tree-optimization/92301
5820 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5821 as required by epilogue generation
5822
5823 2019-11-04 Martin Liska <mliska@suse.cz>
5824
5825 PR ipa/92304
5826 * fold-const.c (operand_compare::hash_operand): Fix field
5827 hashing of CONSTRUCTOR.
5828
5829 2019-11-04 Martin Liska <mliska@suse.cz>
5830
5831 * ggc.h (ggc_delete): New function.
5832 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5833 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5834 (ipa_free_all_node_params): Likewise.
5835 * ipa-sra.c (ipa_sra_analysis): Likewise.
5836
5837 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5838
5839 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5840 set_switch_stmt_execution_predicate, compute_bb_predicates,
5841 will_be_nonconstant_expr_predicate,
5842 phi_result_unknown_predicate,
5843 analyze_function_body): Pass arround params summary.
5844 (ipa_call_context::duplicate_from): New comment;
5845 only duplicate useful values.
5846 (ipa_call_context::equal_to): Only compare useful values.
5847 (remap_edge_summaries): Pass params_summary.
5848 (remap_hint_predicate): Likewise.
5849 (ipa_merge_fn_summary_after_inlining): Likewise.
5850 (inline_read_section): Initialize params summary used flags.
5851 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5852 around param_summary.
5853 (add_condition): Initialized used params summary flags.
5854 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5855 (inline_param_summary::useless_p): New predicate.
5856 (remap_after_inlining, add_condition): Update prototype
5857 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5858 move_cost.
5859 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5860 summaries.
5861 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5862 (ipa_analyze_virtual_call_uses): Likewise.
5863 (update_indirect_edges_after_inlining): Update param summaries.
5864 (ipa_print_node_params): Print used flags.
5865 (ipa_read_indirect_edge_info): Update param summareis.
5866 * ipa-prop.h (ipa_param_descriptor): Add
5867 used_by_ipa_predicates, used_by_indirect_call
5868 and used_by_polymorphic_call.
5869 (ipa_set_param_used_by_ipa_predicates,
5870 ipa_set_param_used_by_indirect_call,
5871 ipa_set_param_used_by_polymorphic_call,
5872 ipa_is_param_used_by_ipa_predicates,
5873 ipa_is_param_used_by_indirect_call,
5874 ipa_is_param_used_by_polymorphic_call): New inline functions.
5875
5876 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5877
5878 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5879 member function.
5880 (ipa_call_context::release): Add ALL parameter.
5881 (ipa_call_context::equal_to): New member function.
5882 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5883 duplicate_form, release, equal_to and exists_p member functoins.
5884 * ipa-inline-analysis.c (node_context_cache_entry): New
5885 class.
5886 (node_context_summary): Likewise.
5887 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5888 node_context_clear): New static vars.
5889 (initialize_growth_caches): New function.
5890 (free_growth_caches): Also delete node_context_cache; output stats.
5891 (do_estimate_edge_time): Cache contexts.
5892 (reset_node_cache): New function.
5893 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5894 (inline_small_functions): Initialize growth caches.
5895 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5896 Declare.
5897 * ipa-predicate.h (inline_param_summary::equal_to): New.
5898 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5899 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5900 (ipa_agg_jump_function): Implement equal_to member function.
5901
5902 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5903
5904 * ipa-fnsummary.c (inline_read_section): Set vector size
5905 ahead of time.
5906
5907 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5908
5909 * ipa-fnsummary.c (ipa_call_context): New constructor.
5910 (estimate_node_size_and_time): Turn to ...
5911 (ipa_call_context::estimate_size_and_time): ... this one.
5912 (ipa_call_context::release): New.
5913 * ipa-fnsummary.h (ipa_call_context): New class.
5914 (estimate_node_size_and_time): Remove.
5915 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5916 do_estimate_edge_hints): Update.
5917
5918 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5919
5920 * config.in: Regenerate.
5921 * configure: Regenerate.
5922 * configure.ac: Check for mallinfo.
5923 * ggc-common.c: Include malloc.h if available;
5924 include options.h
5925 (report_heap_memory_use): New functoin.
5926 * ggc-page.c (ggc_grow): Do not print "start".
5927 * ggc.h (report_heap_memory_use): Declare.
5928 * pases.c (execute_one_pass): Report memory after IPA passes.
5929 (ipa_read_summaries_1): Likewise.
5930 (ipa_read_optimization_summaries_1): Likewise.
5931
5932 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5933
5934 * gimplify.h (omp_construct_selector_matches): Change return
5935 type to int, add a new SCORES argument.
5936 * gimplify.c (omp_construct_selector_matches): Likewise. If
5937 SCORES is non-NULL, compute scores of each construct.
5938 * omp-general.h (omp_get_context_selector): Declare.
5939 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5940 Adjust omp_construct_selector_matches callers.
5941 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5942 (omp_context_compute_score): New function.
5943 (omp_resolve_declare_variant): Compute scores and decide based on
5944 that.
5945
5946 PR bootstrap/92314
5947 * configure.ac: Don't look for omp-device-properties files from
5948 installed offloading compilers. Instead add tmake_file snippets
5949 for configured offloading targets and use files they generate.
5950 * Makefile.in (install): Don't depend on
5951 install-omp-device-properties.
5952 (install-omp-device-properties): Remove goal.
5953 * config/i386/t-omp-device: New file.
5954 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5955 * config/nvptx/t-omp-device: New file.
5956 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5957 * configure: Regenerated.
5958
5959 * omp-general.h (omp_context_selector_set_compare): Declare.
5960 * omp-general.c (omp_construct_simd_compare,
5961 omp_context_selector_props_compare, omp_context_selector_set_compare,
5962 omp_context_selector_compare): New functions.
5963 (omp_resolve_declare_variant): Prune variants that are strict subset
5964 of another variant.
5965
5966 2019-11-01 Martin Sebor <msebor@redhat.com>
5967
5968 PR middle-end/91679
5969 PR middle-end/91647
5970 PR middle-end/91463
5971 PR middle-end/92312
5972 * doc/invoke.texi (-Wzero-length-bounds): Document.
5973 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5974 instead of a hand-rolled loop to avoid PR 92323.
5975 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5976 with initializers.
5977 (vrp_prop::check_mem_ref): Handle declared struct objects.
5978 * tree.c (last_field): New function.
5979 (array_at_struct_end_p): Handle MEM_REF.
5980 (get_initializer_for): New helper.
5981 (component_ref_size): Add argument. Rename locals. Call
5982 get_initializer_for instead of fold_ctor_reference. Correct handling
5983 of flexible array members.
5984 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5985
5986 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5987
5988 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5989 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5990 UNSPEC_VSX_CVSPUXDS): Remove.
5991 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5992 (vsx_xvcvspdp_be): ... this. New. And...
5993 (vsx_xvcvspdp_le): ... this. New.
5994 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5995 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5996 (vsx_xvcv<su>xwdp_le): ... this. New.
5997 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5998 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5999 (vsx_xvcvsp<su>xds_le): ... this. New.
6000
6001 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6002
6003 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6004 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6005 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6006 UNSPEC_VSX_XVCVSPSXWS): Remove.
6007 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6008 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6009
6010 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6011
6012 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6013 (UNSPEC_VSX_XVCDPSP): Remove.
6014 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6015 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6016
6017 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6018
6019 * hooks.c (hook_tree_tree_bool_null): New.
6020 * hooks.h (hook_tree_tree_bool_null): Declare.
6021 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6022 (LANG_HOOKS_DECLS): Add it.
6023 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6024 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6025 (lower_omp_target): Handle Fortran array with descriptor in
6026 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6027
6028 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6029
6030 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6031 Assert that the type we store in abi_vector_types is its own
6032 main variant.
6033 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6034
6035 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6036
6037 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6038 from a CONST_INT address when TARGET_THUMB2.
6039
6040 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6041
6042 * config/arm/arm.md (add_not_cin): New insn.
6043 (add_not_shift_cin): Likewise.
6044
6045 2019-10-31 Martin Liska <mliska@suse.cz>
6046
6047 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6048 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6049 and compare_memory_operand.
6050
6051 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6052
6053 * configure.ac: Compute and substitute omp_device_properties and
6054 omp_device_property_deps.
6055 * Makefile.in (generated_files): Add omp-device-properties.h.
6056 (omp-general.o): Depend on omp-device-properties.h.
6057 (omp_device_properties): New make variable.
6058 (omp-device-properties.h, s-omp-device-properties-h,
6059 install-omp-device-properties): New goals.
6060 (install): Depend on install-omp-device-properties for accelerators.
6061 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6062 * target.h (enum omp_device_kind_arch_isa): New enum.
6063 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6064 documentation.
6065 * omp-general.c: Include omp-device-properties.h.
6066 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6067 colon instead of comma.
6068 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6069 functions.
6070 (omp_context_selector_matches): Implement device set arch/isa
6071 selectors, improve device set kind selector handling.
6072 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6073 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6074 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6075 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6076 ix86_omp_device_kind_arch_isa.
6077 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6078 definition from ix86_target_string to file scope.
6079 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6080 to file scope.
6081 (ix86_omp_device_kind_arch_isa): New function.
6082 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6083 isa_opts definitions to file scope.
6084 * config/i386/t-intelmic (omp-device-properties): New goal.
6085 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6086 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6087 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6088 nvptx_omp_device_kind_arch_isa.
6089 * configure: Regenerate.
6090 * doc/tm.texi: Regenerate.
6091
6092 PR middle-end/92231
6093 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6094 DECL_BUILT_IN in comment. Remove redundant ()s around return
6095 argument.
6096 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6097 before calling fndecl_built_in_p.
6098 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6099 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6100 fndecl_built_in_p on it.
6101
6102 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6103
6104 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6105
6106 2019-10-31 Martin Liska <mliska@suse.cz>
6107
6108 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6109 of cgraph_local_info and use local_info_node instead.
6110 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6111 (bfin_function_ok_for_sibcall): Likewise.
6112 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6113 (must_reload_pic_reg_p): Likewise.
6114
6115 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6116
6117 PR c++/90947
6118 * tree.h (type_initializer_zero_p): Remove.
6119 * tree.c (type_initializer_zero_p): Remove.
6120
6121 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6122
6123 * doc/invoke.texi (-Wshadow, -Wshadow=global
6124 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6125
6126 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6127
6128 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6129 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6130 and 'target exit data'.
6131
6132 2019-10-30 Martin Jambor <mjambor@suse.cz>
6133
6134 ipa/92278
6135 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6136 availability comparison.
6137
6138 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6139
6140 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6141 calls to __mspabi_mpy* functions.
6142 * config/msp430/msp430.md (mulhisi3): New define_expand.
6143 (umulhisi3): New define_expand.
6144 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6145 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6146
6147 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6148
6149 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6150 (msp430_check_plus_not_high_mem): New.
6151 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6152 might be in low memory.
6153 Indicate that a 16-bit absolute address is in lower memory.
6154
6155 2019-10-30 Martin Jambor <mjambor@suse.cz>
6156
6157 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6158 ultimate_alias_target.
6159
6160 2019-10-30 Richard Biener <rguenther@suse.de>
6161
6162 PR tree-optimization/92275
6163 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6164 Copy all loop-closed PHIs.
6165
6166 2019-10-30 Martin Liska <mliska@suse.cz>
6167
6168 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6169 const_tree as function argument.
6170 (func_checker::compare_decl): Likewise.
6171 (func_checker::operand_equal_p): Likewise.
6172 (func_checker::compare_variable_decl): Likewise.
6173 (func_checker::parse_labels): Likewise.
6174 * ipa-icf-gimple.h: Likewise.
6175
6176 2019-10-30 Martin Liska <mliska@suse.cz>
6177
6178 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6179 Do not compare alias sets. It's handled by operand_equal_p.
6180
6181 2019-10-30 Martin Liska <mliska@suse.cz>
6182
6183 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6184 initialize m_compare_polymorphic.
6185 (func_checker::compare_decl): Do not compare polymorphic types.
6186 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6187 * ipa-icf.c (sem_function::equals_private): Do not call
6188 compare_polymorphic_p.
6189
6190 2019-10-30 Martin Liska <mliska@suse.cz>
6191
6192 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6193 compare_operand.
6194 (func_checker::compare_memory_operand): Remove.
6195 (func_checker::compare_cst_or_decl): Remove.
6196 (func_checker::operand_equal_valueize): Do not handle
6197 FIELD_DECL.
6198 (func_checker::compare_gimple_call): Call compare_operand.
6199 (func_checker::compare_gimple_assign): Likewise.
6200 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6201 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6202 * ipa-icf.h (icf_handled_component_p): Remove.
6203
6204 2019-10-30 Martin Liska <mliska@suse.cz>
6205
6206 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6207 (func_checker::compare_cst_or_decl): Remove handling
6208 of FIELD_DECL.
6209 (func_checker::compare_operand): Transform to ...
6210 (func_checker::operand_equal_p): ... this.
6211 * ipa-icf-gimple.h (class func_checker): Add
6212 operand_equal_p and hash_operand.
6213 * ipa-icf.c (sem_function::equals_private): Fix
6214 pushing and popping of cfun.
6215
6216 2019-10-30 Martin Liska <mliska@suse.cz>
6217
6218 * fold-const.c (operand_equal_p): Move to ...
6219 (operand_compare::operand_equal_p): ... here.
6220 (operand_compare::verify_hash_value): New.
6221 (add_expr): Move to ...
6222 (operand_compare::hash_operand): ... here.
6223 * fold-const.h (operand_equal_p): Move to the class.
6224 (class operand_compare): New.
6225 * tree.c (add_expr): Remove.
6226
6227 2019-10-30 Martin Liska <mliska@suse.cz>
6228
6229 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6230 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6231
6232 2019-10-30 Martin Liska <mliska@suse.cz>
6233
6234 PR lto/91393
6235 PR lto/88220
6236 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6237 from a first_clone in order to get proper LTO section
6238 in LTO stream.
6239 (cgraph_node::get_untransformed_body):
6240 Use lto_get_section_data where symtab_node::order
6241 must be provided.
6242 * cgraphclones.c (cgraph_node::find_replacement):
6243 Update also symbol order.
6244 * ipa-fnsummary.c (ipa_fn_summary_read):
6245 Use new function lto_get_summary_section_data.
6246 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6247 * ipa-icf.c (sem_item_optimizer::read_summary):
6248 Likewise.
6249 * ipa-prop.c (ipa_prop_read_jump_functions):
6250 Likewise.
6251 (ipcp_read_transformation_summaries): Likewise.
6252 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6253 * lto-cgraph.c (input_node): Add also order_base.
6254 (input_varpool_node): Likewise.
6255 (input_cgraph_1): Assign the order_base.
6256 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6257 * lto-opts.c (lto_write_options): Pass new argument.
6258 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6259 (lto_get_summary_section_data): New.
6260 (lto_get_raw_section_data): Add order argument.
6261 (lto_create_simple_input_block): Likewise.
6262 * lto-section-out.c (lto_destroy_simple_output_block):
6263 Likewise.
6264 * lto-streamer-in.c (lto_input_toplevel_asms):
6265 Use lto_get_summary_section_data.
6266 (lto_input_mode_table): Likewise.
6267 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6268 (lto_output_toplevel_asms): Pass new argument.
6269 (copy_function_or_variable): Likewise.
6270 (produce_lto_section):Likewise.
6271 (produce_symtab): Likewise.
6272 (lto_write_mode_table): Likewise.
6273 (produce_asm_for_decls): Likewise.
6274 * lto-streamer.c (lto_get_section_name): Concat symbol name
6275 and symbol order.
6276 * lto-streamer.h (lto_get_section_data): Add order argument.
6277 (lto_get_summary_section_data): New.
6278 (lto_get_raw_section_data): Add order argument.
6279 (lto_get_section_name): Likewise.
6280 * varpool.c (varpool_node::get_constructor): Pass order argument.
6281
6282 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6283
6284 PR tree-optimization/92262
6285 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6286 ubase or cbase here.
6287 (remove_unused_ivs): Unshare comp before using it.
6288
6289 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6290
6291 * ipa-prop.c (update_jump_functions_after_inlining):
6292 Watch for missing summaries.
6293
6294 2019-10-30 Richard Biener <rguenther@suse.de>
6295
6296 PR tree-optimization/65930
6297 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6298 chains also allow a leading and trailing conversion.
6299 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6300 intermediate reduction chains.
6301 (vect_analyze_slp_instance): Likewise. Build a SLP
6302 node for a trailing conversion manually.
6303
6304 2019-10-30 Martin Liska <mliska@suse.cz>
6305
6306 * cgraph.c (cgraph_node::local_info): Transform to ...
6307 (cgraph_node::local_info_node): ... this.
6308 (cgraph_node::dump): Remove cgraph_local_info and
6309 put its fields directly into cgraph_node.
6310 (cgraph_node::get_availability): Likewise.
6311 (cgraph_node::make_local): Likewise.
6312 (cgraph_node::verify_node): Likewise.
6313 * cgraph.h (struct GTY): Likewise.
6314 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6315 (duplicate_thunk_for_node): Likewise.
6316 (cgraph_node::create_clone): Likewise.
6317 (cgraph_node::create_virtual_clone): Likewise.
6318 (cgraph_node::create_version_clone): Likewise.
6319 * cgraphunit.c (cgraph_node::reset): Likewise.
6320 (cgraph_node::finalize_function): Likewise.
6321 (cgraph_node::add_new_function): Likewise.
6322 (analyze_functions): Likewise.
6323 * combine.c (setup_incoming_promotions): Likewise.
6324 * config/i386/i386.c (ix86_function_regparm): Likewise.
6325 (ix86_function_sseregparm): Likewise.
6326 (init_cumulative_args): Likewise.
6327 * ipa-cp.c (determine_versionability): Likewise.
6328 (count_callers): Likewise.
6329 (set_single_call_flag): Likewise.
6330 (initialize_node_lattices): Likewise.
6331 (estimate_local_effects): Likewise.
6332 (create_specialized_node): Likewise.
6333 (identify_dead_nodes): Likewise.
6334 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6335 (ipa_fn_summary_generate): Likewise.
6336 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6337 (process_hsa_functions): Likewise.
6338 * ipa-icf.c (set_local): Likewise.
6339 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6340 * ipa-inline.c (speculation_useful_p): Likewise.
6341 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6342 (ipa_profile): Likewise.
6343 * ipa-split.c (split_function): Likewise.
6344 (execute_split_functions): Likewise.
6345 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6346 (ipa_sra_ipa_function_checks): Likewise.
6347 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6348 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6349 * lto-cgraph.c (lto_output_node): Likewise.
6350 (input_overwrite_node): Likewise.
6351 * multiple_target.c (expand_target_clones): Likewise.
6352 * omp-simd-clone.c (simd_clone_create): Likewise.
6353 * trans-mem.c (expand_call_tm): Likewise.
6354 (ipa_tm_mayenterirr_function): Likewise.
6355 (ipa_tm_diagnose_tm_safe): Likewise.
6356 (ipa_tm_diagnose_transaction): Likewise.
6357 (ipa_tm_create_version): Likewise.
6358 (ipa_tm_transform_calls_redirect): Likewise.
6359 (ipa_tm_execute): Likewise.
6360 * tree-inline.c (expand_call_inline): Likewise.
6361
6362 2019-10-29 Martin Liska <mliska@suse.cz>
6363
6364 * symbol-summary.h (function_summary): Pass memory location
6365 to underlaying hash_map (or vec).
6366 (V>::fast_function_summary): Likewise.
6367
6368 2019-10-29 Martin Liska <mliska@suse.cz>
6369
6370 * ggc.h (ggc_alloc_no_dtor): New function.
6371 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6372 destructor and ggc_free.
6373 (ipa_free_size_summary): Call delete instead
6374 of release.
6375 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6376 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6377 (ipa_free_all_edge_args): Call destructor and ggc_free.
6378 (ipa_free_all_node_params): Likewise.
6379 (ipcp_free_transformation_sum): Likewise.
6380 * ipa-prop.h (ipa_check_create_node_params):
6381 Call new ggc_alloc_no_dtor.
6382 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6383 (ipa_sra_analysis): Call destructor and ggc_free.
6384 Replace release with delete operator.
6385 * symbol-summary.h (release): Remove ..
6386 (V>::~fast_function_summary): and move logic here.
6387 Likewise for other classes.
6388
6389 2019-10-29 Richard Biener <rguenther@suse.de>
6390
6391 PR tree-optimization/92260
6392 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6393 lane-reducing ops.
6394
6395 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6396
6397 PR tree-optimization/88915
6398 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6399 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6400 and make the valueize function pointer also take a void pointer.
6401 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6402 around vn_valueize, to call it without a context.
6403 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6404 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6405 (~_loop_vec_info): Release epilogue_vinfos.
6406 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6407 number of iterations of epilogue.
6408 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6409 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6410 versioning threshold needed for main loop.
6411 (vect_analyze_loop): Likewise.
6412 (find_in_mapping): New helper function.
6413 (update_epilogue_loop_vinfo): New function.
6414 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6415 on main loop and call update_epilogue_loop_vinfo to update it.
6416 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6417 stmts on loop preheader edge.
6418 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6419 we decided to vectorize epilogues. Update epilogues NITERS and
6420 construct ADVANCE to update epilogues data references where needed.
6421 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6422 (vect_do_peeling, vect_update_inits_of_drs,
6423 determine_peel_for_niter, vect_analyze_loop): Add or update
6424 declarations.
6425 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6426 created loop_vec_info's for epilogues when available. Otherwise analyse
6427 epilogue separately.
6428
6429 2019-10-29 Richard Biener <rguenther@suse.de>
6430
6431 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6432 example.
6433
6434 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6435
6436 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6437 index for the COND_EXPR from stmt_info rather than reduc_info.
6438
6439 2019-10-29 Richard Biener <rguenther@suse.de>
6440
6441 PR tree-optimization/65930
6442 * tree-vect-loop.c (check_reduction_path): Relax single-use
6443 check allowing out-of-loop uses.
6444 (vect_is_simple_reduction): SLP reduction chains cannot have
6445 intermediate stmts used outside of the loop.
6446 (vect_create_epilog_for_reduction): The adjustment might need
6447 to be converted.
6448 (vectorizable_reduction): Annotate live stmts of the reduction
6449 chain with STMT_VINFO_REDUC_DEF.
6450 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6451
6452 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6453
6454 * calls.c (pass_by_reference): Leave the target to decide whether
6455 POLY_INT_CST-sized arguments should be passed by value or reference,
6456 rather than forcing them to be passed by reference.
6457 (must_pass_in_stack_var_size): Likewise.
6458 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6459 V31_REGNUM to P15_REGNUM.
6460 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6461 Take an extra "silent_p" parameter, defaulting to false.
6462 (aarch64_sve::svbool_type_p): Declare.
6463 (aarch64_sve::nvectors_if_data_type): Likewise.
6464 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6465 (aarch64_frame::reg_offset): Turn into poly_int64s.
6466 (aarch64_frame::save_regs_size): Likewise.
6467 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6468 (aarch64_frame::sve_callee_adjust): Likewise.
6469 (aarch64_frame::spare_reg_reg): Likewise.
6470 (ARM_PCS_SVE): New arm_pcs value.
6471 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6472 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6473 (CUMULATIVE_ARGS::silent_p): Likewise.
6474 (BITS_PER_SVE_PRED): New macro.
6475 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6476 function. Reject aarch64_vector_pcs attributes on SVE functions.
6477 (aarch64_attribute_table): Use the above handler.
6478 (aarch64_sve_abi): New function.
6479 (aarch64_sve_argument_p): Likewise.
6480 (aarch64_returns_value_in_sve_regs_p): Likewise.
6481 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6482 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6483 descriptor for them.
6484 (aarch64_simd_decl_p): Delete.
6485 (aarch64_emit_cfi_for_reg_p): New function.
6486 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6487 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6488 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6489 as partly clobbered for the SVE PCS.
6490 (aarch64_function_ok_for_sibcall): Check whether the two functions
6491 use the same ABI, rather than checking specifically for whether
6492 they're aarch64_vector_pcs functions.
6493 (aarch64_pass_by_reference): Raise an error for attempts to pass
6494 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6495 if there are not enough free registers left, or if the argument is
6496 variadic.
6497 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6498 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6499 tuples in memory.
6500 (aarch64_layout_arg): Take a function_arg_info rather than
6501 individual properties. Handle SVE predicates, vectors and tuples.
6502 Raise an error if they are passed to unprototyped functions.
6503 (aarch64_function_arg): If the silent_p flag is set, suppress the
6504 usual error about using float registers without TARGET_FLOAT.
6505 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6506 it in the cumulative_args structure. Initialize aapcs_nprn and
6507 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6508 error about using float registers without TARGET_FLOAT.
6509 If the silent_p flag is not set, also raise an error about
6510 using SVE functions when SVE is disabled.
6511 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6512 and call it for SVE functions too. Update aapcs_nprn similarly
6513 to the other register counts.
6514 (aarch64_layout_frame): If a big-endian function needs to save
6515 and restore Z8-Z15, search for a spare predicate that it can use.
6516 Store SVE predicates at the bottom of the register save area,
6517 followed by SVE vectors, then followed by the normal slots.
6518 Keep pointing the hard frame pointer at the base of the normal slots,
6519 above the SVE vectors. Update the various frame creation and
6520 tear-down strategies for the new layout, initializing the new
6521 sve_callee_adjust field. Add an additional layout for frames
6522 whose saved registers are all SVE registers.
6523 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6524 (aarch64_return_address_signing_enabled): Likewise.
6525 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6526 aarch64_reg_save_mode.
6527 (aarch64_adjust_sve_callee_save_base): New function.
6528 (aarch64_add_cfa_expression): Move earlier in file. Take the
6529 saved register as an rtx rather than a register number and use
6530 its mode for the MEM slot.
6531 (aarch64_save_callee_saves): Remove the mode argument and instead
6532 use aarch64_reg_save_mode to get the mode of each save slot.
6533 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6534 offsets. Allow GP offsets to be saved at a VL-based offset from
6535 the stack, handling this case using the frame pointer if available
6536 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6537 big-endian SVE functions; use normal moves for other SVE saves.
6538 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6539 returns true. Add explicit CFA notes when not storing via the
6540 stack pointer. Do not try to pair SVE saves.
6541 (aarch64_restore_callee_saves): Cope with poly_int64 register
6542 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6543 use normal moves for other SVE restores. Only add CFA restore notes
6544 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6545 SVE restores.
6546 (aarch64_get_separate_components): Always keep the first SVE save
6547 in the prologue if we need to use it as a stack probe. Don't allow
6548 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6549 Likewise the spare predicate register that they need. Update the
6550 offset calculation to account for the SVE save area. Use the
6551 appropriate range check for SVE LDR and STR instructions.
6552 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6553 (aarch64_process_components): Likewise. Update the offset
6554 calculation to account for the SVE save area. Only mark the
6555 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6556 Do not try to pair SVE saves.
6557 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6558 reg_offsets. When handling the final allocation, expect the
6559 first SVE register save to be part of the initial allocation
6560 and for it to act as a probe at SP. Account for the SVE callee
6561 save area in the dump information.
6562 (aarch64_expand_prologue): Update the frame diagram. Fold the
6563 SVE callee allocation into the initial allocation if stack clash
6564 protection is enabled. Use new variables to track the offset
6565 of the frame chain (and hard frame pointer) from the current
6566 stack pointer, and likewise the offset of the bottom of the
6567 register save area. Update calls to aarch64_save_callee_saves
6568 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6569 saving the FP&SIMD registers. Save the predicate registers.
6570 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6571 into account when setting the stack pointer from the frame pointer,
6572 and when deciding whether we can inherit the initial adjustment
6573 amount from the prologue. Restore the predicate registers after
6574 the vector registers, then apply sve_callee_adjust, then restore
6575 the general registers.
6576 (aarch64_secondary_reload): Don't use secondary SVE reloads
6577 for VNx16BImode.
6578 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6579 (aarch64_short_vector_p): Return false for SVE types.
6580 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6581 at the start of the function. Return false for SVE types.
6582 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6583 functions too.
6584 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6585 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6586 to big-endian targets for bytewise moves.
6587 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6588
6589 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6590 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6591 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6592
6593 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6594 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6595 aarch64-sve-builtins-base.o to extra_objs. Add
6596 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6597 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6598 (aarch64-sve-builtins-shapes.o): Likewise.
6599 (aarch64-sve-builtins-base.o): New rules.
6600 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6601 (aarch64_resolve_overloaded_builtin): Likewise.
6602 (aarch64_check_builtin_call): Likewise.
6603 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6604 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6605 pragma.
6606 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6607 (aarch64_svprfop): New enum.
6608 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6609 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6610 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6611 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6612 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6613 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6614 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6615 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6616 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6617 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6618 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6619 (aarch64_sve::mangle_builtin_type): Likewise.
6620 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6621 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6622 (aarch64_sve::expand_builtin): Likewise.
6623 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6624 (aarch64_sve_int_mode): Likewise.
6625 (aarch64_ptrue_all_mode): New function.
6626 (aarch64_convert_sve_data_to_pred): Make public.
6627 (svprfop_token): New function.
6628 (aarch64_output_sve_prefetch): Likewise.
6629 (aarch64_fold_sve_cnt_pat): Likewise.
6630 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6631 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6632 instead of gen_while_ult.
6633 (aarch64_replace_reg_mode): Make public.
6634 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6635 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6636 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6637 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6638 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6639 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6640 (aarch64_sve_ptrue_svpattern_p): Likewise.
6641 (aarch64_sve_pred_valid_immediate): Check
6642 aarch64_sve_ptrue_svpattern_p.
6643 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6644 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6645 functions.
6646 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6647 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6648 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6649 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6650 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6651 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6652 New unspecs.
6653 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6654 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6655 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6656 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6657 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6658 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6659 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6660 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6661 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6662 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6663 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6664 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6665 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6666 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6667 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6668 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6669 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6670 (Vesize): Handle partial vector modes.
6671 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6672 mode attributes.
6673 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6674 iterators.
6675 (s, paired_extend, inc_dec): New code attributes.
6676 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6677 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6678 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6679 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6680 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6681 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6682 UNSPEC_COND_FMULX.
6683 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6684 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6685 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6686 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6687 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6688 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6689 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6690 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6691 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6692 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6693 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6694 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6695 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6696 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6697 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6698 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6699 UNSPEC_COND_FSCALE.
6700 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6701 (binqops_op, binqops_op_rev, last_op): New int attributes.
6702 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6703 (fn, ab): New int attributes.
6704 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6705 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6706 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6707 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6708 UNSPEC_RBIT.
6709 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6710 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6711 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6712 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6713 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6714 UNSPEC_COND_FMULX.
6715 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6716 (brk_reg_con, brk_reg_opno): New int attributes.
6717 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6718 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6719 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6720 UNSPEC_COND_FMIN.
6721 (max_elem_bits): New int attribute.
6722 (min_elem_bits): Handle UNSPEC_RBIT.
6723 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6724 TRUNCATE as well as SUBREG.
6725 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6726 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6727 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6728 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6729 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6730 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6731 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6732 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6733 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6734 (aarch64_gather_scale_operand_h): New predicates.
6735 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6736 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6737 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6738 (*aarch64_sve_reinterpret<mode>): Allow any source register
6739 instead of requiring an exact match.
6740 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6741 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6742 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6743 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6744 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6745 (aarch64_update_ffrt): New patterns.
6746 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6747 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6748 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6749 (@aarch64_ld<fn>f1<mode>): New patterns.
6750 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6751 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6752 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6753 (@aarch64_ldnt1<mode>): New patterns.
6754 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6755 the scalar part of the address.
6756 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6757 scalar part of the addresse and add an alternative for handling
6758 nonzero offsets.
6759 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6760 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6761 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6762 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6763 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6764 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6765 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6766 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6767 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6768 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6769 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6770 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6771 (@aarch64_sve_prefetch<mode>): New patterns.
6772 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6773 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6774 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6775 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6776 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6777 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6778 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6779 (@aarch64_stnt1<mode>): New patterns.
6780 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6781 the scalar part of the address.
6782 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6783 the scalar part of the addresse and add an alternative for handling
6784 nonzero offsets.
6785 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6786 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6787 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6788 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6789 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6790 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6791 New patterns.
6792 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6793 (extract_last_<mode>): Generalize to...
6794 (@extract_<LAST:last_op>_<mode>): ...this.
6795 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6796 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6797 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6798 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6799 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6800 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6801 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6802 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6803 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6804 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6805 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6806 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6807 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6808 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6809 (*aarch64_adr_uxtw_unspec): Likewise.
6810 (*aarch64_adr_uxtw): Rename to...
6811 (*aarch64_adr_uxtw_and): ...this.
6812 (@aarch64_adr<mode>_shift): New expander.
6813 (*aarch64_adr_shift_sxtw): New pattern.
6814 (aarch64_<su>abd<mode>_3): Rename to...
6815 (@aarch64_pred_<su>abd<mode>): ...this.
6816 (<su>abd<mode>_3): Update accordingly.
6817 (@aarch64_cond_<su>abd<mode>): New expander.
6818 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6819 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6820 (*<su>mul<mode>3_highpart): Rename to...
6821 (@aarch64_pred_<optab><mode>): ...this.
6822 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6823 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6824 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6825 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6826 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6827 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6828 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6829 (*v<ASHIFT:optab><mode>3): Rename to...
6830 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6831 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6832 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6833 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6834 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6835 (@cond_asrd<mode>): New expander.
6836 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6837 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6838 (*sdiv_pow2<mode>3): Delete.
6839 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6840 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6841 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6842 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6843 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6844 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6845 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6846 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6847 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6848 (*add<SVE_F:mode>3): Rename to...
6849 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6850 for SVE_STRICT_GP.
6851 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6852 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6853 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6854 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6855 (*sub<SVE_F:mode>3): Rename to...
6856 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6857 for SVE_STRICT_GP.
6858 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6859 (*fabd<SVE_F:mode>3): Rename to...
6860 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6861 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6862 (*mul<SVE_F:mode>3): Rename to...
6863 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6864 for SVE_STRICT_GP.
6865 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6866 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6867 to...
6868 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6869 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6870 (*<nlogical><PRED_ALL:mode>3): Rename to...
6871 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6872 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6873 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6874 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6875 (aarch64_pred_<logical_nn><mode>_z): ...this.
6876 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6877 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6878 (*fma<SVE_I:mode>4): Rename to...
6879 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6880 (*fnma<SVE_I:mode>4): Rename to...
6881 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6882 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6883 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6884 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6885 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6886 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6887 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6888 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6889 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6890 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6891 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6892 (@aarch64_sve_tmad<mode>): Likewise.
6893 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6894 (*aarch64_sel_dup<mode>): Rename to...
6895 (@aarch64_sel_dup<mode>): ...this.
6896 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6897 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6898 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6899 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6900 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6901 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6902 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6903 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6904 (*fcm<cmp_op><mode>): Rename to...
6905 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6906 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6907 (*fcmuo<mode>): Rename to...
6908 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6909 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6910 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6911 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6912 (fold_extract_last_<mode>): Generalize to...
6913 (@fold_extract_<last_op>_<mode>): ...this.
6914 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6915 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6916 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6917 DImode result explicit.
6918 (reduc_plus_scal_<mode>): Update accordingly.
6919 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6920 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6921 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6922 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6923 (*aarch64_sve_tbl<mode>): Rename to...
6924 (@aarch64_sve_tbl<mode>): ...this.
6925 (@aarch64_sve_compact<mode>): New pattern.
6926 (*aarch64_sve_dup_lane<mode>): Rename to...
6927 (@aarch64_sve_dup_lane<mode>): ...this.
6928 (@aarch64_sve_dupq_lane<mode>): New pattern.
6929 (@aarch64_sve_splice<mode>): Likewise.
6930 (aarch64_sve_<perm_insn><mode>): Rename to...
6931 (@aarch64_sve_<perm_insn><mode>): ...this.
6932 (*aarch64_sve_ext<mode>): Rename to...
6933 (@aarch64_sve_ext<mode>): ...this.
6934 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6935 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6936 to...
6937 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6938 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6939 Rename to...
6940 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6941 ...this.
6942 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6943 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6944 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6945 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6946 to...
6947 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6948 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6949 a "@" marker.
6950 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6951 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6952 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6953 pattern.
6954 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6955 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6956 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6957 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6958 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6959 "@" marker.
6960 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6961 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6962 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6963 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6964 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6965 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6966 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6967 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6968 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6969 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6970 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6971 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6972 (aarch64_sve_cnt_pat): Likewise.
6973 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6974 (*aarch64_sve_incsi_pat): Likewise.
6975 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6976 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6977 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6978 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6979 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6980 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6981 (*aarch64_sve_decsi_pat): Likewise.
6982 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6983 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6984 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6985 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6986 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6987 (@aarch64_pred_cntp<mode>): Likewise.
6988 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6989 New expander.
6990 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6991 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6992 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6993 New expander.
6994 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6995 New pattern.
6996 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6997 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6998 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6999 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7000 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7001 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7002 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7003 New expander.
7004 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7005 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7006 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7007 New expander.
7008 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7009 New pattern.
7010 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7011 expander.
7012 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7013 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7014 expander.
7015 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7016 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7017 expander.
7018 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7019 * config/aarch64/arm_sve.h: New file.
7020 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7021 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7022 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7023 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7024 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7025 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7026 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7027 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7028 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7029
7030 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7031
7032 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7033 New pattern.
7034 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7035 SVE modes.
7036
7037 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7038
7039 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7040 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7041 FFRT_REGNUM + 1.
7042 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7043 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7044 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7045 (aarch64_hard_regno_nregs): Handle the new register classes.
7046 (aarch64_hard_regno_mode_ok): Likewise.
7047 (aarch64_regno_regclass): Likewise.
7048 (aarch64_class_max_nregs): Likewise.
7049 (aarch64_register_move_cost): Likewise.
7050 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7051 as general register_operands.
7052
7053 2019-10-29 Martin Liska <mliska@suse.cz>
7054
7055 * ggc-common.c: One can't subtract unsigned types
7056 in compare function.
7057
7058 2019-10-29 Martin Liska <mliska@suse.cz>
7059
7060 * cgraphunit.c (symbol_table::compile): Pass
7061 title as dump_memory_report argument.
7062 * toplev.c (dump_memory_report): New argument.
7063 (finalize): Pass new argument.
7064 * toplev.h (dump_memory_report): Add argument.
7065
7066 2019-10-29 Martin Liska <mliska@suse.cz>
7067
7068 * ggc-common.c: Move Leak to the first column.
7069
7070 2019-10-29 Martin Liska <mliska@suse.cz>
7071
7072 * cgraphunit.c (symbol_table::compile): Remove argument
7073 for dump_memory_report.
7074 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7075 (compare_final): Remove in order to make report
7076 better readable.
7077 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7078 * mem-stats.h (mem_alloc_description::get_list):
7079 Do not pass cmp.
7080 (mem_alloc_description::dump): Likewise here.
7081 * toplev.c (dump_memory_report): Remove final
7082 argument.
7083 (finalize): Likewise.
7084 * toplev.h (dump_memory_report): Remove argument.
7085
7086 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7087
7088 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7089 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7090 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7091 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7092 accept "const".
7093
7094 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7095
7096 * coretypes.h (string_int_pair): New typedef.
7097 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7098 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7099 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7100
7101 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7102
7103 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7104 (simulate_builtin_function_decl): Declare.
7105 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7106 (LANG_HOOKS_INITIALIZER): Include it.
7107 * langhooks.c (add_builtin_function_common): Rename to...
7108 (build_builtin_function): ...this. Add a location parameter and use
7109 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7110 the decl instead.
7111 (add_builtin_function): Update accordingly, passing the returned
7112 decl to the lang hook.
7113 (add_builtin_function_ext_scope): Likewise
7114 (simulate_builtin_function_decl): New function.
7115
7116 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7117
7118 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7119 example, use actual names of supported offload targets.
7120
7121 PR target/92258
7122 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7123
7124 2019-10-28 Martin Sebor <msebor@redhat.com>
7125
7126 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7127 (handle_store): Pass argument to get_addr_stridx.
7128
7129 2019-10-28 Martin Sebor <msebor@redhat.com>
7130
7131 PR tree-optimization/92226
7132 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7133 the offset is in the open range outlined by SI's length.
7134
7135 2019-10-28 Martin Sebor <msebor@redhat.com>
7136
7137 PR c/66970
7138 * doc/cpp.texi (__has_builtin): Document.
7139 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7140
7141 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7142
7143 PR target/82981
7144 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7145 doubleword and low doubleword result of multiplication on
7146 MIPS64R6.
7147
7148 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7149 pure qualifier to the built-in.
7150 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7151 built-ins.
7152 (struct mips_builtin_description): Add is_pure flag.
7153 (mips_init_builtins): Mark built-in as pure if the flag in the
7154 corresponding mips_builtin_description struct is set.
7155
7156 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7157 alternative which covers the floating-point input value. Also
7158 forbid the split of insert.d pattern for floating-point values.
7159
7160 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7163 * config/riscv/riscv-sr.c: New file.
7164 * config/riscv/riscv.c (riscv_reorg): New function.
7165 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7166 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7167 (riscv_remove_unneeded_save_restore_calls): Declare.
7168 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7169
7170 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7171
7172 PR tree-optimization/92163
7173 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7174 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7175 before calling bitmap_set_bit.
7176 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7177 delete_dead_or_redundant_assignment.
7178 (dse_dom_walker::dse_optimize_stmt): Likewise.
7179 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7180
7181 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7182
7183 PR middle-end/91272
7184 * tree-vect-stmts.c (vectorizable_condition): Support
7185 EXTRACT_LAST_REDUCTION with fully-masked loops.
7186
7187 2019-10-28 Richard Biener <rguenther@suse.de>
7188
7189 PR tree-optimization/92252
7190 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7191 STMT_VINFO_REDUC_IDX when swapping operands.
7192
7193 2019-10-28 Richard Biener <rguenther@suse.de>
7194
7195 PR tree-optimization/92241
7196 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7197 we failed to update the reduction index do not use the pattern
7198 stmts for the reduction chain.
7199 (vectorizable_reduction): When the reduction chain is corrupt,
7200 fail.
7201 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7202 fail to update the reduction chain.
7203
7204 2019-10-28 Richard Biener <rguenther@suse.de>
7205
7206 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7207 STMT_VINFO_REDUC_IDX from the actual stmt.
7208 (vect_transform_reduction): Likewise.
7209 (vectorizable_reduction): Compute the reduction chain length,
7210 do not recompute the reduction operand index. Remove no longer
7211 necessary restriction for condition reduction chains.
7212
7213 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7214
7215 PR target/92225
7216 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7217 condition for V2DImode.
7218
7219 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7220
7221 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7222 Remove %k operand modifier.
7223 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7224
7225 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7226
7227 PR rtl-optimization/92007
7228 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7229 call it after reload if hot/cold partitioning has been done.
7230 (class pass_postreload_jump): Rename to
7231 pass_jump_after_combine.
7232 (make_pass_postreload_jump): Rename to
7233 make_pass_jump_after_combine.
7234 * passes.def(pass_postreload_jump): Move before reload, rename
7235 to pass_jump_after_combine.
7236 * tree-pass.h (make_pass_postreload_jump): Rename to
7237 make_pass_jump_after_combine.
7238
7239 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7240
7241 PR ipa/92242
7242 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7243 for missing EDGE_REF
7244 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7245
7246 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7247
7248 PR tree-optimization/88760
7249 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7250 Enable -funroll-loops for -O2 and above.
7251 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7252 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7253 do not turn on web and rngreg implicitly, if the unroller is not
7254 explicitly enabled.
7255
7256 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7257
7258 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7259 jump functions.
7260
7261 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7262
7263 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7264 * cgraph.h (cgraph_node::rtl_info): Likewise.
7265
7266 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7267
7268 * ipa-cp.c (propagate_constants_across_call): If args are not available
7269 just drop everything to varying.
7270 (find_aggregate_values_for_callers_subset): Watch for missing
7271 edge summary.
7272 (find_more_scalar_values_for_callers_subs): Likewise.
7273 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7274 update_jump_functions_after_inlining, propagate_controlled_uses):
7275 Watch for missing summaries.
7276 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7277 is finished.
7278 (ipa_write_node_info): Watch for missing summaries.
7279 (ipa_read_edge_info): Create new ref.
7280 (ipa_edge_args_sum_t): Add remove.
7281 (IPA_EDGE_REF_GET_CREATE): New macro.
7282 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7283 edge summary.
7284 (remap_edge_change_prob): Likewise.
7285
7286 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7287
7288 * ipa-inline-transform.c (inline_call): update function summaries
7289 after expanidng thunk.
7290
7291 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7292
7293 * ipa-icf.c (sem_function::merge): Update function summaries.
7294 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7295
7296 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7297
7298 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7299 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7300 operand already has scalar mode.
7301 (iptr): Remove SF/DF.
7302
7303 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7304
7305 PR target/91289
7306 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7307 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7308 this.
7309
7310 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7311
7312 * config/i386/sse.md
7313 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7314 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7315 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7316 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7317 <sse>_vmmaskcmp<mode>3):
7318 Change predicates from vector_operand to nonimmediate_operand,
7319 constraints xBm to xm, since scalar operations don't need
7320 memory address alignment.
7321 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7322 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7323 round_saeonly_nimm_predicate with
7324 round_saeonly_nimm_scalar_predicate.
7325 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7326 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7327 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7328 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7329 avx512f_vmfmadd_<mode>_mask3<round_name>,
7330 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7331 *avx512f_vmfmsub_<mode>_mask<round_name>,
7332 avx512f_vmfmsub_<mode>_mask3<round_name>,
7333 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7334 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7335 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7336 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7337 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7338 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7339 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7340 cvtusi2<ssescalarmodesuffix>32<round_name>,
7341 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7342 round_nimm_predicate with round_nimm_scalr_predicate.
7343 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7344 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7345 avx512er_vmrcp28<mode><round_saeonly_name>,
7346 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7347 ): Replace round_saeonly_nimm_predicate with
7348 round_saeonly_nimm_scalar_predicate.
7349 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7350 vector_operand with nonimmediate_operand.
7351 * config/i386/subst.md (round_scalar_nimm_predicate,
7352 round_saeonly_scalar_nimm_predicate): Replace
7353 vector_operand with nonimmediate_operand.
7354
7355 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7356
7357 PR target/89071
7358 * config/i386/i386.md (*rcpsf2_sse): Add
7359 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7360 (*rsqrtsf2_sse): Ditto.
7361 (*sqrt<mode>2_sse): Ditto.
7362 (sse4_1_round<mode>2): separate constraint vm, add
7363 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7364 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7365 by pass rpad.
7366 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7367 Ditto.
7368 (*sse_vmrsqrtv4sf2): Ditto.
7369 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7370 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7371 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7372 <iptr> pointer size modifier since vround support memory operand.
7373
7374 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7375
7376 PR target/85969
7377 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7378 static function.
7379
7380 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7381 Tobias Burnus <tobias@codesourcery.com>
7382
7383 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7384 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7385 common block decls.
7386
7387 2019-10-25 Richard Biener <rguenther@suse.de>
7388
7389 PR tree-optimization/92222
7390 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7391 (_slp_oprnd_info::second_pattern): Likewise.
7392 (_slp_oprnd_info::any_pattern): New.
7393 (vect_create_oprnd_info): Adjust.
7394 (vect_get_and_check_slp_defs): Compute whether any stmt is
7395 in a pattern.
7396 (vect_build_slp_tree_2): Avoid building up a node from scalars
7397 if any of the operand defs, not just the first, is in a pattern.
7398
7399 2019-10-25 Richard Biener <rguenther@suse.de>
7400
7401 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7402 swapping if we actually have to modify the IL on a shared stmt.
7403 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7404 because we no longer modify the IL.
7405
7406 2019-10-25 Martin Liska <mliska@suse.cz>
7407
7408 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7409
7410 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7411
7412 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7413 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7414 handled by vect_transform_reduction. Allow fully-masked loops
7415 to be used with reduction chains.
7416 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7417 operations in fully-masked loops.
7418 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7419 operations in fully-masked loops.
7420
7421 2019-10-25 Richard Biener <rguenther@suse.de>
7422
7423 * tree-vect-loop.c (vectorizable_reduction): Verify
7424 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7425 correctly.
7426 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7427 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7428 stmts.
7429
7430 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7431
7432 * gimplify.h (omp_construct_selector_matches): Declare.
7433 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7434 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7435 called function if needed for flag_openmp.
7436 (gimplify_scan_omp_clauses): Set ctx->code.
7437 (omp_construct_selector_matches): New function.
7438 * omp-general.h (omp_constructor_traits_to_codes,
7439 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7440 * omp-general.c (omp_constructor_traits_to_codes,
7441 omp_context_selector_matches, omp_resolve_declare_variant): New
7442 functions.
7443
7444 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7445 literal.
7446 * config/rx/rx.c (rx_print_operand): Likewise.
7447 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7448 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7449 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7450 Likewise.
7451 * genemit.c (emit_c_code): Likewise.
7452 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7453
7454 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7455
7456 * symbols-summary.h (fast_function_summary<T *, V>::release,
7457 fast_call_summary<T *, V>::release): Free m_vector.
7458
7459 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7460
7461 * cgraphunit.c (symbol_table::process_new_functions): Call
7462 ipa_free_size_summary.
7463 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7464 (devirtualization_time_bonus): Update.
7465 (ipcp_propagate_stage): Update.
7466 * ipa-fnsummary.c (ipa_size_summaries): New.
7467 (ipa_fn_summary_alloc): Alloc size summary.
7468 (dump_ipa_call_summary): Update.
7469 (ipa_dump_fn_summary): Update.
7470 (analyze_function_body): Update.
7471 (compute_fn_summary): Likewise.
7472 (ipa_get_stack_frame_offset): New function.
7473 (inline_update_callee_summaries): Do not update frame offsets.
7474 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7475 remove call and function summary.
7476 (ipa_update_overall_fn_summary): Update.
7477 (inline_read_section): Update.
7478 (ipa_fn_summary_write): Update.
7479 (ipa_free_fn_summary): Do not remove summaries.
7480 (ipa_free_size_summary): New.
7481 (release summary pass): Also run at WPA.
7482 * ipa-fnsummary.h (ipa_size_summary): Declare.
7483 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7484 estimated_self_stack_size.
7485 (ipa_size_summary_t): New type.
7486 (ipa_size_summaries): Declare.
7487 (ipa_free_size_summary): Declare.
7488 (ipa_get_stack_frame_offset): Declare.
7489 * ipa-icf.c (sem_function::merge): Update.
7490 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7491 (estimate_growth): Update.
7492 (growth_likely_positive): Update.
7493 (clone_inlined_nodes): Update.
7494 (inline_call): Update.
7495 * ipa-inline.c (caller_growth_limits): Update.
7496 (edge_badness): Update.
7497 (recursive_inlining): Update.
7498 (inline_small_functions): Update.
7499 (inline_to_all_callers_1): Update.
7500 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7501
7502 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7503
7504 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7505 (uavg<mode>3_ceil): ... This.
7506 (altivec_vavgs<VI_char>): Rename to...
7507 (avg<mode>3_ceil): ... This.
7508 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7509 VAVGUW, VAVGSW): Adjust.
7510
7511 2019-10-24 Nathan Sidwell <nathan@acm.org>
7512
7513 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7514
7515 2019-10-24 Martin Liska <mliska@suse.cz>
7516
7517 * symbol-summary.h (gt_pch_nx): Mark all functions
7518 with gcc_unreachable as we do not expect to be called.
7519
7520 2019-10-24 Richard Biener <rguenther@suse.de>
7521
7522 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7523 chains try harder with operand swapping and instead of
7524 putting a shifted chain into the reduction operands put
7525 a repetition of the final reduction op there as if we'd
7526 reassociate the expression.
7527
7528 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7529
7530 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7531 statics_not_read and statics_not_written to statics_read and
7532 statics_written respectively.
7533 (no_module_statics): New static var.
7534 (ipa_reference_get_not_read_global): Rename to ...
7535 (ipa_reference_get_read_global): ... this.
7536 (ipa_reference_get_not_written_global): Rename to ...
7537 (ipa_reference_get_written_global): ... this.
7538 (dump_static_vars_set_to_file): Dump no_module_statics.
7539 (copy_static_var_set): Add for propagation parameter.
7540 (ipa_init): Initialize no_module_statics.
7541 (ipa_ref_opt_summary_t::duplicate): Update.
7542 (ipa_ref_opt_summary_t::remove): Update.
7543 (propagate): Update.
7544 (write_node_summary_p): Look correctly for bitmap differences.
7545 (ipa_reference_write_optimization_summary): Update.
7546 (ipa_reference_read_optimization_summary): Update.
7547 * ipa-reference.h
7548 (ipa_reference_get_not_read_global): Rename to ...
7549 (ipa_reference_get_read_global): ... this.
7550 (ipa_reference_get_not_written_global): Rename to ...
7551 (ipa_reference_get_written_global): ... this.
7552 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7553 (call_may_clobber_ref_p_1): Update.
7554
7555 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7556
7557 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7558 and add comment.
7559 (msp430_hard_regno_nregs_with_padding): Remove.
7560
7561 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7562
7563 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7564 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7565 shift amount is between 1 and 4.
7566 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7567 is between 1 and 4.
7568
7569 2019-10-24 Richard Biener <rguenther@suse.de>
7570
7571 PR tree-optimization/92205
7572 * tree-vect-loop.c (vectorizable_reduction): Restrict
7573 search for alternate vectype_in to lane-reducing patterns
7574 we support.
7575
7576 2019-10-24 Richard Biener <rguenther@suse.de>
7577
7578 PR tree-optimization/92203
7579 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7580 Skip eliminating conversion stmts inserted by insertion.
7581
7582 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7583
7584 * config/s390/s390.c (s390_get_thread_pointer): Use
7585 gen_get_thread_pointer.
7586 (s390_expand_split_stack_prologue): Likewise.
7587 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7588 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7589 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7590 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7591 parameterized name.
7592
7593 2019-10-24 Richard Biener <rguenther@suse.de>
7594
7595 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7596 SLP discovery fails try to handle the reduction as part
7597 of SLP reduction discovery.
7598
7599 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7600
7601 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7602 declaration.
7603 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7604 attribute if it exists, rather than the insn size. If we use the
7605 insn size, adjust the size to remove the extra size that prefixed
7606 instructions take.
7607 (rs6000_adjust_insn_length): New function.
7608 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7609 update the instruction sized if prefixed instructions are used.
7610 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7611 (non_prefixed_length attribute): Delete.
7612 (num_insns attribute): New insn attribute to return the number of
7613 instructions.
7614 (max_prefixed_insns attribute): New insn attribute to return the
7615 maximum number of prefixed instructions in an insn.
7616 (length attribute): Do not adjust for prefix instructions here,
7617 punt to ADJUST_INSN_LENGTH.
7618 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7619 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7620 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7621 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7622 max_prefixed_insns and num_insns.
7623
7624 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7625 (movtd_64bit_nodm): Reformat.
7626 (mov<mode>_32bit): Reformat.
7627 (mov<mode>_softfloat): Reformat.
7628 (FMOVE128_GPR splitter): Reformat.
7629 (DIFD splitter): Reformat.
7630 (TI2 splitter): Reformat.
7631 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7632 bits of the offset for the memory address are non-zero, use PLWA
7633 if prefixed instructions are available.
7634
7635 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7636
7637 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7638
7639 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7640
7641 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7642 previous patch.
7643
7644 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7645
7646 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7647 (cmp_symbol_files): New.
7648 (lto_output): Copy sections in file order.
7649 * lto-streamer.h (lto_file_decl_data): Add field order.
7650
7651 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7652
7653 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7654 * ipa-reference.c (reference_vars_map_t): new type.
7655 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7656 (ipa_reference_var_uid): Implement.
7657 (varpool_node_hooks): New static var.
7658 (varpool_removal_hook): New function.
7659 (is_improper): Do not check bitmap for id==-1
7660 (get_static_name): Update.
7661 (ipa_init): Initialize new datastructures.
7662 (analyze_function): Do not recompute ids.
7663 (propagate): Free reference_vars_to_consider.
7664 (stream_out_bitmap): Update.
7665 (ipa_reference_read_optimization_summary): Update.
7666
7667 2019-10-23 qing zhao <qing.zhao@oracle.com>
7668
7669 PR gcov-profile/91971
7670 * coverage.c (coverage_init): Mangle the full path of filename when
7671 filename is a absolute path.
7672
7673 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7674
7675 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7676 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7677 (msp430_has_hwmult): New.
7678 (msp430_output_labelref):
7679 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7680 * config/msp430/msp430.md (mulhisi3): Likewise.
7681 (umulhisi3): Likewise.
7682 (mulsidi3): Likewise.
7683 (umulsidi3): Likewise.
7684
7685 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7686
7687 PR ipa/92074
7688 * params.def (inline-heuristics-hint-percent): Set to 600.
7689
7690 2019-10-23 Richard Biener <rguenther@suse.de>
7691
7692 PR tree-optimization/65930
7693 * tree-vect-loop.c (check_reduction_path): Allow conversions
7694 that only change the sign.
7695 (vectorizable_reduction): Relax latch def stmts we handle further.
7696
7697 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7698
7699 PR debug/90231
7700 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7701 (remove_unused_ivs): Use it instead of get_computation_at. When
7702 choosing best candidate, only consider candidates where
7703 get_debug_computation_at actually returns non-NULL.
7704
7705 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7706
7707 PR tree-optimization/92131
7708 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7709 range would be symbolic, drop to varying for any explicit overflow
7710 in the constant part or if neither range is a singleton.
7711
7712 2019-10-23 Martin Liska <mliska@suse.cz>
7713
7714 PR middle-end/81669
7715 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7716 Initialize m_data.
7717
7718 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7719
7720 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7721 int_mode_for_mode rather than mode_for_int_vector for scalars.
7722
7723 2019-10-23 Richard Biener <rguenther@suse.de>
7724
7725 PR tree-optimization/92179
7726 * tree-vect-stmts.c (vectorizable_shift): For shift args
7727 that are all the same remove type restriction in the SLP case.
7728 Adjust SLP code to handle converting of the shift arg to
7729 only apply in case the modes are different.
7730
7731 2019-10-23 Martin Liska <mliska@suse.cz>
7732
7733 PR ipa/91969
7734 * ipa-inline.c (recursive_inlining): Do not print
7735 when curr->count is not initialized.
7736
7737 2019-10-23 Richard Biener <rguenther@suse.de>
7738
7739 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7740 op from scalars in case there's a constant operand in its
7741 definition.
7742
7743 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7744
7745 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7746 against out of range max skip or log values.
7747
7748 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7749
7750 * cgraph.c (dump_graphviz): Change name to dump_name
7751
7752 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7753
7754 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7755 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7756 subtraction from a carry operation.
7757
7758 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7759
7760 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7761
7762 2019-10-22 Richard Biener <rguenther@suse.de>
7763
7764 PR tree-optimization/92173
7765 * tree-vect-loop.c (vectorizable_reduction): If
7766 vect_transform_reduction cannot handle code-generation try without
7767 the single-def-use-cycle optimization. Pass optab_vector to
7768 optab_for_tree_code to get vector shifts as that's what we'd
7769 generate.
7770
7771 2019-10-22 Michael Matz <matz@suse.de>
7772
7773 PR middle-end/90796
7774 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7775 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7776 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7777
7778 2019-10-22 Richard Biener <rguenther@suse.de>
7779
7780 PR tree-optimization/92173
7781 * tree-vect-loop.c (vectorizable_reduction): If
7782 vect_transform_reduction cannot handle code-generation try without
7783 the single-def-use-cycle optimization. Pass optab_vector to
7784 optab_for_tree_code to get vector shifts as that's what we'd
7785 generate.
7786
7787 2019-10-22 Martin Liska <mliska@suse.cz>
7788
7789 * diagnostic-format-json.cc (json_from_expanded_location):
7790 Use json::integer_number.
7791 * gcov.c (output_intermediate_json_line): Use new
7792 json::integer_number.
7793 (output_json_intermediate_file): Likewise.
7794 * json.cc (number::print): Move to ...
7795 (float_number::print): ... this.
7796 (integer_number::print): New.
7797 (test_writing_numbers): Move to ...
7798 (test_writing_float_numbers): ... this.
7799 (test_writing_integer_numbers): New.
7800 (json_cc_tests): Register test_writing_integer_numbers.
7801 * json.h (class value): Add forward declaration
7802 for float_number and integer_number.
7803 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7804 (class number): Move to ...
7805 (class float_number): ... this.
7806 (class integer_number): New.
7807 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7808 Use json::integer_number.
7809 (optrecord_json_writer::location_to_json): Likewise.
7810 (optrecord_json_writer::profile_count_to_json): Likewise.
7811 (optrecord_json_writer::pass_to_json): Likewise.
7812
7813 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7814
7815 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7816 autodetected_vector_size rather than vector_size is zero.
7817 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7818 Set autodetected_vector_size immediately after calling
7819 vect_analyze_loop_2. Check for a fatal error before advancing
7820 next_size.
7821
7822 2019-10-21 Jason Merrill <jason@redhat.com>
7823
7824 * lock-and-run.sh: Check for process existence rather than timeout.
7825
7826 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7827
7828 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7829 widening multiplication.
7830
7831 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7832
7833 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7834 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7835 type attribute.
7836 (subsi3_carryin_shift): Separate into register and constant controlled
7837 alternatives. Use shift_amount_operand for operand 4. Set shift
7838 attribute and simplify type attribute.
7839 (subsi3_carryin_shift_alt): Likewise.
7840 (rsbsi3_carryin_shift): Likewise.
7841 (rsbsi3_carryin_shift_alt): Likewise.
7842 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7843 and register controlled shifts into distinct alternatives.
7844 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7845 (andsi_not_shiftsi_si_scc): Likewise.
7846 (arm_cmpsi_negshiftsi_si): Likewise.
7847 (not_shiftsi): Remove redundant M constraint from alternative 1.
7848 (not_shiftsi_compare0): Likewise.
7849 (arm_cmpsi_insn): Remove redundant alternative 2.
7850 (cmpsi_shift_swp): Likewise.
7851 (sub_shiftsi): Likewise.
7852 (sub_shiftsi_compare0_scratch): Likewise.
7853 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7854 (thumb2_cmpsi_neg_shiftsi): Likewise.
7855
7856 2019-10-21 Richard Biener <rguenther@suse.de>
7857
7858 PR tree-optimization/92162
7859 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7860 STMT_VINFO_REDUC_IDX in reduc_info.
7861 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7862
7863 2019-10-21 Richard Biener <rguenther@suse.de>
7864
7865 * tree-vectorizer.h (_slp_tree::ops): New member.
7866 (SLP_TREE_SCALAR_OPS): New.
7867 (vect_get_slp_defs): Adjust prototype.
7868 * tree-vect-slp.c (vect_free_slp_tree): Release
7869 SLP_TREE_SCALAR_OPS.
7870 (vect_create_new_slp_node): Initialize it. New overload for
7871 initializing by an operands array.
7872 (_slp_oprnd_info::ops): New member.
7873 (vect_create_oprnd_info): Initialize it.
7874 (vect_free_oprnd_info): Release it.
7875 (vect_get_and_check_slp_defs): Populate the operands array.
7876 Do not swap operands in the IL when not necessary.
7877 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7878 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7879 swap operands in the operands array. Do not swap operands in
7880 the IL.
7881 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7882 (vect_gather_slp_loads): Fix.
7883 (vect_detect_hybrid_slp_stmts): Likewise.
7884 (vect_slp_analyze_node_operations_1): Search for a internal
7885 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7886 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7887 the def-type push/pop dance.
7888 (vect_get_constant_vectors): Compute number_of_vectors here.
7889 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7890 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7891 (vect_get_slp_defs): Simplify greatly.
7892 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7893 (vect_transform_reduction): Likewise.
7894 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7895 (vectorizable_call): Likewise.
7896 (vectorizable_operation): Likewise.
7897 (vectorizable_load): Likewise.
7898 (vectorizable_condition): Likewise.
7899 (vectorizable_comparison): Likewise.
7900
7901 2019-10-21 Richard Biener <rguenther@suse.de>
7902
7903 PR tree-optimization/92161
7904 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7905 for reductions.
7906
7907 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7908
7909 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7910 (aarch64_rndr): New define_insn.
7911 (aarch64_rndrrs): Likewise.
7912 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7913 (TARGET_RNG): Likewise.
7914 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7915 argument.
7916 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7917 Add fourth argument in prototype.
7918 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7919 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7920 (aarch64_init_rng_builtins): Define.
7921 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7922 (aarch64_expand_rng_builtin): Define.
7923 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7924 RNG builtins.
7925 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7926 __ARM_FEATURE_RNG when TARGET_RNG.
7927 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7928
7929 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7930
7931 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7932 alignment is more restrictive.
7933
7934 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7935
7936 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7937 (vect_update_max_nunits): Update comment.
7938 (current_vector_size): Delete.
7939 * tree-vect-stmts.c (current_vector_size): Likewise.
7940 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7941 of current_vector_size.
7942 (get_mask_type_for_scalar_type): Likewise.
7943 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7944 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7945 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7946 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7947 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7948 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7949
7950 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7951
7952 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7953 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7954 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7955 accordingly.
7956
7957 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7958
7959 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7960 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7961 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7962 call accordingly.
7963 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7964
7965 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7966
7967 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7968 a loop_vec_info.
7969 (vect_set_loop_condition_masked): Update call accordingly.
7970
7971 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7972
7973 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7974 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7975 (simple_integer_narrowing): Update call accordingly.
7976 (vectorizable_conversion): Likewise.
7977
7978 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7979
7980 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7981 (vectorizable_call): Update call accordingly.
7982
7983 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7984
7985 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7986 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7987 (duplicate_and_interleave): Update call accordingly.
7988 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7989
7990 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7991
7992 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7993 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7994 (vect_get_constant_vectors): Update call accordingly.
7995 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7996
7997 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7998
7999 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8000 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8001 (vect_prologue_cost_for_slp_op): Update call accordingly.
8002 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8003 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8004 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8005 (get_mask_type_for_scalar_type): Likewise.
8006 (vect_get_vector_types_for_stmt): Likewise.
8007 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8008 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8009 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8010 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8011 (vect_split_statement, vect_convert_input): Likewise.
8012 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8013 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8014 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8015 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8016 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8017 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8018 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8019 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8020 (vect_recog_mask_conversion_pattern): Likewise.
8021 (vect_add_conversion_to_pattern): Likewise.
8022 (vect_recog_gather_scatter_pattern): Likewise.
8023 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8024 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8025
8026 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8027
8028 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8029 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8030 (vect_check_load_store_mask): Update call accordingly.
8031 (vect_get_mask_type_for_stmt): Likewise.
8032 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8033 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8034 (vect_convert_mask_for_vectype): Likewise.
8035
8036 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8037
8038 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8039 a vec_info.
8040 (vect_recog_dot_prod_pattern): Update call accordingly.
8041 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8042 (vect_recog_widen_sum_pattern): Likewise.
8043
8044 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8045
8046 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8047 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8048 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8049 accordingly.
8050
8051 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8052
8053 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8054 get_vectype_for_scalar_type_and_size instead of
8055 get_vectype_for_scalar_type.
8056
8057 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8058
8059 * common.opt (-fcommon): Fix description.
8060
8061 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8062
8063 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8064 * config/i386/i386.c (ix86_pre_reload_split): New function.
8065 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8066 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8067 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8068 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8069 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8070 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8071 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8072 *<shift_insn><dwi>3_doubleword_mask,
8073 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8074 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8075 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8076 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8077 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8078 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8079 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8080 *avx2_<code>v8qiv8si2<mask_name>_2,
8081 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8082 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8083 *avx512f_<code>v8qiv8di2<mask_name>_2,
8084 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8085 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8086 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8087 sse4_2_pcmpistr): Likewise.
8088
8089 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8090
8091 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8092 now defaults to https.
8093
8094 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8095
8096 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8097 skip non-zero array accesses.
8098
8099 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8100
8101 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8102 and return a boolean success value. Move the allocation and
8103 initialization of the bb_vec_info to...
8104 (vect_slp_bb_region): ...here. Update call accordingly.
8105 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8106 than in vect_slp_analyze_bb_1.
8107
8108 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8109
8110 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8111 when processing the given datarefs for the first time and
8112 check_datarefs subsequently.
8113 (vect_slp_bb_region): New function, split out of...
8114 (vect_slp_bb): ...here. Don't recompute the region bounds and
8115 dataref sets when retrying with a different vector size.
8116
8117 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8118 Uroš Bizjak <ubizjak@gmail.com>
8119
8120 PR target/92140
8121 * config/i386/predicates.md (int_nonimmediate_operand): New special
8122 predicate.
8123 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8124 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8125 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8126 define_insn_and_split patterns.
8127
8128 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8129
8130 * config/rs6000/rs6000.md: Delete out--of-date comment about
8131 special-casing integer loads.
8132
8133 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8134
8135 * escaped_string.h (escaped_string): New header.
8136 * tree.c (escaped_string): Remove escaped_string class.
8137
8138 2019-10-18 Martin Sebor <msebor@redhat.com>
8139
8140 PR tree-optimization/92157
8141 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8142 compute_string_length to return a negative result.
8143
8144 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8145
8146 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8147 (negvsi3, negvdi3): Delete.
8148 (negdi2_compare): Delete.
8149
8150 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8151
8152 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8153 operations.
8154 (subdi3_compare1): Delete pattern.
8155 (subvsi3_borrow): New insn pattern.
8156 (subvsi3_borrow_imm): Likewise.
8157
8158 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8159
8160 * config/arm/arm.md (subv<mode>4): Delete.
8161 (subvdi4): New expander pattern.
8162 (subvsi4): Likewise. Handle some immediate values.
8163 (subvsi3_intmin): New insn pattern.
8164 (subvsi3): Likewise.
8165 (subvsi3_imm1): Likewise.
8166 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8167 idioms.
8168
8169 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8170
8171 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8172 incoming operands. Early split the calculation into SImode
8173 operations.
8174 (usubvsi3_borrow): New insn pattern.
8175 (usubvsi3_borrow_imm): Likewise.
8176
8177 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8178
8179 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8180 (usubvsi4): New pattern. Allow some immediate values for inputs.
8181 (usubvdi4): New pattern.
8182
8183 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8184
8185 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8186 or second operand of the PLUS inside a DImode equality test to be
8187 sign-extend when selecting CC_Vmode.
8188 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8189 instructions.
8190 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8191 expand patterns.
8192 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8193 (addsi3_cin_vout_0): Likewise.
8194 (adddi3_compareV): Delete.
8195
8196 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8197
8198 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8199 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8200 to transform this back into the summation version when that leads
8201 to smaller code.
8202
8203 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8204
8205 * config/arm/arm.md (addv<mode>4): Delete.
8206 (addvsi4): New pattern. Handle immediate values that the architecture
8207 supports.
8208 (addvdi4): New pattern.
8209 (addsi3_compareV): Rename to ...
8210 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8211 and use COMPARE rather than NE.
8212 (addsi3_compareV_imm): New pattern.
8213 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8214 a signed-overflow check.
8215
8216 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8217
8218 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8219 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8220 CC_ADCmode.
8221 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8222 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8223 with overflow.
8224 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8225 expand patterns.
8226 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8227 (addsi3_cin_cout_imm_insn): Likewise.
8228 (adddi3_compareC): Delete insn.
8229 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8230
8231 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8232
8233 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8234 * (uaddv<mode>4): Delete expansion pattern.
8235 (uaddvsi4): New pattern.
8236 (uaddvdi4): Likewise.
8237 (addsi3_compareC): Delete pattern, change callers to use
8238 addsi3_compare_op1.
8239 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8240 reduce the number of alternatives and re-work type attribute handling.
8241 (addsi3_compare_op2): Clean up constraints to reduce the number of
8242 alternatives and re-work type attribute handling.
8243 (compare_addsi2_op0): Likewise.
8244 (compare_addsi2_op1): Likewise.
8245
8246 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8247
8248 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8249 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8250 for DImode operands.
8251 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8252 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8253 CC_NCVmode.
8254 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8255 (arm_cmpdi_unsigned): Delete.
8256
8257 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8258
8259 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8260 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8261 unchanged only if that will be cheaper.
8262 (arm_select_cc_mode): Recognize a swapped comparison that will
8263 be regenerated using RSBS or RSCS. Relax restriction on selecting
8264 CC_RSBmode.
8265 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8266 a constant.
8267 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8268 is CC_RSBmode.
8269 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8270 as CCmode.
8271 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8272 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8273
8274 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8275
8276 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8277 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8278 need these modes.
8279 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8280 of EQ, NE, LT, GE, LTU and GEU.
8281 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8282 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8283 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8284 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8285 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8286
8287 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8288
8289 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8290 operand 2.
8291 (cstoredi4): Similarly, but for operand 3.
8292 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8293 canonicalization of unsigned compares with a constant on Arm.
8294 Prefer using const+1 and adjusting the comparison over swapping the
8295 operands whenever the original constant was not valid.
8296 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8297 register here.
8298 (arm_validize_comparison): Do not force invalid DImode operands to
8299 registers here.
8300
8301 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8302
8303 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8304 return CC_Zmode if comparing against a constant where one word is
8305 zero.
8306 (arm_gen_compare_reg): Split DImode handling to ...
8307 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8308 against simple constants.
8309 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8310
8311 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8312
8313 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8314 (rsbsi3_carryin_shift_alt): Likewise.
8315
8316 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8317
8318 * config/arm/arm.md (negscc_borrow): New pattern.
8319 (mov_negscc): Don't split if the insn would match negscc_borrow.
8320 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8321 (thumb2_mov_negscc_strict_it): Likewise.
8322
8323 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8324
8325 * config/arm/arm.c (arm_insn_cost): New function.
8326 (TARGET_INSN_COST): Override default definition.
8327
8328 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8329
8330 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8331 borrow operations.
8332
8333 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8334
8335 * config/arm/arm.c (strip_carry_operation): New function.
8336 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8337 for SImode.
8338
8339 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8340
8341 * config/arm/predicates.md (arm_carry_operation): New special
8342 predicate.
8343 * config/arm/iterators.md (LTUGEU): Delete iterator.
8344 (cnb): Delete code attribute.
8345 (optab): Delete ltu and geu elements.
8346 * config/arm/arm.md (addsi3_carryin): Renamed from
8347 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8348 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8349 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8350 (addsi3_carryin_clobercc): Similarly.
8351 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8352 Thumb2 state.
8353
8354 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8355
8356 * config/arm/arm.md (arm_subdi3): Delete insn.
8357 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8358
8359 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8360
8361 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8362 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8363 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8364 return CC_RSBmode.
8365 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8366 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8367 expand.
8368 (subdi3): Rewrite to early-expand the sub-operations.
8369 (rsb_im_compare): New pattern.
8370 (negdi2): Delete.
8371 (negdi2_insn): Delete.
8372 (arm_negsi2): Correct type attribute to alu_imm.
8373 (negsi2_0compare): New insn pattern.
8374 (negsi2_carryin): New insn pattern.
8375
8376 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8377
8378 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8379 operand 2.
8380
8381 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8382
8383 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8384 to match canonical form.
8385
8386 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8387
8388 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8389 (extend<mode>di2): Likewise.
8390
8391 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8392
8393 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8394 * config/arm/arm.c (arm_decompose_di_binop): New function.
8395 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8396 If not generating Thumb-1 code, decompose the operation into 32-bit
8397 pieces.
8398 * add0si_carryin_<optab>: New pattern.
8399
8400 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8401
8402 * arm.md (adddi3): Only accept register operands.
8403 (arm_adddi3): Convert to simple insn with no split. Do not accept
8404 constants.
8405 (adddi_sesidi_di): Delete patern.
8406 (adddi_zesidi_di): Likewise.
8407 (uaddv<mode>4): Use LTU as condition for branch.
8408 (adddi3_compareV): Convert to simple insn with no split.
8409 (addsi3_compareV_upper): Delete pattern.
8410 (adddi3_compareC): Convert to simple insn with no split. Correct
8411 flags setting expression.
8412 (addsi3_compareC_upper): Delete pattern.
8413 (addsi3_compareC): Correct flags setting expression.
8414 (subdi3_compare1): Convert to simple insn with no split.
8415 (subsi3_carryin_compare): Delete pattern.
8416 (arm_subdi3): Convert to simple insn with no split.
8417 (subdi_zesidi): Delete pattern.
8418 (subdi_di_sesidi): Delete pattern.
8419 (subdi_zesidi_di): Delete pattern.
8420 (subdi_sesidi_di): Delete pattern.
8421 (subdi_zesidi_zesidi): Delete pattern.
8422 (negvdi3): Use s_register_operand.
8423 (negdi2_compare): Convert to simple insn with no split.
8424 (negdi2_insn): Likewise.
8425 (negsi2_carryin_compare): Delete pattern.
8426 (negdi_zero_extendsidi): Delete pattern.
8427 (arm_cmpdi_insn): Convert to simple insn with no split.
8428 (negdi2): Don't call gen_negdi2_neon.
8429 * config/arm/neon.md (adddi3_neon): Delete pattern.
8430 (subdi3_neon): Delete pattern.
8431 (negdi2_neon): Delete pattern.
8432 (splits for negdi2_neon): Delete splits.
8433
8434 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8435
8436 PR middle-end/92153
8437 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8438 than after it.
8439
8440 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8441
8442 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8443 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8444 new multilib variants and new mappings.
8445
8446 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8447
8448 PR target/86040
8449 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8450
8451 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8452 Richard Sandiford <richard.sandiford@arm.com>
8453
8454 PR target/86753
8455 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8456 and define hashmap traits for it.
8457 (loop_vec_info::scalar_cond_masked_set): New member.
8458 (vect_record_loop_mask): Adjust prototype.
8459 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8460 Implement method.
8461 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8462 vect_record_loop_mask.
8463 (vectorizable_live_operation): Likewise.
8464 (vect_record_loop_mask): New param scalar_mask. Add entry
8465 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8466 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8467 Pass it as last arg to vect_record_loop_mask.
8468 (vectorizable_call): Pass scalar_mask as last arg to
8469 vect_record_loop_mask.
8470 (vectorizable_store): Likewise.
8471 (vectorizable_load): Likewise.
8472 (vectorizable_condition): Check if another part of vectorized code
8473 applies loop_mask to condition or to it's inverse, and if yes,
8474 apply loop_mask to result of vector comparison.
8475
8476 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8477
8478 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8479
8480 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8481
8482 PR tree-optimization/92056
8483 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8484 before calling compute_builtin_object_size.
8485
8486 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8487
8488 PR target/65342
8489 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8490 (movdi_low_st): Delete.
8491 * config/rs6000/rs6000.c
8492 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8493 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8494 * config/rs6000/rs6000.md (movsi_low): Delete.
8495
8496 2019-10-17 Jason Merrill <jason@redhat.com>
8497
8498 * gimplify.h (get_initialized_tmp_var): Add default argument to
8499 post_p.
8500 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8501 NULL post_p argument.
8502 * targhooks (std_gimplify_va_arg_expr): Likewise.
8503
8504 2019-10-17 Richard Biener <rguenther@suse.de>
8505
8506 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8507 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8508 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8509 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8510 * tree-vect-loop.c (vect_is_simple_reduction): Set
8511 STMT_VINFO_REDUC_CODE.
8512 (vectorizable_reduction): Remove dead and redundant code, use
8513 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8514
8515 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8516
8517 Fix breakage introduced by r276985.
8518
8519 * config/avr/avr.c (avr_option_override): Remove set of
8520 PARAM_ALLOW_STORE_DATA_RACES.
8521 * common/config/avr/avr-common.c (avr_option_optimization_table)
8522 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8523
8524 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8525
8526 * config/i386/i386.h (processor_costs): Add clear_ratio.
8527 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8528 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8529 of 6 and move_ratio in all cost models.
8530
8531 2019-10-17 Richard Biener <rguenther@suse.de>
8532
8533 * tree-vect-loop.c (check_reduction_path): Compute reduction
8534 operation here.
8535 (vect_is_simple_reduction): Remove special-case of single-stmt
8536 reduction path detection.
8537
8538 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8539
8540 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8541
8542 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8543
8544 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8545 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8546 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8547 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8548 New combine patterns.
8549 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8550 above.
8551 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8552
8553 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8554
8555 * tree-vrp.c (value_range_base::dump): Display +INF for both
8556 pointers and integers when appropriate.
8557
8558 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8559
8560 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8561 when to use versioning threshold.
8562
8563 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8564
8565 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8566 outlined code from ...
8567 (vect_analyze_loop_2): ... here.
8568
8569 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8570
8571 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8572 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8573 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8574
8575 2019-10-17 Richard Biener <rguenther@suse.de>
8576
8577 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8578 (vect_is_simple_reduction): Move all validity checks ...
8579 (vectorizable_reduction): ... here. Compute whether we
8580 need a fold-left reduction here.
8581 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8582 both overloads, check needs_fold_left_reduction_p directly.
8583 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8584
8585 2019-10-17 Richard Biener <rguenther@suse.de>
8586
8587 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8588 TARGET_MEM_REF creation.
8589
8590 2019-10-17 Richard Biener <rguenther@suse.de>
8591
8592 PR tree-optimization/92129
8593 * tree-vect-loop.c (vectorizable_reduction): Also fail
8594 on GIMPLE_SINGLE_RHS.
8595
8596 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8597
8598 PR tree-optimization/92056
8599 * tree-object-size.c (cond_expr_object_size): Return early if then_
8600 processing resulted in unknown size.
8601
8602 PR tree-optimization/92115
8603 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8604 temporary if it could trap.
8605
8606 2019-10-17 Richard Biener <rguenther@suse.de>
8607
8608 PR debug/91887
8609 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8610 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8611
8612 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8613
8614 * tree-ssa-strlen.c (maybe_invalidate): Use
8615 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8616
8617 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8618 Jim Wilson <jimw@sifive.com>
8619
8620 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8621 regs to SIBCALL_REGS.
8622 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8623 passing regs to SIBCALL_REGS.
8624
8625 2019-10-16 Martin Sebor <msebor@redhat.com>
8626
8627 PR tree-optimization/83821
8628 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8629 the length of a string when available.
8630 (handle_builtin_memset) Add argument.
8631 (handle_store, strlen_check_and_optimize_call): Same.
8632 (check_and_optimize_stmt): Same. Pass it to callees.
8633
8634 2019-10-16 Martin Sebor <msebor@redhat.com>
8635
8636 PR tree-optimization/91996
8637 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8638 information.
8639 (compare_nonzero_chars): Add an overload.
8640 (count_nonzero_bytes): Add an argument. Call overload above.
8641 Handle non-constant lengths in some range.
8642 (handle_store): Add an argument.
8643 (check_and_optimize_stmt): Pass an argument to handle_store.
8644
8645 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8646
8647 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8648
8649 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8650
8651 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8652 operands which correspond to the same input-output register to
8653 have the same pseudo assigned to them.
8654
8655 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8656
8657 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8658
8659 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8660
8661 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8662 Apply reasonable limit to symbol offsets.
8663
8664 2019-10-16 Richard Biener <rguenther@suse.de>
8665
8666 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8667 (vect_is_simple_reduction): Delay checking to
8668 vectorizable_reduction and relax the checking.
8669 (vectorizable_reduction): Check we have a simple use. Check
8670 for bogus condition reductions.
8671 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8672 are looking at the last stmt in a pattern sequence when
8673 filling in backedge PHI values.
8674
8675 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8676 Jiufu Guo <guojiufu@linux.ibm.com>
8677
8678 PR target/70010
8679 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8680 the callee explicitly disables some isa_flags the caller is using.
8681
8682 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8683
8684 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8685
8686 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8687
8688 * genmodes.c (mode_data::order): New field.
8689 (blank_mode): Update accordingly.
8690 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8691 (make_vector_modes): Likewise.
8692 (VECTOR_MODES): Update use accordingly.
8693 (cmp_modes): Sort by the new order field ahead of sorting by size.
8694 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8695 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8696 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8697 (aarch64_classify_vector_mode): Handle the new partial modes.
8698 (aarch64_vl_bytes): New function.
8699 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8700 when counting the number of registers in an SVE mode.
8701 (aarch64_class_max_nregs): Likewise.
8702 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8703 in registers yet.
8704 (aarch64_classify_address): Treat partial vectors analogously
8705 to full vectors.
8706 (aarch64_print_address_internal): Consolidate the printing of
8707 MUL VL addresses, using aarch64_vl_bytes as the number of
8708 bytes represented by "VL".
8709 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8710
8711 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8712
8713 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8714 rather than known_lt when choosing frame layouts.
8715
8716 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8717
8718 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8719 that all the adjustments add up to the full frame size.
8720 Use crtl->outgoing_args_size directly as the final adjustment
8721 where appropriate.
8722
8723 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8724
8725 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8726 "frame" reference instead of always referring directly to
8727 "cfun->machine->frame".
8728
8729 2019-10-16 Richard Biener <rguenther@suse.de>
8730
8731 PR tree-optimization/92119
8732 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8733 against missing bswap lhs.
8734
8735 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8736
8737 PR middle-end/92033
8738 * poly-int.h (constant_lower_bound_with_limit): New function.
8739 (constant_upper_bound_with_limit): Likewise.
8740 * doc/poly-int.texi: Document them.
8741 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8742 into the worst-case INTEGER_CST bounds.
8743
8744 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8745
8746 PR ipa/91088
8747 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8748 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8749 * ipa-predicat.h (struct expr_eval_op): New struct.
8750 (expr_eval_ops): New typedef.
8751 (struct condition): Add type and param_ops fields, remove size field.
8752 (add_condition): Replace size parameter with type parameter, add
8753 param_ops parameter.
8754 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8755 (predicate::add_clause): Add comparisons on type and param_ops.
8756 (dump_condition): Add debug dump for param_ops.
8757 (remap_after_inlining): Adjust call arguments to add_condition.
8758 (add_condition): Replace size parameter with type parameter, add
8759 param_ops parameter. Unshare constant value used in conditions.
8760 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8761 parameter expressions using param_ops.
8762 (decompose_param_expr): New function.
8763 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8764 to replace call to unmodified_parm_or_parm_agg_item.
8765 (set_switch_stmt_execution_predicate): Likewise.
8766 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8767 with type.
8768 (inline_read_section): Read param_ops from summary stream.
8769 (ipa_fn_summary_write): Write param_ops to summary stream.
8770
8771 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8772
8773 PR rtl-optimization/92107
8774 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8775 expression written.
8776
8777 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8778
8779 * config/darwin.c: Update description of fix and continue.
8780
8781 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8782
8783 * config/darwin.c (darwin_binds_local_p): Update to call
8784 default_binds_local_p_3 () directly. amend comments.
8785
8786 2019-10-15 Richard Biener <rguenther@suse.de>
8787
8788 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8789 (tree_is_indexable): Use it.
8790 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8791 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8792 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8793
8794 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8795
8796 * config/msp430/msp430.md (zero_extendqipsi2): New.
8797 (zero_extendqisi2): Optimize case where src register and base dst
8798 register are the same.
8799 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8800 (zero_extendpsisi2): Optimize r->m case.
8801 Add unnamed insn patterns to catch insns combine searches for when
8802 optimizing pointer manipulation.
8803
8804 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8805
8806 * config/msp430/msp430.md: Group zero_extend* insns together.
8807
8808 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8809
8810 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8811 constraint.
8812 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8813 POST_INC.
8814 (msp430_subreg): Likewise.
8815 (msp430_split_addsi): Likewise.
8816 (msp430_print_operand_addr): Likewise.
8817 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8818 (USE_STORE_POST_INCREMENT): Define.
8819 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8820 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8821 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8822 (msp430_general_dst_operand): New.
8823 (msp430_general_dst_nonv_operand): New.
8824 (msp430_nonsubreg_operand): Remove.
8825 (msp430_nonsubreg_dst_operand): New.
8826 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8827 of defunct msp430_nonsubreg_operand.
8828 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8829
8830 2019-10-15 Richard Biener <rguenther@suse.de>
8831
8832 PR tree-optimization/91929
8833 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8834 (get_or_alloc_expr_for_name): Initialize it.
8835 (get_or_alloc_expr_for_constant): Likewise.
8836 (phi_translate_1): Copy it.
8837 (create_expression_by_pieces): Use the original location
8838 of the expression for the inserted stmt.
8839 (compute_avail): Record the location of the stmt for the
8840 expressions created.
8841
8842 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8843
8844 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8845 before using tree_to_uhwi.
8846
8847 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8848
8849 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8850
8851 2019-10-15 Richard Biener <rguenther@suse.de>
8852
8853 PR tree-optimization/92094
8854 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8855 do not adjust the reduction definition def type.
8856 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8857 defines the latch argument of the PHI.
8858
8859 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8860
8861 PR target/92035
8862 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8863 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8864 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8865 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8866 _mm_maskz_roundscale_round_sd): New intrinsics.
8867 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8868 __builtin_ia32_rndscales?_mask_round builtins instead of
8869 __builtin_ia32_rndscales?_round.
8870 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8871 __builtin_ia32_rndscalesd_round): Remove.
8872 (__builtin_ia32_rndscaless_mask_round,
8873 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8874 * config/i386/sse.md
8875 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8876 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8877 ... this, adjust and add subst atrributes to make it maskable.
8878
8879 2019-10-15 Richard Biener <rguenther@suse.de>
8880
8881 PR middle-end/92046
8882 * common.opt (fallow-store-data-races): New.
8883 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8884 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8885 * doc/invoke.texi (fallow-store-data-races): Document.
8886 (--param allow-store-data-races): Remove docs.
8887 * opts.c (default_options_table): Enable -fallow-store-data-races
8888 at -Ofast.
8889 (default_options_optimization): Do not enable --param
8890 allow-store-data-races at -Ofast.
8891 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8892 instead of PARAM_ALLOW_STORE_DATA_RACES.
8893 * tree-ssa-loop-im.c (execute_sm): Likewise.
8894
8895 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8896
8897 PR tree-optimization/92085
8898 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8899 instead of calling it unconditionally after
8900 delete_dead_or_redundant_assignment and fix indentation.
8901
8902 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8903
8904 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8905 TARGET_VFP_DOUBLE.
8906 (*fmsub<SDF:mode>4): Likewise.
8907 *fnmsub<SDF:mode>4): Likewise.
8908 (*fnmadd<SDF:mode>4): Likewise.
8909
8910 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8911
8912 * doc/tree-ssa.texi: Update renamed macro name.
8913
8914 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8915
8916 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8917 vector constants.
8918
8919 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8920
8921 * config/darwin.c: Use unsigned ints for the picbase label
8922 counters, initialise the vars explicitly.
8923 (update_pic_label_number_if_needed): Move a variable declaration
8924 to where it's needed.
8925 (machopic_output_function_base_name): Use a more strict checking
8926 assert, and and unsigned int for the picbase label counter.
8927 (machopic_get_function_picbase): Likewise.
8928
8929 2019-10-14 Richard Biener <rguenther@suse.de>
8930
8931 PR middle-end/92046
8932 * dse.c (scan_insn): Use param max_active_local_stores.
8933 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8934 based on optimization level.
8935 * loop-invariant.c (move_loop_invariants): Adjust
8936 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8937 * opts.c (default_options_optimization): Do not adjust
8938 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8939 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8940
8941 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8942
8943 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8944
8945 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8946
8947 * config/arm/arm.c (arm_option_override): Don't override sched
8948 pressure algorithm.
8949
8950 2019-10-14 Richard Biener <rguenther@suse.de>
8951
8952 PR tree-optimization/92069
8953 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8954 cycles do not set vect_nested_cycle on the latch definition.
8955
8956 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8957
8958 * function-abi.h (expr_callee_abi): Declare.
8959 * function-abi.cc (expr_callee_abi): New function.
8960
8961 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8962
8963 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8964 into [1,MAX].
8965 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8966 non-zero being represented as [1,MAX].
8967
8968 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8969
8970 * tree-sra.c (dump_access): Add missing braces.
8971
8972 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8973
8974 * config/darwin.c (machopic_indirection_name): Rework the
8975 function to emit linker-visible symbols only for indirections
8976 in the data section. Clean up the code and update comments.
8977
8978 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8979
8980 * config/darwin.c (machopic_indirect_data_reference): Remove
8981 redundant code.
8982
8983 2019-10-13 Nathan Sidwell <nathan@acm.org>
8984
8985 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8986
8987 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8988
8989 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8990 c99_runtime.
8991
8992 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8993
8994 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8995 so non-virutal are before virutals.
8996 (output_function): Avoid body modifications.
8997
8998 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8999
9000 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9001 %r22. Load function address before global pointer.
9002 (pa_attr_length_indirect_call): Adjust length of inline versions of
9003 $$dyncall.
9004 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9005 before normal cases. Update inline $$dyncall sequences to preserve
9006 function descriptor address in register %r22.
9007 (TRAMPOLINE_CODE_SIZE): Adjust.
9008 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9009 register %r22 contains trampoline address.
9010 (pa_trampoline_init): Adjust offsets.
9011 (pa_trampoline_adjust_address): Likewise.
9012 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9013
9014 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9015
9016 PR target/67183
9017 * config/darwin.c (machopic_indirection): New field to flag
9018 non-lazy-symbol-pointers in the data section.
9019 (machopic_indirection_name): Compute if an indirection should
9020 appear in the data section.
9021 (machopic_output_data_section_indirection): New callback split
9022 from machopic_output_indirection.
9023 (machopic_output_stub_indirection): Likewise.
9024 (machopic_output_indirection): Retain the code for non-lazy
9025 symbol pointers in their regular section.
9026 (machopic_finish): Use the new callbacks to order the indirection
9027 output.
9028
9029 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9030
9031 * config/darwin-protos.h (machopic_finish): Delete.
9032 * config/darwin.c (machopic_finish): Make static.
9033
9034 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9035
9036 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9037 sections when building kernel extension code.
9038
9039 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9040
9041 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9042 later standard."
9043
9044 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9045
9046 * config/pa/pa.c (pa_option_override): Remove trailing comma
9047 from warning.
9048
9049 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9050
9051 PR middle-end/92063
9052 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9053 <case VEC_COND_EXPR>: Return false with *handled = false.
9054 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9055 recursing on the first operand.
9056 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9057 instead of tree_could_trap_p.
9058 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9059
9060 2019-10-11 Jim Wilson <jimw@sifive.com>
9061
9062 PR rtl-optimization/91860
9063 * combine.c (subst): If new_rtx is a constant, also check for
9064 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9065
9066 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9067
9068 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9069 INTVAL when calling store_bit_field.
9070
9071 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9072
9073 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9074 size.
9075
9076 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9077
9078 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9079 vectorizable_live_operation.
9080 (vectorizable_live_operation): Adjust parameters.
9081 * tree-vect-stmts.c (vect_init_vector,
9082 vect_gen_widened_results_half): Fix typo in function comment.
9083 (can_vectorize_live_stmts): Adjust function comment.
9084 Adjust parameters. Adjust call to vectorizable_live_operation.
9085 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9086 (vect_transform_stmt): Adjust function comment. Adjust call to
9087 can_vectorize_live_stmts.
9088 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9089
9090 2019-10-11 Richard Biener <rguenther@suse.de>
9091
9092 PR tree-optimization/90883
9093 PR tree-optimization/91091
9094 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9095 alias-sets both for recording VN table entries and continuing
9096 walking after translating through copies. Handle same-sized
9097 reads from SSA names by returning the plain SSA name.
9098 (eliminate_dom_walker::eliminate_stmt): Properly handle
9099 non-size precision stores in redundant store elimination.
9100
9101 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9102
9103 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9104 (ggc_collect): Dump later to not interfere with release_page dump.
9105 (ggc_trim): New function.
9106 * ggc-none.c (ggc_trim): New.
9107 * ggc.h (ggc_trim): Declare.
9108
9109 2019-10-11 Richard Biener <rguenther@suse.de>
9110
9111 PR tree-optimization/92066
9112 PR tree-optimization/92046
9113 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9114 Fix bogus cost model check.
9115
9116 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9117
9118 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9119 (LANG_HOOKS_DECLS): Add it.
9120 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9121 update comment for omp_is_optional_argument.
9122 * omp-general.c (omp_is_allocatable_or_ptr): New.
9123 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9124 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9125 Fortran's optional arguments and allocatable/pointer scalars
9126 with use_device_addr.
9127
9128 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9129
9130 PR target/77918
9131 * config/s390/2827.md: Add new opcodes.
9132 * config/s390/2964.md: Likewise.
9133 * config/s390/3906.md: Likewise.
9134 * config/s390/8561.md: Likewise.
9135 * config/s390/s390-builtins.def (s390_vfchesb): Use
9136 the new vec_cmpgev4sf_quiet_nocc.
9137 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9138 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9139 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9140 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9141 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9142 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9143 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9144 * config/s390/s390-modes.def (CCSFPS): New mode.
9145 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9146 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9147 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9148 (s390_expand_vec_compare): Use non-signaling patterns where
9149 necessary.
9150 (s390_reverse_condition): Support CCSFPS.
9151 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9152 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9153 (asm_fcmp_op): Likewise.
9154 (*smaxv2df3_vx): Use pattern for quiet comparison.
9155 (*sminv2df3_vx): Likewise.
9156 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9157 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9158 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9159 (vec_cmplt<mode>_quiet_nocc): New expander.
9160 (vec_cmpge<mode>_quiet_nocc): New pattern.
9161 (vec_cmple<mode>_quiet_nocc): New expander.
9162 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9163 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9164 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9165 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9166 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9167 (vec_cmpungt<mode>): New expander.
9168 (vec_cmpunge<mode>): Likewise.
9169 (vec_cmpuneq<mode>): Use quiet patterns.
9170 (vec_cmpltgt<mode>): Allow only on z14+.
9171 (vec_cmpordered<mode>): Use quiet patterns.
9172 (vec_cmpunordered<mode>): Likewise.
9173 (VEC_CMP_EXPAND): Add ungt and unge.
9174
9175 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9176
9177 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9178 parameter.
9179 * lto-streamer-out.c: Include tree-dfa.h.
9180 (output_cfg): Do not use cfun.
9181 (lto_prepare_function_for_streaming): New.
9182 (output_function): Do not push cfun; do not initialize loop optimizer.
9183 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9184 * passes.c (ipa_write_summaries): Use it.
9185 (ipa_write_optimization_summaries): Do not modify bodies.
9186 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9187 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9188 * tree-ssa-dse.c (pass_dse::execute): Update use of
9189 renumber_gimple_stmt_uids.
9190 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9191
9192 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9193
9194 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9195 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9196
9197 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9198
9199 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9200 macros.
9201 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9202 Also define DFP macros for these conditions.
9203 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9204 DEC128_SUBNORMAL_MIN): Do not define.
9205 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9206 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9207
9208 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9209 Sandra Loosemore <sandra@codesourcery.com>
9210
9211 PR middle-end/26241
9212 * doc/lto.texi (IPA): Reference to the IPA passes.
9213 * doc/passes.texi (Pass manager): Add node IPA passes and
9214 description for each IPA pass.
9215
9216 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9217
9218 * ipa-reference.c: Do not include splay-tree.h
9219 (reference_vars_to_consider): Turn to hash map.
9220 (get_static_name, ipa_init, analyze_function, propagate,
9221 stream_out_bitmap, ipa_reference_write_optimization_summary,
9222 ipa_reference_write_optimization_summary): Update.
9223
9224 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9225
9226 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9227
9228 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9229
9230 * config/darwin.c: Lookup Objective C metadata and force indirection
9231 for IVAR refs.
9232
9233 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9234
9235 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9236 addresses.
9237 (mem_operand_gpr): Add check for prefixed addresses.
9238 (mem_operand_ds_form): Add check for prefixed addresses.
9239 (rs6000_legitimate_offset_address_p): If we support prefixed
9240 addresses, check for a 34-bit offset instead of 16-bit.
9241 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9242 Do not allow load/store with update if the address is prefixed.
9243 (rs6000_mode_dependent_address): If we support prefixed
9244 addresses, check for a 34-bit offset instead of 16-bit.
9245
9246 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9247
9248 PR target/77918
9249 * config/s390/vector.md (vcond_comparison_operator): New
9250 predicate.
9251 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9252
9253 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9254
9255 PR 87488
9256 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9257 -D.
9258 * configure.ac (--with-documentation-root-url): New option.
9259 * configure: Regenerate.
9260 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9261 option URL, add it as a new string field of the diagnostic option.
9262 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9263 (print_option_information): If get_option_url is non-NULL, call
9264 it, and if the result is non-NULL, potentially emit an escape
9265 sequence to markup the option text with the resulting URL.
9266 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9267 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9268 example of JSON output.
9269 * opts-diagnostic.h (get_option_url): New decl.
9270 * opts.c (get_option_url): New function.
9271 * toplev.c (general_init): Initialize the get_option_url callback.
9272
9273 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9274
9275 PR 87488
9276 * common.opt (fdiagnostics-urls=): New option.
9277 (diagnostic-url.h): Add SourceInclude.
9278 (diagnostic_url_rule): New enum.
9279 * diagnostic-color.c: Include "diagnostic-url.h".
9280 (diagnostic_urls_enabled_p): New function.
9281 * diagnostic-url.h: New file.
9282 * diagnostic.c: Include "diagnostic-url.h".
9283 (diagnostic_urls_init): New function.
9284 * diagnostic.h (diagnostic_urls_init): New decl.
9285 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9286 -fdiagnostics-urls to the list.
9287 (-fdiagnostics-urls): New option.
9288 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9289 (driver::global_initializations): Call diagnostic_urls_init.
9290 * opts-global.c (init_options_once): Likewise.
9291 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9292 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9293 show_urls.
9294 (pp_begin_url): New function.
9295 (pp_end_url): New function.
9296 (selftest::test_urls): New selftest.
9297 (selftest::pretty_print_c_tests): Call it.
9298 * pretty-print.h (pretty_printer::show_urls): New field.
9299 (pp_begin_url): New decl.
9300 (pp_end_url): New decl.
9301
9302 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9303
9304 PR target/92022
9305 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9306
9307 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9308
9309 PR target/88630
9310 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9311 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9312 also for TARGET_FPU_SH4_300.
9313 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9314 TARGET_SH4_300.
9315 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9316 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9317 (*negsf2_i): Split into ...
9318 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9319 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9320 (**abssf2_i): Split into ...
9321 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9322 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9323 (*negdf2_i): Split into ...
9324 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9325 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9326 (**abssf2_i): Split into ...
9327 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9328
9329 2019-10-10 Richard Biener <rguenther@suse.de>
9330
9331 PR middle-end/92046
9332 * opts.c (finish_options): Do not influence global --params
9333 from options that are adjustable per function.
9334 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9335 Apply --param adjustment based on active cost-model.
9336 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9337 further store-sinking when vectorization or if-conversion
9338 are not enabled.
9339
9340 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9341
9342 PR middle-end/92037
9343 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9344 rather than ggc_alloc_cleared to alloc symbol table.
9345 * toplev.c (general_init): Likewise.
9346 * cgraph.h (symbol_table): Explicitly construct every field.
9347
9348 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9349
9350 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9351 (PF_Z15): ... this.
9352 * config.gcc: Add z15 as option for --with-arch and --with-tune
9353 configure switches.
9354 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9355 error reporting for unsupported builtins.
9356 * config/s390/s390-opts.h (enum processor_type): Rename
9357 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9358 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9359 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9360 Likewise.
9361 * config/s390/s390-builtins.def: Likewise.
9362 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9363 (s390_expand_builtin): Add missing check for unsupported builtins.
9364 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9365 (s390_rtx_costs): Likewise.
9366 (s390_get_sched_attrmask): Rename arch13 to z15.
9367 (s390_get_unit_mask): Likewise.
9368 (s390_is_fpd): Likewise.
9369 (s390_is_fxd): Likewise.
9370 * config/s390/s390.h (enum processor_flags): Likewise.
9371 * config/s390/s390.md: Likewise.
9372 * config/s390/vector.md: Likewise.
9373 * config/s390/vx-builtins.md: Likewise.
9374 * config/s390/s390.opt: Add z15 to processor_type value.
9375
9376 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9377
9378 PR target/91035
9379 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9380 prototype.
9381 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9382 ("split_stack_data", "split_stack_call")
9383 ("split_stack_call_<mode>", "split_stack_cond_call")
9384 ("split_stack_cond_call_<mode>"): Remove.
9385 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9386 insn definition.
9387 * config/s390/s390.c (s390_output_split_stack_data): New function.
9388 (s390_expand_split_stack_prologue): Use the merged expander.
9389
9390 2019-10-09 Martin Sebor <msebor@redhat.com>
9391
9392 PR tree-optimization/90879
9393 * builtins.c (check_access): Avoid using maxbound when null.
9394 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9395 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9396 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9397 conditional.
9398 (get_range_strlen): Overwrite initial maxbound when non-null.
9399 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9400 changes.
9401 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9402 (used_only_for_zero_equality): New function.
9403 (handle_builtin_memcmp): Call it.
9404 (determine_min_objsize): Return an integer instead of tree.
9405 (get_len_or_size, strxcmp_eqz_result): New functions.
9406 (maybe_warn_pointless_strcmp): New function.
9407 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9408 between a longer string and a smaller array.
9409 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9410
9411 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9412
9413 * config/darwin.c (darwin_override_options): Make the check for
9414 Objective-C ABI version more specific for 64bit code.
9415
9416 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9417
9418 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9419 indicate that the new symbol is an indirection.
9420 (machopic_indirect_call_target): Likewise.
9421 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9422 (MACHO_SYMBOL_INDIRECTION_P): New.
9423 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9424
9425 2019-10-08 Jason Merrill <jason@redhat.com>
9426
9427 * doc/invoke.texi: Document -fconcepts-ts.
9428
9429 2019-10-09 Richard Biener <rguenther@suse.de>
9430
9431 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9432 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9433
9434 2019-10-08 Richard Biener <rguenther@suse.de>
9435
9436 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9437 (_stmt_vec_info::force_single_cycle): Likewise.
9438 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9439 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9440 * tree-vect-loop.c (vectorizable_reduction): Set
9441 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9442 (vect_transform_reduction): Use them to remove redundant code.
9443 (vect_transform_cycle_phi): Likewise.
9444
9445 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9446
9447 PR tree-optimization/90836
9448 * match.pd (popcount): New pattern.
9449
9450 2019-10-08 Martin Sebor <msebor@redhat.com>
9451
9452 PR middle-end/92026
9453 PR middle-end/92014
9454 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9455 again once nbytes has been set. Set the access size when not yet set.
9456
9457 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9458
9459 * config/darwin.c (machopic_select_section): Remove dead code for
9460 old Objective-C section selection method, replace with unreachable.
9461
9462 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9463
9464 * config/darwin.c (machopic_indirect_data_reference): Check for
9465 required indirections before making direct access to defined
9466 values.
9467 (machopic_output_indirection): Place the indirected pointes for
9468 required indirections into the non-lazy symbol pointers section.
9469 (darwin_encode_section_info):
9470 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9471 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9472
9473 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9474
9475 PR target/91994
9476 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9477 instead of ALL_SSE_REG to check if function call preserves some
9478 256-bit SSE registers.
9479
9480 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9481
9482 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9483 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9484 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9485
9486 2019-10-08 Richard Biener <rguenther@suse.de>
9487
9488 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9489 (_stmt_vec_info::is_reduc_info): Add.
9490 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9491 (vectorizable_condition): Remove.
9492 (vectorizable_shift): Likewise.
9493 (vectorizable_reduction): Adjust.
9494 (info_for_reduction): New.
9495 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9496 (vect_analyze_scalar_cycles_1): ... here.
9497 (vect_analyze_loop_operations): Adjust.
9498 (needs_fold_left_reduction_p): Simplify for single caller.
9499 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9500 for nested cycles not part of double reductions.
9501 (vect_model_reduction_cost): Pass in the reduction type.
9502 (info_for_reduction): New function.
9503 (vect_create_epilog_for_reduction): Use it, access reduction
9504 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9505 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9506 (vectorize_fold_left_reduction): Remove pointless assert.
9507 (vectorizable_reduction): Analyze the full reduction when
9508 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9509 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9510 stmt code-generation to vectorizable_* in most cases. Verify
9511 code-generation only for cases handled by
9512 vect_transform_reductuon.
9513 (vect_transform_reduction): Use info_for_reduction to get at
9514 reduction meta. Simplify.
9515 (vect_transform_cycle_phi): Likewise.
9516 (vectorizable_live_operation): Likewise.
9517 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9518 at the PHI node for STMT_VINFO_REDUC_TYPE.
9519 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9520 longer necessary code.
9521 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9522 (vectorizable_condition): Likewise. Get at reduction related
9523 info via info_for_reduction.
9524 (vect_analyze_stmt): Adjust.
9525 (vect_transform_stmt): Likewise.
9526 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9527 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9528
9529 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9530
9531 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9532 -fno-fp-int-builtin-inexact default for C2X.
9533
9534 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9535 Richard Biener <rguenther@suse.de>
9536
9537 PR tree-optimization/91532
9538 * tree-if-conv.c: Include tree-ssa-dse.h.
9539 (ifcvt_local_dce): Change param from bb to loop,
9540 and call dse_classify_store.
9541 (tree_if_conversion): Pass loop instead of loop->header as arg
9542 to ifcvt_local_dce.
9543 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9544 (delete_dead_or_redundant_assignment): Remove static qualifier from
9545 declaration, and add prototype in tree-ssa-dse.h.
9546 (dse_store_status): Move to tree-ssa-dse.h.
9547 (dse_classify_store): Remove static qualifier and add new tree param
9548 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9549 * tree-ssa-dse.h: New header.
9550
9551 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9552
9553 * config/darwin.c (machopic_output_indirection): Don't put
9554 hidden symbol indirections into the .data section, use the
9555 non-lazy symbol pointers section as normal.
9556 (darwin_encode_section_info): Record if a symbol is hidden.
9557 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9558 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9559
9560 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9561
9562 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9563 predicates instead of accessing bits directly.
9564 (machopic_indirect_call_target): Likewise.
9565 (machopic_output_indirection): Likewise.
9566 (darwin_encode_section_info): Improve description. Use renamed
9567 symbol flags. Use predicate macros for variables and functions.
9568 * config/darwin.h:
9569 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9570 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9571 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9572 (MACHO_SYMBOL_VARIABLE_P): New.
9573 (MACHO_SYMBOL_DEFINED_P):New.
9574 (MACHO_SYMBOL_STATIC_P): New.
9575 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9576 (SYMBOL_FLAG_SUBT_DEP): New.
9577 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9578
9579 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9580
9581 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9582 (msp430_expand_epilogue): Likewise.
9583 * config/msp430/predicates.md: Likewise.
9584 * config/msp430/msp430.md: Likewise.
9585 Replace blocks of 8 spaces with tabs.
9586
9587 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9588
9589 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9590 * config/msp430/msp430.c (msp430_split_addsi): New.
9591 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9592 a block of C code for splitting addsi.
9593
9594 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9595
9596 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9597 ix86_expand_rounddf_32): Reorder functions.
9598 * config/i386/i386-protos.h: Update.
9599
9600 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9601
9602 * config.in: Regenerate.
9603 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9604 Add new "Yx" constraint.
9605 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9606 function.
9607 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9608 prototype.
9609 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9610 code/data region to be selected in the small memory model.
9611 (msp430_section_attr): Don't warn if the "section" and "lower"
9612 attributes are used together.
9613 (msp430_handle_generic_attribute): Likewise.
9614 (msp430_var_in_low_mem): New function.
9615 (TARGET_ENCODE_SECTION_INFO): Define.
9616 (msp430_encode_section_info): New function.
9617 (gen_prefix): Return early in the small memory model.
9618 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9619 ".lower" prefix if -m{code,data}-region=lower have been passed.
9620 (msp430_output_aligned_decl_common): Emit common symbols when
9621 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9622 set.
9623 (TARGET_ASM_FILE_END): Define.
9624 (msp430_file_end): New function.
9625 (msp430_do_not_relax_short_jumps): Allow relaxation when
9626 function will be in the lower region.
9627 (msp430_op_not_in_high_mem): New function.
9628 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9629 the 'X' operand selector.
9630 Clarify comment for 'x' operand selector.
9631 * config/msp430/msp430.h (LINK_SPEC): Propagate
9632 -m{code,data}-region to the linker via spec function
9633 msp430_propagate_region_opt.
9634 (msp430_propagate_region_opt): New prototype.
9635 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9636 (SYMBOL_FLAG_LOW_MEM): Define.
9637 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9638 selector.
9639 (zero_extendqihi2): Fix operand number used by "%X" selector.
9640 (zero_extendqisi2): Likewise.
9641 (zero_extendhisi2): Likewise.
9642 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9643 (movhi): Likewise.
9644 (addqi3): Likewise.
9645 (addhi3): Likewise.
9646 (addsi3): Likewise.
9647 (addhi3_cy): Likewise.
9648 (addchi4_cy): Likewise.
9649 (subqi3): Likewise.
9650 (subhi3): Likewise.
9651 (subsi3): Likewise.
9652 (bic<mode>3): Likewise.
9653 (and<mode>3): Likewise.
9654 (ior<mode>3): Likewise.
9655 (xor<mode>3): Likewise.
9656 (slli_1): Add missing "%X" operand selector.
9657 (slll_1): Likewise.
9658 (slll_2): Likewise.
9659 (srai_1): Likewise.
9660 (sral_1): Likewise.
9661 (sral_2): Likewise.
9662 (srli_1): Likewise.
9663 (srll_1): Likewise.
9664 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9665 selector.
9666 (cbranchhi4_real): Likewise.
9667 (cbranchqi4_reversed): Likewise.
9668 (cbranchhi4_reversed): Likewise.
9669 (*bitbranch<mode>4): Likewise.
9670 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9671 * config/msp430/msp430.opt (mcode-region=): Set default to
9672 MSP430_REGION_LOWER. Improve docstring.
9673 (mdata-region=): Likewise.
9674 (muse-lower-region-prefix): New option.
9675 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9676 mdata-region=none multilib.
9677 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9678 mdata-region=none multilib.
9679 MULTILIB_EXCEPTIONS: Remove.
9680 MULTILIB_REQUIRED: Define.
9681 * configure: Regenerate.
9682 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9683 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9684 * doc/extend.texi: Clarify comment for {upper,lower,either}
9685 function attributes.
9686 Add separate description for "lower" variable attribute.
9687
9688 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9689
9690 PR target/77918
9691 * optabs-tree.c (vcond_icode_p): New function.
9692 (vcond_eq_icode_p): Likewise.
9693 (expand_vec_cond_expr_p): Use vcond_icode_p and
9694 vcond_eq_icode_p.
9695 * optabs.c (can_vcond_compare_p): New function.
9696 * optabs.h (can_vcond_compare_p): Likewise.
9697
9698 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9699
9700 PR target/77918
9701 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9702 caller passes a non-trapping condition.
9703 (is_gimple_condexpr): Allow trapping conditions.
9704 (is_gimple_condexpr_1): New helper function.
9705 (is_gimple_condexpr_for_cond): New function, acts like old
9706 is_gimple_condexpr.
9707 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9708 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9709 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9710 * gimplify.c (gimplify_cond_expr): Use
9711 is_gimple_condexpr_for_cond.
9712 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9713 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9714 VEC_COND_EXPR.
9715 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9716 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9717 is_gimple_condexpr_for_cond, remove pointless tmp check
9718 (forward_propagate_into_cond): Remove pointless tmp check.
9719
9720 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9721
9722 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9723 match that of other gsi_next_* functions. Adjust the comment.
9724 (gsi_start_nonvirtual_phis): New function.
9725 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9726 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9727
9728 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9729
9730 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9731 setjmp situation here. Fix a verb's ending: "the exact variables or
9732 elements for which there are warnings depends" -> "... depend".
9733
9734 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9735
9736 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9737
9738 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9739
9740 * ipa-prop.c (ipa_vr::nonzero_p): New.
9741 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9742 non-zero range.
9743 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9744 * tree-vrp.c (range_has_numeric_bounds_p): New.
9745 (range_int_cst_p): Use range_has_numeric_bounds_p.
9746 (get_range_op_handler): New.
9747 (supported_types_p): New.
9748 (defined_ranges_p): New.
9749 (drop_undefines_to_varying): New.
9750 (range_fold_binary_symbolics_p): New.
9751 (range_fold_unary_symbolics_p): New.
9752 (range_fold_unary_expr): Extract out into above functions.
9753 (range_fold_binary_expr): Same.
9754 (value_range_base::normalize_addresses): New.
9755 (value_range_base::normalize_symbolics): Normalize addresses.
9756 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9757
9758 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9759
9760 * tree-vrp.c (value_range_base::singleton_p): Use
9761 value_range_base::num_pairs instead of vrp_val_is* to check
9762 if a range has one sub-range.
9763
9764 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9765
9766 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9767 DEF is not a true earlyclobber but is tied to a specific input
9768 operand, and so is effectively earlyclobber wrt inputs that have
9769 different values.
9770 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9771
9772 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9773
9774 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9775 (pod_mode): Mark operators likewise.
9776 (scalar_int_mode): Mark non-default constructors and
9777 operators with CONSTEXPR.
9778 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9779 (fixed_size_mode): Likewise.
9780
9781 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9782
9783 PR target/91994
9784 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9785 and wrap the unspec_volatile in a parallel.
9786 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9787 the unspec_volatile.
9788 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9789 unspec_volatile to be wrapped in a parallel.
9790 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9791 (ix86_add_reg_usage_to_vzerouppers): New functions.
9792 (rest_of_handle_insert_vzeroupper): Use them to add register
9793 usage information to the vzeroupper instructions.
9794
9795 2019-10-07 Richard Biener <rguenther@suse.de>
9796
9797 PR tree-optimization/91975
9798 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9799 handle invariants.
9800
9801 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9802
9803 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9804 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9805
9806 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9807
9808 * config/darwin.c (darwin_override_options): Adjust objective-c
9809 ABI version error messages to avoid punctuation and contracted
9810 negations.
9811
9812 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9813
9814 * ipa-inline.c: Fix type; compute size rather than self_size
9815 for size of caller function.
9816
9817 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9818
9819 PR target/59888
9820 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9821 choose const_data section for constants with relocations.
9822 (machopic_select_section): Pass relocation flag to
9823 darwin_rodata_section ().
9824
9825 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9826
9827 PR tree-optimization/91734
9828 * generic-match-head.c: Include fold-const-call.h.
9829 * match.pd (sqrt(x) cmp c): Check the boundary value and
9830 in case inexact computation of c*c affects comparison of the boundary,
9831 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9832 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9833 for -frounding-math. For c2, try the next smaller or larger floating
9834 point constant depending on comparison code and if it has the same
9835 sqrt as c2, use it instead of c2.
9836
9837 2019-10-04 Martin Sebor <msebor@redhat.com>
9838
9839 PR middle-end/91977
9840 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9841 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9842 uninitialized objects.
9843
9844 2019-10-04 Martin Sebor <msebor@redhat.com>
9845
9846 * builtins.c (compute_objsize): Add an argument.
9847 * tree-object-size.c (addr_object_size): Same.
9848 (compute_builtin_object_size): Same.
9849 * tree-object-size.h (compute_builtin_object): Same.
9850
9851 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9852
9853 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9854
9855 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9856
9857 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9858
9859 2019-10-04 Martin Jambor <mjambor@suse.cz>
9860
9861 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9862 fntype when switching to calling memcpy instead of memset.
9863
9864 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9865
9866 * hash-table.h (hash_table::empty_slow): Don't assign
9867 size_t values to int variables.
9868
9869 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9870
9871 * expr.c (convert_mode_scalar): Remove shadowing local var.
9872 (emit_block_move): Rename local vars.
9873 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9874 (emit_push_insn): Rename local vars.
9875 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9876 shadowing local vars.
9877 (store_constructor): Remove shadowing local vars. Rename local var.
9878 (store_field, expand_cond_expr_using_cmove,
9879 expand_expr_real_2): Remove shadowing local vars.
9880 (expand_expr_real_1,
9881 do_store_flag): Remove shadowing local vars. Rename local vars.
9882
9883 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9884
9885 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9886
9887 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9888
9889 * genmatch.c (commutate): Rename local var.
9890 (lower_cond): Reuse local var.
9891 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9892 dt_operand::gen, dt_operand::gen_gimple_expr,
9893 dt_simplify::gen): Add a param. Rename generated vars.
9894 (decision_tree::insert_operand,
9895 (capture_info::walk_match, capture_info::walk_result,
9896 capture_info::walk_c_expr): Rename local vars.
9897 (expr::gen_transform): Rename generated vars.
9898 Use snprintf. Rename local vars.
9899 (capture::gen_transform, dt_operand::get_name,
9900 dt_operand::gen_opname): Rename generated vars.
9901 (write_predicate): Adjust call to gen_kids.
9902 (parser::get_internal_capture_id): Rename generated vars.
9903 (parser::parse_expr): Rename local vars.
9904 (parser::parse_if): Remove local var.
9905 (parser::parse_pattern, add_operator): Rename local vars.
9906
9907 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9908
9909 * builtins.def (DEF_C2X_BUILTIN): New macro.
9910 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9911 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9912 (strndup): Use DEF_C2X_BUILTIN.
9913 * coretypes.h (enum function_class): Add function_c2x_misc.
9914
9915 2019-10-04 Maya Rashish <coypu@sdf.org>
9916
9917 * ira-color.c (update_costs_from_allocno): Call
9918 ira_init_register_move_cost_if_necessary.
9919
9920 2019-10-04 Jeff Law <law@redhat.com>
9921
9922 * config/h8300/h8300.md (cpymemsi): Disable.
9923 (movmd, movmd_internal_<mode>, movstr, movsd):
9924 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9925 (movmd splitter, movsd splitter): Likewise.
9926
9927 * range-op.cc (range_tests): Avoid two tests when ints and
9928 shorts are the same size.
9929
9930 2019-10-04 Richard Biener <rguenther@suse.de>
9931
9932 PR lto/91968
9933 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9934 BLOCK_VARS.
9935
9936 2019-10-04 Richard Biener <rguenther@suse.de>
9937
9938 PR tree-optimization/91982
9939 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9940 against EXTRACT_LAST_REDUCTION.
9941 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9942
9943 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9944
9945 * range-op.o (value_range_from_overflowed_bounds): Rename from
9946 adjust_overflow_bound.
9947 (value_range_with_overflow): Rename from
9948 create_range_with_overflow.
9949 (create_possibly_reversed_range): Adjusted for above renames.
9950 (operator_*::wi_fold): Same.
9951 (cross_product_operator::wi_cross_productor): Same.
9952
9953 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9954
9955 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9956 -Wshadow=compatible-local): Fix description.
9957 Add an example where -Wshadow=compatible-local does not
9958 warn.
9959
9960 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9961
9962 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9963
9964 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9965 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9966
9967 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9968
9969 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9970 can_move_by_pieces issue.
9971
9972 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9973
9974 PR target/87243
9975 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9976 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9977 is available and the user has not set one on the command line.
9978
9979 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9980
9981 PR target/91769
9982 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9983 instead of REGNO equality check on addr.reg.
9984
9985 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9986
9987 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9988 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9989 * doc/invoke.texi (inline-heuristics-hint-percent,
9990 inline-heuristics-hint-percent-O2): Document.
9991 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9992 hint attribute.
9993 (can_inline_edge_by_limits_p): Use it.
9994
9995 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9996
9997 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9998 to print CONST_DOUBLEs.
9999
10000 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10001
10002 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10003 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10004 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10005
10006 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10007
10008 * Makefile.in (OBJS): Add range.o and range-op.o.
10009 Remove wide-int-range.o.
10010 * function-tests.c (test_ranges): New.
10011 (function_tests_c_tests): Call test_ranges.
10012 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10013 range_fold_unary_expr instead of extract_range_from_unary_expr.
10014 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10015 * range-op.cc: New file.
10016 * range-op.h: New file.
10017 * range.cc: New file.
10018 * range.h: New file.
10019 * selftest.h (range_tests): New prototype.
10020 * ssa.h: Include range.h.
10021 * tree-vrp.c (value_range_base::value_range_base): New
10022 constructors.
10023 (value_range_base::singleton_p): Do not call
10024 ranges_from_anti_range until sure we will need to.
10025 (value_range_base::type): Rename gcc_assert to
10026 gcc_checking_assert.
10027 (vrp_val_is_max): New argument.
10028 (vrp_val_is_min): Same.
10029 (wide_int_range_set_zero_nonzero_bits): Move from
10030 wide-int-range.cc.
10031 (extract_range_into_wide_ints): Remove.
10032 (extract_range_from_multiplicative_op): Remove.
10033 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10034 from extract_range_from_binary_expr.
10035 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10036 from extract_range_from_binary_expr.
10037 (extract_range_from_binary_expr): Remove.
10038 (normalize_for_range_ops): New.
10039 (range_fold_binary_expr): New.
10040 (range_fold_unary_expr): New.
10041 (value_range_base::num_pairs): New.
10042 (value_range_base::lower_bound): New.
10043 (value_range_base::upper_bound): New.
10044 (value_range_base::upper_bound): New.
10045 (value_range_base::contains_p): New.
10046 (value_range_base::invert): New.
10047 (value_range_base::union_): New.
10048 (value_range_base::intersect): New.
10049 (range_compatible_p): New.
10050 (value_range_base::operator==): New.
10051 (determine_value_range_1): Call range_fold_*expr instead of
10052 extract_range_from_*expr.
10053 * tree-vrp.h (class value_range_base): Add new constructors.
10054 Add methods for union_, intersect, operator==, contains_p,
10055 num_pairs, lower_bound, upper_bound, invert.
10056 (vrp_val_is_min): Add handle_pointers argument.
10057 (vrp_val_is_max): Same.
10058 (extract_range_from_unary_expr): Remove.
10059 (extract_range_from_binary_expr): Remove.
10060 (range_fold_unary_expr): New.
10061 (range_fold_binary_expr): New.
10062 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10063 range_fold_binary_expr instead of extract_range_from_binary_expr.
10064 (vr_values::extract_range_basic): Same.
10065 (vr_values::extract_range_from_unary_expr): Call
10066 range_fold_unary_expr instead of extract_range_from_unary_expr.
10067 * wide-int-range.cc: Remove.
10068 * wide-int-range.h: Remove.
10069
10070 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10071
10072 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10073 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10074 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10075 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10076 macro.
10077
10078 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10079
10080 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10081 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10082 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10083 * glimits.h: Likewise.
10084
10085 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10086
10087 PR rtl-optimization/91976
10088 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10089 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10090 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10091
10092 2019-10-02 Martin Sebor <msebor@redhat.com>
10093
10094 PR tree-optimization/80936
10095 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10096
10097 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10098
10099 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10100 instead of reg_class_contents[ALL_REGS].
10101
10102 2019-09-30 Jason Merrill <jason@redhat.com>
10103
10104 Add some hash_map_safe_* functions like vec_safe_*.
10105 * hash-map.h (default_hash_map_size): New variable.
10106 (create_ggc): Use it as default argument.
10107 (hash_map_maybe_create, hash_map_safe_get)
10108 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10109
10110 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10111
10112 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10113 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10114 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10115 (can_inline_edge_by_limits_p): Use it.
10116 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10117 (want_inline_small_function_p): Use O2 bounds.
10118 (edge_badness): LIkewise.
10119 * opts.c (default_options): Add OPT_finline_functions.
10120 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10121 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10122 New parameters.
10123 * doc/invoke.texi (-finline-functions): Update documentation.
10124 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10125 inline-min-speedup-O2): Document.
10126 (early-inlining-insns-O2): Simplify docs.
10127
10128 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10129
10130 PR rtl-optimization/87047
10131 * ifcvt.c (average_cost): New static function. Use it...
10132 (noce_process_if_block): ... here.
10133
10134 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10135
10136 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10137 * config/rs6000/rs6000-string.c (expand_block_move): Add
10138 might_overlap parm.
10139 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10140 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10141
10142 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10143
10144 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10145 (expand_builtin_memcpy): Use might_overlap parm.
10146 (expand_builtin_mempcpy_args): Use might_overlap parm.
10147 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10148 (expand_builtin_memory_copy_args): Add might_overlap parm.
10149 * expr.c (emit_block_move_via_cpymem): Rename to
10150 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10151 or movmem optab as appropriate.
10152 (emit_block_move_hints): Add might_overlap parm, do the right
10153 thing for might_overlap==true.
10154 * expr.h (emit_block_move_hints): Update prototype.
10155
10156 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10157
10158 * tree-eh.h (unsplit_eh_edges): Declare.
10159 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10160 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10161 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10162 (struct store_immediate_info): Add lp_nr field.
10163 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10164 initialize lp_nr with it.
10165 (struct merged_store_group): Add lp_nr and only_constants fields.
10166 (merged_store_group::merged_store_group): Initialize them.
10167 (merged_store_group::can_be_merged_into): Deal with them.
10168 (pass_store_merging): Rename terminate_and_release_chain into
10169 terminate_and_process_chain.
10170 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10171 renaming and remove useless assertions.
10172 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10173 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10174 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10175 instead of always recomputing it and compare lp_nr.
10176 (imm_store_chain_info::output_merged_store): If the group is in an
10177 active EH region, register new stores if they can throw. Moreover,
10178 if the insertion has created new basic blocks, adjust the PHI nodes
10179 of the post landing pad.
10180 (imm_store_chain_info::output_merged_stores): If the original stores
10181 are in an active EH region, deregister them.
10182 (lhs_valid_for_store_merging_p): Prettify.
10183 (adjust_bit_pos): New function extracted from...
10184 (mem_valid_for_store_merging): ...here. Use it for the base address
10185 and also for the offset if it is the addition of a constant.
10186 (lp_nr_for_store): New function.
10187 (pass_store_merging::process_store): Change return type to bool.
10188 Call lp_nr_for_store to initialize the store info. Propagate the
10189 return status of various called functions to the return value.
10190 (store_valid_for_store_merging_p): New predicate.
10191 (enum basic_block_status): New enumeration.
10192 (get_status_for_store_merging): New function.
10193 (pass_store_merging::execute): If the function can throw and catch
10194 non-call exceptions, unsplit the EH edges on entry and clean up the
10195 CFG on exit if something changed. Call get_status_for_store_merging
10196 for every basic block and keep the chains open across basic blocks
10197 when possible. Terminate and process open chains at the end, if any.
10198
10199 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10200
10201 * reginfo.c (globalize_reg): Fix shadowed variable in
10202 function_abis walk.
10203
10204 2019-10-02 Martin Jambor <mjambor@suse.cz>
10205
10206 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10207 do not compute some stuff when set.
10208 (cgraph_node::create_edge): Likewise.
10209 (cgraph_node::create_indirect_edge): Renamed last parameter to
10210 coning_p and flipped its meaning, don't even calculate
10211 inline_failed when set.
10212 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10213 (symbol_table::::create_edge): Likewise.
10214 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10215 the default value.
10216 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10217 call graph edge creating functions.
10218
10219 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10220
10221 PR c++/91222
10222 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10223 namespace types.
10224
10225 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10226
10227 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10228
10229 2019-10-02 Richard Biener <rguenther@suse.de>
10230
10231 * tree-vectorizer.h (vect_transform_reduction): Declare.
10232 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10233 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10234 stmt transform to ...
10235 (vect_transform_reduction): ... this.
10236
10237 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10238
10239 * omp-low.c (lower_omp_target): Dereference optional argument
10240 to work with the right pointer.
10241
10242 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10243
10244 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10245 false.
10246 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10247 * langhooks.h (omp_is_optional_argument): New hook.
10248 * omp-general.c (omp_is_optional_argument): New.
10249 * omp-general.h (omp_is_optional_argument): New declaration.
10250 * omp-low.c (lower_omp_target): Create temporary for received value
10251 and take the address for new_var if the original variable was a
10252 DECL_BY_REFERENCE. Use size of referenced object when a
10253 pass-by-reference optional argument used as argument to firstprivate.
10254
10255 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10256
10257 PR tree-optimization/91940
10258 * tree-vect-patterns.c: Include tree-vector-builder.h and
10259 vec-perm-indices.h.
10260 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10261 unpromoting the argument back to uint16_t, or by converting into a
10262 rotate, or into shifts plus ior.
10263
10264 2019-10-02 Richard Biener <rguenther@suse.de>
10265
10266 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10267 New.
10268 (vect_transform_cycle_phi): Declare.
10269 * tree-vect-stmts.c (vect_transform_stmt): Call
10270 vect_transform_cycle_phi.
10271 * tree-vect-loop.c (vectorizable_reduction): Split out
10272 PHI transformation stage to ...
10273 (vect_transform_cycle_phi): ... here.
10274
10275 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10276
10277 PR middle-end/91957
10278 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10279 eliminable registers.
10280 (make_hard_regno_live): Likewise, and don't make them live.
10281
10282 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10283
10284 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10285 Call pp_emit_prefix.
10286 (layout::print_source_line): Likewise.
10287 (layout::start_annotation_line): Likewise.
10288 (diagnostic_show_locus): Remove call to temporarily clear the
10289 prefix.
10290 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10291 interaction of pp_set_prefix with rulers and fix-it hints.
10292 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10293 prefix when calling diagnostic_show_locus, rather than destroying
10294 it afterwards.
10295 (print_parseable_fixits): Temporarily clear prefix.
10296 * pretty-print.c (pp_format): Save and restore line_length, rather
10297 than assuming it is zero.
10298 (pp_output_formatted_text): Remove assertion that line_length is
10299 zero.
10300
10301 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10302
10303 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10304 Rename to ...
10305 (nonoverlapping_refs_since_match_p): ... this; handle also
10306 ARRAY_REFs.
10307 (alias_stats): Update stats.
10308 (dump_alias_stats): Likewise.
10309 (cheap_array_ref_low_bound): New function.
10310 (aliasing_matching_component_refs_p): Add partial_overlap
10311 argument;
10312 pass it to nonoverlapping_refs_since_match_p.
10313 (aliasing_component_refs_walk): Update call of
10314 aliasing_matching_component_refs_p
10315 (nonoverlapping_array_refs_p): New function.
10316 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10317 indirect_refs_may_alias_p): Update calls of
10318 nonoverlapping_refs_since_match_p.
10319
10320 2019-10-01 Maya Rashish <coypu@sdf.org>
10321
10322 PR target/85401
10323 * ira-color.c (allocno_copy_cost_saving): Call
10324 ira_init_register_move_cost_if_necessary.
10325
10326 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10327
10328 * Makefile.in (gnat_install_lib): New variable.
10329 * configure.ac: Substitute it.
10330 * configure: Regenerate.
10331
10332 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10333
10334 PR lto/91222
10335 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10336 is matched with non-C++ type
10337
10338 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10339
10340 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10341 after local CSE.
10342
10343 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10344
10345 * doc/invoke.texi (early-inlining-insns-O2): Document.
10346 (early-inlining-insns): Update.
10347 * params.def (early-inlining-insns-O2): New bound.
10348 (early-inlining-insns): Update docs.
10349 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10350
10351 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10352
10353 PR target/88562
10354 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10355 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10356 a memory access insn.
10357
10358 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10359
10360 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10361 vpmsumd.
10362
10363 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10364
10365 PR target/77918
10366 * config/s390/s390.c (s390_expand_vec_compare): Use
10367 gen_vec_cmpordered and gen_vec_cmpunordered.
10368 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10369 vec_unordered): Delete.
10370 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10371 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10372 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10373 (vec_cmp<code>): Generic dispatcher.
10374
10375 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10376
10377 PR target/77918
10378 * config/s390/vector.md (V_HW): Add V1TI in order to make
10379 vcond$a$b generate vcondv1tiv1tf.
10380
10381 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10382
10383 PR rtl-optimization/91948
10384 * ira-build.c (ira_create_allocno): Initialize
10385 ALLOCNO_CROSSED_CALLS_ABIS.
10386 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10387 than regno to ira_need_caller_save_p.
10388
10389 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10390
10391 * config/i386/i386-options.c
10392 (ix86_recompute_optlev_based_flags): New, moved out of...
10393 (ix86_option_override_internal): ... this. Call it.
10394 (ix86_override_options_after_change): Call it here too.
10395
10396 PR debug/91507
10397 * dwarf2out.c (override_type_for_decl_p): New.
10398 (gen_variable_die): Use it.
10399
10400 2019-10-01 Richard Biener <rguenther@suse.de>
10401
10402 * tree-vect-loop.c (vectorizable_reduction): Move variables
10403 to where they are used.
10404
10405 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10406
10407 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10408 (build_def_use): Use PC instead of CC0 in a comment.
10409
10410 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10411
10412 * rtl.def (CLOBBER_HIGH): Delete.
10413 * doc/rtl.texi (clobber_high): Remove documentation.
10414 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10415 (reg_is_clobbered_by_clobber_high): Delete.
10416 (gen_hard_reg_clobber_high): Likewise.
10417 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10418 * cfgexpand.c (expand_gimple_stmt): Likewise.
10419 * combine-stack-adj.c (single_set_for_csa): Likewise.
10420 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10421 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10422 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10423 * cse.c (invalidate_reg): Remove clobber_high parameter.
10424 (invalidate): Update call accordingly.
10425 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10426 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10427 (count_reg_usage, insn_live_p): Likewise.
10428 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10429 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10430 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10431 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10432 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10433 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10434 (mark_nonreg_stores_2): Likewise.
10435 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10436 (df_get_call_refs): Likewise.
10437 * dwarf2out.c (mem_loc_descriptor): Likewise.
10438 * emit-rtl.c (verify_rtx_sharing): Likewise.
10439 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10440 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10441 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10442 * genemit.c (gen_exp, gen_insn): Likewise.
10443 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10444 * haifa-sched.c (haifa_classify_rtx): Likewise.
10445 * ira-build.c (create_insn_allocnos): Likewise.
10446 * ira-costs.c (scan_one_insn): Likewise.
10447 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10448 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10449 * jump.c (mark_jump_label_1): Likewise.
10450 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10451 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10452 handling.
10453 (mark_not_eliminable): Likewise.
10454 * lra-lives.c (process_bb_lives): Likewise.
10455 * lra.c (new_insn_reg): Remove clobber_high parameter.
10456 (collect_non_operand_hard_regs): Likewise. Update call to new
10457 insn_reg. Remove CLOBBER_HIGH handling.
10458 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10459 to collect_non_operand_hard_regs.
10460 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10461 Update call to new_insn_reg.
10462 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10463 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10464 (move2add_note_store): Likewise.
10465 * print-rtl.c (print_pattern): Likewise.
10466 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10467 (if_test_bypass_p): Likewise.
10468 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10469 * reginfo.c (reg_scan_mark_refs): Likewise.
10470 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10471 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10472 (forget_old_reloads_1): Likewise.
10473 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10474 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10475 (dbr_schedule): Likewise.
10476 * resource.c (update_live_status, mark_referenced_resources)
10477 (mark_set_resources): Likewise.
10478 * rtl.c (copy_rtx): Likewise.
10479 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10480 (note_pattern_stores): Likewise.
10481 (reg_is_clobbered_by_clobber_high): Delete.
10482 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10483 CLOBBER_HIGH handling.
10484
10485 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10486
10487 PR target/91452
10488 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10489 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10490 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10491 Handle ARM_PCS_TLSDESC.
10492 (aarch64_tlsdesc_abi_id): New function.
10493 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10494 rtx instead of a list of clobbers and clobber_highs.
10495 (tlsdesc_small_<mode>): Update accordingly.
10496
10497 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10498
10499 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10500 extra callee_abi argument.
10501 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10502 Insert a CALLEE_ABI unspec into the call pattern as the second
10503 element in the PARALLEL.
10504 (aarch64_simd_call_p): Delete.
10505 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10506 the new CALLEE_ABI element of the PARALLEL.
10507 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10508 from the function type, if given.
10509 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10510 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10511 when passed the function_arg_info end marker.
10512 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10513 final argument of gen_sibcall.
10514 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10515 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10516 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10517 pattern.
10518 (call_value): Likewise operand 3.
10519 (sibcall): Likewise operand 2. Place the unspec before rather than
10520 after the return.
10521 (sibcall_value): Likewise operand 3.
10522 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10523 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10524 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10525 constraint strings.
10526 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10527
10528 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10529
10530 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10531 choose_hard_reg_mode.
10532 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10533
10534 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10535
10536 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10537 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10538 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10539
10540 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10541
10542 * diagnostic-show-locus.c (line_label::line_label): Initialize
10543 m_has_vbar.
10544 (line_label::comparator): Reverse the sort order by m_state_idx,
10545 so that when the list is walked backwards the labels appear in
10546 order of insertion into the rich_location.
10547 (line_label::m_has_vbar): New field.
10548 (layout::print_any_labels): When dealing with multiple labels at
10549 the same line and column, only print vertical bars for the one
10550 with the highest label_line.
10551 (selftest::test_one_liner_labels): Update test for multiple labels
10552 to expect the labels to be in the order of insertion into the
10553 rich_location. Add a test for many such labels, where the column
10554 numbers are out-of-order relative to the insertion order.
10555
10556 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10557
10558 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10559 (ix86_frame::expensive_count): Likewise.
10560 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10561 of use_fast_prologue_epilogue robust against incidental changes
10562 in function size.
10563
10564 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10565
10566 PR target/77918
10567 * config/s390/vector.md (vec_unordered<mode>): Call
10568 gen_vec_ordered<mode>.
10569
10570 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10571
10572 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10573 New pattern for ASRD.
10574 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10575 * internal-fn.def (IFN_DIV_POW2): New internal function.
10576 * optabs.def (sdiv_pow2_optab): New optab.
10577 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10578 Modify pattern to support new operation.
10579 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10580 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10581 Document new target selector.
10582
10583 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10584
10585 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10586 to test whether we're compiling a vector PCS function and to test
10587 whether the function needs to save a particular register.
10588 Remove the vector PCS handling of df_set_regs_ever_live.
10589 (aarch64_components_for_bb): Use crtl->abi to test whether
10590 the function needs to save a particular register.
10591 (aarch64_process_components): Use crtl->abi to test whether
10592 we're compiling a vector PCS function.
10593 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10594 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10595
10596 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10597
10598 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10599 Delete.
10600 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10601 whether the block calls a function that clobbers more registers
10602 than the current function is allowed to.
10603 (aarch64_use_simple_return_insn_p): Delete.
10604 * config/aarch64/aarch64.md (simple_return): Remove condition.
10605
10606 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10607
10608 * function-abi.h (function_abi_aggregator): New class.
10609 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10610 function.
10611 * ira.c (update_equiv_regs_prescan): New function. Call
10612 set_paradoxical_subreg here rather than...
10613 (update_equiv_regs): ...here.
10614 (ira): Call update_equiv_regs_prescan.
10615
10616 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10617
10618 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10619 IN_TARGET_CODE.
10620 (call_used_or_fixed_regs): Likewise.
10621 (call_used_or_fixed_reg_p): Likewise.
10622 * reginfo.c (regs_invalidated_by_call): New macro.
10623
10624 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10625
10626 * shrink-wrap.c: Include function-abi.h.
10627 (requires_stack_frame_p): Use crtl->abi to test whether the
10628 current function can use a register without saving it first.
10629
10630 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10631
10632 * sel-sched-ir.h (_def::crosses_call): Replace with...
10633 (_def::crossed_call_abis): ..this new field.
10634 (def_list_add): Take a mask of ABIs instead of a crosses_call
10635 boolean.
10636 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10637 of _def accordingly.
10638 * sel-sched.c: Include function-abi.h.
10639 (hard_regs_data::regs_for_call_clobbered): Delete.
10640 (reg_rename::crosses_call): Replace with...
10641 (reg_rename::crossed_call_abis): ...this new field.
10642 (fur_static_params::crosses_call): Replace with...
10643 (fur_static_params::crossed_call_abis): ...this new field.
10644 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10645 (init_hard_regs_data): Use crtl->abi to test which registers the
10646 current function would need to save before it uses them.
10647 (mark_unavailable_hard_regs): Update handling of call-clobbered
10648 registers, using call_clobbers_in_region to find out which registers
10649 might be call-clobbered (but without taking -fipa-ra into account
10650 for now). Remove separate handling of partially call-clobbered
10651 registers.
10652 (verify_target_availability): Use crossed_call_abis instead of
10653 crosses_call.
10654 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10655 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10656
10657 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10658
10659 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10660 function to test whether a register is fully or partly clobbered.
10661
10662 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10663
10664 * rtlanal.c: Include function-abi.h.
10665 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10666 function and clobbers_reg_p to test whether the register
10667 is call-clobbered.
10668 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10669 to get the ABI of the called function and full_reg_clobbers to
10670 get the set of fully call-clobbered registers. Warn about the
10671 pitfalls of using this mode.
10672
10673 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10674
10675 * reload.c: Include function-abi.h.
10676 (find_equiv_reg): Use clobbers_reg_p to test whether either
10677 of the equivalent registers is clobbered by a call.
10678 * reload1.c: Include function-abi.h.
10679 (reg_reloaded_call_part_clobbered): Delete.
10680 (reload): Use crtl->abi to test which registers would need
10681 saving in the prologue before use.
10682 (find_reg): Likewise.
10683 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10684 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10685 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10686
10687 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10688
10689 * regrename.h (du_head::call_clobber_mask): New field.
10690 (du_head::need_caller_save_reg): Replace with...
10691 (du_head::call_abis): ...this new field.
10692 * regrename.c: Include function-abi.h.
10693 (call_clobbered_in_chain_p): New function.
10694 (check_new_reg_p): Use crtl->abi when deciding whether a register
10695 is free for use after RA. Use call_clobbered_in_chain_p to test
10696 whether a candidate register would be clobbered by a call.
10697 (find_rename_reg): Don't add call-clobber conflicts here.
10698 (rename_chains): Check call_abis instead of need_caller_save_reg.
10699 (merge_chains): Update for changes to du_head.
10700 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10701 target. Record the ABI identifier in call_abis and the set of
10702 fully or partially clobbered registers in call_clobber_mask.
10703 Add fully-clobbered registers to hard_conflicts here rather
10704 than in find_rename_reg.
10705 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10706 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10707 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10708 function-abi.h.
10709 * config/c6x/c6x.c: Likewise.
10710
10711 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10712
10713 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10714 mode of the register when deciding whether it is no longer
10715 available after a call.
10716
10717 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10718
10719 * recog.c: Include function-abi.h.
10720 (peep2_find_free_register): Use crtl->abi when deciding whether
10721 a register is free for use after RA.
10722
10723 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10724
10725 * postreload-gcse.c: Include regs.h and function-abi.h.
10726 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10727 call insn target. Conservatively assume that partially-clobbered
10728 registers are altered.
10729
10730 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10731
10732 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10733 when deciding whether a register is free for use after RA.
10734 (reload_combine): Remove unnecessary use of fixed_reg_set.
10735 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10736 call insn target. Use reg_mode when testing whether a register
10737 is no longer available.
10738
10739 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10740
10741 * target.def (return_call_with_max_clobbers): Delete.
10742 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10743 * doc/tm.texi: Regenerate.
10744 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10745 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10746 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10747 (lra_reg::call_insn): Delete.
10748 * lra.c: Include function-abi.h.
10749 (initialize_lra_reg_info_element): Don't initialize the fields above.
10750 (lra): Use crtl->abi to test whether the current function needs to
10751 save a register in the prologue. Remove special pre-inheritance
10752 lra_create_live_ranges pass for flag_ipa_ra.
10753 * lra-assigns.c: Include function-abi.h
10754 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10755 function needs to save a register in the prologue.
10756 (lra_assign): Assert that registers aren't allocated to a
10757 conflicting register, rather than checking only for overlaps
10758 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10759 and for registers that are not live across a call.
10760 * lra-constraints.c (last_call_for_abi): New variable.
10761 (full_and_partial_call_clobbers): Likewise.
10762 (setup_next_usage_insn): Remove the register from
10763 full_and_partial_call_clobbers.
10764 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10765 whether the register needs a caller save.
10766 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10767 of call_used_or_fixed_regs.
10768 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10769 full_and_partial_call_clobbers.
10770 * lra-lives.c (check_pseudos_live_through_calls): Replace
10771 last_call_used_reg_set and call_insn arguments with an abi argument.
10772 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10773 as the set of conflicting registers.
10774 (calls_have_same_clobbers_p): Delete.
10775 (process_bb_lives): Track the ABI of the last call instead of an
10776 insn/HARD_REG_SET pair. Update calls to
10777 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10778 the set of registers that could be clobbered by an EH edge.
10779 Include partially-clobbered as well as fully-clobbered registers.
10780 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10781 * lra-remat.c: Include function-abi.h.
10782 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10783 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10784 registers and bitmap_view to combine them into dead_regs.
10785 (call_used_input_regno_present_p): Take a function_abi argument
10786 and use it to test whether a register is call-clobbered.
10787 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10788 call insn target. Update tje call to call_used_input_regno_present_p.
10789 (do_remat): Likewise.
10790 (lra_remat): Remove the initialization of call_used_regs_arr_len
10791 and call_used_regs_arr.
10792
10793 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10794
10795 * loop-iv.c: Include regs.h and function-abi.h.
10796 (simplify_using_initial_values): Use insn_callee_abi to get the
10797 ABI of the call insn target. Conservatively assume that
10798 partially-clobbered registers are altered.
10799
10800 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10801
10802 * function-abi.h (call_clobbers_in_region): Declare.
10803 (call_clobbered_in_region_p): New function.
10804 * function-abi.cc (call_clobbers_in_region): Likewise.
10805 * ira-int.h: Include function-abi.h.
10806 (ira_allocno::crossed_calls_abis): New field.
10807 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10808 (ira_need_caller_save_regs): New function.
10809 (ira_need_caller_save_p): Likewise.
10810 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10811 of call_used_or_fixed_regs.
10812 (do_reload): Use crtl->abi to test whether the current function
10813 needs to save a register in the prologue. Count registers that
10814 need to be saved rather than registers that don't.
10815 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10816 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10817 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10818 (propagate_some_info_from_allocno): Likewise.
10819 (copy_info_to_removed_store_destinations): Likewise.
10820 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10821 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10822 (ira_build): Use ira_need_caller_save_regs instead of
10823 call_used_or_fixed_regs.
10824 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10825 whether the current function would need to save a register
10826 before using it.
10827 (calculate_spill_cost): Likewise.
10828 (allocno_reload_assign): Use ira_need_caller_save_regs and
10829 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10830 * ira-conflicts.c (ira_build_conflicts): Use
10831 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10832 as the set of call-clobbered registers. Remove the
10833 call_used_or_fixed_regs mask from the calculation of
10834 temp_hard_reg_set and mask its use instead. Remove special
10835 handling of partially-clobbered registers.
10836 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10837 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10838 calculate the set of conflicting registers for calls that
10839 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10840 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10841 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10842 Use eh_edge_abi to calculate the set of registers that could
10843 be clobbered by an EH edge. Include partially-clobbered as
10844 well as fully-clobbered registers.
10845
10846 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10847
10848 * haifa-sched.c: Include function-abi.h.
10849 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10850 the function would need to save a register before using it.
10851
10852 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10853
10854 * gcse.c: Include function-abi.h.
10855 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10856 the call insn target. Invalidate partially call-clobbered
10857 registers as well as fully call-clobbered ones.
10858
10859 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10860
10861 * function.c (aggregate_value_p): Work out which ABI the
10862 function is using before testing which registers are at least
10863 partly preserved by a call.
10864
10865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10866
10867 * early-remat.c: Include regs.h and function-abi.h.
10868 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10869 registers here.
10870 (early_remat::restrict_remat_for_unavail_regs): New function.
10871 (early_remat::restrict_remat_for_call): Likewise.
10872 (early_remat::process_block): Before calling emit_remat_insns
10873 for a previous call in the block, invalidate any candidates
10874 that would clobber call-preserved registers.
10875 (early_remat::emit_remat_insns_for_block): Likewise for the
10876 final call in a block. Do the same thing for live-in registers
10877 when calling emit_remat_insns at the head of a block.
10878
10879 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10880
10881 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10882 whether the current function needs to save at least part of a
10883 register before using it.
10884 (df_get_exit_block_use_set): Likewise for epilogue restores.
10885
10886 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10887
10888 * df-problems.c: Include regs.h and function-abi.h.
10889 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10890 sparse_invalidated_by_eh and dense_invalidated_by_call to
10891 dense_invalidated_by_eh.
10892 (df_print_bb_index): Update accordingly.
10893 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10894 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10895 that are clobbered by an EH edge. Clobber partially-clobbered
10896 registers as well as fully-clobbered ones.
10897 (df_md_confluence_n): Likewise.
10898 (df_rd_local_compute): Likewise. Update for changes to
10899 df_rd_problem_data.
10900 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10901 of registers that are clobbered by an EH edge. Includde partially-
10902 clobbered registers as well as fully-clobbered ones.
10903
10904 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10905
10906 * cselib.c (cselib_process_insn): If we know what mode a
10907 register was set in, check whether it is clobbered in that
10908 mode by a call. Only fall back to reg_raw_mode if that fails.
10909
10910 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10911
10912 * cse.c: Include regs.h and function-abi.h.
10913 (invalidate_for_call): Take the call insn as an argument.
10914 Use insn_callee_abi to get the ABI of the call and invalidate
10915 partially clobbered registers as well as fully clobbered ones.
10916 (cse_insn): Update call accordingly.
10917
10918 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10919
10920 * combine.c: Include function-abi.h.
10921 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10922 of the target of call insns. Invalidate partially-clobbered
10923 registers as well as fully-clobbered ones.
10924
10925 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10926
10927 * cfgloopanal.c: Include regs.h and function-abi.h.
10928 (init_set_costs): Use default_function_abi to test whether
10929 a general register is call-clobbered.
10930
10931 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10932
10933 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10934 instead of the call-clobbered sets.
10935
10936 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10937
10938 * caller-save.c (setup_save_areas): Remove redundant |s of
10939 fixed_reg_set.
10940 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10941 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10942 value is useful.
10943
10944 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10945
10946 * rtl.h (predefined_function_abi): Declare.
10947 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10948 instead of a boolean call_save flag.
10949 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10950 accordingly.
10951 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10952 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10953 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10954 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10955 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10956 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10957 * reginfo.c (init_reg_modes_target): Likewise.
10958 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10959 instead of a boolean call_save flag.
10960 * targhooks.c: Include function-abi.h.
10961 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10962 using eh_edge_abi to choose the mode.
10963
10964 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10965
10966 * target.def (hard_regno_call_part_clobbered): Take an ABI
10967 identifier instead of an rtx_insn.
10968 * doc/tm.texi: Regenerate.
10969 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10970 (hook_bool_uint_uint_mode_false): New function.
10971 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10972 (hook_bool_uint_uint_mode_false): New function.
10973 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10974 Take an ABI identifier instead of an rtx_insn.
10975 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10976 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10977 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10978 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10979 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10980 Likewise.
10981 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10982 * cselib.c: Include function-abi.h.
10983 (cselib_process_insn): Update call to
10984 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10985 to get the appropriate ABI identifier.
10986 * function-abi.cc (predefined_function_abi::initialize): Update call
10987 to targetm.hard_regno_call_part_clobbered.
10988 * ira-conflicts.c (ira_build_conflicts): Likewise.
10989 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10990 * lra-constraints.c: Include function-abi.h.
10991 (need_for_call_save_p): Update call to
10992 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10993 to get the appropriate ABI identifier.
10994 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10995 * regcprop.c (copyprop_hardreg_forward_1): Update call
10996 to targetm.hard_regno_call_part_clobbered.
10997 * reginfo.c (choose_hard_reg_mode): Likewise.
10998 * regrename.c (check_new_reg_p): Likewise.
10999 * reload.c (find_equiv_reg): Likewise.
11000 * reload1.c (emit_reload_insns): Likewise.
11001 * sched-deps.c: Include function-abi.h.
11002 (deps_analyze_insn): Update call to
11003 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11004 to get the appropriate ABI identifier.
11005 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11006 call to targetm.hard_regno_call_part_clobbered.
11007 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11008
11009 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11010
11011 * config/i386/i386.c: Include function-abi.h.
11012 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11013 if they preserve some 256-bit or 512-bit SSE registers.
11014
11015 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11016
11017 * target.def (insn_callee_abi): New hook.
11018 (remove_extra_call_preserved_regs): Delete.
11019 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11020 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11021 * doc/tm.texi: Regenerate.
11022 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11023 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11024 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11025 insn argument.
11026 (aarch64_remove_extra_call_preserved_regs): Delete.
11027 (aarch64_insn_callee_abi): New function.
11028 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11029 (TARGET_INSN_CALLEE_ABI): New macro.
11030 * rtl.h (get_call_fndecl): Declare.
11031 (cgraph_rtl_info): Fix formatting. Tweak comment for
11032 function_used_regs. Remove function_used_regs_valid.
11033 * rtlanal.c (get_call_fndecl): Moved from final.c
11034 * function-abi.h (insn_callee_abi): Declare.
11035 (target_function_abi_info): Mention insn_callee_abi.
11036 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11037 way to get_call_reg_set_usage did.
11038 (insn_callee_abi): New function.
11039 * regs.h (get_call_reg_set_usage): Delete.
11040 * final.c: Include function-abi.h.
11041 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11042 function_used_regs before the main loop rather than afterwards.
11043 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11044 if function_used_regs ends up not being useful.
11045 (get_call_fndecl): Move to rtlanal.c
11046 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11047 * caller-save.c: Include function-abi.h.
11048 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11049 instead of get_call_reg_set_usage.
11050 * cfgcleanup.c: Include function-abi.h.
11051 (old_insns_match_p): Use insn_callee_abi instead of
11052 get_call_reg_set_usage.
11053 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11054 a tree.
11055 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11056 function_used_regs.
11057 * df-scan.c: Include function-abi.h.
11058 (df_get_call_refs): Use insn_callee_abi instead of
11059 get_call_reg_set_usage.
11060 * ira-lives.c: Include function-abi.h.
11061 (process_bb_node_lives): Use insn_callee_abi instead of
11062 get_call_reg_set_usage.
11063 * lra-lives.c: Include function-abi.h.
11064 (process_bb_lives): Use insn_callee_abi instead of
11065 get_call_reg_set_usage.
11066 * postreload.c: Include function-abi.h.
11067 (reload_combine): Use insn_callee_abi instead of
11068 get_call_reg_set_usage.
11069 * regcprop.c: Include function-abi.h.
11070 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11071 get_call_reg_set_usage.
11072 * resource.c: Include function-abi.h.
11073 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11074 instead of get_call_reg_set_usage.
11075 * var-tracking.c: Include function-abi.h.
11076 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11077 get_call_reg_set_usage.
11078
11079 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11080
11081 * target.def (fntype_abi): New target hook.
11082 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11083 * doc/tm.texi: Regenerate.
11084 * target.h (predefined_function_abi): Declare.
11085 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11086 if defined.
11087 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11088 * config/aarch64/aarch64.c: Include function-abi.h.
11089 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11090 (TARGET_FNTYPE_ABI): Define.
11091
11092 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11093
11094 * Makefile.in (OBJS): Add function-abi.o.
11095 (GTFILES): Add function-abi.h.
11096 * function-abi.cc: New file.
11097 * function-abi.h: Likewise.
11098 * emit-rtl.h (rtl_data::abi): New field.
11099 * function.c: Include function-abi.h.
11100 (prepare_function_start): Initialize crtl->abi.
11101 * read-rtl-function.c: Include regs.h and function-abi.h.
11102 (read_rtl_function_body): Initialize crtl->abi.
11103 (read_rtl_function_body_from_file_range): Likewise.
11104 * reginfo.c: Include function-abi.h.
11105 (init_reg_sets_1): Initialize default_function_abi.
11106 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11107 when making a register global.
11108 * target-globals.h (this_target_function_abi_info): Declare.
11109 (target_globals::function_abi_info): New field.
11110 (restore_target_globals): Copy it.
11111 * target-globals.c: Include function-abi.h.
11112 (default_target_globals): Initialize the function_abi_info field.
11113 (target_globals): Allocate it.
11114 (save_target_globals): Free it.
11115
11116 2019-09-30 Nick Clifton <nickc@redhat.com>
11117
11118 PR target/85978
11119 * config/frv/frv.c (frv_register_move_cost): Add break statements
11120 to avoid falling through to the wrong cases. Tidy code.
11121
11122 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11123
11124 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11125 For multi-registers modes, test how big each register part is.
11126
11127 2019-09-30 Nick Clifton <nickc@redhat.com>
11128
11129 PR target/59205
11130 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11131 (TARGET_ASM_SELECT_SECTION): Remove definition.
11132 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11133
11134 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11135
11136 * emit-rtl.c (init_raw_REG): New function.
11137 (gen_raw_REG): Use init_raw_REG.
11138 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11139 macros.
11140 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11141 * rtl.h (rtx_init): New function.
11142 (rtx_alloca): New function.
11143 (init_raw_REG): New function.
11144 (alloca_raw_REG): New macro.
11145
11146 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11147
11148 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11149 (pcrel_local_address): Replace pcrel_address predicate, use the
11150 new function address_to_insn_form.
11151 (pcrel_external_address): Replace with new implementation using
11152 address_to_insn_form..
11153 (prefixed_mem_operand): Delete predicate which is now unused.
11154 (pcrel_external_mem_operand): Delete predicate which is now
11155 unused.
11156 * config/rs6000/rs6000-protos.h (enum insn_form): New
11157 enumeration.
11158 (enum non_prefixed_form): New enumeration.
11159 (address_to_insn_form): New declaration.
11160 (prefixed_load_p): New declaration.
11161 (prefixed_store_p): New declaration.
11162 (prefixed_paddi_p): New declaration.
11163 (rs6000_asm_output_opcode): New declaration.
11164 (rs6000_final_prescan_insn): Move declaration and update calling
11165 signature.
11166 (address_is_prefixed): New helper inline function.
11167 * config/rs6000/rs6000.c(print_operand_address): Check for either
11168 PC-relative local symbols or PC-relative external symbols.
11169 (rs6000_emit_move): Support loading PC-relative addresses.
11170 (mode_supports_prefixed_address_p): Delete, no longer used.
11171 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11172 (address_to_insn_form): New function to decode an address format.
11173 (reg_to_non_prefixed): New function to identify what the
11174 non-prefixed memory instruction format is for a register.
11175 (prefixed_load_p): New function to identify prefixed loads.
11176 (prefixed_store_p): New function to identify prefixed stores.
11177 (prefixed_paddi_p): New function to identify prefixed load
11178 immediates.
11179 (next_insn_prefixed_p): New static state variable.
11180 (rs6000_final_prescan_insn): New function to determine if an insn
11181 uses a prefixed instruction.
11182 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11183 prefixed instruction.
11184 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11185 (ASM_OUTPUT_OPCODE): New target hook.
11186 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11187 prefixed instructions.
11188 (prefixed_length): New insn attribute for the size of prefixed
11189 instructions.
11190 (non_prefixed_length): New insn attribute for the size of
11191 non-prefixed instructions.
11192 (pcrel_local_addr): New insn to load up a local PC-relative
11193 address.
11194 (pcrel_extern_addr): New insn to load up an external PC-relative
11195 address.
11196 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11197 GPR and loading a 128-bit floating point type to a GPR.
11198
11199 2019-09-30 Richard Biener <rguenther@suse.de>
11200
11201 * gimple.c (gimple_get_lhs): For PHIs return the result.
11202 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11203 SLP instance as argument.
11204 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11205 double-reduction PHIs with vectorizable_lc_phi.
11206 (vect_analyze_loop_operations): Adjust.
11207 (vect_create_epilog_for_reduction): Remove all code not dealing
11208 with reduction LC PHI or epilogue generation.
11209 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11210 for live stmts of reductions.
11211 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11212 do not handle defs that are not vect_internal_def.
11213 (can_vectorize_live_stmts): Adjust.
11214 (vect_analyze_stmt): When the vectorized stmt defined a value
11215 used on backedges adjust the backedge uses of vectorized PHIs.
11216
11217 2019-09-30 Martin Jambor <mjambor@suse.cz>
11218
11219 PR ipa/91853
11220 * tree-inline.c (force_value_to_type): New function.
11221 (setup_one_parameter): Use force_value_to_type to convert type.
11222 * tree-inline.c (force_value_to_type): Declare.
11223 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11224 with register type mismatches.
11225
11226 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11227
11228 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11229 32-bit PowerPC.
11230 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11231 * config/rs6000/t-freebsd64: Make use of the above define and build
11232 the 32-bit libraries with secure-plt.
11233
11234 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11235
11236 PR target/91931
11237 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11238 gen_int_mode instead of GEN_INT.
11239
11240 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11241
11242 * config/darwin.c (gen_macho_low): Amend to include the mode
11243 argument.
11244 (machopic_indirect_data_reference): Amend gen_macho_low call
11245 to include mode argument
11246 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11247 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11248 the macho_high expander and two define_insn entries.
11249
11250 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11251
11252 PR bootstrap/90543
11253 * optc-save-gen.awk: Fix up printing string option differences.
11254
11255 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11256
11257 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11258 vec_perm cost to 1 for non-Power7 VSX architectures.
11259
11260 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11261
11262 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11263 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11264 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11265
11266 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11267
11268 * config/darwin.c (gen_macho_high): Amend to include the mode
11269 argument.
11270 (machopic_indirect_data_reference): Amend gen_macho_high call
11271 to include mode argument.
11272 (machopic_legitimize_pic_address): Likewise.
11273 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11274 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11275 the macho_high expander and two define_insn entries.
11276
11277 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11278
11279 PR target/86805
11280 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11281
11282 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11283
11284 PR target/80672
11285 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11286 std::string::compare instead of std::string::find.
11287
11288 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11289
11290 * configure: Regenerate.
11291
11292 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11293
11294 PR middle-end/91920
11295 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11296 variables as shared.
11297
11298 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11299
11300 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11301 replaces the expander and two define_insn entries.
11302 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11303 call.
11304 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11305
11306 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11307
11308 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11309 (fibonacci_heap::nodes): Likewise.
11310 (fibonacci_heap::min_key): Likewise.
11311 (fibonacci_heap::min): Likewise.
11312
11313 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11314
11315 * cgraph.c (cgraph_node::get_fun): Make const.
11316 * cgraph.h (cgraph_node::get_fun): Likewise.
11317
11318 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11319
11320 PR target/91919
11321 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11322 of SImode MULT.
11323
11324 2019-09-27 Richard Biener <rguenther@suse.de>
11325
11326 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11327 (STMT_VINFO_REDUC_FN): Likewise.
11328 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11329 STMT_VINFO_REDUC_FN.
11330 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11331 for condition reductions.
11332 (vect_create_epilog_for_reduction): Compute all required state
11333 from the stmt to be vectorized.
11334 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11335 invocation and remove then dead code. For single def-use chains
11336 record only a single vector stmt.
11337
11338 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11339
11340 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11341 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11342 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11343 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11344 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11345 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11346 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11347 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11348 (aarch64_general_builtin_rsqrt): Declare.
11349 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11350 New function.
11351 (aarch64_mangle_builtin_type): Rename to...
11352 (aarch64_general_mangle_builtin_type): ...this.
11353 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11354 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11355 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11356 aarch64_general_add_builtin instead of add_builtin_function.
11357 (aarch64_init_builtins): Rename to...
11358 (aarch64_general_init_builtins): ...this. Use
11359 aarch64_general_add_builtin instead of add_builtin_function.
11360 (aarch64_builtin_decl): Rename to...
11361 (aarch64_general_builtin_decl): ...this and remove the unused
11362 arguments.
11363 (aarch64_expand_builtin): Rename to...
11364 (aarch64_general_expand_builtin): ...this and remove the unused
11365 arguments.
11366 (aarch64_builtin_rsqrt): Rename to...
11367 (aarch64_general_builtin_rsqrt): ...this.
11368 (aarch64_fold_builtin): Rename to...
11369 (aarch64_general_fold_builtin): ...this. Take the function subcode
11370 and return type as arguments. Remove the "ignored" argument.
11371 (aarch64_gimple_fold_builtin): Rename to...
11372 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11373 subcode and gcall as arguments, and return the new function call.
11374 * config/aarch64/aarch64.c (aarch64_init_builtins)
11375 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11376 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11377 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11378 instead of aarch64_builtin_rsqrt.
11379 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11380 instead of aarch64_mangle_builtin_type.
11381
11382 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11383
11384 * target.def (check_builtin_call): New target hook.
11385 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11386 * doc/tm.texi: Regenerate.
11387
11388 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11389
11390 PR tree-optimization/91909
11391 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11392 reduc_index parameter. When handling COND_REDUCTION, make sure
11393 that the reduction phi operand is in the correct arm of the
11394 VEC_COND_EXPR.
11395 (vectorizable_reduction): Pass reduc_index to the above.
11396
11397 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11398
11399 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11400 New combine pattern.
11401
11402 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11403
11404 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11405 loop instruction into new basic block before the loop when basic
11406 block that precedes the loop is empty.
11407
11408 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11409
11410 * function.c (gimplify_parameters): Use build_clobber function.
11411 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11412 * tree-inline.c (expand_call_inline): Likewise.
11413 * tree-sra.c (clobber_subtree): Likewise.
11414 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11415 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11416 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11417 lower_omp_target): Likewise.
11418 * omp-expand.c (expand_omp_for_generic): Likewise.
11419 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11420
11421 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11422
11423 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11424 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11425 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11426 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11427 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11428 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11429 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11430 LD_ELEMREV_V16QI): Use the PURE attribute.
11431
11432 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11433
11434 * config/rs6000/darwin.md: Replace the expanders for
11435 load_macho_picbase and reload_macho_picbase with use of '@'
11436 and <mode> in their respective define_insns.
11437 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11438 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11439 Pmode to gen_load_macho_picbase.
11440 * config/rs6000/rs6000.md: Likewise.
11441
11442 2019-09-25 Richard Biener <rguenther@suse.de>
11443
11444 PR tree-optimization/91896
11445 * tree-vect-loop.c (vectorizable_reduction): The single
11446 def-use cycle optimization cannot apply when there's more
11447 than one pattern stmt involved.
11448
11449 2019-09-26 Richard Biener <rguenther@suse.de>
11450
11451 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11452 loop-closed PHIs that are vect_internal_def.
11453 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11454 Simplify.
11455 (vectorizable_lc_phi): New.
11456 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11457 (vect_transform_stmt): Likewise.
11458 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11459 (vectorizable_lc_phi): Declare.
11460
11461 2019-09-26 Richard Biener <rguenther@suse.de>
11462
11463 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11464 vectorizable_reduction for vect_double_reduction_def.
11465 (vect_transform_loop): Likewise.
11466 (vect_create_epilog_for_reduction): Move double-reduction
11467 PHI creation and preheader argument setting of PHIs ...
11468 (vectorizable_reduction): ... here. Also process
11469 vect_double_reduction_def PHIs, creating the vectorized
11470 PHI nodes, remembering the scalar adjustment computed for
11471 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11472 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11473 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11474 Initialize STMT_VINFO_REDUC_CODE.
11475 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11476 (_stmt_vec_info::reduc_code): Likewise.
11477 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11478 (STMT_VINFO_REDUC_CODE): Likewise.
11479
11480 2019-09-26 Matt Turner <mattst88@gmail.com>
11481
11482 PR driver/69471
11483 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11484 (mtune=): Add Negative(mtune=).
11485 (mcpu=): Add Negative(mcpu=).
11486 * config/arm/arm.opt: Likewise.
11487
11488 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11489
11490 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11491 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11492 Define.
11493 * config/arm/arm_acle.h: Define builtins for the above.
11494 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11495 (simd32_op): Handle the above.
11496 * config/arm/unspecs.md: Define unspecs for the above.
11497
11498 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11499
11500 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11501 (arm_<sup>xtb16): Likewise.
11502 (arm_usada8): Likewise.
11503 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11504 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11505 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11506 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11507 __sxtb16, __uxtab16, __uxtb16): Define.
11508 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11509 * config/arm/unspecs.md: Define unspecs for the above.
11510 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11511 (USXTB16): Likewise.
11512 (simd32_op): New int_attribute.
11513 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11514 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11515
11516 2019-09-26 Martin Jambor <mjambor@suse.cz>
11517
11518 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11519 internal_error.
11520
11521 2019-09-26 Martin Jambor <mjambor@suse.cz>
11522
11523 * ipa-sra.c (process_scan_results): Fix continue condition.
11524
11525 2019-09-26 Martin Liska <mliska@suse.cz>
11526
11527 PR tree-optimization/91885
11528 * tree-vectorizer.c (try_vectorize_loop_1): Add
11529 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11530
11531 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11532
11533 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11534 aarch64_plus_immediate rather than aarch64_uimm12_shift
11535 to test for valid PLUS immediates.
11536
11537 2019-09-25 Martin Jambor <mjambor@suse.cz>
11538
11539 * tree-sra.c (no_accesses_p): Remove.
11540 (no_accesses_representant): Likewise.
11541
11542 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11543
11544 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11545 consistenly.
11546 (vaba_s16): Likewise.
11547 (vaba_s32): Likewise.
11548 (vaba_u8): Likewise.
11549 (vaba_u16): Likewise.
11550 (vaba_u32): Likewise.
11551 (vabal_high_s8): Likewise.
11552 (vabal_high_s16): Likewise.
11553 (vabal_high_s32): Likewise.
11554 (vabal_high_u8): Likewise.
11555 (vabal_high_u16): Likewise.
11556 (vabal_high_u32): Likewise.
11557 (vabal_s8): Likewise.
11558 (vabal_s16): Likewise.
11559 (vabal_s32): Likewise.
11560 (vabal_u8): Likewise.
11561 (vabal_u16): Likewise.
11562 (vabal_u32): Likewise.
11563 (vabaq_s8): Likewise.
11564 (vabaq_s16): Likewise.
11565 (vabaq_s32): Likewise.
11566 (vabaq_u8): Likewise.
11567 (vabaq_u16): Likewise.
11568 (vabaq_u32): Likewise.
11569 (vabd_s8): Likewise.
11570 (vabd_s16): Likewise.
11571 (vabd_s32): Likewise.
11572 (vabd_u8): Likewise.
11573 (vabd_u16): Likewise.
11574 (vabd_u32): Likewise.
11575 (vabdl_high_s8): Likewise.
11576 (vabdl_high_s16): Likewise.
11577 (vabdl_high_s32): Likewise.
11578 (vabdl_high_u8): Likewise.
11579 (vabdl_high_u16): Likewise.
11580 (vabdl_high_u32): Likewise.
11581 (vabdl_s8): Likewise.
11582 (vabdl_s16): Likewise.
11583 (vabdl_s32): Likewise.
11584 (vabdl_u8): Likewise.
11585 (vabdl_u16): Likewise.
11586 (vabdl_u32): Likewise.
11587 (vabdq_s8): Likewise.
11588 (vabdq_s16): Likewise.
11589 (vabdq_s32): Likewise.
11590 (vabdq_u8): Likewise.
11591 (vabdq_u16): Likewise.
11592 (vabdq_u32): Likewise.
11593 (vaddlv_s8): Likewise.
11594 (vaddlv_s16): Likewise.
11595 (vaddlv_u8): Likewise.
11596 (vaddlv_u16): Likewise.
11597 (vaddlvq_s8): Likewise.
11598 (vaddlvq_s16): Likewise.
11599 (vaddlvq_s32): Likewise.
11600 (vaddlvq_u8): Likewise.
11601 (vaddlvq_u16): Likewise.
11602 (vaddlvq_u32): Likewise.
11603 (vcvtx_f32_f64): Likewise.
11604 (vcvtx_high_f32_f64): Likewise.
11605 (vcvtxd_f32_f64): Likewise.
11606 (vmla_n_f32): Likewise.
11607 (vmla_n_s16): Likewise.
11608 (vmla_n_s32): Likewise.
11609 (vmla_n_u16): Likewise.
11610 (vmla_n_u32): Likewise.
11611 (vmla_s8): Likewise.
11612 (vmla_s16): Likewise.
11613 (vmla_s32): Likewise.
11614 (vmla_u8): Likewise.
11615 (vmla_u16): Likewise.
11616 (vmla_u32): Likewise.
11617 (vmlal_high_n_s16): Likewise.
11618 (vmlal_high_n_s32): Likewise.
11619 (vmlal_high_n_u16): Likewise.
11620 (vmlal_high_n_u32): Likewise.
11621 (vmlal_high_s8): Likewise.
11622 (vmlal_high_s16): Likewise.
11623 (vmlal_high_s32): Likewise.
11624 (vmlal_high_u8): Likewise.
11625 (vmlal_high_u16): Likewise.
11626 (vmlal_high_u32): Likewise.
11627 (vmlal_n_s16): Likewise.
11628 (vmlal_n_s32): Likewise.
11629 (vmlal_n_u16): Likewise.
11630 (vmlal_n_u32): Likewise.
11631 (vmlal_s8): Likewise.
11632 (vmlal_s16): Likewise.
11633 (vmlal_s32): Likewise.
11634 (vmlal_u8): Likewise.
11635 (vmlal_u16): Likewise.
11636 (vmlal_u32): Likewise.
11637 (vmlaq_n_f32): Likewise.
11638 (vmlaq_n_s16): Likewise.
11639 (vmlaq_n_s32): Likewise.
11640 (vmlaq_n_u16): Likewise.
11641 (vmlaq_n_u32): Likewise.
11642 (vmlaq_s8): Likewise.
11643 (vmlaq_s16): Likewise.
11644 (vmlaq_s32): Likewise.
11645 (vmlaq_u8): Likewise.
11646 (vmlaq_u16): Likewise.
11647 (vmlaq_u32): Likewise.
11648 (vmls_n_f32): Likewise.
11649 (vmls_n_s16): Likewise.
11650 (vmls_n_s32): Likewise.
11651 (vmls_n_u16): Likewise.
11652 (vmls_n_u32): Likewise.
11653 (vmls_s8): Likewise.
11654 (vmls_s16): Likewise.
11655 (vmls_s32): Likewise.
11656 (vmls_u8): Likewise.
11657 (vmls_u16): Likewise.
11658 (vmls_u32): Likewise.
11659 (vmlsl_high_n_s16): Likewise.
11660 (vmlsl_high_n_s32): Likewise.
11661 (vmlsl_high_n_u16): Likewise.
11662 (vmlsl_high_n_u32): Likewise.
11663 (vmlsl_high_s8): Likewise.
11664 (vmlsl_high_s16): Likewise.
11665 (vmlsl_high_s32): Likewise.
11666 (vmlsl_high_u8): Likewise.
11667 (vmlsl_high_u16): Likewise.
11668 (vmlsl_high_u32): Likewise.
11669 (vmlsl_n_s16): Likewise.
11670 (vmlsl_n_s32): Likewise.
11671 (vmlsl_n_u16): Likewise.
11672 (vmlsl_n_u32): Likewise.
11673 (vmlsl_s8): Likewise.
11674 (vmlsl_s16): Likewise.
11675 (vmlsl_s32): Likewise.
11676 (vmlsl_u8): Likewise.
11677 (vmlsl_u16): Likewise.
11678 (vmlsl_u32): Likewise.
11679 (vmlsq_n_f32): Likewise.
11680 (vmlsq_n_s16): Likewise.
11681 (vmlsq_n_s32): Likewise.
11682 (vmlsq_n_u16): Likewise.
11683 (vmlsq_n_u32): Likewise.
11684 (vmlsq_s8): Likewise.
11685 (vmlsq_s16): Likewise.
11686 (vmlsq_s32): Likewise.
11687 (vmlsq_u8): Likewise.
11688 (vmlsq_u16): Likewise.
11689 (vmlsq_u32): Likewise.
11690 (vmovl_high_s8): Likewise.
11691 (vmovl_high_s16): Likewise.
11692 (vmovl_high_s32): Likewise.
11693 (vmovl_high_u8): Likewise.
11694 (vmovl_high_u16): Likewise.
11695 (vmovl_high_u32): Likewise.
11696 (vmovl_s8): Likewise.
11697 (vmovl_s16): Likewise.
11698 (vmovl_s32): Likewise.
11699 (vmovl_u8): Likewise.
11700 (vmovl_u16): Likewise.
11701 (vmovl_u32): Likewise.
11702 (vmovn_high_s16): Likewise.
11703 (vmovn_high_s32): Likewise.
11704 (vmovn_high_s64): Likewise.
11705 (vmovn_high_u16): Likewise.
11706 (vmovn_high_u32): Likewise.
11707 (vmovn_high_u64): Likewise.
11708 (vmovn_s16): Likewise.
11709 (vmovn_s32): Likewise.
11710 (vmovn_s64): Likewise.
11711 (vmovn_u16): Likewise.
11712 (vmovn_u32): Likewise.
11713 (vmovn_u64): Likewise.
11714 (vmull_high_n_s16): Likewise.
11715 (vmull_high_n_s32): Likewise.
11716 (vmull_high_n_u16): Likewise.
11717 (vmull_high_n_u32): Likewise.
11718 (vmull_high_p8): Likewise.
11719 (vmull_high_s8): Likewise.
11720 (vmull_high_s16): Likewise.
11721 (vmull_high_s32): Likewise.
11722 (vmull_high_u8): Likewise.
11723 (vmull_high_u16): Likewise.
11724 (vmull_high_u32): Likewise.
11725 (vmull_n_s16): Likewise.
11726 (vmull_n_s32): Likewise.
11727 (vmull_n_u16): Likewise.
11728 (vmull_n_u32): Likewise.
11729 (vmull_p8): Likewise.
11730 (vmull_s8): Likewise.
11731 (vmull_s16): Likewise.
11732 (vmull_s32): Likewise.
11733 (vmull_u8): Likewise.
11734 (vmull_u16): Likewise.
11735 (vmull_u32): Likewise.
11736 (vpadal_s8): Likewise.
11737 (vpadal_s16): Likewise.
11738 (vpadal_s32): Likewise.
11739 (vpadal_u8): Likewise.
11740 (vpadal_u16): Likewise.
11741 (vpadal_u32): Likewise.
11742 (vpadalq_s8): Likewise.
11743 (vpadalq_s16): Likewise.
11744 (vpadalq_s32): Likewise.
11745 (vpadalq_u8): Likewise.
11746 (vpadalq_u16): Likewise.
11747 (vpadalq_u32): Likewise.
11748 (vpaddl_s8): Likewise.
11749 (vpaddl_s16): Likewise.
11750 (vpaddl_s32): Likewise.
11751 (vpaddl_u8): Likewise.
11752 (vpaddl_u16): Likewise.
11753 (vpaddl_u32): Likewise.
11754 (vpaddlq_s8): Likewise.
11755 (vpaddlq_s16): Likewise.
11756 (vpaddlq_s32): Likewise.
11757 (vpaddlq_u8): Likewise.
11758 (vpaddlq_u16): Likewise.
11759 (vpaddlq_u32): Likewise.
11760 (vpaddq_s8): Likewise.
11761 (vpaddq_s16): Likewise.
11762 (vpaddq_s32): Likewise.
11763 (vpaddq_s64): Likewise.
11764 (vpaddq_u8): Likewise.
11765 (vpaddq_u16): Likewise.
11766 (vpaddq_u32): Likewise.
11767 (vpaddq_u64): Likewise.
11768 (vqdmulh_n_s16): Likewise.
11769 (vqdmulh_n_s32): Likewise.
11770 (vqdmulhq_n_s16): Likewise.
11771 (vqdmulhq_n_s32): Likewise.
11772 (vqmovn_high_s16): Likewise.
11773 (vqmovn_high_s32): Likewise.
11774 (vqmovn_high_s64): Likewise.
11775 (vqmovn_high_u16): Likewise.
11776 (vqmovn_high_u32): Likewise.
11777 (vqmovn_high_u64): Likewise.
11778 (vqmovun_high_s16): Likewise.
11779 (vqmovun_high_s32): Likewise.
11780 (vqmovun_high_s64): Likewise.
11781 (vqrdmulh_n_s16): Likewise.
11782 (vqrdmulh_n_s32): Likewise.
11783 (vqrdmulhq_n_s16): Likewise.
11784 (vqrdmulhq_n_s32): Likewise.
11785 (vrsqrte_u32): Likewise.
11786 (vrsqrteq_u32): Likewise.
11787 (vtst_p8): Likewise.
11788 (vtst_p16): Likewise.
11789 (vtst_p64): Likewise.
11790 (vtstq_p8): Likewise.
11791 (vtstq_p16): Likewise.
11792 (vtstq_p64): Likewise.
11793 (vaddlv_s32): Likewise.
11794 (vaddlv_u32): Likewise.
11795 (vqtbl1_p8): Likewise.
11796 (vqtbl1_s8): Likewise.
11797 (vqtbl1_u8): Likewise.
11798 (vqtbl1q_p8): Likewise.
11799 (vqtbl1q_s8): Likewise.
11800 (vqtbl1q_u8): Likewise.
11801 (vqtbx1_s8): Likewise.
11802 (vqtbx1_u8): Likewise.
11803 (vqtbx1_p8): Likewise.
11804 (vqtbx1q_s8): Likewise.
11805 (vqtbx1q_u8): Likewise.
11806 (vqtbx1q_p8): Likewise.
11807 (vtbl1_s8): Likewise.
11808 (vtbl1_u8): Likewise.
11809 (vtbl1_p8): Likewise.
11810 (vtbl2_s8): Likewise.
11811 (vtbl2_u8): Likewise.
11812 (vtbl2_p8): Likewise.
11813 (vtbl3_s8): Likewise.
11814 (vtbl3_u8): Likewise.
11815 (vtbl3_p8): Likewise.
11816 (vtbl4_s8): Likewise.
11817 (vtbl4_u8): Likewise.
11818 (vtbl4_p8): Likewise.
11819 (vtbx2_s8): Likewise.
11820 (vtbx2_u8): Likewise.
11821 (vtbx2_p8): Likewise.
11822 (vld1_f32): Likewise.
11823 (vld1_f64): Likewise.
11824 (vld1_p8): Likewise.
11825 (vld1_p16): Likewise.
11826 (vld1_p64): Likewise.
11827 (vld1_s8): Likewise.
11828 (vld1_s16): Likewise.
11829 (vld1_s32): Likewise.
11830 (vld1_s64): Likewise.
11831 (vld1_u8): Likewise.
11832 (vld1_u16): Likewise.
11833 (vld1_u32): Likewise.
11834 (vld1_u64): Likewise.
11835 (vld1q_f32): Likewise.
11836 (vld1q_f64): Likewise.
11837 (vld1q_p8): Likewise.
11838 (vld1q_p16): Likewise.
11839 (vld1q_p64): Likewise.
11840 (vld1q_s8): Likewise.
11841 (vld1q_s16): Likewise.
11842 (vld1q_s32): Likewise.
11843 (vld1q_s64): Likewise.
11844 (vld1q_u8): Likewise.
11845 (vld1q_u16): Likewise.
11846 (vld1q_u32): Likewise.
11847 (vld1q_u64): Likewise.
11848 (vpmax_s8): Likewise.
11849 (vpmax_s16): Likewise.
11850 (vpmax_s32): Likewise.
11851 (vpmax_u8): Likewise.
11852 (vpmax_u16): Likewise.
11853 (vpmax_u32): Likewise.
11854 (vpmaxq_s8): Likewise.
11855 (vpmaxq_s16): Likewise.
11856 (vpmaxq_s32): Likewise.
11857 (vpmaxq_u8): Likewise.
11858 (vpmaxq_u16): Likewise.
11859 (vpmaxq_u32): Likewise.
11860 (vpmax_f32): Likewise.
11861 (vpmaxq_f32): Likewise.
11862 (vpmaxq_f64): Likewise.
11863 (vpmaxqd_f64): Likewise.
11864 (vpmaxs_f32): Likewise.
11865 (vpmaxnm_f32): Likewise.
11866 (vpmaxnmq_f32): Likewise.
11867 (vpmaxnmq_f64): Likewise.
11868 (vpmaxnmqd_f64): Likewise.
11869 (vpmaxnms_f32): Likewise.
11870 (vpmin_s8): Likewise.
11871 (vpmin_s16): Likewise.
11872 (vpmin_s32): Likewise.
11873 (vpmin_u8): Likewise.
11874 (vpmin_u16): Likewise.
11875 (vpmin_u32): Likewise.
11876 (vpminq_s8): Likewise.
11877 (vpminq_s16): Likewise.
11878 (vpminq_s32): Likewise.
11879 (vpminq_u8): Likewise.
11880 (vpminq_u16): Likewise.
11881 (vpminq_u32): Likewise.
11882 (vpmin_f32): Likewise.
11883 (vpminq_f32): Likewise.
11884 (vpminq_f64): Likewise.
11885 (vpminqd_f64): Likewise.
11886 (vpmins_f32): Likewise.
11887 (vpminnm_f32): Likewise.
11888 (vpminnmq_f32): Likewise.
11889 (vpminnmq_f64): Likewise.
11890 (vpminnmqd_f64): Likewise.
11891 (vpminnms_f32): Likewise.
11892 (vmla_f32): Likewise.
11893 (vmlaq_f32): Likewise.
11894 (vmlaq_f64): Likewise.
11895 (vmls_f32): Likewise.
11896 (vmlsq_f32): Likewise.
11897 (vmlsq_f64): Likewise.
11898 (vqtbl2_s8): Likewise.
11899 (vqtbl2_u8): Likewise.
11900 (vqtbl2_p8): Likewise.
11901 (vqtbl2q_s8): Likewise.
11902 (vqtbl2q_u8): Likewise.
11903 (vqtbl2q_p8): Likewise.
11904 (vqtbl3_s8): Likewise.
11905 (vqtbl3_u8): Likewise.
11906 (vqtbl3_p8): Likewise.
11907 (vqtbl3q_s8): Likewise.
11908 (vqtbl3q_u8): Likewise.
11909 (vqtbl3q_p8): Likewise.
11910 (vqtbl4_s8): Likewise.
11911 (vqtbl4_u8): Likewise.
11912 (vqtbl4_p8): Likewise.
11913 (vqtbl4q_s8): Likewise.
11914 (vqtbl4q_u8): Likewise.
11915 (vqtbl4q_p8): Likewise.
11916 (vqtbx2_s8): Likewise.
11917 (vqtbx2_u8): Likewise.
11918 (vqtbx2_p8): Likewise.
11919 (vqtbx2q_s8): Likewise.
11920 (vqtbx2q_u8): Likewise.
11921 (vqtbx2q_p8): Likewise.
11922 (vqtbx3_s8): Likewise.
11923 (vqtbx3_u8): Likewise.
11924 (vqtbx3_p8): Likewise.
11925 (vqtbx3q_s8): Likewise.
11926 (vqtbx3q_u8): Likewise.
11927 (vqtbx3q_p8): Likewise.
11928 (vqtbx4_s8): Likewise.
11929 (vqtbx4_u8): Likewise.
11930 (vqtbx4_p8): Likewise.
11931 (vqtbx4q_s8): Likewise.
11932 (vqtbx4q_u8): Likewise.
11933 (vqtbx4q_p8): Likewise.
11934 (vrev16_p8): Likewise.
11935 (vrev16_s8): Likewise.
11936 (vrev16_u8): Likewise.
11937 (vrev16q_p8): Likewise.
11938 (vrev16q_s8): Likewise.
11939 (vrev16q_u8): Likewise.
11940 (vrev32_p8): Likewise.
11941 (vrev32_p16): Likewise.
11942 (vrev32_s8): Likewise.
11943 (vrev32_s16): Likewise.
11944 (vrev32_u8): Likewise.
11945 (vrev32_u16): Likewise.
11946 (vrev32q_p8): Likewise.
11947 (vrev32q_p16): Likewise.
11948 (vrev32q_s8): Likewise.
11949 (vrev32q_s16): Likewise.
11950 (vrev32q_u8): Likewise.
11951 (vrev32q_u16): Likewise.
11952 (vrev64_f32): Likewise.
11953 (vrev64_p8): Likewise.
11954 (vrev64_p16): Likewise.
11955 (vrev64_s8): Likewise.
11956 (vrev64_s16): Likewise.
11957 (vrev64_s32): Likewise.
11958 (vrev64_u8): Likewise.
11959 (vrev64_u16): Likewise.
11960 (vrev64_u32): Likewise.
11961 (vrev64q_f32): Likewise.
11962 (vrev64q_p8): Likewise.
11963 (vrev64q_p16): Likewise.
11964 (vrev64q_s8): Likewise.
11965 (vrev64q_s16): Likewise.
11966 (vrev64q_s32): Likewise.
11967 (vrev64q_u8): Likewise.
11968 (vrev64q_u16): Likewise.
11969 (vrev64q_u32): Likewise.
11970 (vsha1cq_u32): Likewise.
11971 (vsha1mq_u32): Likewise.
11972 (vsha1pq_u32): Likewise.
11973 (vsha1h_u32): Likewise.
11974 (vsha1su0q_u32): Likewise.
11975 (vsha1su1q_u32): Likewise.
11976 (vsha256hq_u32): Likewise.
11977 (vsha256h2q_u32): Likewise.
11978 (vsha256su0q_u32): Likewise.
11979 (vsha256su1q_u32): Likewise.
11980 (vmull_p64): Likewise.
11981 (vmull_high_p64): Likewise.
11982 (vsqrt_f32): Likewise.
11983 (vsqrtq_f32): Likewise.
11984 (vsqrt_f64): Likewise.
11985 (vsqrtq_f64): Likewise.
11986 (vst1_f32): Likewise.
11987 (vst1_f64): Likewise.
11988 (vst1_p8): Likewise.
11989 (vst1_p16): Likewise.
11990 (vst1_p64): Likewise.
11991 (vst1_s8): Likewise.
11992 (vst1_s16): Likewise.
11993 (vst1_s32): Likewise.
11994 (vst1_s64): Likewise.
11995 (vst1_u8): Likewise.
11996 (vst1_u16): Likewise.
11997 (vst1_u32): Likewise.
11998 (vst1_u64): Likewise.
11999 (vst1q_f32): Likewise.
12000 (vst1q_f64): Likewise.
12001 (vst1q_p8): Likewise.
12002 (vst1q_p16): Likewise.
12003 (vst1q_p64): Likewise.
12004 (vst1q_s8): Likewise.
12005 (vst1q_s16): Likewise.
12006 (vst1q_s32): Likewise.
12007 (vst1q_s64): Likewise.
12008 (vst1q_u8): Likewise.
12009 (vst1q_u16): Likewise.
12010 (vst1q_u32): Likewise.
12011 (vst1q_u64): Likewise.
12012 (vst1_s64_x2): Likewise.
12013 (vst1_u64_x2): Likewise.
12014 (vst1_f64_x2): Likewise.
12015 (vst1_s8_x2): Likewise.
12016 (vst1_p8_x2): Likewise.
12017 (vst1_s16_x2): Likewise.
12018 (vst1_p16_x2): Likewise.
12019 (vst1_s32_x2): Likewise.
12020 (vst1_u8_x2): Likewise.
12021 (vst1_u16_x2): Likewise.
12022 (vst1_u32_x2): Likewise.
12023 (vst1_f16_x2): Likewise.
12024 (vst1_f32_x2): Likewise.
12025 (vst1_p64_x2): Likewise.
12026 (vst1q_s8_x2): Likewise.
12027 (vst1q_p8_x2): Likewise.
12028 (vst1q_s16_x2): Likewise.
12029 (vst1q_p16_x2): Likewise.
12030 (vst1q_s32_x2): Likewise.
12031 (vst1q_s64_x2): Likewise.
12032 (vst1q_u8_x2): Likewise.
12033 (vst1q_u16_x2): Likewise.
12034 (vst1q_u32_x2): Likewise.
12035 (vst1q_u64_x2): Likewise.
12036 (vst1q_f16_x2): Likewise.
12037 (vst1q_f32_x2): Likewise.
12038 (vst1q_f64_x2): Likewise.
12039 (vst1q_p64_x2): Likewise.
12040 (vst1_s64_x3): Likewise.
12041 (vst1_u64_x3): Likewise.
12042 (vst1_f64_x3): Likewise.
12043 (vst1_s8_x3): Likewise.
12044 (vst1_p8_x3): Likewise.
12045 (vst1_s16_x3): Likewise.
12046 (vst1_p16_x3): Likewise.
12047 (vst1_s32_x3): Likewise.
12048 (vst1_u8_x3): Likewise.
12049 (vst1_u16_x3): Likewise.
12050 (vst1_u32_x3): Likewise.
12051 (vst1_f16_x3): Likewise.
12052 (vst1_f32_x3): Likewise.
12053 (vst1_p64_x3): Likewise.
12054 (vst1q_s8_x3): Likewise.
12055 (vst1q_p8_x3): Likewise.
12056 (vst1q_s16_x3): Likewise.
12057 (vst1q_p16_x3): Likewise.
12058 (vst1q_s32_x3): Likewise.
12059 (vst1q_s64_x3): Likewise.
12060 (vst1q_u8_x3): Likewise.
12061 (vst1q_u16_x3): Likewise.
12062 (vst1q_u32_x3): Likewise.
12063 (vst1q_u64_x3): Likewise.
12064 (vst1q_f16_x3): Likewise.
12065 (vst1q_f32_x3): Likewise.
12066 (vst1q_f64_x3): Likewise.
12067 (vst1q_p64_x3): Likewise.
12068 (vst2_s64): Likewise.
12069 (vst2_u64): Likewise.
12070 (vst2_f64): Likewise.
12071 (vst2_s8): Likewise.
12072 (vst2_p8): Likewise.
12073 (vst2_s16): Likewise.
12074 (vst2_p16): Likewise.
12075 (vst2_s32): Likewise.
12076 (vst2_u8): Likewise.
12077 (vst2_u16): Likewise.
12078 (vst2_u32): Likewise.
12079 (vst2_f16): Likewise.
12080 (vst2_f32): Likewise.
12081 (vst2_p64): Likewise.
12082 (vst2q_s8): Likewise.
12083 (vst2q_p8): Likewise.
12084 (vst2q_s16): Likewise.
12085 (vst2q_p16): Likewise.
12086 (vst2q_s32): Likewise.
12087 (vst2q_s64): Likewise.
12088 (vst2q_u8): Likewise.
12089 (vst2q_u16): Likewise.
12090 (vst2q_u32): Likewise.
12091 (vst2q_u64): Likewise.
12092 (vst2q_f16): Likewise.
12093 (vst2q_f32): Likewise.
12094 (vst2q_f64): Likewise.
12095 (vst2q_p64): Likewise.
12096 (vst3_s64): Likewise.
12097 (vst3_u64): Likewise.
12098 (vst3_f64): Likewise.
12099 (vst3_s8): Likewise.
12100 (vst3_p8): Likewise.
12101 (vst3_s16): Likewise.
12102 (vst3_p16): Likewise.
12103 (vst3_s32): Likewise.
12104 (vst3_u8): Likewise.
12105 (vst3_u16): Likewise.
12106 (vst3_u32): Likewise.
12107 (vst3_f16): Likewise.
12108 (vst3_f32): Likewise.
12109 (vst3_p64): Likewise.
12110 (vst3q_s8): Likewise.
12111 (vst3q_p8): Likewise.
12112 (vst3q_s16): Likewise.
12113 (vst3q_p16): Likewise.
12114 (vst3q_s32): Likewise.
12115 (vst3q_s64): Likewise.
12116 (vst3q_u8): Likewise.
12117 (vst3q_u16): Likewise.
12118 (vst3q_u32): Likewise.
12119 (vst3q_u64): Likewise.
12120 (vst3q_f16): Likewise.
12121 (vst3q_f32): Likewise.
12122 (vst3q_f64): Likewise.
12123 (vst3q_p64): Likewise.
12124 (vst4_s64): Likewise.
12125 (vst4_u64): Likewise.
12126 (vst4_f64): Likewise.
12127 (vst4_s8): Likewise.
12128 (vst4_p8): Likewise.
12129 (vst4_s16): Likewise.
12130 (vst4_p16): Likewise.
12131 (vst4_s32): Likewise.
12132 (vst4_u8): Likewise.
12133 (vst4_u16): Likewise.
12134 (vst4_u32): Likewise.
12135 (vst4_f16): Likewise.
12136 (vst4_f32): Likewise.
12137 (vst4_p64): Likewise.
12138 (vst4q_s8): Likewise.
12139 (vst4q_p8): Likewise.
12140 (vst4q_s16): Likewise.
12141 (vst4q_p16): Likewise.
12142 (vst4q_s32): Likewise.
12143 (vst4q_s64): Likewise.
12144 (vst4q_u8): Likewise.
12145 (vst4q_u16): Likewise.
12146 (vst4q_u32): Likewise.
12147 (vst4q_u64): Likewise.
12148 (vst4q_f16): Likewise.
12149 (vst4q_f32): Likewise.
12150 (vst4q_f64): Likewise.
12151 (vst4q_p64): Likewise.
12152 (vtbx4_s8): Likewise.
12153 (vtbx4_u8): Likewise.
12154 (vtbx4_p8): Likewise.
12155 (vtrn_f32): Likewise.
12156 (vtrn_p8): Likewise.
12157 (vtrn_p16): Likewise.
12158 (vtrn_s8): Likewise.
12159 (vtrn_s16): Likewise.
12160 (vtrn_s32): Likewise.
12161 (vtrn_u8): Likewise.
12162 (vtrn_u16): Likewise.
12163 (vtrn_u32): Likewise.
12164 (vtrnq_f32): Likewise.
12165 (vtrnq_p8): Likewise.
12166 (vtrnq_p16): Likewise.
12167 (vtrnq_s8): Likewise.
12168 (vtrnq_s16): Likewise.
12169 (vtrnq_s32): Likewise.
12170 (vtrnq_u8): Likewise.
12171 (vtrnq_u16): Likewise.
12172 (vtrnq_u32): Likewise.
12173 (vrsqrte_f16): Likewise.
12174 (vrsqrteq_f16): Likewise.
12175 (vsqrt_f16): Likewise.
12176 (vsqrtq_f16): Likewise.
12177 (vabd_f16): Likewise.
12178 (vabdq_f16): Likewise.
12179 (vpadd_f16): Likewise.
12180 (vpaddq_f16): Likewise.
12181 (vpmax_f16): Likewise.
12182 (vpmaxq_f16): Likewise.
12183 (vpmaxnm_f16): Likewise.
12184 (vpmaxnmq_f16): Likewise.
12185 (vpmin_f16): Likewise.
12186 (vpminq_f16): Likewise.
12187 (vpminnm_f16): Likewise.
12188 (vpminnmq_f16): Likewise.
12189 (vrsqrts_f16): Likewise.
12190 (vrsqrtsq_f16): Likewise.
12191
12192 2019-09-25 Richard Biener <rguenther@suse.de>
12193
12194 PR tree-optimization/91896
12195 * tree-vect-loop.c (vectorizable_reduction): The single
12196 def-use cycle optimization cannot apply when there's more
12197 than one pattern stmt involved.
12198
12199 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12200
12201 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12202 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12203 (reload_macho_picbase_<mode>): Likewise.
12204
12205 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12206
12207 * config/rs6000/rs6000.md: Move darwin.md include until
12208 after the definition of the mode iterators.
12209
12210 2019-09-23 Martin Sebor <msebor@redhat.com>
12211
12212 PR tree-optimization/91570
12213 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12214 non-constant minlen, maxlen and maxbound.
12215
12216 2019-09-24 Richard Biener <rguenther@suse.de>
12217
12218 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12219 Rename to...
12220 (_stmt_vec_info::cond_reduc_code): ... this.
12221 (_stmt_vec_info::induc_cond_initial_val): Add.
12222 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12223 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12224 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12225 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12226 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12227 the reduction code.
12228 (vect_create_epilog_for_reduction): Drop special
12229 induction condition reduction params, pass in reduction code
12230 and simplify.
12231 (vectorizable_reduction): Perform condition reduction kind
12232 selection only at analysis time. Adjust passing on state.
12233
12234 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12235
12236 * config/aarch64/aarch64.md (mov<mode>): Don't call
12237 aarch64_split_dimode_const_store on volatile MEM.
12238
12239 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12240
12241 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12242 Update hwcap string for fp16fml.
12243
12244 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12245
12246 PR middle-end/91866
12247 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12248 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12249
12250 2019-09-24 Martin Liska <mliska@suse.cz>
12251
12252 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12253 instead of if-elseif-elseif-...
12254 * gimple-expr.c (extract_ops_from_tree): Likewise.
12255 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12256 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12257
12258 2019-09-24 Martin Jambor <mjambor@suse.cz>
12259
12260 PR ipa/91831
12261 * ipa-param-manipulation.c (carry_over_param): Make a method of
12262 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12263 in case of a context mismatch.
12264 (ipa_param_body_adjustments::common_initialization): Adjust call to
12265 carry_over_param.
12266 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12267 private method carry_over_param.
12268
12269 2019-09-24 Martin Jambor <mjambor@suse.cz>
12270
12271 PR ipa/91832
12272 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12273
12274 2019-09-24 Richard Biener <rguenther@suse.de>
12275
12276 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12277 base.
12278
12279 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12280
12281 * config/arm/t-arm (arm-builtins.o): Add dependency on
12282 arm_acle_builtins.def.
12283
12284 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12285
12286 PR target/91823
12287 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12288 canonical CONST_INTs. Use gen_rtvec.
12289
12290 2019-09-23 Richard Biener <rguenther@suse.de>
12291
12292 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12293 avoid adjusting by + 0 or * 1.
12294 (vect_create_epilog_for_reduction): Get reduction code only
12295 when necessary. Deal with adjustment_def only when necessary.
12296
12297 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12298
12299 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12300 memmodel index.
12301
12302 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12303
12304 PR ipa/91835
12305 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12306 "ipa-sra".
12307
12308 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12309
12310 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12311 code. Merge code blocks with common conditionals. Use declared
12312 macro instead of a magic number for PIC level.
12313
12314 2019-09-21 Martin Sebor <msebor@redhat.com>
12315
12316 PR middle-end/91830
12317 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12318 Simplify computation of the offset of the referenced subobject.
12319
12320 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12321
12322 * config/darwin.c (machopic_legitimize_pic_address): Check
12323 for lra not reload.
12324
12325 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12326
12327 * ira-conflicts.c (can_use_same_reg_p): New function.
12328 (process_reg_shuffles): Take an insn parameter. Ignore cases
12329 in which input operand op_num could seemingly never be allocated
12330 to the same register as the destination.
12331 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12332
12333 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12334
12335 * simplify-rtx.c (neg_const_int): Replace with...
12336 (neg_poly_int_rtx): ...this new function.
12337 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12338 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12339 (simplify_plus_minus): Likewise for constant terms here.
12340
12341 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12342
12343 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12344 HOST_WIDE_PRINT_UNSIGNED.
12345
12346 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12347
12348 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12349 character.
12350
12351 2019-09-20 Maya Rashish <coypu@sdf.org>
12352
12353 PR target/86811
12354 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12355 Define to speculation_safe_value_not_needed.
12356
12357 2019-09-20 Richard Biener <rguenther@suse.de>
12358 Uros Bizjak <ubizjak@gmail.com>
12359
12360 PR target/91814
12361 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12362 previous change.
12363 (general_scalar_chain::convert_op): Force not suitable memory
12364 operands to a register.
12365
12366 2019-09-20 Richard Biener <rguenther@suse.de>
12367
12368 PR tree-optimization/91821
12369 * tree-vect-loop.c (check_reduction_path): Check we can compute
12370 reduc_idx.
12371 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12372 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12373 operands in canonical order.
12374 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12375 STMT_VINFO_REDUC_IDX.
12376 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12377 (STMT_VINFO_REDUC_IDX): Likewise.
12378
12379 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12380
12381 PR target/91269
12382 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12383
12384 2019-09-20 Richard Biener <rguenther@suse.de>
12385
12386 PR tree-optimization/91822
12387 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12388 parameter.
12389 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12390 for reduc_index in nested cycles, adjust vectorizable_condition
12391 calls.
12392 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12393 parameter.
12394 (vect_analyze_stmt): Adjust.
12395 (vect_transform_stmt): Likewise.
12396
12397 2019-09-20 Richard Biener <rguenther@suse.de>
12398
12399 PR target/91767
12400 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12401 Ensure there's a sequence point between allocating the new register
12402 and passing a reference to a reg via regno_reg_rtx.
12403
12404 2019-09-20 Martin Jambor <mjambor@suse.cz>
12405
12406 * coretypes.h (cgraph_edge): Declare.
12407 * ipa-param-manipulation.c: Rewrite.
12408 * ipa-param-manipulation.h: Likewise.
12409 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12410 (OBJS): Added ipa-sra.o.
12411 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12412 and ref_p, added fields param_adjustments and performed_splits.
12413 (struct cgraph_clone_info): Remove ags_to_skip and
12414 combined_args_to_skip, new field param_adjustments.
12415 (cgraph_node::create_clone): Changed parameters to use
12416 ipa_param_adjustments.
12417 (cgraph_node::create_virtual_clone): Likewise.
12418 (cgraph_node::create_virtual_clone_with_body): Likewise.
12419 (tree_function_versioning): Likewise.
12420 (cgraph_build_function_type_skip_args): Removed.
12421 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12422 using ipa_param_adjustments.
12423 (clone_of_p): Likewise.
12424 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12425 (build_function_decl_skip_args): Likewise.
12426 (duplicate_thunk_for_node): Adjust parameters using
12427 ipa_param_body_adjustments, copy param_adjustments instead of
12428 args_to_skip.
12429 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12430 (cgraph_node::create_virtual_clone): Likewise.
12431 (cgraph_node::create_version_clone_with_body): Likewise.
12432 (cgraph_materialize_clone): Likewise.
12433 (symbol_table::materialize_all_clones): Likewise.
12434 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12435 ipa_replace_map check.
12436 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12437 (initialize_node_lattices): Make aware that some parameters might have
12438 already been removed.
12439 (want_remove_some_param_p): New function.
12440 (create_specialized_node): Convert to using ipa_param_adjustments and
12441 deal with possibly pre-existing adjustments.
12442 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12443 (output_node_opt_summary): Do not stream removed fields. Stream
12444 parameter adjustments instead of argumetns to skip.
12445 (input_node_opt_summary): Likewise.
12446 (input_node_opt_summary): Likewise.
12447 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12448 * lto-streamer.h (lto_section_type): Likewise.
12449 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12450 param_body_adjs.
12451 (copy_decl_to_var): Declare.
12452 * tree-inline.c (update_clone_info): Do not remap old_tree.
12453 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12454 statements, walk all extra generated statements and remap their
12455 operands.
12456 (redirect_all_calls): Add killed SSA names to a hash set.
12457 (remap_ssa_name): Do not remap killed SSA names.
12458 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12459 half of functionality moved to ipa_param_body_adjustments.
12460 (copy_decl_to_var): Make exported.
12461 (copy_body): Destroy killed_new_ssa_names hash set.
12462 (expand_call_inline): Remap performed splits.
12463 (update_clone_info): Likewise.
12464 (tree_function_versioning): Simplify tree_map processing. Updated to
12465 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12466 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12467 for the new interface.
12468 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12469 (simd_clone_compute_base_data_type): Likewise.
12470 (simd_clone_init_simd_arrays): Adjust for the new interface.
12471 (simd_clone_adjust_argument_types): Likewise.
12472 (struct modify_stmt_info): Likewise.
12473 (ipa_simd_modify_stmt_ops): Likewise.
12474 (ipa_simd_modify_function_body): Likewise.
12475 (simd_clone_adjust): Likewise.
12476 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12477 (type_internals_preclude_sra_p): Make public.
12478 * tree-sra.h: New file.
12479 * ipa-inline-transform.c (save_inline_function_body): Update to
12480 refelct new tree_function_versioning signature.
12481 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12482 ipa_param_adjustments to get current parameter indices.
12483 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12484 (ipcp_update_bits): Likewise.
12485 (ipcp_update_vr): Likewise.
12486 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12487 * ipa-sra.c: New file.
12488 * multiple_target.c (create_target_clone): Update to reflet new type
12489 of create_version_clone_with_body.
12490 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12491 tree_function_versioning.
12492 (modify_function): Update to reflect new type of
12493 tree_function_versioning.
12494 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12495 * passes.def: Remove old IPA-SRA and add new one.
12496 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12497 (make_pass_ipa_sra): Declare.
12498 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12499 ipa_sra_retvalues.
12500 * doc/invoke.texi (ipa-sra-max-replacements): New.
12501
12502 2019-09-19 Martin Sebor <msebor@redhat.com>
12503
12504 PR middle-end/91631
12505 * builtins.c (component_size): Correct trailing array computation,
12506 rename to component_ref_size and move...
12507 (compute_objsize): Adjust.
12508 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12509 (builtin_access::strict): Do not consider memmove.
12510 (builtin_access::write_off): New function.
12511 (builtin_memref::builtin_memref): Initialize refsize.
12512 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12513 refsize.
12514 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12515 Handle refsize.
12516 (builtin_access::builtin_access): Initialize dstoff to destination
12517 refeence offset here instead of in maybe_diag_overlap. Adjust
12518 referencess even to unrelated objects. Adjust sizrange of bounded
12519 string functions to reflect bound. For strcat, adjust destination
12520 sizrange by that of source.
12521 (builtin_access::strcat_overlap): Adjust offsets and sizes
12522 to reflect the increase in destination sizrange above.
12523 (builtin_access::overlap): Do not set dstoff here but instead
12524 in builtin_access::builtin_access.
12525 (check_bounds_or_overlap): Use builtin_access::write_off.
12526 (maybe_diag_access_bounds): Add argument. Add informational notes.
12527 (dump_builtin_memref, dump_builtin_access): New functions.
12528 * tree.c (component_ref_size): ...to here.
12529 * tree.h (component_ref_size): Declare.
12530 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12531 nul in the size of the source string.
12532
12533 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12534
12535 PR c/67224
12536 * doc/cpp.texi: Document support for extended characters in
12537 identifiers.
12538 * doc/cppopts.texi: Likewise.
12539
12540 2019-09-19 Richard Biener <rguenther@suse.de>
12541
12542 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12543 (check_reduction_path): New overload having the path as result.
12544 (vect_is_simple_reduction): From the detected reduction
12545 path build a SLP reduction chain if possible.
12546
12547 2019-09-19 Richard Biener <rguenther@suse.de>
12548
12549 PR target/91814
12550 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12551 Force operand to a register if it isn't nonimmediate_operand.
12552
12553 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12554
12555 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12556 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12557 (logical_op): Remove code attribute.
12558 (logical_OP): Likewise.
12559
12560 2019-09-19 Martin Liska <mliska@suse.cz>
12561
12562 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12563 Use proper casting.
12564
12565 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12566
12567 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12568 registers with %R.
12569
12570 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12571 for NE comparison of TImode values.
12572 (aarch64_emit_load_exclusive): Add support for TImode.
12573 (aarch64_emit_store_exclusive): Likewise.
12574 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12575 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12576 Change iterator from ALLI to ALLI_TI.
12577 (@atomic_compare_and_swap<JUST_TI>): New.
12578 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12579 (aarch64_load_exclusive_pair): New.
12580 (aarch64_store_exclusive_pair): New.
12581 * config/aarch64/iterators.md (JUST_TI): New.
12582
12583 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12584 strong_zero_p for aarch64_track_speculation; unify some code paths;
12585 use aarch64_gen_compare_reg instead of open-coding.
12586
12587 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12588 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12589 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12590 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12591 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12592 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12593 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12594 (atomic_<atomic_op><ALLI>): Likewise.
12595 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12596 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12597 * doc/invoke.texi: Document -moutline-atomics.
12598
12599 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12600
12601 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12602 trivial predicate for condition branch.
12603 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12604 for switch case.
12605 (compute_bb_predicates): Update predicate based on post-dominating
12606 relationship.
12607 (analyze_function_body): Calculate post-dominating information.
12608
12609 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12610
12611 * tree-vectorizer.h (vectorizable_condition): Take an int
12612 reduction index instead of a boolean flag.
12613 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12614 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12615 reductions if the reduction accumulator is the "then" rather
12616 than the "else" value.
12617 (vect_analyze_stmt): Update call accordingly.
12618 (vect_transform_stmt): Likewise.
12619 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12620 asserting that the index is > 0.
12621
12622 2019-09-19 Martin Liska <mliska@suse.cz>
12623
12624 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12625 (sort_congruence_classes_by_decl_uid): Likewise.
12626 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12627 easier sorting.
12628 (sem_item_optimizer::merge_classes): Likewise.
12629
12630 2019-09-19 Richard Biener <rguenther@suse.de>
12631
12632 PR tree-optimization/91812
12633 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12634 volatile loads.
12635
12636 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12637
12638 * defaults.h (TARGET_UNIT): New macro.
12639 (target_unit): New type.
12640 * rtl.h (native_encode_rtx, native_decode_rtx)
12641 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12642 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12643 * rtlanal.c (subreg_lsb_1): Delete.
12644 (subreg_size_lsb): New function.
12645 * simplify-rtx.c: Include rtx-vector-builder.h
12646 (simplify_immed_subreg): Delete.
12647 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12648 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12649 functions.
12650 (simplify_subreg): Use them.
12651 (test_vector_subregs_modes, test_vector_subregs_repeating)
12652 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12653 (test_vector_subregs): New functions.
12654 (test_vector_ops): Call test_vector_subregs for integer vector
12655 modes with at least 2 elements.
12656
12657 2019-09-19 Richard Biener <rguenther@suse.de>
12658
12659 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12660 LOOP_VINFO_OPERANDS_SWAPPED.
12661 (parloops_is_simple_reduction): Likewise.
12662 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12663 initialize operands_swapped.
12664 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12665 (vect_is_slp_reduction): Do not swap operands.
12666 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12667 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12668
12669 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12670
12671 PR target/87007
12672 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12673 Add avx_partial_xmm_update.
12674
12675 2019-09-18 Jim Wilson <jimw@sifive.com>
12676
12677 PR target/91683
12678 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12679 (riscv_move_integer): Likewise.
12680 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12681 riscv_move_integer arg.
12682 (riscv_legitimize_move): Likewise.
12683 (riscv_force_temporary): New parameter in_splitter. Don't call
12684 force_reg if true.
12685 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12686 arg.
12687 (riscv_add_offset): Likewise.
12688 (riscv_split_symbol): New parameter in_splitter. Pass to
12689 riscv_force_temporary.
12690 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12691 arg.
12692 (riscv_move_integer): New parameter in_splitter. New local
12693 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12694 in_splitter TRUE.
12695 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12696 riscv_split_symbol, and riscv_force_temporary args.
12697 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12698 riscv_move_integer arg.
12699 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12700
12701 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12702
12703 PR target/90878
12704 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12705 hard register store cost to 6.
12706
12707 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12708
12709 PR target/91446
12710 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12711 pseudo register store cost from 3 to 6 to make it the same as
12712 QImode and HImode.
12713
12714 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12715
12716 PR target/91738
12717 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12718 (one_cmpldi2): Likewise.
12719 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12720 of the constant parts is simple.
12721 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12722 (logical_op): Add new code attribute.
12723 (logical_OP): Likewise.
12724 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12725 (arm_iordi_operand): Add predicate.
12726 (arm_xordi_operand): Add predicate.
12727
12728 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12729
12730 * config/arm/arm.md (maddsidi4): Remove expander.
12731 (mulsidi3adddi): Remove pattern.
12732 (mulsidi3adddi_v6): Likewise.
12733 (mulsidi3_nov6): Likewise.
12734 (mulsidi3_v6): Likewise.
12735 (umulsidi3): Remove expander.
12736 (umulsidi3_nov6): Remove pattern.
12737 (umulsidi3_v6): Likewise.
12738 (umulsidi3adddi): Likewise.
12739 (umulsidi3adddi_v6): Likewise.
12740 (<Us>mulsidi3): Add combined expander.
12741 (<Us>maddsidi4): Likewise.
12742 (<US>mull): Add combined umull and smull pattern.
12743 (<US>mlal): Likewise.
12744 * config/arm/iterators.md (Us): Add new iterator.
12745
12746 2019-09-18 Richard Biener <rguenther@suse.de>
12747
12748 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12749 swapping.
12750 (vectorize_fold_left_reduction): Remove assert.
12751 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12752 operand in position 2. Remove assert.
12753
12754 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12755
12756 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12757 (smulsi3_highpart_nov6): Remove pattern.
12758 (smulsi3_highpart_v6): Likewise.
12759 (umulsi3_highpart): Likewise.
12760 (umulsi3_highpart_nov6): Likewise.
12761 (umulsi3_highpart_v6): Likewise.
12762 (<US>mull_high): Add new combined multiply pattern.
12763
12764 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12765
12766 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12767 (arm_mulsi3_v6): Likewise.
12768 (mulsi3addsi_v6): Likewise.
12769 (mulsi3subsi): Likewise.
12770 (mul): Add new multiply pattern.
12771 (mla): Likewise.
12772 (mls): Likewise.
12773
12774 2019-09-18 Richard Biener <rguenther@suse.de>
12775
12776 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12777 (parloops_valid_reduction_input_p): Copy from
12778 valid_reduction_input_p.
12779 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12780 (parloops_needs_fold_left_reduction_p): Copy from
12781 needs_fold_left_reduction_p.
12782 (parloops_is_simple_reduction): Copy from
12783 vect_is_simple_reduction.
12784 (parloops_force_simple_reduction): Copy from
12785 vect_force_simple_reduction.
12786 (gather_scalar_reductions): Adjust.
12787 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12788 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12789
12790 2019-09-18 Richard Biener <rguenther@suse.de>
12791
12792 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12793 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12794 static.
12795 (vect_create_epilog_for_reduction): Remove dead code.
12796
12797 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12798
12799 * varasm.c (assemble_real): Generate canonical const_ints.
12800
12801 2019-09-18 Richard Biener <rguenther@suse.de>
12802
12803 PR lto/91763
12804 * lto-streamer-in.c (input_eh_regions): Move EH init to
12805 lto_materialize_function.
12806 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12807 Likewise.
12808
12809 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12810
12811 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12812 are INTEGER_CSTs.
12813
12814 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12815
12816 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12817 of checking specifically for INTEGER_CST.
12818
12819 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12820
12821 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12822 sizes instead of uhwi sizes.
12823
12824 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12825
12826 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12827 (add_const_value_attribute): Handle CONST_POLY_INT.
12828
12829 2019-09-18 Martin Liska <mliska@suse.cz>
12830
12831 * dbgcnt.def (store_merging): New counter.
12832 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12833 Use it in store merging.
12834
12835 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12836
12837 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12838 function.
12839 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12840 * config/arm/arm.c (arm_sched_variable_issue): New function.
12841 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12842
12843 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12844
12845 * config/arm/types.md (no_reservation): New reservation.
12846 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12847 no_insn here.
12848 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12849 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12850 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12851 * config/arm/arm1020e.md (1020alu_op): Likewise.
12852 * config/arm/arm1026ejs.md (alu_op): Likewise.
12853 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12854 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12855 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12856 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12857 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12858 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12859 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12860 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12861 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12862 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12863 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12864 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12865 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12866 * config/arm/fa526.md (526_alu_op): Likewise.
12867 * config/arm/fa606te.md (606te_alu_op): Likewise.
12868 * config/arm/fa626te.md (626te_alu_op): Likewise.
12869 * config/arm/fa726te.md (726te_alu_op): Likewise.
12870 * config/arm/xgene1.md (xgene1_nop): Likewise.
12871
12872 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12873
12874 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12875 "no_insn" to "branch".
12876
12877 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12878
12879 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12880
12881 2019-09-17 Richard Biener <rguenther@suse.de>
12882
12883 PR debug/91772
12884 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12885 was missing generate locations only once.
12886
12887 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12888
12889 PR ipa/91089
12890 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12891 option.
12892 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12893 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12894 for switch default case using range analysis information.
12895
12896 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12897
12898 PR target/91749
12899 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12900 mode attributed is supported by FDPIC.
12901
12902 2019-09-17 Richard Biener <rguenther@suse.de>
12903
12904 PR tree-optimization/91790
12905 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12906 use the correct DR for setting up realignment.
12907
12908 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12909
12910 PR target/91719
12911 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12912 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12913 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12914 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12915
12916 2019-09-16 Jason Merrill <jason@redhat.com>
12917
12918 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12919
12920 2019-09-16 Martin Liska <mliska@suse.cz>
12921
12922 * gimple-fold.c (or_comparisons_1): Remove rules moved
12923 to ...
12924 * match.pd: ... here.
12925
12926 2019-09-16 Martin Liska <mliska@suse.cz>
12927
12928 * gimple-fold.c (or_comparisons_1): Remove rules
12929 moved to ...
12930 * match.pd: ... here.
12931
12932 2019-09-16 Martin Liska <mliska@suse.cz>
12933
12934 * genmatch.c (dt_node::append_simplify): Do not print
12935 warning when we have duplicate patterns belonging
12936 to a same simplify rule.
12937 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12938 (maybe_fold_comparisons_from_match_pd): Handle
12939 tcc_comparison as a results.
12940 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12941
12942 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12943 Qi Feng <ffengqi@linux.ibm.com>
12944
12945 PR middle-end/88784
12946 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12947 (x > y && x == XXX_MIN): Optimize into 'false'.
12948 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12949 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12950 (x < y && x == XXX_MAX): Optimize into 'false'.
12951 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12952 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12953 (x <= y || x != XXX_MIN): Optimize into 'true'.
12954 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12955 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12956 (x >= y || x != XXX_MAX): Optimize into 'true'.
12957 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12958
12959 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12960 Martin Liska <mliska@suse.cz>
12961
12962 * gimple-fold.c (and_comparisons_1): Add type as first
12963 argument.
12964 (and_var_with_comparison): Likewise.
12965 (and_var_with_comparison_1): Likewise.
12966 (or_comparisons_1): Likewise.
12967 (or_var_with_comparison): Likewise.
12968 (or_var_with_comparison_1): Likewise.
12969 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12970 (maybe_fold_or_comparisons): Likewise.
12971 (maybe_fold_comparisons_from_match_pd): New.
12972 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12973 (maybe_fold_or_comparisons): Likewise.
12974 * gimple.c (gimple_size): Make it public and add num_ops argument.
12975 (gimple_init): New function.
12976 (gimple_alloc): Call gimple_init.
12977 * gimple.h (gimple_size): New.
12978 (gimple_init): Likewise.
12979 * tree-if-conv.c (fold_or_predicates): Pass type.
12980 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12981 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12982 (optimize_vec_cond_expr): Likewise.
12983 (ovce_extract_ops): Return type of conditional expression.
12984 * tree-ssanames.c (init_ssa_name_imm_use): New.
12985 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12986 * tree-ssanames.h (init_ssa_name_imm_use): New.
12987
12988 2019-09-16 Richard Biener <rguenther@suse.de>
12989
12990 PR tree-optimization/91756
12991 PR tree-optimization/87132
12992 * tree-ssa-alias.h (enum translate_flags): New.
12993 (get_continuation_for_phi): Use it instead of simple bool flag.
12994 (walk_non_aliased_vuses): Likewise.
12995 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12996 (get_continuation_for_phi): When looking across backedges only
12997 disallow valueization.
12998 (walk_non_aliased_vuses): Adjust.
12999 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13000 if requested.
13001
13002 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13003
13004 PR middle-end/80791
13005 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13006 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13007 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13008 * target.def (have_count_reg_decr_p): New hook.
13009 (doloop_cost_for_generic): Likewise.
13010 (doloop_cost_for_address): Likewise.
13011 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13012 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13013 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13014 * doc/tm.texi: Regenerate.
13015 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13016 addend.
13017 (record_group): Init doloop_p.
13018 (add_candidate_1): Add optional argument doloop, change the handlings
13019 accordingly.
13020 (add_candidate): Likewise.
13021 (generic_predict_doloop_p): Update attribute.
13022 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13023 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13024 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13025 MIN_EXPR.
13026 (get_computation_cost): Update for doloop IV cand extra cost.
13027 (determine_group_iv_cost_cond): Update for doloop IV cand.
13028 (determine_iv_cost): Likewise.
13029 (ivopts_estimate_reg_pressure): Likewise.
13030 (may_eliminate_iv): Update handlings for doloop IV cand.
13031 (add_iv_candidate_for_doloop): New function.
13032 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13033 (iv_ca_set_no_cp): Update for doloop IV cand.
13034 (iv_ca_set_cp): Likewise.
13035 (iv_ca_dump): Dump register cost.
13036 (find_doloop_use): New function.
13037 (analyze_and_mark_doloop_use): Likewise.
13038 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13039
13040 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13041
13042 PR middle-end/91708
13043 * cse.c (cse_insn): Do not replace anything with a
13044 MEM.
13045
13046 2019-09-13 Ian Lance Taylor <iant@golang.org>
13047
13048 * doc/invoke.texi (Optimize Options): Fix typo.
13049
13050 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13051
13052 PR tree-optimization/89386
13053 * config/i386/sse.md (smulhrs<mode>3): New expander.
13054 (smulhrsv4hi3): Ditto.
13055
13056 2019-09-12 Richard Biener <rguenther@suse.de>
13057
13058 PR tree-optimization/91750
13059 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13060 in the type of the evolution.
13061
13062 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13063
13064 PR tree-optimization/89386
13065 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13066 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13067 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13068 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13069 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13070 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13071 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13072 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13073 (su, r): Handle the unspecs above.
13074 (bt): New int attribute.
13075 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13076 * internal-fn.c (first_commutative_argument): Commutativity info for
13077 above.
13078 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13079 (umulhrs_optab): New optabs.
13080 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13081 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13082 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13083 function.
13084 (vect_vect_recog_func_ptrs): Add it.
13085
13086 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13087
13088 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13089 code.
13090
13091 2019-09-11 Nathan Sidwell <nathan@acm.org>
13092
13093 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13094 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13095
13096 2019-09-11 Richard Biener <rguenther@suse.de>
13097
13098 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13099 * lto-wrapper.c (merge_and_complain): Pick up -g.
13100 (append_compiler_options): Likewise.
13101 (run_gcc): Re-instantiate handling -g0 at link-time.
13102 * doc/invoke.texi (flto): Document debug info generation.
13103
13104 2019-09-11 Richard Biener <rguenther@suse.de>
13105
13106 PR tree-optimization/90387
13107 * vr-values.c (vr_values::extract_range_basic): After inlining
13108 simplify non-constant __builtin_constant_p to false.
13109
13110 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13111
13112 PR rtl-optimization/89795
13113 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13114 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13115
13116 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13117
13118 PR tree-optimization/91723
13119 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13120 instead of pointer equality when checking if argument vectypes are
13121 the same.
13122
13123 PR middle-end/91725
13124 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13125 of get_nonzero_bits, only call it for integral types.
13126
13127 2019-09-11 Richard Biener <rguenther@suse.de>
13128
13129 Revert
13130 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13131
13132 * match.pd: Add flag_unsafe_math_optimizations check
13133 before deciding on the widest type in a binary math operation.
13134
13135 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13136
13137 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13138 and CALL_REALLY_USED_REGISTERS must be defined, and that
13139 CALL_REALLY_USED_REGISTERS is preferred.
13140 * doc/tm.texi: Regenerate.
13141 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13142 (call_really_used_regs): Likewise.
13143 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13144 CALL_REALLY_USED_REGISTERS are defined.
13145 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13146 initial value if defined.
13147 (initial_call_really_used_regs): Delete.
13148 (saved_call_really_used_regs): Likewise.
13149 (CALL_REALLY_USED_REGNO_P): Likewise.
13150 (init_reg_sets): Remove handling of call_really_used_regs.
13151 (save_register_info, restore_register_info, globalize_reg): Likewise.
13152 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13153 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13154 outside operand_reg_set.
13155 (fix_register): Don't change call_used_regs if
13156 CALL_REALLY_USED_REGISTERS is defined.
13157 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13158 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13159 instead of call_really_used_regs.
13160 (csky_conditional_register_usage): Remove the old handling of
13161 call_used_regs and change the handling of call_really_used_regs
13162 to use call_used_regs instead.
13163 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13164 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13165 making a register fixed.
13166 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13167 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13168 instead of call_really_used_regs.
13169 (m32r_conditional_register_usage): Don't set call_used_regs when
13170 making a register fixed.
13171 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13172 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13173 instead of call_really_used_regs.
13174 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13175 (mips_cfun_call_saved_reg_p): Likewise.
13176 (mips_swap_registers): Remove the old handling of call_used_regs
13177 and change the handling of call_really_used_regs to use call_used_regs
13178 instead.
13179 (mips_conditional_register_usage): Likewise.
13180 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13181 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13182 instead of call_really_used_regs.
13183 (mn10300_get_live_callee_saved_regs): Likewise.
13184 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13185 (mn10300_conditional_register_usage): Don't set call_used_regs when
13186 making a register fixed.
13187 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13188 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13189 Remove the old handling of call_used_regs and change the handling
13190 of call_really_used_regs to use call_used_regs instead.
13191 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13192 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13193 instead of call_really_used_regs.
13194 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13195 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13196 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13197 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13198 (s390_conditional_register_usage): Remove the old handling of
13199 call_used_regs and change the handling of call_really_used_regs
13200 to use call_used_regs instead.
13201 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13202 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13203 (sh_fix_range, reg_unused_after): Likewise.
13204 (sh_conditional_register_usage): Remove the old handling of
13205 call_used_regs and change the handling of call_really_used_regs
13206 to use call_used_regs instead.
13207 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13208 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13209 call_used_regs when making a register fixed.
13210 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13211 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13212 call_used_regs when making a register fixed.
13213 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13214 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13215 set call_used_regs when making a register fixed.
13216 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13217 * config/visium/visium.c (visium_conditional_register_usage): Remove
13218 the old handling of call_used_regs and change the handling of
13219 call_really_used_regs to use call_used_regs instead.
13220
13221 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13222
13223 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13224 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13225 * reginfo.c (call_used_regs): New macro.
13226
13227 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13228
13229 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13230 fixed_regs test.
13231 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13232 (bpf_expand_epilogue): Likewise.
13233 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13234 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13235 (ft32_expand_epilogue): Likewise.
13236 * config/i386/i386.c (ix86_save_reg): Likewise.
13237 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13238 (moxie_expand_epilogue): Likewise.
13239 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13240 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13241 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13242
13243 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13244
13245 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13246 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13247 instead of testing call_used_regs directly.
13248 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13249 (aarch64_components_for_bb): Likewise.
13250 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13251 * config/arc/arc.c (arc_must_save_register): Likewise.
13252 (arc_epilogue_uses): Likewise.
13253 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13254 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13255 (arm_compute_save_reg0_reg12_mask): Likewise.
13256 (arm_compute_save_core_reg_mask): Likewise.
13257 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13258 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13259 (cmse_nonsecure_entry_clear_before_return): Likewise.
13260 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13261 (arm_expand_epilogue): Likewise.
13262 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13263 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13264 (_reg_unused_after): Likewise.
13265 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13266 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13267 (add_to_reg, hwloop_optimize): Likewise.
13268 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13269 (bpf_expand_epilogue): Likewise.
13270 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13271 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13272 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13273 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13274 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13275 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13276 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13277 * config/frv/frv.c (frv_stack_info): Likewise.
13278 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13279 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13280 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13281 (move_callee_saved_registers): Likewise.
13282 * config/h8300/h8300.c (byte_reg): Likewise.
13283 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13284 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13285 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13286 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13287 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13288 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13289 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13290 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13291 * config/m32c/m32c.c (need_to_save): Likewise.
13292 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13293 * config/mcore/mcore.c (calc_live_regs): Likewise.
13294 * config/microblaze/microblaze.c (microblaze_must_save_register):
13295 Likewise.
13296 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13297 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13298 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13299 (mmix_expand_epilogue): Likewise.
13300 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13301 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13302 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13303 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13304 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13305 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13306 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13307 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13308 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13309 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13310 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13311 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13312 * config/rl78/rl78.c (need_to_save): Likewise.
13313 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13314 (rs6000_stack_info, generate_set_vrsave): Likewise.
13315 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13316 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13317 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13318 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13319 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13320 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13321 (save_local_or_in_reg_p): Likewise.
13322 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13323 (xstormy16_epilogue_uses): Likewise.
13324 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13325 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13326 * config/v850/v850.c (compute_register_save_size): Likewise.
13327 * config/vax/vax.c (vax_expand_prologue): Likewise.
13328 * config/visium/visium.c (visium_save_reg_p): Likewise.
13329 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13330 * cselib.c (cselib_process_insn): Likewise.
13331 * df-scan.c (df_get_entry_block_def_set): Likewise.
13332 * function.c (aggregate_value_p): Likewise.
13333 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13334 * ira-lives.c (process_bb_node_lives): Likewise.
13335 * ira.c (do_reload): Likewise.
13336 * lra-lives.c (process_bb_lives): Likewise.
13337 * lra-remat.c (lra_remat): Likewise.
13338 * lra.c (lra): Likewise.
13339 * postreload.c (reload_combine_recognize_pattern): Likewise.
13340 (reload_cse_move2add): Likewise.
13341 * recog.c (peep2_find_free_register): Likewise.
13342 * regrename.c (check_new_reg_p): Likewise.
13343 * reload.c (find_equiv_reg): Likewise.
13344 * reload1.c (reload, find_reg): Likewise.
13345 * sel-sched.c (init_hard_regs_data): Likewise.
13346
13347 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13348
13349 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13350 regs_invalidated_by_call & ~fixed_reg_set instead of
13351 call_used_or_fixed_regs & ~fixed_reg_set.
13352 * config/sh/sh.c (output_stack_adjust): Likewise.
13353
13354 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13355
13356 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13357 (call_used_reg_set): Delete.
13358 (call_used_or_fixed_regs): New macro.
13359 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13360 of call_used_reg_set.
13361 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13362 instead of call_used_regs.
13363 (save_call_clobbered_regs): Likewise.
13364 * cfgcleanup.c (old_insns_match_p): Likewise.
13365 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13366 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13367 Likewise.
13368 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13369 * config/sh/sh.c (output_stack_adjust): Likewise.
13370 * final.c (collect_fn_hard_reg_usage): Likewise.
13371 * ira-build.c (ira_build): Likewise.
13372 * ira-color.c (calculate_saved_nregs): Likewise.
13373 (allocno_reload_assign, calculate_spill_cost): Likewise.
13374 * ira-conflicts.c (ira_build_conflicts): Likewise.
13375 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13376 * ira-lives.c (process_bb_node_lives): Likewise.
13377 * ira.c (setup_reg_renumber): Likewise.
13378 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13379 * lra-constraints.c (need_for_call_save_p): Likewise.
13380 (need_for_split_p, inherit_in_ebb): Likewise.
13381 * lra-lives.c (process_bb_lives): Likewise.
13382 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13383 * postreload.c (reload_combine): Likewise.
13384 * regrename.c (find_rename_reg): Likewise.
13385 * reload1.c (reload_as_needed): Likewise.
13386 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13387 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13388 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13389
13390 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13391
13392 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13393 (no_caller_save_reg_set): Delete.
13394 * caller-save.c (init_caller_save): Don't initialize it.
13395 * ira-conflicts.c (ira_build_conflicts): Calculate
13396 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13397
13398 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13399
13400 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13401 (target_hard_regs::x_savable_regs): New field.
13402 (call_fixed_reg_set): Delete.
13403 (savable_regs): New macro,
13404 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13405 (init_reg_sets_1): Likewise. Initialize savable_regs.
13406 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13407 for all registers. Set savable_regs instead of call_fixed_reg_set.
13408 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13409 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13410 * config/sh/sh.c (output_stack_adjust): Likewise.
13411
13412 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13413
13414 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13415 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13416 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13417
13418 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13419
13420 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13421 * rtlanal.c (get_call_rtx_from): Likewise.
13422 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13423 than the pattern to get_call_rtx_from.
13424 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13425 an rtx_insn * instead of an rtx.
13426 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13427
13428 2019-09-10 Martin Liska <mliska@suse.cz>
13429
13430 * common.opt: Use newly added WarnRemoved.
13431 * config/aarch64/aarch64.opt: Likewise.
13432 * config/arm/arm.opt: Likewise.
13433 * config/i386/i386.opt: Likewise.
13434 * config/ia64/ia64.opt: Likewise.
13435 * config/rs6000/rs6000.opt: Likewise.
13436 * doc/options.texi: Document WarnRemoved properly.
13437 * dwarf2out.c (gen_producer_string): Handle renamed
13438 OPT_SPECIAL_warn_removed.
13439 * lto-opts.c (lto_write_options): Likewise.
13440 * lto-wrapper.c (merge_and_complain): Likewise.
13441 * opts-common.c (decode_cmdline_option): Likewise.
13442 (prune_options): Likewise.
13443 (read_cmdline_option): Likewise.
13444 (control_warning_option): Likewise.
13445 * opts.c (print_filtered_help): Likewise.
13446 * optc-gen.awk: Parse for WarnRemoved and make usage
13447 of Deprecated an error.
13448 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13449
13450 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13451
13452 * doc/install.texi: Fix syntax for html generation.
13453
13454 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13455
13456 PR middle-end/91680
13457 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13458 the shift type to type.
13459
13460 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13461
13462 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13463 FDPIC mode.
13464 (stack_protect_combined_test_insn): Likewise.
13465
13466 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13467 Mickaël Guêné <mickael.guene@st.com>
13468
13469 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13470 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13471 (load_tp_soft_fdpic): New pattern.
13472 (load_tp_soft): Disable in FDPIC mode.
13473
13474 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13475 Mickaël Guêné <mickael.guene@st.com>
13476
13477 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13478 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13479 (arm_call_tls_get_addr): Add FDPIC support.
13480 (legitimize_tls_address): Likewise.
13481 (arm_emit_tls_decoration): Likewise.
13482
13483 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13484 Mickaël Guêné <mickael.guene@st.com>
13485
13486 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13487 support.
13488 (arm_trampoline_init): Likewise.
13489 (arm_trampoline_adjust_address): Likewise.
13490 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13491
13492 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13493 Mickaël Guêné <mickael.guene@st.com>
13494
13495 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13496 (legitimize_pic_address): Enforce binding rules on function
13497 pointers in FDPIC mode.
13498 (arm_assemble_integer): Likewise.
13499
13500 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13501 Mickaël Guêné <mickael.guene@st.com>
13502
13503 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13504 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13505 FDPIC.
13506
13507 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13508 Mickaël Guêné <mickael.guene@st.com>
13509
13510 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13511 field.
13512
13513 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13514 Mickaël Guêné <mickael.guene@st.com>
13515
13516 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13517 in FDPIC mode.
13518 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13519 new function.
13520 * config/arm/arm.c (arm_option_override): Define pic register to
13521 FDPIC_REGNUM.
13522 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13523 have no decl or go through PLT.
13524 (calculate_pic_address_constant): New function.
13525 (legitimize_pic_address): Call calculate_pic_address_constant.
13526 (arm_load_pic_register): Handle TARGET_FDPIC.
13527 (arm_is_segment_info_known): New function.
13528 (arm_pic_static_addr): Add support for FDPIC.
13529 (arm_load_function_descriptor): New function.
13530 (arm_emit_call_insn): Add support for FDPIC.
13531 (arm_assemble_integer): Add support for FDPIC.
13532 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13533 Define. (FDPIC_REGNUM): New define.
13534 * config/arm/arm.md (call): Add support for FDPIC.
13535 (call_value): Likewise.
13536 (restore_pic_register_after_call): New pattern.
13537 (untyped_call): Disable if FDPIC.
13538 (untyped_return): Likewise.
13539 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13540
13541 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13542 Mickaël Guêné <mickael.guene@st.com>
13543
13544 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13545 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13546 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13547 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13548 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13549 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13550 * config/arm/uclinuxfdpiceabi.h: New file.
13551
13552 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13553
13554 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13555
13556 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13557 Mickaël Guêné <mickael.guene@st.com>
13558
13559 * config/arm/arm.opt: Add -mfdpic option.
13560 * doc/invoke.texi: Add documentation for -mfdpic.
13561
13562 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13563
13564 * expmed.c (extract_bit_field): Update function comment
13565 regarding alt_rtl.
13566 * expr.c (expand_expr_real): Update function comment
13567 regarding alt_rtl.
13568 (expand_misaligned_mem_ref): New helper function.
13569 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13570 Remove duplicate assignment to "base" at case MEM_REF.
13571 Remove a shadowed variable "unsignedp" at case VCE.
13572
13573 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13574
13575 * regset.h (regs_invalidated_by_call_regset): Delete.
13576 (fixed_reg_set_regset): Likewise.
13577 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13578 (fixed_reg_set_regset, persistent_obstack): Likewise.
13579 (init_reg_sets_1, globalize_reg): Update accordingly.
13580 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13581 instead of a bitmap.
13582 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13583 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13584 instead of regs_invalidated_by_call_regset.
13585 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13586 * df-scan.c (df_scan_start_dump): Likewise.
13587 * dse.c (copy_fixed_regs): Likewise.
13588 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13589
13590 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13591
13592 * array-traits.h: New file.
13593 * coretypes.h (array_traits, bitmap_view): New types.
13594 * bitmap.h: Include "array-traits.h"
13595 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13596 (base_bitmap_view, bitmap_view): New classes.
13597 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13598 * hard-reg-set.h: Include array-traits.h.
13599 (array_traits<HARD_REG_SET>): New struct.
13600 * regset.h (IOR_REG_SET_HRS): New macro.
13601 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13602 rather than iterating over each hard register.
13603 * sched-deps.c (sched_analyze_insn): Likewise.
13604 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13605
13606 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13607
13608 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13609 instead of a HARD_REG_SET *.
13610 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13611 (ira_build): Update call accordingly.
13612 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13613
13614 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13615
13616 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13617 (HARD_REG_SET::operator!=): Likewise.
13618 (hard_reg_set_equal_p): Delete.
13619 * cfgcleanup.c (old_insns_match_p): Use == instead of
13620 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13621 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13622 (add_allocno_hard_regs_to_forest): Likewise.
13623 (setup_allocno_available_regs_num): Likewise.
13624 * ira.c (setup_pressure_classes): Likewise.
13625 (setup_allocno_and_important_classes): Likewise.
13626 (setup_reg_class_relations): Likewise.
13627 * lra-lives.c (process_bb_lives): Likewise.
13628 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13629
13630 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13631
13632 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13633 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13634 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13635 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13636 Likewise.
13637 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13638 * ira.c (setup_reg_renumber): Likewise.
13639 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13640 * regrename.c (regrename_find_superclass): Likewise.
13641 * reload1.c (find_reg): Likewise.
13642
13643 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13644
13645 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13646 * caller-save.c (setup_save_areas): Use "&~" instead of
13647 AND_COMPL_HARD_REG_SET.
13648 (save_call_clobbered_regs): Likewise.
13649 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13650 Likewise.
13651 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13652 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13653 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13654 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13655 (mips_conditional_register_usage): Likewise.
13656 * config/sh/sh.c (output_stack_adjust): Likewise.
13657 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13658 (setup_profitable_hard_regs): Likewise.
13659 (get_conflict_and_start_profitable_regs): Likewise.
13660 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13661 (ira_build_conflicts): Likewise.
13662 * ira-costs.c (restrict_cost_classes): Likewise.
13663 (setup_regno_cost_classes_by_aclass): Likewise.
13664 * ira-lives.c (process_bb_node_lives): Likewise.
13665 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13666 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13667 (setup_allocno_and_important_classes, setup_class_translate_array)
13668 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13669 Likewise.
13670 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13671 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13672 (process_alt_operands, inherit_in_ebb): Likewise.
13673 * lra-eliminations.c (update_reg_eliminate): Likewise.
13674 * lra-lives.c (process_bb_lives): Likewise.
13675 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13676 * resource.c (find_dead_or_set_registers): Likewise.
13677 (mark_target_live_regs): Likewise.
13678 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13679 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13680 (implicit_clobber_conflict_p): Likewise.
13681 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13682 (try_shrink_wrapping): Likewise.
13683
13684 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13685
13686 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13687 (HARD_REG_SET::operator|=): Likewise.
13688 (IOR_HARD_REG_SET): Delete.
13689 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13690 IOR_HARD_REG_SET.
13691 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13692 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13693 * final.c (collect_fn_hard_reg_usage): Likewise.
13694 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13695 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13696 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13697 (propagate_some_info_from_allocno): Likewise.
13698 (copy_info_to_removed_store_destinations): Likewise.
13699 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13700 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13701 (fast_allocation): Likewise.
13702 * ira-conflicts.c (ira_build_conflicts): Likewise.
13703 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13704 (process_bb_node_lives): Likewise.
13705 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13706 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13707 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13708 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13709 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13710 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13711 (process_bb_lives): Likewise.
13712 * lra-spills.c (assign_spill_hard_regs): Likewise.
13713 * postreload.c (reload_combine): Likewise.
13714 * reginfo.c (init_reg_sets_1): Likewise.
13715 * regrename.c (merge_overlapping_regs, find_rename_reg)
13716 (merge_chains): Likewise.
13717 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13718 (find_reload_regs, finish_spills, choose_reload_regs_init)
13719 (emit_reload_insns): Likewise.
13720 * reorg.c (redundant_insn): Likewise.
13721 * resource.c (find_dead_or_set_registers, mark_set_resources)
13722 (mark_target_live_regs): Likewise.
13723 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13724 * sched-deps.c (sched_analyze_insn): Likewise.
13725 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13726 (find_best_reg_for_expr): Likewise.
13727 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13728
13729 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13730
13731 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13732 (HARD_REG_SET::operator&): Likewise.
13733 (AND_HARD_REG_SET): Delete.
13734 * caller-save.c (setup_save_areas): Use "&" instead of
13735 AND_HARD_REG_SET.
13736 (save_call_clobbered_regs): Likewise.
13737 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13738 * config/m32c/m32c.c (reduce_class): Likewise.
13739 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13740 * final.c (get_call_reg_set_usage): Likewise.
13741 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13742 (setup_left_conflict_sizes_p): Likewise.
13743 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13744 (ira_build_conflicts): Likewise.
13745 * ira-costs.c (restrict_cost_classes): Likewise.
13746 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13747 (setup_reg_class_relations): Likewise.
13748 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13749 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13750 * resource.c (find_dead_or_set_registers): Likewise.
13751 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13752
13753 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13754
13755 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13756 (COMPL_HARD_REG_SET): Delete.
13757 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13758 of COMPL_HARD_REG_SET.
13759 (try_rename_operands): Likewise.
13760 * config/sh/sh.c (push_regs): Likewise.
13761 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13762 * lra-constraints.c (contains_reg_p): Likewise.
13763 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13764
13765 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13766
13767 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13768 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13769 of COPY_HARD_REG_SET.
13770 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13771 (epiphany_conditional_register_usage): Likewise.
13772 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13773 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13774 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13775 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13776 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13777 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13778 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13779 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13780 * config/sh/sh.c (output_stack_adjust): Likewise.
13781 * final.c (collect_fn_hard_reg_usage): Likewise.
13782 (get_call_reg_set_usage): Likewise.
13783 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13784 (ira_flattening): Likewise.
13785 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13786 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13787 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13788 (ira_reassign_pseudos): Likewise.
13789 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13790 (ira_build_conflicts): Likewise.
13791 * ira-costs.c (restrict_cost_classes): Likewise.
13792 (setup_regno_cost_classes_by_aclass): Likewise.
13793 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13794 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13795 (setup_stack_reg_pressure_class, setup_pressure_classes)
13796 (setup_allocno_and_important_classes, setup_class_translate_array)
13797 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13798 (ira_setup_eliminable_regset): Likewise.
13799 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13800 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13801 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13802 (process_alt_operands, inherit_in_ebb): Likewise.
13803 * lra-lives.c (process_bb_lives): Likewise.
13804 * lra-spills.c (assign_spill_hard_regs): Likewise.
13805 * lra.c (lra): Likewise.
13806 * mode-switching.c (new_seginfo): Likewise.
13807 * postreload.c (reload_combine): Likewise.
13808 * reg-stack.c (straighten_stack): Likewise.
13809 * reginfo.c (save_register_info, restore_register_info): Likewise.
13810 (init_reg_sets_1, record_subregs_of_mode): Likewise
13811 * regrename.c (create_new_chain, rename_chains): Likewise.
13812 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13813 (find_reload_regs): Likewise.
13814 * resource.c (find_dead_or_set_registers): Likewise.
13815 (mark_target_live_regs): Likewise.
13816 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13817
13818 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13819
13820 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13821 (note_pattern_stores): Declare.
13822 (note_stores): Take an rtx_insn *.
13823 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13824 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13825 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13826 (note_stores): Take an rtx_insn * as argument and process
13827 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13828 (note_pattern_stores): ...this.
13829 (find_first_parameter_load): Pass the insn rather than
13830 its pattern to note_stores.
13831 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13832 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13833 (insert_one_insn): Likewise.
13834 * combine.c (combine_instructions): Likewise.
13835 (likely_spilled_retval_p): Likewise.
13836 (try_combine): Use note_pattern_stores instead of note_stores.
13837 (record_dead_and_set_regs): Pass the insn rather than its pattern
13838 to note_stores.
13839 (reg_dead_at_p): Likewise.
13840 * config/bfin/bfin.c (workaround_speculation): Likewise.
13841 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13842 rather than an rtx.
13843 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13844 instead of note_stores.
13845 (frv_optimize_membar_local): Pass the insn rather than its pattern
13846 to note_stores.
13847 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13848 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13849 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13850 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13851 (mips_reorg_process_insns): Likewise.
13852 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13853 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13854 rather than rtxes.
13855 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13856 its pattern to note_stores.
13857 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13858 of note_stores.
13859 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13860 the insn to note_stores.
13861 (prescan_insns_for_dce): Update call accordingly.
13862 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13863 to note_stores.
13864 * df-problems.c (can_move_insns_across): Likewise.
13865 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13866 * function.c (assign_parm_setup_reg): Likewise.
13867 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13868 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13869 (single_set_gcse): Likewise.
13870 * ira.c (validate_equiv_mem): Likewise.
13871 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13872 for no_equiv.
13873 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13874 pattern to note_stores.
13875 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13876 * loop-iv.c (simplify_using_initial_values): Likewise.
13877 * mode-switching.c (optimize_mode_switching): Likewise.
13878 * optabs.c (emit_libcall_block_1): Likewise.
13879 (expand_atomic_compare_and_swap): Likewise.
13880 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13881 (record_opr_changes): Likewise. Remove explicit handling of
13882 CALL_INSN_FUNCTION_USAGE.
13883 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13884 * regcprop.c (kill_clobbered_values): Likewise.
13885 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13886 to note_stores.
13887 * regrename.c (build_def_use): Likewise.
13888 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13889 for mark_not_eliminable.
13890 (reload_as_needed): Pass the insn rather than its pattern
13891 to note_stores.
13892 (emit_output_reload_insns): Likewise.
13893 * resource.c (mark_target_live_regs): Likewise.
13894 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13895 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13896 instead of note_stores.
13897 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13898 its pattern to note_stores.
13899 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13900 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13901
13902 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13903
13904 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13905 than a #define. Use a structure rather than an array as the
13906 fallback definition. Remove special cases for low array sizes.
13907 (const_hard_reg_set): New typedef.
13908 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13909 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13910 (hard_reg_set_empty_p): Likewise.
13911 (SET_HARD_REG_BIT): Use a function rather than a macro to
13912 handle the case in which HARD_REG_SET is a structure.
13913 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13914 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13915 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13916 (IOR_COMPL_HARD_REG_SET): Likewise.
13917 (hard_reg_set_iterator::pset): Constify the pointer target.
13918 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13919 of a "const HARD_REG_SET". Update the handling of non-integer
13920 HARD_REG_SETs.
13921 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13922 * reload.h: Likewise.
13923 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13924 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13925 of a "const HARD_REG_SET".
13926 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13927 (range_in_hard_reg_set_p): Likewise.
13928 * ira-costs.c (restrict_cost_classes): Likewise.
13929 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13930 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13931 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13932 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13933 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13934 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13935 take an unsigned int and open-code the HARD_REG_SET operations.
13936
13937 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13938
13939 * Makefile.in (OBJS): Remove bt-load.o.
13940 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13941 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13942 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13943 document that the option no longer does anything.
13944 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13945 * target.def (branch_target_register_class): Delete.
13946 (branch_target_register_callee_saved): Likewise.
13947 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13948 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13949 * doc/tm.texi: Regenerate.
13950 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13951 (make_pass_branch_target_load_optimize2): Likewise.
13952 * passes.def (pass_branch_target_load_optimize1): Likewise.
13953 (pass_branch_target_load_optimize2): Likewise.
13954 * targhooks.h (default_branch_target_register_class): Likewise.
13955 * targhooks.c (default_branch_target_register_class): Likewise.
13956 * opt-suggestions.c (test_completion_valid_options): Remove
13957 -fbtr-bb-exclusive from the list of test options.
13958 * bt-load.c: Remove.
13959
13960 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13961
13962 * match.pd: Add flag_unsafe_math_optimizations check
13963 before deciding on the widest type in a binary math operation.
13964
13965 2019-09-09 Martin Liska <mliska@suse.cz>
13966
13967 * config/i386/i386.opt: Update comment of removed
13968 options that are preserved only for backward
13969 compatibility.
13970
13971 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13972
13973 PR target/87853
13974 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13975 instead of __v16qs.
13976
13977 PR target/91704
13978 * config/i386/avxintrin.h (__v32qs): New typedef.
13979 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13980 instead of __v32qi.
13981
13982 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13983
13984 * doc/invoke.texi (Option Summary): Cover eBPF.
13985 (eBPF Options): New section.
13986 * doc/extend.texi (BPF Built-in Functions): Likewise.
13987 (BPF Kernel Helpers): Likewise.
13988
13989 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13990
13991 * config.gcc: Support for bpf-*-* targets.
13992 * common/config/bpf/bpf-common.c: New file.
13993 * config/bpf/t-bpf: Likewise.
13994 * config/bpf/predicates.md: Likewise.
13995 * config/bpf/constraints.md: Likewise.
13996 * config/bpf/bpf.opt: Likewise.
13997 * config/bpf/bpf.md: Likewise.
13998 * config/bpf/bpf.h: Likewise.
13999 * config/bpf/bpf.c: Likewise.
14000 * config/bpf/bpf-protos.h: Likewise.
14001 * config/bpf/bpf-opts.h: Likewise.
14002 * config/bpf/bpf-helpers.h: Likewise.
14003 * config/bpf/bpf-helpers.def: Likewise.
14004
14005 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14006
14007 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14008 indirect_calls.
14009
14010 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14011
14012 * opt-functions.awk (integer_range_info): Make sure values are in
14013 numeric context before operating with them.
14014
14015 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14016
14017 * genemit.c (gen_split): Print the filename and line number where the
14018 splitter (or peephole2) was defined, to the dump file.
14019
14020 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14021
14022 PR tree-optimization/91665
14023 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14024 incompatible with the type of PHI result.
14025
14026 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14027
14028 PR target/91684
14029 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14030 gen_unaligned_storedi for 4-byte aligned addresses.
14031
14032 2019-09-06 Jim Wilson <jimw@sifive.com>
14033
14034 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14035 change.
14036
14037 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14038
14039 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14040
14041 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14042
14043 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14044 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14045
14046 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14047
14048 PR target/91654
14049 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14050 cost of SSE->integer and integer->SSE moves from 2 to 6.
14051 (core_cost): Ditto.
14052
14053 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14054
14055 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14056 before testing TYPE_TRANSPARENT_AGGR.
14057 * calls.c (initialize_argument_information, load_register_parameters):
14058 Likewise.
14059
14060 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14061
14062 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14063 high regs.
14064 (cmp_ior): Likewise.
14065
14066 2019-09-06 Martin Liska <mliska@suse.cz>
14067
14068 * doc/match-and-simplify.texi: Separate tuples with ;.
14069
14070 2019-09-06 Martin Liska <mliska@suse.cz>
14071
14072 PR c++/91125
14073 * Makefile.in: Remove tlink.o.
14074 * collect2.c (do_link): New function isolated
14075 from do_tlink.
14076 (main): Use.
14077 * collect2.h (do_tlink): Remove declaration of do_tlink.
14078 * doc/extend.texi: Remove documentation of -frepo.
14079 * doc/invoke.texi: Likewise.
14080 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14081 * tlink.c: Remove.
14082
14083 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14084 Jim Wilson <jimw@sifive.com>
14085
14086 PR target/91635
14087 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14088 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14089 paradoxical_subreg_p (operands[0]).
14090 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14091 use as intermediate value.
14092
14093 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14094
14095 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14096 (sync_compare_and_swap<mode>_insn): Likewise.
14097
14098 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14099
14100 PR middle-end/91615
14101 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14102 without movmisalign optab.
14103
14104 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14105
14106 PR middle-end/91001
14107 PR middle-end/91105
14108 PR middle-end/91106
14109 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14110 types, use type of their first field instead of type of
14111 args[i].tree_value.
14112
14113 2019-09-05 Richard Biener <rguenther@suse.de>
14114
14115 PR rtl-optimization/91656
14116 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14117 of early out.
14118
14119 2019-09-05 Richard Biener <rguenther@suse.de>
14120
14121 PR middle-end/90501
14122 * tree-inline.c (declare_return_variable): Mark the return
14123 slot as addressable after building an address of it.
14124
14125 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14126
14127 * doc/install.texi: Update and clarify requirements to build GNAT.
14128
14129 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14130
14131 PR middle-end/91577
14132 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14133 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14134 call to be in memory.
14135 (pass_expand::execute): Call discover_nonconstant_array_refs before
14136 setting currently_expanding_to_rtl.
14137
14138 2019-09-04 Caroline Tice <cmtice@google.com>
14139
14140 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14141 specified together.
14142
14143 2019-09-04 Marek Polacek <polacek@redhat.com>
14144
14145 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14146
14147 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14148
14149 PR target/32413
14150 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14151 for QI and HImode moves between SSE and general registers.
14152
14153 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14154
14155 PR c/78736
14156 * doc/invoke.texi: Document -Wenum-conversion.
14157
14158 2019-09-04 Richard Biener <rguenther@suse.de>
14159
14160 PR rtl-optimization/36262
14161 * postreload-gcse.c: Include intl.h and gcse.h.
14162 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14163 to avoid linear list walk.
14164 (record_last_mem_set_info): Gate off if not computing transparentness.
14165 (get_bb_avail_insn): If transparentness isn't computed give up
14166 early.
14167 (gcse_after_reload_main): Skip compute_transp and extended PRE
14168 if gcse_or_cprop_is_too_expensive says so.
14169
14170 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14171
14172 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14173 noinit section.
14174 (msp430_select_section): Handle decls with the "noinit" attribute with
14175 default_elf_select_section.
14176 Handle SECCAT_RODATA_MERGE_* section types with
14177 default_elf_select_section.
14178 Add comments about handling of unsupported section types.
14179 (msp430_section_type_flags): Remove handling of the noinit section.
14180
14181 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14182
14183 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14184 conflicting msp430-specific attributes.
14185 (msp430_section_attr): Likewise.
14186 Add warnings about conflicts with generic "noinit" and "section"
14187 attributes.
14188 Fix grammar in -mlarge error message.
14189 (msp430_data_attr): Rename to msp430_persist_attr.
14190 Add warnings about conflicts with generic "noinit" and "section"
14191 attributes.
14192 Add warning for when variable is not initialized.
14193 Chain conditionals which prevent the attribute being added.
14194 (ATTR_EXCL): New helper.
14195 (attr_reent_exclusions): New exclusion table.
14196 (attr_naked_exclusions): Likewise.
14197 (attr_crit_exclusions): Likewise.
14198 (attr_lower_exclusions): Likewise.
14199 (attr_upper_exclusions): Likewise.
14200 (attr_either_exclusions): Likewise.
14201 (attr_persist_exclusions): Likewise.
14202 (msp430_attribute_table): Update with exclusion rules.
14203 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14204 has a section.
14205
14206 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14207
14208 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14209 (msp430_handle_generic_attribute): New function.
14210 * doc/tm.texi: Regenerate.
14211 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14212 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14213 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14214 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14215
14216 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14217
14218 PR tree-optimization/91504
14219 * match.pd: Add ((~a & b) ^a) --> (a | b).
14220
14221 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14222
14223 PR target/91604
14224 * config/i386/i386-expand.c (split_double_mode): If there is more than
14225 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14226 already split matching MEM operand instead of calling adjust_address
14227 again.
14228
14229 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14230
14231 * config.gcc: Obsolete spu target. Remove references to spu.
14232 * configure.ac: Remove references to spu.
14233 * configure: Regenerate.
14234 * config/spu/: Remove directory.
14235 * common/config/spu/: Remove directory.
14236
14237 * doc/extend.texi: Remove references to spu.
14238 * doc/invoke.texi: Likewise.
14239 * doc/md.texi: Likewise.
14240 * doc/sourcebuild.texi: Likewise.
14241
14242 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14243
14244 PR middle-end/91603
14245 PR middle-end/91612
14246 PR middle-end/91613
14247 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14248 and SSA_NAME referring to CONSTANT_P correctly.
14249
14250 2019-09-03 Richard Biener <rguenther@suse.de>
14251
14252 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14253 (vn_nary_op_insert): Likewise.
14254 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14255 (vn_nary_op_lookup): Likewise.
14256 (vn_nary_op_insert): Likewise.
14257
14258 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14259
14260 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14261 (*op0, 1) instead of XEXP (*op1, 0).
14262
14263 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14264
14265 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14266 (aarch64_fjcvtzs): New define_insn.
14267 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14268 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14269 Add AARCH64_JSCVT.
14270 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14271 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14272 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14273 __ARM_FEATURE_JCVT where appropriate.
14274 * config/aarch64/arm_acle.h (__jcvt): Define.
14275
14276 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14277
14278 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14279 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14280 (aarch64_<frintnzs_op><mode>): New define_insn.
14281 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14282 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14283 __ARM_FEATURE_FRINT when appropriate.
14284 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14285 frint32x, frint64z, frint64x.
14286 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14287 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14288 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14289 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14290 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14291 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14292 * config/aarch64/iterators.md (VSFDF): Define.
14293 (FRINTNZX): Likewise.
14294 (frintnzs_op): Likewise.
14295
14296 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14297
14298 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14299 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14300 Cortex-A34.
14301 * config/aarch64/aarch64-tune.md: Regenerated.
14302 * doc/invoke.texi: Document the new processors.
14303
14304 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14305
14306 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14307 string.
14308 (ssbs): Likewise.
14309 (sve2): Likewise.
14310 (sve2-sm4): Likewise.
14311 (sveaes): Likewise.
14312 (svesha3): Likewise.
14313 (svebitperm): Likewise.
14314
14315 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14316 Richard Biener <rguenther@suse.de>
14317
14318 PR tree-optimization/91597
14319 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14320 BIT_AND_EXPR optimization for pointers, even if both operand
14321 ranges don't include NULL, the result can be NULL.
14322
14323 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14324
14325 PR middle-end/91605
14326 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14327 (non_mem_decl_p): ...this.
14328 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14329 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14330 unconditionally as before.
14331
14332 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14333
14334 PR target/91323
14335 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14336 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14337 * tree.def (LTGT_EXPR): Likewise.
14338 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14339
14340 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14341
14342 PR go/91617
14343 * fold-const.c (range_check_type): For enumeral and boolean
14344 type, pass 1 to type_for_size langhook instead of
14345 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14346 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14347 (build_range_check): Don't call unsigned_type_for for pointer types.
14348 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14349 range_check_type result.
14350
14351 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14352
14353 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14354 (replace_ref): Do not replace a chain of only two candidates which are
14355 valid memory references.
14356
14357 2019-09-02 Martin Liska <mliska@suse.cz>
14358
14359 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14360 Bail out when we'll end up with the same number of clusters as
14361 at the beginning.
14362 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14363 (jump_table_cluster::can_be_handled): Remove the guard
14364 as it's already handled in ::is_enabled. Allocate output
14365 after early bail out.
14366
14367 2019-09-02 Martin Liska <mliska@suse.cz>
14368
14369 PR gcov-profile/91601
14370 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14371 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14372 also negative edges.
14373 (circuit): Handle also negative edges as they can happen
14374 in some situations.
14375
14376 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14377
14378 PR target/91472
14379 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14380 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14381 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14382
14383 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14384
14385 PR middle-end/91623
14386 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14387 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14388 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14389 zero vector.
14390
14391 PR lto/91572
14392 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14393 GIMPLE_ASM TREE_LIST operands.
14394
14395 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14396
14397 * doc/generic.texi (Unary and Binary Expressions): Mark up
14398 an instance of TYPE_MIN.
14399
14400 2019-08-31 Stafford Horne <shorne@gmail.com>
14401
14402 * config/or1k/constraints.md (t): New constraint.
14403 * config/or1k/or1k.h (GOT_REGS): New register class.
14404 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14405
14406 2019-08-30 Jim Wilson <jimw@sifive.com>
14407
14408 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14409 and -fpic and -mplt then disable -msave-restore and warn.
14410
14411 2019-08-30 Martin Sebor <msebor@redhat.com>
14412
14413 PR middle-end/91599
14414 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14415 the statement doesn't have one.
14416 * gimple-pretty-print.c (percent_G_format): Same.
14417
14418 PR middle-end/91584
14419 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14420 before using them to validate MEM_REF offset.
14421
14422 2019-08-30 Marek Polacek <polacek@redhat.com>
14423
14424 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14425
14426 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14427
14428 * config/arm/arm.md (unaligned_loaddi,
14429 unaligned_storedi): New unspec insn patterns.
14430 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14431 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14432 and unaligned_storedi for 4-byte aligned memory.
14433 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14434 4-byte aligned memory.
14435
14436 2019-08-30 Martin Jambor <mjambor@suse.cz>
14437
14438 tree-optimization/91579
14439 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14440 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14441 appropriate.
14442 (arg_needs_copy_p): Removed.
14443 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14444 arg_needs_copy_p.
14445 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14446
14447 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14448
14449 * config/i386/i386-features.c
14450 (general_scalar_chain::compute_convert_gain):
14451 Correct cost for double-word shifts.
14452 (general_scalar_to_vector_candidate_p): Reject count operands
14453 greater or equal to mode bitsize.
14454
14455 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14456
14457 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14458 for moves between SSE and non-general registers and between
14459 mask and non-general registers.
14460 (ix86_register_move_cost): Remove stalled comment.
14461
14462 2019-08-29 Richard Biener <rguenther@suse.de>
14463
14464 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14465 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14466
14467 2019-08-29 Richard Biener <rguenther@suse.de>
14468
14469 PR bootstrap/91580
14470 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14471 Do not emit scalar copies for debug-insns, instead replace
14472 their uses with the reg copy used in the chain or reset them
14473 if there is a reaching definition outside of the chain as well.
14474
14475 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14476
14477 PR target/91560
14478 * config/i386/i386-expand.c (expand_vec_perm_movs,
14479 expand_vec_perm_blend, expand_vec_perm_vpermil,
14480 expand_vec_perm_pshufb, expand_vec_perm_1,
14481 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14482 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14483 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14484 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14485 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14486 comments - replace ix86_expand_vec_perm_builtin_1 with
14487 ix86_expand_vec_perm_const_1.
14488 (expand_vec_perm2_vperm2f128_vblend): New function.
14489 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14490 expand_vec_perm2_vperm2f128_vblend as last resort.
14491 (canonicalize_perm): Formatting fix.
14492
14493 PR tree-optimization/91351
14494 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14495 unsigned_type_for.
14496 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14497 range_check_type returns NULL.
14498 * tree-switch-conversion.c (switch_conversion::build_one_array):
14499 Use range_check_type instead of unsigned_type_for, don't perform
14500 linear opt if it returns NULL.
14501 (bit_test_cluster::find_bit_tests): Formatting fix.
14502 (bit_test_cluster::emit): Use range_check_type instead of
14503 unsigned_type_for.
14504 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14505 returns NULL.
14506
14507 2019-08-29 Richard Biener <rguenther@suse.de>
14508
14509 PR tree-optimization/91568
14510 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14511 (vect_update_max_nunits): Add overload for poly_uint64.
14512 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14513 (vect_build_slp_tree): Record max_nunits into the subtree
14514 and merge it upwards.
14515 (vect_print_slp_tree): Print max_nunits.
14516
14517 2019-08-28 Marek Polacek <polacek@redhat.com>
14518
14519 Implement P1152R4: Deprecating some uses of volatile.
14520 PR c++/91361
14521 * doc/invoke.texi: Document -Wvolatile.
14522
14523 2019-08-28 Marek Polacek <polacek@redhat.com>
14524
14525 PR c++/91360 - Implement C++20 P1143R2: constinit.
14526 * doc/invoke.texi: Document -Wc++20-compat.
14527
14528 2019-08-28 Martin Sebor <msebor@redhat.com>
14529
14530 PR tree-optimization/91457
14531 * builtins.c (component_size): New function.
14532 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14533 * builtins.h (compute_objsize): Add argument.
14534 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14535 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14536 (vrp_prop::check_mem_ref): Same.
14537 (vrp_prop::search_for_addr_array): Set no-warning bit.
14538 (check_array_bounds): Same.
14539
14540 2019-08-28 Martin Sebor <msebor@redhat.com>
14541
14542 PR driver/80545
14543 * opts-common.c (option_enabled): Correct checking for language
14544 options.
14545
14546 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14547
14548 * config/i386/i386.c (ix86_register_move_cost): Do not
14549 limit the cost of moves to/from XMM register to minimum 8.
14550
14551 2019-08-28 Martin Jambor <mjambor@suse.cz>
14552
14553 PR ipa/91468
14554 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14555 checking assert a normal assert to test it really is redundant.
14556 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14557 redundant test.
14558 (update_jump_functions_after_inlining): Removed combining unary
14559 arithmetic operations with an ancestor jump function.
14560 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14561 instead of t.
14562
14563 2019-08-28 Richard Biener <rguenther@suse.de>
14564
14565 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14566 add the MD problem.
14567
14568 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14569 Richard Biener <rguenther@suse.de>
14570
14571 * expr.c (expand_assignment): Handle misaligned DECLs.
14572 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14573 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14574 too.
14575 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14576 * varasm.c (build_constant_desc): Align constants of misaligned types.
14577 * config/arm/predicates.md (aligned_operand): New predicate.
14578 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14579 aligned_operand to check restrictions on memory addresses.
14580 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14581 * config/arm/vec-common.md (mov<VALL>): Likewise.
14582
14583 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14584
14585 PR libgomp/91530
14586 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14587 V_128 iterator instead of VI_128.
14588
14589 2019-08-28 Martin Liska <mliska@suse.cz>
14590
14591 PR tree-optimization/90970
14592 * builtins.c (check_access): Remove assignment to maxread
14593 as it hasn't been used since when it was introduced in r255755.
14594
14595 2019-08-27 Martin Sebor <msebor@redhat.com>
14596
14597 PR tree-optimization/91567
14598 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14599 of unknown strings.
14600 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14601 to PTRDIFF_MAX - 2.
14602
14603 2019-08-27 Jeff Law <law@redhat.com>
14604
14605 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14606 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14607
14608 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14609
14610 PR target/91528
14611 * config/i386/i386-features.c (convert_scalars_to_vector):
14612 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14613 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14614 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14615 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14616
14617 2019-08-27 Richard Biener <rguenther@suse.de>
14618
14619 * config/i386/i386-features.h
14620 (general_scalar_chain::~general_scalar_chain): Add.
14621 (general_scalar_chain::insns_conv): New bitmap.
14622 (general_scalar_chain::n_sse_to_integer): New.
14623 (general_scalar_chain::n_integer_to_sse): Likewise.
14624 (general_scalar_chain::make_vector_copies): Adjust signature.
14625 * config/i386/i386-features.c
14626 (general_scalar_chain::general_scalar_chain): Outline,
14627 initialize new members.
14628 (general_scalar_chain::~general_scalar_chain): New.
14629 (general_scalar_chain::mark_dual_mode_def): Record insns
14630 we need to insert conversions at and count them.
14631 (general_scalar_chain::compute_convert_gain): Account
14632 for conversion instructions at chain boundary.
14633 (general_scalar_chain::make_vector_copies): Generate a single
14634 copy for a def by a specific insn.
14635 (general_scalar_chain::convert_registers): First populate
14636 defs_map, then make copies at out-of chain insns.
14637
14638 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14639
14640 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14641 comment.
14642 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14643
14644 2019-08-27 Martin Liska <mliska@suse.cz>
14645
14646 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14647 loop.
14648 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14649 Enclose in anonymous namespace.
14650 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14651 hard_register initialization in braces.
14652 * tree-vrp.h (value_range_base::supports_type_p): Return false
14653 for function with boolean return type.
14654
14655 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14656
14657 * config/i386/i386.c (emit_i387_cw_initialization)
14658 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14659
14660 2019-08-26 Martin Sebor <msebor@redhat.com>
14661
14662 PR c++/83431
14663 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14664 (sprintf_dom_walker): Remove class.
14665 (get_int_range): Make argument const.
14666 (directive::fmtfunc, directive::set_precision): Same.
14667 (format_none): Same.
14668 (build_intmax_type_nodes): Same.
14669 (adjust_range_for_overflow): Same.
14670 (format_floating): Same.
14671 (format_character): Same.
14672 (format_string): Same.
14673 (format_plain): Same.
14674 (get_int_range): Cast away constness.
14675 (format_integer): Same.
14676 (get_string_length): Call get_range_strlen_dynamic. Handle
14677 null lendata.maxbound.
14678 (should_warn_p): Adjust argument scope qualifier.
14679 (maybe_warn): Same.
14680 (format_directive): Same.
14681 (parse_directive): Same.
14682 (is_call_safe): Same.
14683 (try_substitute_return_value): Same.
14684 (sprintf_dom_walker::handle_printf_call): Rename...
14685 (handle_printf_call): ...to this. Initialize target to host charmap
14686 here instead of in pass_sprintf_length::execute.
14687 (struct call_info): Make global.
14688 (sprintf_dom_walker::compute_format_length): Make global.
14689 (sprintf_dom_walker::handle_gimple_call): Same.
14690 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14691 * print-rtl.c (print_pattern): Reduce the number of spaces to
14692 avoid -Wformat-truncation.
14693 * tree-pass.h (make_pass_warn_printf): New function.
14694 * tree-ssa-strlen.c (strlen_optimize): New variable.
14695 (get_string_length): Add comments.
14696 (get_range_strlen_dynamic): New function.
14697 (check_and_optimize_call): New function.
14698 (handle_integral_assign): New function.
14699 (strlen_check_and_optimize_stmt): Factor code out into
14700 strlen_check_and_optimize_call and handle_integral_assign.
14701 (strlen_dom_walker::evrp): New member.
14702 (strlen_dom_walker::before_dom_children): Use evrp member.
14703 (strlen_dom_walker::after_dom_children): Use evrp member.
14704 (printf_strlen_execute): New function.
14705 (pass_strlen::gate): Update to handle printf calls.
14706 (dump_strlen_info): New function.
14707 (pass_data_warn_printf): New variable.
14708 (pass_warn_printf): New class.
14709 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14710 (handle_printf_call): Same.
14711 * tree-vrp.c (value_range_base::type): Adjust assertion.
14712 * vr-values.c (vr_values::update_value_range): Use type of the first
14713 argument rather than the second.
14714
14715 2019-08-26 Richard Biener <rguenther@suse.de>
14716
14717 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14718 Remove.
14719 (convert_scalars_to_vector): Do not call it.
14720
14721 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14722 Uros Bizjak <ubizjak@gmail.com>
14723
14724 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14725 CASE_MATHFN_FLOATN for roundeven.
14726 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14727 I387_ROUNDEVEN.
14728 (ix86_mode_needed): Likewise.
14729 (ix86_mode_after): Likewise.
14730 (ix86_mode_entry): Likewise.
14731 (ix86_mode_exit): Likewise.
14732 (ix86_emit_mode_set): Likewise.
14733 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14734 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14735 (ix86_entity): Add I387_ROUNDEVEN.
14736 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14737 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14738 (define_int_iterator): Likewise.
14739 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14740 (define_constant): Define ROUND_ROUNDEVEN mode.
14741 (define_attr): Add roundeven mode for i387_cw.
14742 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14743 * internal-fn.def (ROUNDEVEN): New builtin function.
14744 * optabs.def (roundeven_optab): New optab.
14745
14746 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14747
14748 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14749 for ROUNDEVEN.
14750 * builtins.def: Added function definitions for roundeven function
14751 variants.
14752 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14753 function call. Adjust condition for floor, ceil, trunc and round.
14754 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14755 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14756 (integer_valued_real_call_p): Added case for roundeven function.
14757 * real.c (is_even): New function. Returns true if real number is even,
14758 otherwise returns false.
14759 (is_halfway_below): New function. Returns true if real number is
14760 halfway between two integers, else return false.
14761 (real_roundeven): New function. Round real number to nearest integer,
14762 rounding halfway cases towards even.
14763 * real.h (real_value): Added descriptive comments. Added function
14764 declaration for roundeven function.
14765 * doc/extend.texi (Other Builtins): List roundeven variants among
14766 functions which can be handled as builtins.
14767
14768 2019-08-26 Richard Biener <rguenther@suse.de>
14769
14770 PR target/91522
14771 PR target/91527
14772 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14773 New member.
14774 (general_scalar_chain::replace_with_subreg): Remove.
14775 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14776 (general_scalar_chain::convert_reg): Adjust signature.
14777 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14778 iterate over all defs of a reg.
14779 (general_scalar_chain::replace_with_subreg): Remove.
14780 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14781 (general_scalar_chain::make_vector_copies): Populate defs_map,
14782 place copy only after defs that are used as vectors in the chain.
14783 (general_scalar_chain::convert_reg): Emit a copy for a specific
14784 def in a specific instruction.
14785 (general_scalar_chain::convert_op): All reg uses are converted here.
14786 (general_scalar_chain::convert_insn): Emit copies for scalar
14787 uses of defs here. Replace uses with the copies we created.
14788 Replace and convert the def. Adjust REG_DEAD notes, remove
14789 REG_EQUIV/EQUAL notes.
14790 (general_scalar_chain::convert_registers): Only handle copies
14791 into the chain here.
14792
14793 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14794
14795 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14796
14797 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14798
14799 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14800 Add nop_convert case.
14801 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14802 Fold all statements if requested.
14803 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14804 Allow to fold all statements.
14805 * tree-vrp.c (class vrp_folder):
14806 Let substitute_and_fold_engine fold all statements.
14807
14808 2019-08-26 Richard Biener <rguenther@suse.de>
14809
14810 PR tree-optimization/91526
14811 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14812 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14813 TODO_update_address_taken.
14814
14815 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14816
14817 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14818 __STDC_HOSTED__.
14819
14820 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14821
14822 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14823 machine mode for unspec_volatile operand.
14824
14825 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14826
14827 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14828 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14829 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14830 (prefer_neon_for_64bits): Remove.
14831 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14832 (tune_params): Remove PREF_NEON_64_FALSE uses.
14833 (arm_option_override): Remove prefer_neon selection code.
14834 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14835 * config/arm/arm-protos.h (tune_params): Remove
14836 prefer_neon_for_64bits.
14837 (prefer_neon_for_64bits): Remove.
14838
14839 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14840
14841 PR pch/61250
14842 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14843 and issue any diagnostics needed before collecting the pre-PCH
14844 state.
14845
14846 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14847
14848 PR middle-end/91283
14849 * common.opt (fexcess-precision=): Add Optimization flag. Use
14850 flag_excess_precision variable instead of
14851 flag_excess_precision_cmdline.
14852 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14853 member.
14854 (flag_excess_precision): Don't define.
14855 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14856 flag_excess_precision_cmdline. Remove comment.
14857 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14858 and x_flag_excess_precision instead of
14859 frontend_set_flag_excess_precision_cmdline and
14860 x_flag_excess_precision_cmdline.
14861 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14862 x_flag_excess_precision_cmdline.
14863 * toplev.c (init_excess_precision): Remove.
14864 (lang_dependent_init_target): Don't call it.
14865
14866 2019-08-23 Martin Liska <mliska@suse.cz>
14867
14868 * lto-wrapper.c (run_gcc): When setting jobserver
14869 set also parallel to 1. This was done so before r273908.
14870
14871 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14872
14873 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14874 (cortex-a76ae): Likewise.
14875 (cortex-a77): Likewise
14876 * config/arm/arm-tables.opt: Regenerate.
14877 * config/arm/arm-tune.md: Likewise.
14878 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14879 cortex-a77 CPU options.
14880
14881 2019-08-23 Martin Liska <mliska@suse.cz>
14882
14883 * profile.c (instrument_values): Do not set
14884 0 as last argument.
14885 * tree-profile.c (gimple_gen_interval_profiler): Remove
14886 last argument.
14887 (gimple_gen_pow2_profiler): Likewise.
14888 (gimple_gen_topn_values_profiler): Likewise.
14889 (gimple_gen_ic_profiler): Likewise.
14890 (gimple_gen_time_profiler): Likewise.
14891 (gimple_gen_average_profiler): Likewise.
14892 (gimple_gen_ior_profiler): Likewise.
14893 * value-prof.c (dump_histogram_value): Use default
14894 in switch statement instead of HIST_TYPE_MAX.
14895 (stream_in_histogram_value): Likewise.
14896 (gimple_duplicate_stmt_histograms): Do not
14897 use NULL for implicitly set arguments.
14898 (gimple_divmod_values_to_profile): Do not use
14899 reserve+quick_push.
14900 (gimple_indirect_call_to_profile): Likewise.
14901 (gimple_find_values_to_profile): Use implicit
14902 function call arguments.
14903 * value-prof.h (gimple_alloc_histogram_value):
14904 Set default values.
14905 (gimple_gen_interval_profiler): Remove last argument.
14906 (gimple_gen_pow2_profiler): Likewise.
14907 (gimple_gen_topn_values_profiler): Likewise.
14908 (gimple_gen_ic_profiler): Likewise.
14909 (gimple_gen_time_profiler): Likewise.
14910 (gimple_gen_average_profiler): Likewise.
14911 (gimple_gen_ior_profiler): Likewise.
14912
14913 2019-08-22 Martin Sebor <msebor@redhat.com>
14914
14915 PR middle-end/91490
14916 * builtins.c (c_strlen): Rename argument and introduce new local.
14917 Set no-warning bit on original argument.
14918 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14919 Fold empty and zero constructors into empty strings.
14920 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14921 for missing initializers.
14922 * tree.c (build_string_literal): Handle optional argument.
14923 * tree.h (build_string_literal): Add defaulted argument.
14924 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14925 no-warning bit on original expression.
14926
14927 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14928
14929 PR target/91481
14930 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14931 and UNSPEC_DARN_RAW.
14932 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14933 UNSPECV_DARN_RAW.
14934 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14935 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14936 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14937
14938 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14939
14940 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14941 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14942 * config/rs6000/rs6000.md (unspec): ... here.
14943 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14944 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14945 cmpeqb, *cmpeqb_internal): Delete, move to...
14946 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14947 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14948 cmpeqb, *cmpeqb_internal): ... here.
14949
14950 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14951
14952 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14953 intrinsics if __ARM_FP.
14954 Use __ARM_FEATURE_CRC32 ifdef guard.
14955
14956 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14957
14958 * config/arm/arm.md (neon_for_64bits): Remove.
14959 (avoid_neon_for_64bits): Remove.
14960 (arm_adddi3): Always split early.
14961 (arm_subdi3): Always split early.
14962 (negdi2): Remove Neon expansion.
14963 (split zero_extend): Split before reload.
14964 (split sign_extend): Split before reload.
14965
14966 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14967
14968 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14969 (qhs_extenddi_cstr): Likewise.
14970 * config/arm/arm.md (ashldi3): Always expand early.
14971 (ashlsi3): Likewise.
14972 (ashrsi3): Likewise.
14973 (zero_extend<mode>di2): Remove Neon variants.
14974 (extend<mode>di2): Likewise.
14975 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14976 (signed_shift_di3_neon): Likewise.
14977 (unsigned_shift_di3_neon): Likewise.
14978 (ashrdi3_neon_imm_noclobber): Likewise.
14979 (lshrdi3_neon_imm_noclobber): Likewise.
14980 (<shift>di3_neon): Likewise.
14981 (split extend): Remove DI extend split patterns.
14982
14983 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14984
14985 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14986 (split not): Add DImode not splitter.
14987 (anddi3): Remove pattern.
14988 (anddi3_insn): Likewise.
14989 (anddi_zesidi_di): Likewise.
14990 (anddi_sesdi_di): Likewise.
14991 (anddi_notdi_di): Likewise.
14992 (anddi_notzesidi_di): Likewise.
14993 (anddi_notsesidi_di): Likewise.
14994 (iordi3): Likewise.
14995 (iordi3_insn): Likewise.
14996 (iordi_zesidi_di): Likewise.
14997 (iordi_sesidi_di): Likewise.
14998 (xordi3): Likewise.
14999 (xordi3_insn): Likewise.
15000 (xordi_sesidi_di): Likewise.
15001 (xordi_zesidi_di): Likewise.
15002 (one_cmpldi2): Likewise.
15003 (one_cmpldi2_insn): Likewise.
15004 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15005 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15006 alternative.
15007 (iwmmxt_xordi3): Likewise.
15008 (iwmmxt_anddi3): Likewise.
15009 * config/arm/neon.md (orndi3_neon): Remove pattern.
15010 (anddi_notdi_di): Likewise.
15011 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15012 (arm_iordi_operand_neon): Likewise.
15013 (arm_xordi_operand_neon): Likewise.
15014 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15015 (iordi_notzesidi_di): Likewise.
15016 (iordi_notdi_zesidi): Likewise.
15017 (iordi_notsesidi_di): Likewise.
15018
15019 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15020
15021 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15022 insn.
15023 (iorsi3_compare0_scratch): Likewise.
15024
15025 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15026
15027 * config/aarch64/aarch64-simd-builtins.def:
15028 (ld1x4): New.
15029 (st1x4): Likewise.
15030 * config/aarch64/aarch64-simd.md:
15031 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15032 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15033 (aarch64_ld1_x4_<mode>): Likewise.
15034 (aarch64_st1_x4_<mode>): Likewise.
15035 * config/aarch64/arm_neon.h:
15036 (vld1_s8_x4): New function.
15037 (vld1q_s8_x4): Likewise.
15038 (vld1_s16_x4): Likewise.
15039 (vld1q_s16_x4): Likewise.
15040 (vld1_s32_x4): Likewise.
15041 (vld1q_s32_x4): Likewise.
15042 (vld1_u8_x4): Likewise.
15043 (vld1q_u8_x4): Likewise.
15044 (vld1_u16_x4): Likewise.
15045 (vld1q_u16_x4): Likewise.
15046 (vld1_u32_x4): Likewise.
15047 (vld1q_u32_x4): Likewise.
15048 (vld1_f16_x4): Likewise.
15049 (vld1q_f16_x4): Likewise.
15050 (vld1_f32_x4): Likewise.
15051 (vld1q_f32_x4): Likewise.
15052 (vld1_p8_x4): Likewise.
15053 (vld1q_p8_x4): Likewise.
15054 (vld1_p16_x4): Likewise.
15055 (vld1q_p16_x4): Likewise.
15056 (vld1_s64_x4): Likewise.
15057 (vld1_u64_x4): Likewise.
15058 (vld1_p64_x4): Likewise.
15059 (vld1q_s64_x4): Likewise.
15060 (vld1q_u64_x4): Likewise.
15061 (vld1q_p64_x4): Likewise.
15062 (vld1_f64_x4): Likewise.
15063 (vld1q_f64_x4): Likewise.
15064 (vst1_s8_x4): Likewise.
15065 (vst1q_s8_x4): Likewise.
15066 (vst1_s16_x4): Likewise.
15067 (vst1q_s16_x4): Likewise.
15068 (vst1_s32_x4): Likewise.
15069 (vst1q_s32_x4): Likewise.
15070 (vst1_u8_x4): Likewise.
15071 (vst1q_u8_x4): Likewise.
15072 (vst1_u16_x4): Likewise.
15073 (vst1q_u16_x4): Likewise.
15074 (vst1_u32_x4): Likewise.
15075 (vst1q_u32_x4): Likewise.
15076 (vst1_f16_x4): Likewise.
15077 (vst1q_f16_x4): Likewise.
15078 (vst1_f32_x4): Likewise.
15079 (vst1q_f32_x4): Likewise.
15080 (vst1_p8_x4): Likewise.
15081 (vst1q_p8_x4): Likewise.
15082 (vst1_p16_x4): Likewise.
15083 (vst1q_p16_x4): Likewise.
15084 (vst1_s64_x4): Likewise.
15085 (vst1_u64_x4): Likewise.
15086 (vst1_p64_x4): Likewise.
15087 (vst1q_s64_x4): Likewise.
15088 (vst1q_u64_x4): Likewise.
15089 (vst1q_p64_x4): Likewise.
15090 (vst1_f64_x4): Likewise.
15091 (vst1q_f64_x4): Likewise.
15092
15093 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15094
15095 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15096
15097 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15098 Richard Sandiford <richard.sandiford@arm.com>
15099
15100 PR target/88839
15101 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15102 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15103
15104 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15105
15106 PR target/90724
15107 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15108 in reg if it fails aarch64_plus_operand predicate.
15109
15110 2019-08-21 Richard Biener <rguenther@suse.de>
15111
15112 PR tree-optimization/91482
15113 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15114 BUILT_IN_ASSUME_ALIGNED calls.
15115
15116 2019-08-21 Richard Biener <rguenther@suse.de>
15117
15118 PR target/91498
15119 PR target/91503
15120 * config/i386/i386-features.c
15121 (general_scalar_chain::make_vector_copies): Copy stack temporary
15122 rtx when using it multiple times.
15123 (general_scalar_chain::convert_reg): Likewise.
15124
15125 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15126
15127 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15128
15129 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15130
15131 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15132 catch more redundant zero initialization cases.
15133 (dse_dom_walker::dse_optimize_stmt): Likewise.
15134
15135 2019-08-20 Richard Biener <rguenther@suse.de>
15136
15137 PR lto/91307
15138 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15139 by collect2 when targetm.have_ctors_dtors which avoids dragging
15140 in temporary filenames from LTO input objects.
15141
15142 2019-08-20 Richard Biener <rguenther@suse.de>
15143
15144 PR tree-optimization/37242
15145 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15146 to (T)a + (T)b if we know that a + b does not overflow.
15147
15148 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15149
15150 PR rtl-optimization/91347
15151 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15152 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15153
15154 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15155
15156 * calls.h (function_arg_info): Add a pass_by_reference field,
15157 defaulting to false.
15158 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15159 when applying pass-by-reference semantics.
15160 (initialize_argument_information): Likewise.
15161 (emit_library_call_value_1): Likewise.
15162 * function.c (assign_parm_data_one): Remove passed_pointer field.
15163 (assign_parm_find_data_types): Don't set it.
15164 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15165 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15166 arg.pass_by_reference instead of passed_pointer.
15167
15168 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15169
15170 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15171 into a single function_arg_info, updating its fields when we
15172 apply pass-by-reference and promotion semantics. Use the
15173 function_arg_info to track the mode rather than keeping it in
15174 a separate local variable.
15175 (initialize_argument_information): Likewise. Base the final
15176 arg_to_skip on this new function_arg_info rather than creating
15177 a new one from scratch.
15178
15179 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15180
15181 * function.c (assign_parm_data_one): Replace passed_type,
15182 promoted_mode and named_arg with a function_arg_info field.
15183 (assign_parm_find_data_types): Remove local variables and
15184 assign directly to "data". Make data->passed_mode shadow
15185 data->arg.mode until promotion, then assign the promoted
15186 mode to data->arg.mode.
15187 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15188 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15189 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15190 (assign_parm_setup_block, assign_parm_setup_reg)
15191 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15192 arg.mode instead of promoted_mode, arg.type instead of passed_type
15193 and arg.named instead of named_arg. Use data->arg for
15194 function_arg_info structures that had the field values passed_type,
15195 promoted_mode and named_arg. Base other function_arg_infos on
15196 data->arg, changing the necessary properties.
15197
15198 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15199
15200 * calls.h (apply_pass_by_reference_rules): Declare.
15201 * calls.c (apply_pass_by_reference_rules): New function.
15202 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15203 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15204 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15205 * function.c (assign_parm_find_data_types): Likewise.
15206 * var-tracking.c (prepare_call_arguments): Likewise.
15207
15208 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15209
15210 * target.def (must_pass_in_stack): Take a function_arg_info instead
15211 of a mode and a type.
15212 * doc/tm.texi: Regenerate.
15213 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15214 instead of a mode and a type.
15215 (must_pass_in_stack_var_size_or_pad): Likewise.
15216 * calls.c (must_pass_in_stack_var_size): Likewise.
15217 (must_pass_in_stack_var_size_or_pad): Likewise.
15218 (initialize_argument_information): Update call to
15219 targetm.calls.must_pass_in_stack.
15220 (must_pass_va_arg_on_stack): Likewise.
15221 * function.c (assign_parm_find_entry_rtl): Likewise.
15222 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15223 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15224 (alpha_function_arg_advance): Likewise.
15225 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15226 (cr16_function_arg_advance): Likewise.
15227 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15228 (cris_arg_partial_bytes): Likewise.
15229 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15230 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15231 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15232 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15233 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15234 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15235 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15236 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15237 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15238 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15239 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15240 instead of a mode and a type.
15241 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15242 (fr30_num_arg_regs): Likewise.
15243 (fr30_setup_incoming_varargs): Update calls accordingly.
15244 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15245 (fr30_function_arg_advance): Likewise.
15246 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15247 instead of a mode and a type.
15248 * config/gcn/gcn.c (num_arg_regs): Likewise.
15249 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15250 num_arg_regs and targetm.calls.must_pass_in_stack.
15251 (gcn_arg_partial_bytes): Likewise.
15252 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15253 function_arg_info instead of a mode and a type.
15254 (classify_argument): Update call accordingly.
15255 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15256 function_arg_info instead of a mode and a type.
15257 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15258 Likewise.
15259 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15260 (rs6000_parm_needs_stack): Update call accordingly.
15261 (setup_incoming_varargs): Likewise.
15262
15263 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15264
15265 * target.def (callee_copies): Take a function_arg_info instead
15266 of a mode, type and named flag.
15267 * doc/tm.texi: Regenerate.
15268 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15269 instead of a mode, type and named flag.
15270 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15271 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15272 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15273 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15274 instead of a mode, type and named flag.
15275 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15276 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15277 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15278 * calls.h (reference_callee_copied): Take a function_arg_info
15279 instead of a mode, type and named flag.
15280 * calls.c (reference_callee_copied): Likewise.
15281 (initialize_argument_information): Update call accordingly.
15282 (emit_library_call_value_1): Likewise.
15283 * function.c (gimplify_parameters): Likewise.
15284 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15285 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15286 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15287 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15288 (TARGET_CALLEE_COPIES): Define to
15289 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15290 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15291 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15292 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15293 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15294 instead of a mode, type and named flag.
15295 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15296 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15297 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15298 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15299 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15300 (TARGET_CALLEE_COPIES): Define to
15301 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15302 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15303 instead of a mode, type and named flag.
15304 * config/sh/sh.c (sh_callee_copies): Likewise.
15305 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15306 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15307 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15308
15309 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15310
15311 * target.def (function_arg_advance): Take a function_arg_info instead
15312 of a mode, type and named flag.
15313 * doc/tm.texi: Regenerate.
15314 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15315 instead of a mode, type and named flag.
15316 * targhooks.c (default_function_arg_advance): Likewise.
15317 * calls.c (initialize_argument_information): Update call to
15318 targetm.calls.function_arg_advance.
15319 (emit_library_call_value_1): Likewise.
15320 * dse.c (get_call_args): Likewise.
15321 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15322 * function.c (assign_parms, gimplify_parameters): Likewise.
15323 * var-tracking.c (prepare_call_arguments): Likewise.
15324 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15325 function_arg_info instead of a mode, type and named flag.
15326 (aarch64_setup_incoming_varargs): Update call accordingly.
15327 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15328 function_arg_info instead of a mode, type and named flag.
15329 (alpha_setup_incoming_varargs): Update call accordingly.
15330 * config/arc/arc.c (arc_function_arg_advance): Take a
15331 function_arg_info instead of a mode, type and named flag.
15332 (arc_setup_incoming_varargs): Update call accordingly.
15333 * config/arm/arm.c (arm_function_arg_advance): Take a
15334 function_arg_info instead of a mode, type and named flag.
15335 (cmse_func_args_or_return_in_stack): Update call accordingly.
15336 (arm_function_ok_for_sibcall): Likewise.
15337 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15338 * config/avr/avr.c (avr_function_arg_advance): Take a
15339 function_arg_info instead of a mode, type and named flag.
15340 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15341 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15342 (c6x_call_saved_register_used): Update call accordingly.
15343 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15344 function_arg_info instead of a mode, type and named flag.
15345 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15346 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15347 (csky_setup_incoming_varargs): Update call accordingly.
15348 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15349 function_arg_info instead of a mode, type and named flag.
15350 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15351 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15352 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15353 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15354 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15355 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15356 (ix86_setup_incoming_varargs): Update call accordingly.
15357 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15358 function_arg_info instead of a mode, type and named flag.
15359 (ia64_setup_incoming_varargs): Update call accordingly.
15360 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15361 function_arg_info instead of a mode, type and named flag.
15362 (iq2000_expand_prologue): Update call accordingly.
15363 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15364 function_arg_info instead of a mode, type and named flag.
15365 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15366 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15367 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15368 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15369 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15370 Likewise.
15371 (microblaze_expand_prologue): Update call accordingly.
15372 * config/mips/mips.c (mips_function_arg_advance): Take a
15373 function_arg_info instead of a mode, type and named flag.
15374 (mips_setup_incoming_varargs): Update call accordingly.
15375 (mips_output_args_xfer): Likewise.
15376 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15377 function_arg_info instead of a mode, type and named flag.
15378 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15379 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15380 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15381 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15382 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15383 (nios2_setup_incoming_varargs): Update call accordingly.
15384 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15385 function_arg_info instead of a mode, type and named flag.
15386 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15387 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15388 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15389 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15390 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15391 (riscv_setup_incoming_varargs): Update call accordingly.
15392 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15393 function_arg_info instead of a mode, type and named flag.
15394 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15395 Likewise.
15396 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15397 (rs6000_parm_needs_stack): Update call accordingly.
15398 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15399 instead of a mode, type and named flag.
15400 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15401 (s390_call_saved_register_used): Update call accordingly.
15402 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15403 instead of a mode, type and named flag.
15404 (sh_output_mi_thunk): Update call accordingly.
15405 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15406 function_arg_info instead of a mode, type and named flag.
15407 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15408 (spu_setup_incoming_varargs): Update call accordingly.
15409 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15410 function_arg_info instead of a mode, type and named flag.
15411 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15412 (tilegx_setup_incoming_varargs): Update call accordingly.
15413 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15414 function_arg_info instead of a mode, type and named flag.
15415 (tilegx_setup_incoming_varargs): Update call accordingly.
15416 * config/v850/v850.c (v850_function_arg_advance): Take a
15417 function_arg_info instead of a mode, type and named flag.
15418 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15419 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15420 (visium_setup_incoming_varargs): Update call accordingly.
15421 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15422 function_arg_info instead of a mode, type and named flag.
15423
15424 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15425
15426 * target.def (function_arg, function_incoming_arg): Take a
15427 function_arg_info instead of a mode, tree and named flag.
15428 * doc/tm.texi: Regenerate.
15429 * targhooks.h (default_function_arg): Take a function_arg_info
15430 instead of a mode, tree and named flag.
15431 (default_function_incoming_arg): Likewise.
15432 * targhooks.c (default_function_arg): Likewise.
15433 (default_function_incoming_arg): Likewise.
15434 * calls.h (function_arg_info::end_marker_p): New function.
15435 (function_arg_info::end_marker): Likewise.
15436 * calls.c (prepare_call_address, initialize_argument_information)
15437 (expand_call, emit_library_call_value_1): Update calls to
15438 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15439 * dse.c: Include calls.h.
15440 (get_call_args): Update call to targetm.calls.function_arg.
15441 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15442 * var-tracking.c (prepare_call_arguments): Likewise.
15443 * function.c (assign_parm_find_entry_rtl): Update call to
15444 targetm.calls.function_incoming_arg.
15445 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15446 function_arg_info instead of a mode, tree and named flag.
15447 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15448 * config/arc/arc.c (arc_function_arg): Likewise.
15449 * config/arm/arm.c (arm_function_arg): Likewise.
15450 (cmse_func_args_or_return_in_stack): Update call accordingly.
15451 (arm_function_ok_for_sibcall): Likewise.
15452 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15453 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15454 instead of a mode, tree and named flag.
15455 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15456 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15457 (c6x_call_saved_register_used): Update call accordingly.
15458 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15459 instead of a mode, tree and named flag.
15460 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15461 (cris_function_arg_1): Likewise.
15462 * config/csky/csky.c (csky_function_arg): Likewise.
15463 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15464 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15465 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15466 (frv_function_arg_1): Likewise.
15467 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15468 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15469 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15470 * config/i386/i386.c (ix86_function_arg): Likewise.
15471 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15472 (ia64_function_arg_1): Likewise.
15473 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15474 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15475 accordingly.
15476 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15477 instead of a mode, tree and named flag.
15478 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15479 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15480 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15481 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15482 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15483 (microblaze_expand_prologue): Update call accordingly.
15484 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15485 instead of a mode, tree and named flag.
15486 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15487 (mmix_function_arg_1): Likewise.
15488 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15489 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15490 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15491 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15492 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15493 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15494 (nvptx_function_incoming_arg): Likewise.
15495 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15496 * config/pa/pa.c (pa_function_arg): Likewise.
15497 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15498 * config/pru/pru.c (pru_function_arg): Likewise.
15499 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15500 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15501 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15502 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15503 (rs6000_parm_needs_stack): Update call accordingly.
15504 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15505 instead of a mode, tree and named flag.
15506 * config/s390/s390.c (s390_function_arg): Likewise.
15507 (s390_call_saved_register_used): Update call accordingly.
15508 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15509 instead of a mode, tree and named flag.
15510 (sh_output_mi_thunk): Update call accordingly.
15511 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15512 (sparc_function_incoming_arg): Take a function_arg_info instead of
15513 a mode, tree and named flag.
15514 * config/spu/spu.c (spu_function_arg): Likewise.
15515 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15516 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15517 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15518 * config/v850/v850.c (v850_function_arg): Likewise.
15519 * config/vax/vax.c (vax_function_arg): Likewise.
15520 * config/visium/visium.c (visium_function_arg): Likewise.
15521 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15522 (xtensa_function_incoming_arg): Likewise.
15523
15524 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15525
15526 * target.def (setup_incoming_varargs): Take a function_arg_info
15527 instead of a mode and tree.
15528 * doc/tm.texi: Regenerate.
15529 * targhooks.h (default_setup_incoming_varargs): Take a
15530 function_arg_info instead of a mode and tree.
15531 * targhooks.c (default_setup_incoming_varargs): Likewise.
15532 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15533 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15534 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15535 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15536 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15537 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15538 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15539 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15540 Likewise.
15541 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15542 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15543 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15544 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15545 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15546 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15547 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15548 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15549 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15550 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15551 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15552 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15553 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15554 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15555 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15556 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15557 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15558 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15559 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15560 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15561 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15562 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15563 * function.c (assign_parms_setup_varargs): Update call to
15564 targetm.calls.setup_incoming_varargs.
15565
15566 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15567
15568 * target.def (pass_by_reference): Take a function_arg_info instead
15569 of a mode, type and named flag.
15570 * doc/tm.texi: Regenerate.
15571 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15572 accordingly.
15573 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15574 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15575 function_arg_info instead of a mode, type and named flag.
15576 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15577 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15578 mode, type and named flag.
15579 * calls.c (pass_by_reference): Likewise.
15580 (pass_va_arg_by_reference): Update call accordingly.
15581 (initialize_argument_information): Likewise.
15582 (emit_library_call_value_1): Likewise.
15583 * function.c (assign_parm_find_data_types): Likewise.
15584 * var-tracking.c (prepare_call_arguments): Likewise.
15585 * stor-layout.c: Include calls.h.
15586 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15587 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15588 function_arg_info instead of a mode, type and named flag.
15589 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15590 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15591 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15592 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15593 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15594 (c6x_call_saved_register_used): Update call to pass_by_reference.
15595 * config/cris/cris.c (cris_pass_by_reference): Take a
15596 function_arg_info instead of a mode, type and named flag.
15597 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15598 function_arg_info instead of a mode, type and named flag.
15599 (epiphany_arg_partial_bytes): Update call accordingly.
15600 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15601 function_arg_info instead of a mode, type and named flag.
15602 (ft32_arg_partial_bytes): Update call accordingly.
15603 * config/i386/i386.c (ix86_pass_by_reference): Take a
15604 function_arg_info instead of a mode, type and named flag.
15605 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15606 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15607 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15608 (m32r_return_in_memory): Update call accordingly.
15609 * config/mips/mips.c (mips_pass_by_reference): Take a
15610 function_arg_info instead of a mode, type and named flag.
15611 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15612 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15613 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15614 (moxie_arg_partial_bytes): Update call accordingly.
15615 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15616 function_arg_info instead of a mode, type and named flag.
15617 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15618 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15619 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15620 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15621 (riscv_return_in_memory): Update call accordingly.
15622 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15623 function_arg_info instead of a mode, type and named flag.
15624 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15625 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15626 * config/s390/s390.c (s390_pass_by_reference): Take a
15627 function_arg_info instead of a mode, type and named flag.
15628 (s390_call_saved_register_used): Update call accordingly.
15629 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15630 instead of a mode, type and named flag.
15631 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15632 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15633 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15634 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15635 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15636 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15637
15638 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15639
15640 * target.def (arg_partial_bytes): Take a function_arg_info instead
15641 of a mode, type and named flag.
15642 * doc/tm.texi: Regenerate.
15643 * target.h (function_arg_info): Declare.
15644 * calls.h (function_arg_info): New class.
15645 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15646 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15647 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15648 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15649 * calls.c (initialize_argument_information): Update call to
15650 targetm.calls.partial_bytes.
15651 (emit_library_call_value_1): Likewise.
15652 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15653 * function.c (assign_parm_find_entry_rtl): Likewise.
15654 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15655 function_arg_info instead of a mode, type and named flag.
15656 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15657 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15658 (cmse_func_args_or_return_in_stack): Update accordingly.
15659 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15660 function_arg_info instead of a mode, type and named flag.
15661 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15662 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15663 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15664 * config/fr30/fr30.c: Include calls.h.
15665 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15666 type and named flag.
15667 * config/frv/frv.c: Include calls.h.
15668 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15669 type and named flag.
15670 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15671 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15672 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15673 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15674 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15675 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15676 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15677 Likewise.
15678 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15679 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15680 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15681 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15682 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15683 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15684 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15685 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15686 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15687 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15688 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15689 (rs6000_parm_needs_stack): Update call accordingly.
15690 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15691 function_arg_info instead of a mode, type and named flag.
15692 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15693 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15694
15695 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15696
15697 * calls.h (must_pass_va_arg_in_stack): Declare.
15698 * calls.c (must_pass_va_arg_in_stack): New function.
15699 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15700 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15701 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15702 Likewise.
15703 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15704
15705 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15706
15707 * calls.h (pass_va_arg_by_reference): Declare.
15708 * calls.c (pass_va_arg_by_reference): New function.
15709 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15710 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15711 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15712 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15713 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15714 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15715 (mips_gimplify_va_arg_expr): Likewise.
15716 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15717 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15718 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15719 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15720 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15721 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15722 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15723 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15724 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15725 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15726 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15727
15728 2019-08-20 Richard Biener <rguenther@suse.de>
15729
15730 PR target/91498
15731 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15732 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15733 (convert_scalars_to_vector): Add timode_p parameter and use it
15734 to guard TImode-only operation.
15735 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15736 (pass_stv::execute): Pass down timode_p.
15737
15738 2019-08-20 Lili Cui <lili.cui@intel.com>
15739
15740 * common/config/i386/i386-common.c
15741 (processor_names): Add tigerlake and cooperlake.
15742 (processor_alias_table): Add tigerlake and cooperlake.
15743 * config.gcc: Add -march=tigerlake and cooperlake.
15744 * config/i386/driver-i386.c
15745 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15746 Add "has_avx" to classify processor.
15747 * config/i386/i386-builtins.c (processor_model) :
15748 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15749 (arch_names_table): Add tigerlake and cooperlake.
15750 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15751 and PROCESSOR_COOPERLAKE.
15752 * config/i386/i386-c.c
15753 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15754 * config/i386/i386-options.c
15755 (m_TIGERLAKE): Define.
15756 (m_COOPERLAKE): Ditto.
15757 (m_CORE_AVX512): Ditto.
15758 (processor_cost_table): Add cascadelake.
15759 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15760 * config/i386/i386.h
15761 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15762 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15763 (PTA_MOVDIRI): Ditto.
15764 (PTA_MOVDIR64B): Ditto.
15765 (PTA_COOPERLAKE): Ditto.
15766 (PTA_TIGERLAKE): Ditto.
15767 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15768 * doc/extend.texi: Add tigerlake and cooperlake.
15769 * doc/invoke.texi: Add tigerlake and cooperlake.
15770
15771 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15772
15773 * doc/install.texi (Specific, alpha): Remove note to use
15774 binutils 2.11.2 or later.
15775
15776 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15777
15778 PR middle-end/89544
15779 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15780 when possible.
15781
15782 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15783
15784 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15785 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15786 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15787 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15788 * config/aarch64/constraints.md (Dt): New constraint
15789 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15790
15791 2019-08-19 Richard Biener <rguenther@suse.de>
15792
15793 PR tree-optimization/91403
15794 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15795 cases we can handle with tail-recursion...
15796 (follow_ssa_edge_expr): ... here. Do so.
15797
15798 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15799
15800 PR target/91441
15801 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15802 implemented for -fsanitize=kernel-address, and merge check logic
15803 with -fsanitize=address.
15804
15805 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15806
15807 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15808 for cpu and machine. Factor 64/32b builtins.
15809
15810 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15811
15812 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15813 gone, point to sourceforge.net.
15814
15815 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15816
15817 * doc/ux.texi (User Experience Guidelines): Update reference.
15818
15819 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15820
15821 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15822 not LGPL".
15823
15824 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15825
15826 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15827 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15828
15829 2019-08-16 Martin Sebor <msebor@redhat.com>
15830
15831 * tree.def (TYPE_SIZE): Clarify.
15832 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15833
15834 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15835
15836 PR tree-optimization/91109
15837 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15838 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15839 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15840
15841 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15842
15843 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15844 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15845 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15846 (uavg<mode>3_ceil): New expander.
15847 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15848 mode iterator when creating CONST1_RTX.
15849 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15850 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15851 mode iterator for const1_operand predicate.
15852
15853 2019-08-16 Richard Biener <rguenther@suse.de>
15854
15855 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15856 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15857 follow_ssa_edge.
15858 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15859 (analyze_evolution_in_loop): Likewise.
15860 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15861 (follow_ssa_edge_expr): ... here. Refactor code.
15862
15863 2019-08-16 Richard Biener <rguenther@suse.de>
15864
15865 PR target/91469
15866 * config/i386/i386-features.c
15867 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15868
15869 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15870
15871 PR other/91255
15872 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15873 only if subst_name matches curr_attr string.
15874
15875 2019-08-16 Richard Biener <rguenther@suse.de>
15876
15877 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15878 stmt at gsi_p, instead replace it with a NOP removed later.
15879 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15880 that became dead because of that.
15881
15882 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15883
15884 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15885 for which we can't represent a range.
15886 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15887 set_varying.
15888 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15889 Set VR_UNDEFINED if type is not supported.
15890 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15891 * tree-vrp.c (value_range_base::check): Assert that a varying has
15892 min/max set.
15893 (value_range_base::equal_p): Early bail for undefines.
15894 (value_range_base::set_varying): Accept a type.
15895 (value_range::set_varying): Same.
15896 (value_range_base::type): VARYING can have a type, while UNDEFINE
15897 is typeless.
15898 (value_range_base::dump): Print type for VARYING nodes.
15899 (value_range_base::set): Add type to VARYING.
15900 (extract_range_from_multiplicative_op): Pass type to set_varying.
15901 (extract_range_from_binary_expr): Same.
15902 (value_range_base::intersect_helper): Same.
15903 (value_range_base::union_helper): Same.
15904 (value_range_base::normalize_symbolics): Same.
15905 (determine_value_range_1): Same.
15906 * tree-vrp.h (class value_range_base): Add type to set_varying.
15907 Add prototype for dump(void).
15908 Add prototype for supports_type_p.
15909 (class value_range): Add type to set_varying.
15910 Add prototype for dump(void).
15911 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15912 set_varying.
15913 (vr_values::get_lattice_entry): Set varying even if propagation
15914 finished.
15915 Pass type to set_varying.
15916 (vr_values::get_value_range): Remove vr_const_varying.
15917 Reallocate the lattice if needed.
15918 (vr_values::update_value_range): Pass type to set_varying.
15919 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15920 (vr_values::extract_range_from_binary_expr): Same.
15921 (vr_values::extract_range_from_unary_expr): Same.
15922 (vr_values::extract_range_from_cond_expr): Same.
15923 (vr_values::check_for_binary_op_overflow): Same.
15924 (vr_values::extract_range_basic): Same.
15925 (vr_values::extract_range_from_assignment): Same.
15926 (vr_values::vr_values): Increase size of num_vr_values.
15927 (vr_values::extract_range_from_phi_node): Pass type to
15928 set_varying.
15929
15930 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15931
15932 PR target/90878
15933 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15934 for costs of hard register moves.
15935 (ix86_register_move_cost): Likewise.
15936 * config/i386/i386.h (processor_costs): Move costs of hard
15937 register moves to hard_register. Add int_load, int_store,
15938 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15939 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15940 for costs of RTL expressions.
15941 * config/i386/x86-tune-costs.h: Move costs of hard register
15942 moves to hard_register. Duplicate int_load, int_store,
15943 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15944 sse_load, sse_store for costs of RTL expressions.
15945
15946 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15947
15948 * target.def (setup_incoming_vararg_bounds): Remove.
15949 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15950 * doc/tm.texi: Regenerate.
15951 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15952 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15953 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15954 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15955
15956 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15957
15958 MSP430: Fix lines over 80 characters long in
15959 config/msp430/*.{c,h} files
15960
15961 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15962 specifier in string.
15963 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15964 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15965 redundant old comment.
15966 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15967 Split line more than 80 characters long.
15968 * config/msp430/msp430.c (msp430_option_override): Likewise.
15969 (msp430_return_in_memory): Likewise.
15970 (msp430_gimplify_va_arg_expr): Likewise.
15971 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15972 (msp430_legitimate_constant): Likewise.
15973 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15974 (msp430_attr): Likewise.
15975 (msp430_data_attr): Likewise.
15976 (msp430_start_function): Likewise.
15977 (gen_prefix): Likewise.
15978 (msp430_init_sections): Likewise.
15979 (msp430_select_section): Likewise.
15980 (msp430_function_section): Likewise.
15981 (msp430_unique_section): Likewise.
15982 (msp430_output_aligned_decl_common): Likewise.
15983 (msp430_do_not_relax_short_jumps): Likewise.
15984 (msp430_init_builtins): Likewise.
15985 (msp430_expand_delay_cycles): Likewise.
15986 (msp430_expand_prologue): Likewise.
15987 (msp430_expand_epilogue): Likewise.
15988 (msp430_expand_helper): Likewise.
15989 (msp430_split_movsi): Likewise.
15990 (msp430_print_operand): Likewise.
15991 (msp430_return_addr_rtx): Likewise.
15992 (msp430x_extendhisi): Likewise.
15993 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15994 (ASM_SPEC): Likewise.
15995 Remove very obvious comments.
15996 (LIB_SPEC): Split line more than 80 characters long.
15997 (EH_RETURN_HANDLER_RTX): Likewise.
15998 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15999
16000 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16001
16002 MSP430: Fix whitespace errors and incorrect indentation in
16003 config/msp430/*.{c,h} files
16004
16005 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16006 (msp430_select_hwmult_lib): Likewise.
16007 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16008 (msp430_extract_mcu_data): Likewise.
16009 (struct t_msp430_mcu_data): Likewise.
16010 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16011 before left square bracket.
16012 (msp430_option_override): Fix indentation.
16013 (msp430_hard_regno_nregs_with_padding): Likewise.
16014 (msp430_initial_elimination_offset): Likewise.
16015 (msp430_special_register_convention_p): Remove whitespace before left
16016 square bracket and after exclamation mark.
16017 (msp430_evaluate_arg): Likewise.
16018 (msp430_callee_copies): Fix indentation.
16019 (msp430_gimplify_va_arg_expr): Likewise.
16020 (msp430_function_arg_advance): Remove whitespace before left square
16021 bracket.
16022 (reg_ok_for_addr): Likewise.
16023 (msp430_preserve_reg_p): Likewise.
16024 (msp430_compute_frame_info): Likewise.
16025 (msp430_asm_output_addr_const_extra): Add space between function name
16026 and open parenthesis.
16027 (has_section_name): Fix indentation.
16028 (msp430_attr): Remove trailing whitespace.
16029 (msp430_section_attr): Likewise.
16030 (msp430_data_attr): Likewise.
16031 (struct msp430_attribute_table): Fix comment and whitespace.
16032 (msp430_start_function): Remove whitespace before left square bracket.
16033 Add space between function name and open parenthesis.
16034 (msp430_select_section): Remove trailing whitespace.
16035 (msp430_section_type_flags): Remove trailing whitespace.
16036 (msp430_unique_section): Remove space before closing parenthesis.
16037 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16038 (msp430_builtins): Remove whitespace before left square bracket.
16039 (msp430_init_builtins): Fix indentation.
16040 (msp430_expand_prologue): Remove whitespace before left square bracket.
16041 Remove space before closing parenthesis.
16042 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16043 (msp430_split_movsi): Remove space before closing parenthesis.
16044 (helper_function_name_mappings): Fix indentation.
16045 (msp430_use_f5_series_hwmult): Fix whitespace.
16046 (use_32bit_hwmult): Likewise.
16047 (msp430_no_hwmult): Likewise.
16048 (msp430_output_labelref): Remove whitespace before left square bracket.
16049 (msp430_print_operand_raw): Likewise.
16050 (msp430_print_operand_addr): Likewise.
16051 (msp430_print_operand): Add two spaces after '.' in comment.
16052 Fix trailing whitespace.
16053 (msp430x_extendhisi): Fix indentation.
16054 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16055 tab.
16056 (PC_REGNUM): Likewise.
16057 (STACK_POINTER_REGNUM): Likewise.
16058 (CC_REGNUM): Likewise.
16059
16060 2019-08-15 Richard Biener <rguenther@suse.de>
16061
16062 PR target/91454
16063 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16064 helper.
16065 (general_scalar_chain::make_vector_copies): Use it.
16066
16067 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16068
16069 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16070
16071 2019-08-15 Martin Liska <mliska@suse.cz>
16072
16073 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16074 operators with no arguments.
16075 (eliminate_unnecessary_stmts): Likewise here.
16076
16077 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16078
16079 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16080 <case COMPARE>: Revert 2019-08-14 change.
16081 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16082 for (TARGET_64BIT || mode != DImode).
16083
16084 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16085
16086 * tree-vrp.c (value_range_base::set): Merge in code from
16087 value_range_base::set_and_canonicalize.
16088 Enforce canonicalization at set time.
16089 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16090 (value_range_base::set_undefined): Inline call to set().
16091 (value_range_base::set_varying): Same.
16092 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16093 (vrp_val_max): New argument handle_pointers.
16094 (vrp_val_min): Same.
16095 (ranges_from_anti_range): Same.
16096 (extract_range_into_wide_ints): Use tree argument instead of sign
16097 and precision.
16098 (extract_range_from_multiplicative_op): Take in tree type instead
16099 of precision and sign. Adapt function for canonicalized ranges.
16100 (extract_range_from_binary_expr): Pass type to
16101 extract_range_from_multiplicative_op.
16102 Adapt for canonicalized ranges.
16103 (extract_range_from_unary_expr): Same.
16104 (value_range_base::intersect_helper): Adjust for canonicalized
16105 ranges.
16106 (value_range_base::union_helper): Same.
16107 (value_range_base::normalize_symbolics): New.
16108 * tree-vrp.h (class value_range_base): Remove
16109 set_and_canonicalize.
16110 New prototype for normalize_symbolics.
16111 (class value_range): Remove set_and_canonicalize.
16112 (vrp_val_min): Adjust prototype.
16113 (vrp_val_max): Same.
16114 * vr-values.c
16115 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16116 instead of set_and_canonicalize.
16117
16118 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16119
16120 PR middle-end/91444
16121 * tree-vect-stmts.c (vectorizable_call): Check that the function
16122 is a BUILT_IN_MD function before passing it to
16123 targetm.vectorize.builtin_md_vectorized_function.
16124
16125 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16126
16127 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16128 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16129 (aarch64_select_early_remat_modes): Use it.
16130
16131 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16132
16133 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16134 16 for SVE predicates even if they are fixed-length.
16135
16136 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16137
16138 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16139 operand order match the MOV /Z alias.
16140
16141 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16142
16143 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16144 the vector pattern as an aarch64_svpattern argument. Update the
16145 overloaded caller accordingly.
16146 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16147 (aarch64_output_sve_vector_inc_dec): Likewise.
16148
16149 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16150
16151 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16152 multiplication case, try to compute VG * (lowest set bit) directly
16153 rather than always basing the multiplication on VG. Use
16154 expand_mult for the multiplication if we can.
16155
16156 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16157
16158 * config/aarch64/aarch64-protos.h
16159 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16160 (aarch64_sve_inc_dec_immediate_p): Rename to...
16161 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16162 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16163 (aarch64_output_sve_scalar_inc_dec): Declare.
16164 (aarch64_output_sve_inc_dec_immediate): Rename to...
16165 (aarch64_output_sve_vector_inc_dec): ...this.
16166 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16167 (aarch64_output_sve_scalar_inc_dec): New functions.
16168 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16169 arguments. Only handle true ADDVL and ADDPL instructions;
16170 don't emit an INC or DEC.
16171 (aarch64_sve_inc_dec_immediate_p): Rename to...
16172 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16173 (aarch64_output_sve_inc_dec_immediate): Rename to...
16174 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16175 aarch64_sve_vector_inc_dec_immediate_p.
16176 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16177 (aarch64_sve_plus_immediate): New predicates.
16178 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16179 rather than aarch64_sve_addvl_addpl_immediate.
16180 (aarch64_sve_inc_dec_immediate): Rename to...
16181 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16182 aarch64_sve_vector_inc_dec_immediate_p.
16183 (aarch64_sve_add_operand): Update accordingly.
16184 * config/aarch64/constraints.md (Uai): New constraint.
16185 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16186 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16187 operand into a register if it satisfies aarch64_sve_plus_immediate.
16188 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16189 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16190 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16191 aarch64_output_sve_vector_inc_dec instead of
16192 aarch64_output_sve_inc_dec_immediate.
16193
16194 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16195
16196 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16197 (UNSPEC_REVW): New constants.
16198 (elem_bits): New mode attribute.
16199 (SVE_INT_UNARY): New int iterator.
16200 (optab): Handle UNSPEC_REV[BHW].
16201 (sve_int_op): New int attribute.
16202 (min_elem_bits): Handle VNx16QI and the predicate modes.
16203 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16204 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16205 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16206 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16207 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16208 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16209 unspecs based on the total width of the reversed data.
16210 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16211 reinterpret followed by a subreg on big-endian targets.
16212
16213 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16214 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16215
16216 * config/aarch64/aarch64-sve.md
16217 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16218 alternatives in which one of the inputs is in the same register
16219 as the output.
16220
16221 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16222
16223 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16224 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16225
16226 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16227
16228 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16229 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16230
16231 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16232 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16233
16234 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16235 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16236 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16237
16238 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16239 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16240
16241 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16242 Add an alternative that uses reversed shifts.
16243
16244 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16245
16246 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16247 struct.
16248
16249 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16250
16251 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16252 a commutativity marker.
16253
16254 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16255 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16256
16257 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16258 (aarch64_prepare_sve_cond_int_fma): Declare.
16259 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16260 (aarch64_prepare_sve_int_fma): New functions.
16261 (aarch64_prepare_sve_cond_int_fma): Likewise.
16262 * config/aarch64/aarch64-sve.md
16263 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16264 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16265 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16266 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16267 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16268 (*madd<mode>): Rename to...
16269 (*fma<mode>4): ...this.
16270 (*msub<mode>): Rename to...
16271 (*fnma<mode>4): ...this.
16272
16273 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16274 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16275
16276 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16277 Print 2.0 naturally.
16278 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16279 * config/aarch64/predicates.md
16280 (aarch64_sve_float_negated_arith_immediate): New predicate,
16281 renamed from aarch64_sve_float_arith_with_sub_immediate.
16282 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16283 positive and negative constants.
16284 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16285 or an aarch64_sve_float_arith_with_sub_immediate.
16286 * config/aarch64/constraints.md (vsN): Use
16287 aarch64_sve_float_negated_arith_immediate.
16288 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16289 iterator.
16290 (sve_pred_fp_rhs2_immediate): New int attribute.
16291 * config/aarch64/aarch64-sve.md
16292 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16293 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16294 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16295 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16296 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16297 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16298
16299 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16300 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16301
16302 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16303 (*aarch64_cond_abd<SVE_F:mode>_3)
16304 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16305
16306 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16307 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16308
16309 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16310 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16311
16312 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16313 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16314
16315 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16316 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16317 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16318 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16319 optabs.
16320 * optabs.h (create_convert_operand_from): Expand comment.
16321 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16322 when mapping scalar rtxes to vector operands.
16323 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16324 ashiftrt and lshiftrt.
16325 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16326 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16327 (*cond_<optab><mode>_any_const): New patterns.
16328
16329 2019-08-15 Martin Liska <mliska@suse.cz>
16330
16331 PR ipa/91438
16332 * cgraph.c (cgraph_node::remove): When setting
16333 n->origin = NULL for all nested functions, reset
16334 also next_nested.
16335
16336 2019-08-15 Martin Liska <mliska@suse.cz>
16337
16338 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16339 and next_nested.
16340
16341 2019-08-15 Martin Liska <mliska@suse.cz>
16342
16343 PR ipa/91404
16344 * passes.c (order): Remove.
16345 (uid_hash_t): Likewise).
16346 (remove_cgraph_node_from_order): Remove from set
16347 of pointers (cgraph_node *).
16348 (insert_cgraph_node_to_order): New.
16349 (duplicate_cgraph_node_to_order): New.
16350 (do_per_function_toporder): Register all 3 cgraph hooks.
16351 Skip removed_nodes now as we know about all of them.
16352
16353 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16354
16355 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16356 <case E_V8QImode>: Use vector_set path for
16357 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16358 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16359 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16360
16361 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16362
16363 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16364
16365 2019-08-14 Martin Sebor <msebor@redhat.com>
16366
16367 PR tree-optimization/91294
16368 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16369 source length as exact.
16370
16371 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16372
16373 * doc/extend.texi: Add "noinit" attribute documentation.
16374 * doc/sourcebuild.texi: Add noinit effective target documentation.
16375 * varasm.c (default_section_type_flags): Add support for "noinit"
16376 section.
16377 (default_elf_select_section): Add support for "noinit" attribute.
16378 * config/msp430/msp430.c (msp430_attribute_table): Remove
16379 "noinit" entry.
16380
16381 2019-08-14 Richard Biener <rguenther@suse.de>
16382 Uroš Bizjak <ubizjak@gmail.com>
16383
16384 PR target/91154
16385 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16386 mode arguments.
16387 (scalar_chain::smode): New member.
16388 (scalar_chain::vmode): Likewise.
16389 (dimode_scalar_chain): Rename to...
16390 (general_scalar_chain): ... this.
16391 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16392 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16393 base with TImode and V1TImode.
16394 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16395 (general_scalar_chain::vector_const_cost): Adjust for SImode
16396 chains.
16397 (general_scalar_chain::compute_convert_gain): Likewise. Add
16398 {S,U}{MIN,MAX} support.
16399 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16400 (general_scalar_chain::make_vector_copies): Likewise. Handle
16401 non-DImode chains appropriately.
16402 (general_scalar_chain::convert_reg): Likewise.
16403 (general_scalar_chain::convert_op): Likewise.
16404 (general_scalar_chain::convert_insn): Likewise. Add
16405 fatal_insn_not_found if the result is not recognized.
16406 (convertible_comparison_p): Pass in the scalar mode and use that.
16407 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16408 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16409 (scalar_to_vector_candidate_p): Remove by inlining into single
16410 caller.
16411 (general_remove_non_convertible_regs): Rename from
16412 dimode_remove_non_convertible_regs.
16413 (remove_non_convertible_regs): Remove by inlining into single caller.
16414 (convert_scalars_to_vector): Handle SImode and DImode chains
16415 in addition to TImode chains.
16416 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16417 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16418 (*<maxmin>di3_doubleword): Likewise.
16419
16420 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16421 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16422
16423 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16424 (*cond_bic<mode>_any): New patterns.
16425
16426 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16427
16428 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16429 take the equivalent mask, as well as a bit count.
16430 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16431 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16432 (aarch64_sve_pred_and_operand): New predicates.
16433 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16434 code attribute.
16435 * config/aarch64/aarch64-sve.md
16436 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16437 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16438
16439 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16440
16441 * config/aarch64/aarch64-sve.md
16442 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16443 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16444 New patterns.
16445
16446 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16447 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16448
16449 * config/aarch64/aarch64-sve.md
16450 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16451 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16452
16453 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16454 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16455
16456 * config/aarch64/aarch64-sve.md
16457 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16458 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16459
16460 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16461
16462 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16463 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16464 New pattern.
16465
16466 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16467 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16468
16469 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16470
16471 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16472 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16473
16474 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16475 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16476 (aarch64_print_operand): Add support for %I.
16477 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16478 Bitcast floating-point constants to the corresponding integer constant.
16479 (aarch64_float_const_representable_p): Handle vectors as well
16480 as scalars.
16481 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16482 for the new vcond_mask_<mode><vpred> expander.
16483 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16484 test aarch64_float_const_representable_p.
16485 (aarch64_sve_reg_or_dup_imm): New predicate.
16486 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16487 gen_vcond_mask_<mode><vpred> instead of
16488 gen_aarch64_sve_dup<mode>_const.
16489 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16490 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16491 for operands 1 and 2 respectively. Force operand 2 into a
16492 register if operand 1 is a register. Fold old define_insn...
16493 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16494 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16495 floating-point constants that can be moved as integers. Add
16496 alternatives for MOV /M and FMOV /M.
16497 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16498 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16499 1 and 2 respectively.
16500 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16501 as scalars.
16502 (vss): New constraint.
16503
16504 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16505
16506 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16507 (aarch64_sve_float_maxmin_operand): New predicates.
16508 * config/aarch64/constraints.md (vsB): New constraint.
16509 (vsM): Fix typo.
16510 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16511 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16512 UNSPEC_COND_FMINNM.
16513 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16514 Use aarch64_sve_float_maxmin_operand for operand 2.
16515 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16516 Add alternatives for the constant forms.
16517
16518 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16519
16520 * config/aarch64/constraints.md (vsb): New constraint.
16521 (vsm): Generalize description.
16522 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16523 iterator.
16524 (sve_imm_con): Handle smax, smin, umax and umin.
16525 (sve_imm_prefix): New code attribute.
16526 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16527 (aarch64_sve_vsb_operand): New predicates.
16528 (aarch64_sve_mul_immediate): Rename to...
16529 (aarch64_sve_vsm_immediate): ...this.
16530 (aarch64_sve_mul_operand): Rename to...
16531 (aarch64_sve_vsm_operand): ...this.
16532 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16533 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16534 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16535 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16536 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16537 add movprfx support for the immediate alternatives.
16538 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16539 of the above.
16540 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16541 for operand 3.
16542
16543 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16544
16545 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16546 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16547 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16548
16549 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16550
16551 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16552 (optab, sve_int_op): Handle them.
16553 * config/aarch64/aarch64-sve.md: Expand comment.
16554
16555 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16556
16557 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16558 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16559 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16560
16561 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16562
16563 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16564 (aarch64_expand_sve_const_pred_trn): New functions.
16565 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16566 use the above functions when the parameter is true.
16567 (aarch64_expand_sve_const_pred): Update call accordingly.
16568 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16569 Rename to...
16570 (@aarch64_sve_<perm_insn><mode>): ...this.
16571
16572 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16573
16574 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16575 Declare.
16576 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16577 (aarch64_sve_emit_int_cmp): New functions.
16578 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16579 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16580 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16581 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16582 (UNSPEC_PRED_Z): New unspec.
16583 (set_clobber_cc_nzc): Delete.
16584 * config/aarch64/aarch64-sve.md: Add a block comment about
16585 UNSPEC_PRED_Z.
16586 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16587 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16588 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16589 UNSPEC_MERGE_PTRUE.
16590 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16591 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16592 check for compatible predicates.
16593 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16594 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16595 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16596 comparisons above.
16597
16598 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16599
16600 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16601 * config/aarch64/aarch64-sve.md: Add a section describing it.
16602 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16603 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16604 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16605 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16606 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16607 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16608 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16609 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16610 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16611 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16612 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16613 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16614 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16615 (aarch64_evpc_rev_local): Update accordingly.
16616
16617 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16618
16619 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16620 iterators.
16621 (SVE_BHSI, SVE_SDI): Tweak comment.
16622 (SVE_HSDI): Likewise. Fix definition.
16623 (SVE_SDF): New mode iterator.
16624 (elem_bits): New mode attribute.
16625 (SVE_COND_FCVT): New int iterator.
16626 * config/aarch64/aarch64-sve.md
16627 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16628 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16629 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16630 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16631 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16632 ...these new patterns.
16633 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16634 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16635 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16636 Merge into...
16637 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16638 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16639 ...these new patterns.
16640 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16641 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16642 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16643 ...this new pattern.
16644 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16645 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16646 ...this new pattern.
16647 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16648
16649 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16650
16651 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16652 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16653 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16654 unspecs.
16655 (optab, su): Handle them.
16656 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16657 * config/aarch64/aarch64-sve.md
16658 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16659 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16660 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16661 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16662 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16663 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16664 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16665 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16666 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16667 FIXUORS.
16668 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16669 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16670 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16671 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16672 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16673 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16674 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16675 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16676 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16677 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16678 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16679 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16680 of UNSPEC_FLOAT_CONVERT.
16681 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16682 aarch64_sve_extend<mode><Vwide>2.
16683
16684 2019-08-14 Richard Biener <rguenther@suse.de>
16685
16686 PR target/91154
16687 * config/i386/i386-features.c
16688 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16689 individual instruction gain. Fix reg-reg copy GRP cost. Use
16690 ix86_cost->sse_op for vector instruction costs.
16691
16692 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16693
16694 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16695 (cmp_op): Handle it.
16696 (SVE_COND_FP_CMP): Rename to...
16697 (SVE_COND_FP_CMP_I0): ...this.
16698 (SVE_FP_CMP): Remove.
16699 * config/aarch64/aarch64-sve.md
16700 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16701 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16702 using unspecs to represent the comparison.
16703 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16704 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16705 accordingly.
16706 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16707 (aarch64_unspec_cond_code): Move after integer code. Handle
16708 UNORDERED.
16709 (aarch64_emit_sve_predicated_cond): Replace with...
16710 (aarch64_emit_sve_fp_cond): ...this new function.
16711 (aarch64_emit_sve_or_conds): Replace with...
16712 (aarch64_emit_sve_or_fp_conds): ...this new function.
16713 (aarch64_emit_sve_inverted_cond): Replace with...
16714 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16715 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16716
16717 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16718
16719 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16720 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16721 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16722 SVE_HSD instead of SVE_SD.
16723
16724 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16725 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16726
16727 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16728 iterator.
16729 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16730 attributes.
16731 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16732 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16733 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16734 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16735 (*div<SVE_F:mode>3): Generalize to...
16736 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16737
16738 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16739 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16740
16741 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16742 constants.
16743 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16744 predicate.
16745 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16746 Declare.
16747 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16748 function.
16749 * config/aarch64/aarch64-sve.md: Add a block comment about the
16750 handling of predicated FP operations.
16751 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16752 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16753 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16754 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16755 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16756 operand.
16757 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16758 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16759 operand.
16760 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16761 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16762 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16763 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16764 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16765 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16766 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16767 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16768 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16769 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16770 strictness operands. Use aarch64_sve_pred_dominates_p to check
16771 whether the predicate on the conditional operation is suitable
16772 for merging. Split patterns into the canonical equal-predicate form.
16773 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16774 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16775
16776 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16777 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16778
16779 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16780 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16781 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16782 rtx codes.
16783 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16784 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16785 unspecs.
16786
16787 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16788 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16789
16790 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16791 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16792 actually has, rather than relying on REG_EQUAL notes.
16793 Make the insn operand order match the SVE operand order.
16794 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16795 the SVE operand order.
16796
16797 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16798
16799 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16800 (aarch64_emit_set_immediate): Likewise.
16801 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16802 (aarch64_pfalse_reg): Likewise.
16803 (aarch64_convert_sve_data_to_pred): New function.
16804 (aarch64_sve_move_pred_via_while): Take an optional target register
16805 and the required register mode.
16806 (aarch64_expand_sve_const_pred_1): New function.
16807 (aarch64_expand_sve_const_pred): Likewise.
16808 (aarch64_expand_mov_immediate): Build an all-true predicate
16809 if the significant bits of the immediate are all true. Use
16810 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16811 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16812 before register allocation.
16813 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16814 a VNx16BI PTRUE when splitting the memory alternative.
16815 (vec_duplicate<mode>): Update accordingly.
16816 (*pred_cmp<cmp_op><mode>): Rename to...
16817 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16818
16819 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16820
16821 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16822 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16823 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16824 (UNSPEC_PTEST): New unspec.
16825 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16826 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16827 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16828 * config/aarch64/aarch64-sve.md: Add a new section describing the
16829 handling of UNSPEC_PTEST.
16830 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16831 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16832 (ptest_ptrue<mode>): Replace with...
16833 (aarch64_ptest<mode>): ...this new pattern.
16834 (cbranch<mode>4): Update after above changes.
16835 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16836 UNSPEC_PTEST_PTRUE.
16837 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16838 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16839 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16840
16841 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16842
16843 PR lto/91287
16844 * builtins.c (builtin_with_linkage_p): New function.
16845 * builtins.h (builtin_with_linkage_p): New function.
16846 * symtab.c (write_symbol): Remove redundant assert.
16847 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16848 Remove FIXME and use builtin_with_linkage_p.
16849
16850 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16851
16852 PR middle-end/91421
16853 * tree-core.h (function_decl::function_code): Change type to
16854 unsigned int.
16855 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16856 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16857 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16858 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16859 is BUILT_IN_NORMAL.
16860 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16861 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16862 (fndecl_built_in_p): Change the type of the "name" argument to
16863 unsigned int.
16864 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16865 after check for DECL_BUILT_IN_CLASS.
16866 * cgraphclones.c (build_function_decl_skip_args): Use
16867 set_decl_built_in_function.
16868 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16869 * ipa-split.c (split_function): Likewise.
16870 * langhooks.c (add_builtin_function_common): Likewise.
16871 * omp-simd-clone.c (simd_clone_create): Likewise.
16872 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16873 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16874 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16875 DECL_FUNCTION_CODE.
16876 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16877 instead of DECL_FUNCTION_CODE.
16878 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16879 instead of DECL_FUNCTION_CODE.
16880 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16881 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16882 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16883 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16884 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16885 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16886 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16887 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16888 (alpha_gimple_fold_builtin): Likewise.
16889 * config/arc/arc.c (arc_expand_builtin): Likewise.
16890 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16891 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16892 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16893 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16894 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16895 * config/frv/frv.c (frv_expand_builtin): Likewise.
16896 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16897 (gcn_expand_builtin): Likewise.
16898 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16899 (fold_builtin_cpu): Likewise.
16900 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16901 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16902 (ix86_gimple_fold_builtin): Likewise.
16903 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16904 (ia64_expand_builtin): Likewise.
16905 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16906 * config/mips/mips.c (mips_expand_builtin): Likewise.
16907 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16908 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16909 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16910 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16911 * config/pa/pa.c (pa_expand_builtin): Likewise.
16912 * config/pru/pru.c (pru_expand_builtin): Likewise.
16913 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16914 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16915 Likewise.
16916 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16917 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16918 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16919 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16920 (rs6000_builtin_reciprocal): Likewise.
16921 * config/rx/rx.c (rx_expand_builtin): Likewise.
16922 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16923 * config/s390/s390.c (s390_expand_builtin): Likewise.
16924 * config/sh/sh.c (sh_expand_builtin): Likewise.
16925 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16926 (sparc_fold_builtin): Likewise.
16927 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16928 * config/spu/spu.c (spu_expand_builtin): Likewise.
16929 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16930 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16931 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16932 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16933 (xtensa_expand_builtin): Likewise.
16934
16935 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16936
16937 PR middle-end/91421
16938 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16939 before the DECL_FUNCTION_CODE.
16940 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16941 to check for a BUILT_IN_ALLOCA call.
16942 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16943 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16944 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16945 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16946 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16947 for BUILT_IN_NORMAL functions.
16948 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16949 test for BUILT_IN_TM_ABORT.
16950 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16951 to check for a BUILT_IN_STACK_RESTORE call.
16952 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16953 * tree-ssa-threadedge.c
16954 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16955 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16956 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16957 test for a BUILT_IN_NORMAL call instead of a negative test for
16958 an internal function call.
16959
16960 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16961
16962 * tree.h (build_vector_a_then_b): Declare.
16963 * tree.c (build_vector_a_then_b): New function.
16964 * fold-const-call.c (fold_while_ult): Likewise.
16965 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16966 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16967 (aarch64_svpattern): New enum.
16968 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16969 constants through aarch64_expand_mov_immediate.
16970 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16971 than general_operand as the predicate for operand 1.
16972 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16973 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16974 insn_type.
16975 (simd_immediate_info::simd_immediate_info): New overload that
16976 takes a scalar_int_mode and an svpattern.
16977 (simd_immediate_info::u): Add a "pattern" field.
16978 (svpattern_token): New function.
16979 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16980 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16981 (aarch64_sve_move_pred_via_while): New functions.
16982 (aarch64_expand_mov_immediate): Try using
16983 aarch64_sve_move_pred_via_while for predicates that contain N ones
16984 followed by M zeros but that do not correspond to a VLnnn pattern.
16985 (aarch64_sve_pred_valid_immediate): New function.
16986 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16987 with PTRUE and PFALSE.
16988 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16989 forms.
16990
16991 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16992
16993 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16994 flag.
16995 (darwin_override_options): Likewise.
16996 * config/darwin.h: Likewise.
16997 * config/darwin.opt: Likewise.
16998 * config/i386/i386.c (output_pic_addr_const): Likewise.
16999 * config/rs6000/darwin.h: Likewise.
17000 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17001 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17002 ... this TARGET_MACHO_SYMBOL_STUBS.
17003 (FUNCTION_PROFILER):Likewise.
17004 * config/i386/i386.h: Likewise.
17005
17006 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17007
17008 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17009 <case E_V2SImode>: Use vec_extr path for
17010 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17011 <case E_V8QImode>: Ditto.
17012 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17013 Use SWI48 mode iterator. Use %k to output operand 0.
17014 (*mmx_pextrw): New insn pattern.
17015 (*mmx_pextrb): Ditto.
17016 (*mmx_pextrb_zext): Ditto.
17017
17018 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17019
17020 * target.def (libc_has_function, libc_has_fast_function): Improve
17021 documentation strings.
17022 * doc/tm.texi: Regenerate.
17023
17024 2019-08-13 Caroline Tice <cmtice@google.com>
17025
17026 PR other/91396
17027 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17028 vtv_end.o or vtv_end_preinit.o files if !static.
17029
17030 2019-08-13 Olivier Hainque <hainque@adacore.com>
17031
17032 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17033
17034 2019-08-13 Olivier Hainque <hainque@adacore.com>
17035
17036 * rtlanal.c (tablejump_casesi_pattern): New function, to
17037 determine if a tablejump insn is a casesi dispatcher. Extracted
17038 from patch_jump_insn.
17039 * rtl.h (tablejump_casesi_pattern): Declare.
17040 * cfgrtl.c (patch_jump_insn): Use it.
17041 * dwarf2cfi.c (create_trace_edges): Use it.
17042
17043 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17044
17045 PR target/81800
17046 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17047 operand is larger than a long int.
17048
17049 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17050
17051 * machmode.h (opt_mode::else_mode): New function.
17052 (opt_mode::else_blk): Use it.
17053 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17054 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17055 (aarch64_gen_stepped_int_parallel): Likewise.
17056 (aarch64_stepped_int_parallel_p): Likewise.
17057 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17058 argument.
17059 * config/aarch64/aarch64.c
17060 (aarch64_expand_sve_widened_duplicate): Delete.
17061 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17062 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17063 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17064 argument. Use early returns in the !CONST_INT_P handling.
17065 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17066 than handling some inline.
17067 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17068 from...
17069 (aarch64_simd_container_mode): ...here.
17070 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17071 (aarch64_sve_ld1rq_operand_p): New functions.
17072 * config/aarch64/predicates.md (descending_int_parallel)
17073 (aarch64_sve_ld1rq_operand): New predicates.
17074 * config/aarch64/constraints.md (UtQ): New constraint.
17075 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17076 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17077 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17078 (@aarch64_sve_reinterpret<mode>): New expander.
17079 (*aarch64_sve_reinterpret<mode>): New pattern.
17080 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17081 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17082 (*sve_ld1rq<Vesize>): Replace with...
17083 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17084
17085 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17086
17087 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17088 16:12.
17089
17090 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17091
17092 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17093 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17094 (msp430_check_path_for_devices): New.
17095 (parse_devices_csv_1): New.
17096 (parse_devices_csv): New.
17097 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17098 MCU data in devices.csv before using the hard-coded data.
17099 Warn if devices.csv isn't found and the MCU wasn't found in the
17100 hard-coded data either.
17101 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17102 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17103 Search for devices.csv on -I and -L paths.
17104 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17105 msp430_set_driver_var.
17106 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17107 -mdevices-csv-loc=.
17108 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17109 searched for devices.csv.
17110 (mwarn-devices-csv): Document option.
17111
17112 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17113
17114 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17115 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17116 Use a single Dn alternative instead of separate Dz and Dm
17117 alternatives. Use aarch64_output_sve_move_immediate.
17118 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17119 function.
17120 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17121 for predicates too.
17122 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17123 (aarch64_output_ptrue): Delete.
17124
17125 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17126
17127 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17128 INDEX.
17129 (simd_immediate_info::value, simd_immediate_info::step)
17130 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17131 with...
17132 (simd_immediate_info::u): ...this new union.
17133 (simd_immediate_info::simd_immediate_info): Update accordingly.
17134 (aarch64_output_simd_mov_immediate): Likewise.
17135 (aarch64_output_sve_mov_immediate): Likewise.
17136
17137 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17138
17139 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17140 extra_gcc_objs.
17141 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17142 (msp430_select_cpu): New spec function.
17143 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17144 MCU data.
17145 * config/msp430/msp430-devices.c: New file.
17146 * config/msp430/msp430-devices.h: New file.
17147 * config/msp430/msp430.c: Remove msp430_mcu_data.
17148 (msp430_option_override): Use msp430_extract_mcu_data to extract
17149 MCU data.
17150 (msp430_use_f5_series_hwmult): Likewise.
17151 (use_32bit_hwmult): Likewise.
17152 (msp430_no_hwmult): Likewise.
17153 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17154 assembler.
17155 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17156 and -mcpu option.
17157 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17158 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17159 Remove hard-coded MCU multilib data.
17160
17161 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17162
17163 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17164 based on the mode instead of testing properties of it.
17165
17166 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17167
17168 * doc/md.texi: Document the x and y constraints for AArch64.
17169 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17170 (FP_LO8_REGS): New reg_class.
17171 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17172 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17173 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17174 * config/aarch64/predicates.md (aarch64_simd_register): Use
17175 FP_REGNUM_P instead of checking the classes manually.
17176 * config/aarch64/constraints.md (y): New constraint.
17177
17178 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17179
17180 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17181 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17182 * config/aarch64/aarch64-simd.md
17183 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17184 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17185 from the asm template.
17186 * config/aarch64/aarch64-sve.md
17187 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17188 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17189 from the asm template.
17190 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17191 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17192 from the asm template.
17193 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17194
17195 2019-08-13 Martin Liska <mliska@suse.cz>
17196
17197 * value-prof.c (gimple_ic_transform): Add new line.
17198 Print details with MSG_NOTE.
17199
17200 2019-08-13 Martin Liska <mliska@suse.cz>
17201
17202 * doc/invoke.texi: Document automatic detection of jobserver.
17203 * lto-wrapper.c (run_gcc): Detect jobserver always.
17204
17205 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17206
17207 * config/i386/i386-expand.c (ix86_expand_vector_set)
17208 <case E_V2SImode>: Use vec_merge path for
17209 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17210 <case E_V8QImode>: Ditto.
17211 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17212 (*mmx_pinsrb): Ditto.
17213
17214 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17215
17216 PR target/83250
17217 PR target/91340
17218 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17219 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17220 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17221 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17222 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17223
17224 2019-08-12 Richard Biener <rguenther@suse.de>
17225
17226 PR lto/91375
17227 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17228 flag_devirtualize.
17229
17230 2019-08-12 Richard Biener <rguenther@suse.de>
17231
17232 PR driver/91130
17233 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17234 lang_mask option, always use CL_DRIVER.
17235 (get_options_from_collect_gcc_options): Adjust.
17236 (find_and_merge_options): Likewise.
17237 (run_gcc): Likewise.
17238
17239 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17240
17241 * ipa-predicate.c (add_condition): Restore inverted test.
17242
17243 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17244
17245 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17246 (enum omp_clause_device_type_kind): New enum.
17247 (struct tree_omp_clause): Add subcode.device_type_kind.
17248 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17249 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17250 for device_type clause.
17251 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17252 * tree-pretty-print.c (dump_omp_clause): Likewise.
17253
17254 PR target/91408
17255 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17256 vector_operand.
17257
17258 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17259
17260 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17261 handling spilled pseudos.
17262
17263 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17264
17265 PR target/91386
17266 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17267 to preserve the contents of the original insns.
17268
17269 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17270
17271 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17272 (addsi3_compare_op2): Likewise.
17273
17274 2019-08-09 Martin Liska <mliska@suse.cz>
17275
17276 * alias.c (alias_ptr_types_compatible_p): Strengten
17277 type comparison in LTO mode.
17278
17279 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17280
17281 PR middle-end/90313
17282 * tree-tailcall.c (find_tail_calls): Reject calls that might
17283 read from an escaped RESULT_DECL.
17284
17285 2019-08-09 Martin Liska <mliska@suse.cz>
17286
17287 * doc/invoke.texi: Document the option value.
17288 * lto-wrapper.c (run_gcc): Set auto_parallel
17289 only with -flto=auto.
17290
17291 2019-08-09 Martin Liska <mliska@suse.cz>
17292
17293 * opts.c (common_handle_option): Error for an invalid argument
17294 to -flto=.
17295
17296 2019-08-09 Martin Liska <mliska@suse.cz>
17297
17298 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17299 use dump_printf to report optimization.
17300 (sem_variable::merge): Likwise.
17301 (sem_item_optimizer::merge_classes): Use dump_printf to report
17302 ICF hits.
17303
17304 2019-08-09 Martin Liska <mliska@suse.cz>
17305
17306 * value-prof.c (gimple_divmod_fixed_value_transform):
17307 Use dump_printf_loc.
17308 (gimple_mod_pow2_value_transform): Likewise.
17309 (gimple_mod_subtract_transform): Likewise.
17310 (init_node_map): Likewise.
17311 (gimple_ic_transform): Likewise.
17312 (gimple_stringops_transform): Likewise.
17313
17314 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17315
17316 * doc/extend.texi: Add const qualifier to ld intrinsics.
17317
17318 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17319
17320 * config/rs6000/dfp.md (D64_D128): Rename to ...
17321 (DDTD): ... this, throughout.
17322 (dfp_suffix): Rename to ...
17323 (q): ... this, throughout.
17324
17325 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17326
17327 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17328 (dfp_suffix): Ditto.
17329 (adddd3, addtd3): Merge to ...
17330 (add<mode>3 for D64_D128): ... this.
17331 (subdd3, subtd3): Merge to ...
17332 (sub<mode>3 for D64_D128): ... this.
17333 (muldd3, multd3): Merge to ...
17334 (mul<mode>3 for D64_D128): ... this.
17335 (divdd3, divtd3): Merge to ...
17336 (div<mode>3 for D64_D128): ... this.
17337 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17338 (*cmp<mode>_internal1 for D64_D128): ... this.
17339 (ftruncdd2, ftrunctd2): Merge to ...
17340 (ftrunc<mode>2 for D64_D128): ... this.
17341 (fixdddi2, fixtddi2): Merge to ...
17342 (fix<mode>di2 for D64_D128): ... this.
17343
17344 2019-08-08 Jim Wilson <jimw@sifive.com>
17345
17346 PR target/91229
17347 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17348 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17349 Pass into recursive call.
17350 (riscv_flatten_aggregate_argument): New arg. Pass to
17351 riscv_flatten_aggregate_field.
17352 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17353 riscv_flatten_aggregate_argument twice, with false and true as last
17354 arg. Process result twice. Compare results and warn if different.
17355 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17356
17357 2019-08-08 Martin Liska <mliska@suse.cz>
17358
17359 PR bootstrap/91352
17360 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17361 * lto-wrapper.c (jobserver_active_p): Likewise.
17362
17363 2019-08-08 Martin Liska <mliska@suse.cz>
17364
17365 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17366 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17367 (create_version_clone_with_body): Likewise.
17368
17369 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17370
17371 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17372 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17373 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17374 GOVD_EXPLICIT flags.
17375 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17376 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17377 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17378 call install_var_field with mask 11 instead of 3.
17379 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17380 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17381
17382 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17383
17384 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17385 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17386
17387 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17388
17389 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17390 MOVPRFX alternatives. Make the GPR alternatives more expensive
17391 than the FPR ones.
17392
17393 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17394
17395 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17396 Disparage the GPR alternative relative to the FPR one.
17397 Fix handling of 8-bit and 16-bit FPR values.
17398
17399 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17400
17401 * config/aarch64/iterators.md (BITWISEV): Delete.
17402 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17403 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17404 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17405 UNSPEC_FMINNMV, UNSPEC_FMINV.
17406 (bit_reduc_op): Delete.
17407 (sve_int_op): New int attribute.
17408 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17409 UNSPEC_FMINNMV, UNSPEC_FMINV.
17410 * config/aarch64/aarch64-sve.md
17411 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17412 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17413 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17414 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17415 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17416 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17417 new patterns.
17418 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17419 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17420 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17421 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17422 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17423 new patterns.
17424
17425 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17426
17427 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17428 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17429 (fms<mode>4, *fms<mode>4): Replace with...
17430 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17431 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17432 Use unspecs instead of rtx codes.
17433 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17434 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17435
17436 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17437
17438 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17439 int iterator.
17440 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17441 * config/aarch64/aarch64-sve.md
17442 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17443 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17444 use a single unspec for the rhs.
17445 (*<su><maxmin><mode>3): Delete.
17446 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17447
17448 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17449
17450 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17451 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17452 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17453 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17454 (optab, sve_fp_op): Handle them.
17455 (SVE_FP_UNARY): Delete.
17456 (optab): Remove sqrt entry.
17457 (sve_fp_op): Remove neg, abs and sqrt entries.
17458 (SVE_COND_FP_UNARY): New int iterator.
17459 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17460 (*<frint_pattern><mode>2): Delete.
17461 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17462 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17463 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17464 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17465
17466 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17467
17468 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17469
17470 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17471
17472 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17473 (UNSPEC_COND_FADD): ...this.
17474 (UNSPEC_COND_SUB): Rename to...
17475 (UNSPEC_COND_FSUB): ...this.
17476 (UNSPEC_COND_MUL): Rename to...
17477 (UNSPEC_COND_FMUL): ...this.
17478 (UNSPEC_COND_DIV): Rename to...
17479 (UNSPEC_COND_FDIV): ...this.
17480 (UNSPEC_COND_MAX): Rename to...
17481 (UNSPEC_COND_FMAXNM): ...this.
17482 (UNSPEC_COND_MIN): Rename to...
17483 (UNSPEC_COND_FMINNM): ...this.
17484 (UNSPEC_COND_LT): Rename to...
17485 (UNSPEC_COND_FCMLT): ...this.
17486 (UNSPEC_COND_LE): Rename to...
17487 (UNSPEC_COND_FCMLE): ...this.
17488 (UNSPEC_COND_EQ): Rename to...
17489 (UNSPEC_COND_FCMEQ): ...this.
17490 (UNSPEC_COND_NE): Rename to...
17491 (UNSPEC_COND_FCMNE): ...this.
17492 (UNSPEC_COND_GE): Rename to...
17493 (UNSPEC_COND_FCMGE): ...this.
17494 (UNSPEC_COND_GT): Rename to...
17495 (UNSPEC_COND_FCMGT): ...this.
17496 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17497 (sve_fp_op_rev): Update accordingly.
17498 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17499
17500 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17501
17502 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17503 banner comments.
17504 * config/aarch64/check-sve-md.awk: New file.
17505 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17506 (insn-conditions.md): Depend on it.
17507
17508 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17509
17510 PR target/91385
17511 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17512 (*negsi2_cmpz_zext): Ditto.
17513
17514 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17515
17516 * config/aarch64/iterators.md (commutative): Remove.
17517
17518 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17519
17520 PR driver/91130
17521 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17522 processing COLLECT_GCC_OPTIONS.
17523 (run_gcc): Likewise.
17524
17525 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17526
17527 PR tree-optimization/91109
17528 * lra-remat.c (update_scratch_ops): Remove assignment of the
17529 hard register.
17530
17531 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17532
17533 * data-streamer.h (streamer_write_poly_uint64): Declare.
17534 (streamer_read_poly_uint64): Likewise.
17535 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17536 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17537 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17538 (add_condition): Take a poly_int64 size.
17539 * ipa-predicate.c (add_condition): Likewise.
17540 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17541 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17542 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17543 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17544 condition::size as a poly_int64.
17545 (unmodified_parm_1): Take a poly_int64 size pointer.
17546 (unmodified_parm): Likewise.
17547 (unmodified_parm_or_parm_agg_item): Likewise.
17548 (set_cond_stmt_execution_predicate): Update accordingly.
17549 (set_switch_stmt_execution_predicate): Likewise.
17550 (will_be_nonconstant_expr_predicate): Likewise.
17551 (will_be_nonconstant_predicate): Likewise.
17552 (inline_read_section): Stream condition::size as a poly_int.
17553 (ipa_fn_summary_write): Likewise.
17554
17555 2019-08-07 Martin Liska <mliska@suse.cz>
17556
17557 * fold-const.c (twoval_comparison_p): Replace int
17558 with bool as a return type.
17559 (simple_operand_p): Likewise.
17560 (operand_equal_p): Replace int with bool as a return type.
17561 * fold-const.h (operand_equal_p): Likewise.
17562
17563 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17564
17565 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17566 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17567 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17568 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17569 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17570 * tree-pretty-print.c (dump_omp_clause): Likewise.
17571 * tree-nested.c (convert_nonlocal_omp_clauses,
17572 convert_local_omp_clauses): Likewise.
17573 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17574 Likewise.
17575 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17576 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17577 clause with array or reference to array types, no matter what type
17578 except for reference it has.
17579
17580 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17581
17582 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17583
17584 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17585
17586 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17587 (arch_canonicalize): Support rv32g and rv64g and fix error
17588 handling.
17589
17590 2019-08-06 Martin Liska <mliska@suse.cz>
17591
17592 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17593 and DECL_IS_OPERATOR_DELETE_P.
17594
17595 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17596
17597 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17598 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17599 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17600 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17601 (gimplify_omp_for): Don't do C++ random access iterator clause
17602 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17603 don't predetermine the artificial iterator in case of C++ random
17604 access iterators as lastprivate, but private. For OMP_LOOP, force
17605 bind expr around simd body and force for_pre_body before the
17606 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17607 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17608 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17609 diff var of C++ random access iterators. Handle
17610 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17611 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17612 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17613 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17614 * omp-low.c (lower_rec_input_clauses): For
17615 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17616 variables instead of default constructing them.
17617 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17618 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17619 is_taskloop_ctx check from the assert to the guarding condition.
17620
17621 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17622
17623 * config/riscv/multilib-generator: (canonical_order): New.
17624 (arch_canonicalize): Dito.
17625 Apply arch_canonicalize for alts.
17626
17627 2019-08-05 Martin Sebor <msebor@redhat.com>
17628
17629 * doc/extend.texi (Common Variable Attributes): Document alias
17630 attribute.
17631
17632 2019-08-05 Marek Polacek <polacek@redhat.com>
17633
17634 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17635 * doc/invoke.texi: Document -Wcomma-subscript.
17636
17637 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17638
17639 * tree-core.h (tree_function_decl): Make function_code an
17640 independent field. Group the remaining bitfields into bytes
17641 and move decl_type so that it contines to be at a byte boundary.
17642 Leave 12 bits for future expansion.
17643
17644 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17645
17646 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17647 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17648 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17649 IFN_MASK_STORE.
17650
17651 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17652
17653 * gimple.h (gimple_move_vops): Declare.
17654 * gimple.c (gimple_move_vops): New function
17655 * gimple-fold.c (replace_call_with_call_and_fold)
17656 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17657 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17658 (gimple_fold_call): Use it.
17659 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17660 * tree-call-cdce.c (use_internal_fn): Likewise.
17661 * tree-if-conv.c (predicate_load_or_store): Likewise.
17662 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17663 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17664 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17665 (update_call_from_tree): Likewise.
17666 * tree-vect-stmts.c (vectorizable_load): Likewise.
17667 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17668
17669 2019-08-05 Martin Liska <mliska@suse.cz>
17670
17671 PR c++/91334
17672 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17673 with not arguments.
17674 (eliminate_unnecessary_stmts): Likewise.
17675
17676 2019-08-05 Richard Biener <rguenther@suse.de>
17677
17678 PR middle-end/91169
17679 * fold-const.c (get_array_ctor_element_at_index): Create
17680 offset_ints according to the sign of the index type and treat
17681 that as signed if it is obviously so.
17682
17683 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17684
17685 PR target/91341
17686 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17687 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17688 _mm256_storeu2_m128i): New function.
17689
17690 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17691
17692 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17693 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17694
17695 2019-08-05 Alan Modra <amodra@gmail.com>
17696
17697 PR target/91349
17698 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17699 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17700
17701 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17702
17703 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17704 bug that was fixed in Tcl 8.6.1.
17705
17706 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17707
17708 * config/rs6000/future.md: New file.
17709 * config/rs6000/rs6000.md: Include future.md.
17710 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17711
17712 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17713
17714 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17715 check to use targetm.slow_unaligned_access instead.
17716
17717 * function.c (assign_param_data_one): Remove unused data members.
17718
17719 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17720
17721 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17722 build_distinct_type_copy.
17723 (simd_clone_adjust_argument_types): Ditto.
17724 (simd_clone_adjust): Call build_distinct_type_copy here.
17725 (expand_simd_clones): Ditto.
17726
17727 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17728
17729 PR target/91201
17730 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17731
17732 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17733
17734 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17735 from 'const void *'.
17736 (sort_locs_in_loop_postorder_cmp): Likewise.
17737
17738 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17739
17740 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17741 (hot-bb-count-ws-permille): Likewise.
17742 (hot-bb-frequency-fraction): Likewise.
17743 (unlikely-bb-count-fraction): Likewise.
17744 * params.def (hot-bb-count-fraction): Rework description.
17745 (hot-bb-count-ws-permille): Likewise.
17746 (hot-bb-frequency-fraction): Likewise.
17747 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17748 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17749
17750 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17751
17752 PR target/91323
17753 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17754 Return false.
17755
17756 2019-08-02 Richard Biener <rguenther@suse.de>
17757
17758 * vec.h (vec::sort): Add gcc_qsort_r support.
17759 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17760 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17761 to gcc_qsort_r style callback.
17762 (sort_locs_in_loop_postorder_cmp): Likewise.
17763 (analyze_memory_references): Use gcc_sort_r interfaces.
17764 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17765
17766 2019-08-02 Martin Liska <mliska@suse.cz>
17767
17768 PR lto/91313
17769 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17770 to detect working job server.
17771 (driver::detect_jobserver): Test whether jobserver
17772 is active from GCC driver. That will prevent situation where
17773 GCC is invoked from a LD plugin and the linker already uses
17774 file descriptors suggested by make. That leads to a wrong
17775 detection.
17776 * gcc.h (driver): Add detect_jobserver.
17777 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17778 not scanning for --jobserver-auth prefix.
17779
17780 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17781
17782 PR tree-optimization/91201
17783 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17784 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17785 extraction.
17786
17787 2019-08-01 Martin Sebor <msebor@redhat.com>
17788
17789 PR c++/90947
17790 * tree.c (type_initializer_zero_p): Define.
17791 * tree.h (type_initializer_zero_p): New function.
17792
17793 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17794
17795 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17796
17797 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17798
17799 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17800 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17801 * predict.c (maybe_hot_count_p): Likewise.
17802 (maybe_hot_bb_p): Tweak comment.
17803 (maybe_hot_edge_p): Likewise.
17804 (probably_never_executed): Likewise. Minor tweak.
17805 (probably_never_executed_bb_p): Likewise.
17806 (unlikely_executed_edge_p): Likewise.
17807 (probably_never_executed_edge_p): Likewise.
17808 (optimize_function_for_size_p): Likewise.
17809 (optimize_function_for_speed_p): Likewise.
17810 (function_optimization_type): Likewise.
17811 (optimize_bb_for_size_p): Likewise.
17812 (optimize_bb_for_speed_p): Likewise.
17813 (bb_optimization_type): Likewise.
17814 (optimize_edge_for_size_p): Likewise.
17815 (optimize_edge_for_speed_p): Likewise.
17816 (optimize_insn_for_size_p): Likewise.
17817 (optimize_insn_for_speed_p): Likewise.
17818 (optimize_loop_for_size_p): Likewise.
17819 (optimize_loop_for_speed_p): Likewise.
17820 (optimize_loop_nest_for_speed_p): Likewise.
17821 (optimize_loop_nest_for_size_p): Likewise.
17822 (predictable_edge_p): Likewise.
17823 (handle_missing_profiles): Minor tweak.
17824
17825 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17826
17827 * config/rs6000/predicates.md (pcrel_external_address): Update
17828 comment.
17829
17830 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17831
17832 PR target/85693
17833 * config/i386/mmx.md (usadv8qi): New expander.
17834
17835 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17836
17837 PR c++/90590
17838 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17839 with reserved names that are in a system header.
17840
17841 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17842
17843 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17844 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17845 (*vec_extractv2si_0_zext): Ditto.
17846 (*vec_extractv2si_1): Add (rm,x) alternative.
17847 (*vec_extractv2si_1_zext): New insn pattern.
17848 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17849 insn constraint.
17850
17851 2019-08-01 Richard Biener <rguenther@suse.de>
17852
17853 * domwalk.c (bb_postorder): Remove static variable.
17854 (cmp_bb_postorder): Adjust.
17855 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17856 (dom_walker::walk): Adjust.
17857
17858 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17859
17860 * sort.cc (sort_r_ctx): New struct.
17861 (reorder23): Make templated on context type.
17862 (reorder45): Ditto.
17863 (cmp1): Ditto. Adjust signature.
17864 (netsort): Ditto.
17865 (mergesort): Ditto.
17866 [CHECKING_P] (cmp2to3): New static function. Use it...
17867 (gcc_qsort) [CHECKING_P]: ...here.
17868 (gcc_sort_r): New function.
17869 * system.h (sort_r_cmp_fn): New function typedef.
17870 (qsort_chk): Adjust signature.
17871 (gcc_sort_r): Declare.
17872 * vec.c (qsort_chk_error): Adjust.
17873 (qsort_chk): Adjust.
17874
17875 2019-08-01 Richard Biener <rguenther@suse.de>
17876
17877 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17878 (compute_antic): Localize it here.
17879
17880 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17881
17882 * common/config/riscv/riscv-common.c: Check -march string ends
17883 with null.
17884
17885 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17886
17887 * ipa-devirt.c (type_warning_cmp): Make static.
17888 (decl_warning_cmp): Ditto.
17889
17890 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17891
17892 PR target/91050
17893 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17894 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17895 use of deleted rs6000_dejagnu_cpu_index variable.
17896 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17897 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17898 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17899 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17900 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17901 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17902
17903 2019-07-31 Richard Biener <rguenther@suse.de>
17904
17905 PR tree-optimization/91280
17906 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17907 Decompose MEM_REF manually for offset handling.
17908
17909 2019-07-31 Richard Biener <rguenther@suse.de>
17910
17911 PR tree-optimization/91293
17912 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17913 of reduction stmts.
17914
17915 2019-07-31 Matt Thomas <matt@3am-software.com>
17916 Nick Hudson <nick@nthcliff.demon.co.uk>
17917 Matthew Green <mrg@eterna.com.au>
17918 Maya Rashish <coypu@sdf.org>
17919
17920 * config.gcc (hppa*-*-netbsd*): New target.
17921 * config/pa/pa-netbsd.h: New file.
17922 * config/pa/pa32-netbsd.h: New file.
17923
17924 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17925
17926 PR tree-optimization/91201
17927 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17928
17929 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17930
17931 * config/gcn/gcn-valu.md
17932 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17933 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17934 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17935 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17936 struct ilist. Add nops for delayeduse insns.
17937 * config/gcn/gcn.md (delayeduse): New attribute.
17938 (*movbi): Remove s_waitcnt from stores.
17939 (*mov<mode>_insn): Likewise.
17940 (*movti_insn): Likewise. Add delayeduse attribute.
17941 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17942 (atomic_store<mode>): Remove or adjust s_waitcnt.
17943
17944 2019-07-31 Richard Biener <rguenther@suse.de>
17945
17946 * vr-values.h (vr_values::swap_vr_value): New.
17947 (vr_values::free_value_range): likewise.
17948 * vr-values.c (vr_values::swap_vr_value): Implement.
17949 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17950 Do not return a range or take a var.
17951 (evrp_range_analyzer::stack): Change back to recording a non-const
17952 value_range *.
17953 * gimple-ssa-evrp-analyze.c
17954 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17955 value-range.
17956 (evrp_range_analyzer::pop_to_marker): Adjust.
17957 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17958 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17959 no longer needed value-range.
17960
17961 2019-07-31 Martin Liska <mliska@suse.cz>
17962
17963 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17964 have size and (or) alignment as 2nd and later arguments.
17965 Mark all of them as necessary.
17966
17967 2019-07-31 Richard Biener <rguenther@suse.de>
17968
17969 PR tree-optimization/91178
17970 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17971 Use tail-recursion.
17972
17973 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17974
17975 PR tree-optimization/91201
17976 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17977 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17978 TARGET_AVX512F.
17979 (reduc_plus_scal_<mode>): Improve formatting by introducing
17980 a temporary.
17981
17982 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17983
17984 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17985 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17986 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17987 (aarch64_init_tme_builtins): New.
17988 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17989 (aarch64_expand_builtin_tme): New.
17990 (aarch64_expand_builtin): Handle TME builtins.
17991 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17992 __ARM_FEATURE_TME when enabled.
17993 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17994 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17995 (TARGET_TME): New.
17996 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17997 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17998 UNSPECV_TCANCEL.
17999 (tstart, ttest, tcommit, tcancel): New instructions.
18000 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18001 (__tcancel, __ttest): New.
18002 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18003 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18004 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18005 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18006 * config/arm/types.md: Add new tme type attr.
18007 * doc/invoke.texi: Document "tme".
18008
18009 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18010
18011 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18012 warn_unused_result attribute.
18013 (cmse_check_address_range): Add warn_unused_result attribute.
18014
18015 2019-07-31 Richard Biener <rguenther@suse.de>
18016
18017 PR tree-optimization/91257
18018 * tree-vrp.c (union_ranges): Unify equality and less tests
18019 by using compare_values. Re-order cheap tests first.
18020
18021 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18022
18023 PR middle-end/91301
18024 * gimplify.c (gimplify_omp_for): If for class iterator on
18025 distribute parallel for there is no data sharing clause
18026 on inner_for_stmt, look for private clause on combined
18027 parallel too and if found, move it to inner_for_stmt.
18028
18029 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18030
18031 * lra-int.h (lra_operand_data): Remove early_clobber field.
18032 (lra_insn_reg): Likewise.
18033 * lra.c (debug_operand_data): Update accordingly.
18034 (setup_operand_alternative): Likewise.
18035 (new_insn_reg): Likewise. Remove early_clobber parameter.
18036 (collect_non_operand_hard_regs): Update call accordingly.
18037 Don't assign to lra_insn_reg::early_clobber.
18038 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18039 and update calls to new_insn_reg.
18040 (lra_update_insn_regno_info): Update calls accordingly.
18041 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18042 alternative number as a parameter and test whether the operand
18043 is earlyclobbered in that particular alternative.
18044 (process_alt_operands): Update call accordingly. Use per-alternative
18045 checks for earyclobber here too.
18046 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18047 against zero for IRA_UNKNOWN_ALT.
18048
18049 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18050
18051 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18052
18053 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18054
18055 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18056 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18057
18058 2019-07-30 Martin Liska <mliska@suse.cz>
18059
18060 PR ipa/89330
18061 * cgraph.c (cgraph_edge::make_direct): Use
18062 edge->indirect_unknown_callee as edge->resolve_speculation can
18063 deallocate edge which is this pointer.
18064
18065 2019-07-30 Richard Biener <rguenther@suse.de>
18066
18067 PR tree-optimization/91257
18068 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18069
18070 2019-07-30 Martin Liska <mliska@suse.cz>
18071
18072 * doc/invoke.texi: Document new behavior.
18073 * lto-wrapper.c (cpuset_popcount): New function
18074 is a copy of libgomp/config/linux/proc.c.
18075 (init_num_threads): Likewise.
18076 (run_gcc): Automatically detect core count for -flto.
18077 (jobserver_active_p): New function.
18078
18079 2019-07-30 Richard Biener <rguenther@suse.de>
18080
18081 PR tree-optimization/91257
18082 * bitmap.h (bitmap_ior_into_and_free): Declare.
18083 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18084 whether to add the unliked element to the freelist.
18085 (bitmap_list_insert_element_after): Add defaulted param for
18086 an already allocated element.
18087 (bitmap_ior_into_and_free): New function.
18088 * tree-ssa-structalias.c (condense_visit): Reduce the
18089 ponts-to and edge bitmaps of the SCC members in a
18090 logarithmic fashion rather than all to one.
18091
18092 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18093
18094 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18095 parameter. When nonnull, make sure that the addition or subtraction
18096 has the same condition.
18097 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18098 for CFN_COND_MUL too.
18099
18100 2019-07-30 Richard Biener <rguenther@suse.de>
18101
18102 PR tree-optimization/91291
18103 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18104 constant values.
18105
18106 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18107
18108 PR middle-end/91216
18109 * omp-low.c (global_nonaddressable_vars): New variable.
18110 (use_pointer_for_field): For global decls, if they are non-addressable,
18111 remember it in the global_nonaddressable_vars bitmap, if they are
18112 addressable and in the global_nonaddressable_vars bitmap, ignore their
18113 TREE_ADDRESSABLE bit.
18114 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18115 vars in global_nonaddressable_vars bitmap.
18116 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18117
18118 PR target/91150
18119 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18120 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18121 comparison to unsigned HOST_WIDE_INT before shifting it left.
18122
18123 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18124
18125 * config/i386/i386.md (movstrict<mode>): Use register_operand
18126 predicate for operand 0. Add expander condition. Assert that
18127 operand 0 is a SUBREG RTX.
18128 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18129 Update operand constraints and insn condition.
18130 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18131 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18132 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18133 Update operand 0 constraints.
18134 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18135
18136 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18137
18138 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18139 when -m{code,data}-region are used without -mlarge.
18140 * config/msp430/msp430.c (msp430_option_override): Error when a
18141 non-default code or data region is used without -mlarge.
18142 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18143 attributes when they are used without -mlarge.
18144
18145 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18146
18147 PR target/70320
18148 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18149
18150 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18151
18152 PR middle-end/91242
18153 * wide-int.h (generic_wide_int::sext_elt): New function.
18154 * inchash.h (hash::add_wide_int): Use it instead of elt.
18155
18156 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18157
18158 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18159 CODE_FOR_arm_##.
18160 * config/arm/arm.md (<crc_variant>): Rename to...
18161 (arm_<crc_variant>): ... This.
18162 (<cdp>): Rename to...
18163 (arm_<cdp>): ... This.
18164 (<ldc>): Rename to...
18165 (arm_<ldc>): ... This.
18166 (<stc>): Rename to...
18167 (arm_<stc>): ... This.
18168 (<mcr>): Rename to...
18169 (arm_<mcr>): ... This.
18170 (<mrc>): Rename to...
18171 (arm_<mrc>): ... This.
18172 (<mcrr>): Rename to...
18173 (arm_<mcrr>): ... This.
18174 (<mrrc>): Rename to...
18175 (arm_<mrrc>): ... This.
18176
18177 2019-07-29 Richard Biener <rguenther@suse.de>
18178
18179 PR tree-optimization/91257
18180 * tree-ssa-sccvn.h (struct vn_avail): New.
18181 (struct vn_ssa_aux): Add avail member.
18182 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18183 member, add m_avail_freelist one.
18184 (rpo_elim::~rpo_elim): Remove.
18185 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18186 data structure.
18187 (rpo_elim::eliminate_push_avail): Likewise.
18188 (do_unwind): Likewise.
18189 (do_rpo_vn): Likewise.
18190
18191 2019-07-29 Richard Biener <rguenther@suse.de>
18192
18193 PR tree-optimization/91257
18194 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18195 most cases, instead call compare_values which handles the
18196 symbolic ranges we handle specially.
18197 (compare_values_warnv): Do not call operand_less_p but open-code
18198 the effective fold calls. Avoid converting so much.
18199
18200 2019-07-29 Martin Liska <mliska@suse.cz>
18201
18202 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18203 remove LHS of operator new call. It's handled latter.
18204
18205 2019-07-29 Richard Biener <rguenther@suse.de>
18206
18207 PR tree-optimization/91267
18208 * vr-values.c (vr_values::update_value_range): Add early return
18209 for effectively VARYING lattice entry.
18210
18211 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18212
18213 PR debug/86638
18214 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18215 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18216 necessary if keep_all_vdefs_p is true.
18217 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18218 that keep_all_vdefs_p is false.
18219 (mark_all_reaching_defs_necessary): Likewise.
18220 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18221
18222 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18223
18224 * common.opt (Og): Change the initial value of flag_dse to 0.
18225 * opts.c (default_options_table): Move OPT_ftree_dse from
18226 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18227 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18228 entry before the OPT_ftree_sra entry.
18229 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18230 of flags disabled by Og.
18231
18232 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18233
18234 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18235 variables for -Og.
18236
18237 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18238
18239 * doc/sourcebuild.texi (check-function-bodies): Document.
18240
18241 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18242
18243 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18244 VEC_DUPLICATE of a fixed-length vector even if the result
18245 is variable-length. Likewise fold a duplicate of a
18246 variable-length vector if the variable-length vector is
18247 itself a duplicate of a fixed-length sequence.
18248 (test_vector_ops_duplicate): Test more cases.
18249
18250 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18251
18252 * vector-builder.h (vector_builder): Add a shape template parameter.
18253 (vector_builder::new_unary_operation): New function, generalizing
18254 the old tree_vector_builder function.
18255 (vector_builder::new_binary_operation): Likewise.
18256 (vector_builder::binary_encoded_nelts): Likewise.
18257 * int-vector-builder.h (int_vector_builder): Update template
18258 parameters to vector_builder.
18259 (int_vector_builder::shape_nelts): New function.
18260 * rtx-vector-builder.h (rtx_vector_builder): Update template
18261 parameters to vector_builder.
18262 (rtx_vector_builder::shape_nelts): New function.
18263 (rtx_vector_builder::nelts_of): Likewise.
18264 (rtx_vector_builder::npatterns_of): Likewise.
18265 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18266 * tree-vector-builder.h (tree_vector_builder): Update template
18267 parameters to vector_builder.
18268 (tree_vector_builder::shape_nelts): New function.
18269 (tree_vector_builder::nelts_of): Likewise.
18270 (tree_vector_builder::npatterns_of): Likewise.
18271 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18272 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18273 (tree_vector_builder::new_binary_operation): Delete.
18274 (tree_vector_builder::binary_encoded_nelts): Likewise.
18275 * simplify-rtx.c: Include rtx-vector-builder.h.
18276 (distributes_over_addition_p): New function.
18277 (simplify_const_unary_operation)
18278 (simplify_const_binary_operation): Generalize handling of vector
18279 constants to include variable-length vectors.
18280 (test_vector_ops_series): Add more tests.
18281
18282 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18283
18284 PR lto/91222
18285 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18286 than INDENTIFIER_POINTER.
18287
18288 2019-07-28 Martin Liska <mliska@suse.cz>
18289
18290 PR ipa/89330
18291 * cgraph.c (symbol_table::create_edge): Always allocate
18292 a cgraph_edge.
18293 (symbol_table::free_edge): Store summary_id to
18294 edge_released_summary_ids if != -1;
18295 * cgraph.h (NEXT_FREE_NODE): Remove.
18296 (SET_NEXT_FREE_NODE): Likewise.
18297 (NEXT_FREE_EDGE): Likewise.
18298 (symbol_table::release_symbol): Store summary_id to
18299 cgraph_released_summary_ids if != -1;
18300 (symbol_table::allocate_cgraph_symbol): Always allocate
18301 a cgraph_node.
18302
18303 2019-07-28 Alan Modra <amodra@gmail.com>
18304
18305 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18306 gen_sibcall.
18307
18308 2019-07-28 Alan Modra <amodra@gmail.com>
18309
18310 PR target/91135
18311 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18312 define.
18313 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18314 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18315 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18316
18317 2019-07-28 Alan Modra <amodra@gmail.com>
18318
18319 PR target/91050
18320 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18321 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18322 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18323 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18324 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18325 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18326 in asm_default spec.
18327 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18328 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18329
18330 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18331
18332 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18333
18334 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18335
18336 PR target/89517
18337 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18338 * config/aarch64/aarch64-option-extensions.def: Add new comments
18339 and restore easier to read options.
18340
18341 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18342
18343 * convert.c (convert_to_real_1): Move part of conversion code...
18344 * match.pd: ...To here.
18345
18346 2019-07-26 Martin Jambor <mjambor@suse.cz>
18347
18348 PR ipa/89330
18349 * ipa-inline-transform.c (check_speculations_1): New function.
18350 (push_all_edges_in_set_to_vec): Likewise.
18351 (check_speculations): Use check_speculations_1, new parameter
18352 new_edges.
18353 (inline_call): Pass new_edges to check_speculations.
18354 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18355 NULL.
18356 (speculation_useful_p): Early return true if edge is inlined, remove
18357 later checks for inline_failed.
18358
18359 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18360
18361 PR rtl-optimization/91223
18362 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18363 matching with INOUT operand.
18364
18365 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18366
18367 * stmt.c (expand_case): Try to narrow the index type if it's larger
18368 than a word. Tidy up.
18369
18370 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18371
18372 * cif-code.def (NEVER_CALL): New code.
18373 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18374 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18375
18376 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18377
18378 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18379 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18380
18381 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18382
18383 * ipa-devirt.c (add_type_duplicate): Fix return value.
18384
18385 2019-07-25 Richard Biener <rguenther@suse.de>
18386
18387 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18388 type parameter and use it instead of guessing expression
18389 type from the first operand.
18390 (extract_range_from_binary_expr): Pass expr_type down.
18391
18392 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18393
18394 * config/arm/arm.md (SATrev): Change to code attribute.
18395 (*satsi_<SAT:code>): Adjust for the above.
18396 (*satsi_<SAT:code>_shift): Likewise.
18397
18398 2019-07-25 Richard Biener <rguenther@suse.de>
18399
18400 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18401 Make value_range * temporary const.
18402 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18403 Likewise.
18404 (evrp_range_analyzer::record_ranges_from_): Likewise.
18405 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18406 deal with having recorded a const one.
18407 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18408 Return a const value_range *.
18409 (evrp_range_analyzer::pop_value_range): Likewise.
18410 (evrp_range_analyzer::stack): Record const value_range *s.
18411 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18412 Adjust.
18413 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18414 (format_integer): Likewise.
18415 (sprintf_dom_walker::handle_gimple_call): Likewise.
18416 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18417 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18418 (vrp_prop::get_value_range): Adjust.
18419 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18420 modifying the lattice in-place.
18421 (vrp_prop::visit_stmt): Likewise.
18422 * vr-values.c (vr_values::get_lattice_entry): New private method.
18423 (vr_values::get_value_range): Wrap it and return a const
18424 value_range *.
18425 (vr_values::set_def_to_varying): New.
18426 (vr_values::set_defs_to_varying): Use it.
18427 (vr_values::update_value_range): Likewise.
18428 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18429 (values::op_with_constant_singleton_va): Likewise.
18430 (vr_values::extract_range_for_var_from_co): Likewise.
18431 (vr_values::extract_range_from_ssa_name): Likewise.
18432 (vr_values::extract_range_from_cond_expr): Likewise.
18433 (vr_values::extract_range_basic): Likewise.
18434 (compare_ranges): Take const value_range *, adjust.
18435 (compare_range_with_value): Likewise.
18436 (vrp_valueize): Adjust.
18437 (vrp_valueize_1): Likewise.
18438 (vr_values::get_vr_for_comparison): Return a const value_range *.
18439 (vr_values::compare_name_with_value): Adjust.
18440 (vr_values::compare_names): Likewise.
18441 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18442 Likewise.
18443 (vr_values::vrp_evaluate_conditional): Likewise.
18444 (find_case_label_ranges): Take a const value_range *.
18445 (vr_values::vrp_visit_switch_stmt): Adjust.
18446 (vr_values::extract_range_from_phi_node): Likewise.
18447 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18448 (vr_values::simplify_abs_using_ranges): Likewise.
18449 (test_for_singularity): Take a const value_range *.
18450 (range_fits_type_p): Likewise.
18451 (vr_values::simplify_cond_using_ranges_1): Adjust.
18452 (vr_values::simplify_cond_using_ranges_2): Likewise.
18453 (vr_values::simplify_switch_using_ranges): Likewise.
18454 (vr_values::simplify_float_conversion_usi): Likewise.
18455 (vr_values::two_valued_val_range_p): Likewise.
18456 * vr-values.h (vr_values::get_value_range): Return a const
18457 value_range *.
18458 (vr_values::set_def_to_varying): New.
18459 (vr_values::get_lattice_entry): New private method.
18460 (vr_values::get_vr_for_comparison): Return a const value_range *.
18461
18462 2019-07-25 Martin Liska <mliska@suse.cz>
18463 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18464
18465 PR c++/23383
18466 * common.opt: Add -fallocation-dce
18467 * gimple.c (gimple_call_operator_delete_p): New.
18468 * gimple.h (gimple_call_operator_delete_p): Likewise.
18469 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18470 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18471 DECL_IS_OPERATOR_DELETE_P.
18472 (mark_all_reaching_defs_necessary_1): Likewise.
18473 (propagate_necessity): Likewise.
18474 (eliminate_unnecessary_stmts): Handle
18475 gimple_call_operator_delete_p.
18476 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18477 Add packing of OPERATOR_DELETE.
18478 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18479 Similarly here.
18480 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18481 (DECL_SET_IS_OPERATOR_DELETE): New.
18482 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18483
18484 2019-07-25 Martin Liska <mliska@suse.cz>
18485
18486 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18487 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18488 * coverage.c (coverage_begin_function): Likewise.
18489 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18490 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18491 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18492 (sem_item::hash_referenced_symbol_properties): Likewise.
18493 * lto-streamer-out.c (hash_tree): Likewise.
18494 * predict.c (expr_expected_value_1): Likewise.
18495 * tree-inline.c (expand_call_inline): Likewise.
18496 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18497 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18498 * tree-core.h (enum function_decl_type): New enum.
18499 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18500 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18501 (set_function_decl_type): Likewise.
18502 (DECL_IS_OPERATOR_NEW_P): New.
18503 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18504 (DECL_LAMBDA_FUNCTION): Likewise.
18505 (DECL_LAMBDA_FUNCTION_P): Likewise.
18506 (DECL_IS_OPERATOR_NEW): Remove.
18507 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18508
18509 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18510
18511 * ipa-profile.c (get_most_common_single_value): Use
18512 get_nth_most_common_value.
18513 * profile.c (sort_hist_value): New function.
18514 (compute_value_histograms): Call sort_hist_value to sort the
18515 values after loading from disk.
18516 * value-prof.c (get_most_common_single_value): Rename to ...
18517 get_nth_most_common_value. Add input params n, return
18518 the n_th value and count.
18519 (gimple_divmod_fixed_value_transform): Use
18520 get_nth_most_common_value.
18521 (gimple_ic_transform): Likewise.
18522 (gimple_stringops_transform): Likewise.
18523 * value-prof.h (get_most_common_single_value): Add input params
18524 n, default to 0.
18525
18526 2019-07-25 Richard Biener <rguenther@suse.de>
18527
18528 PR tree-optimization/91236
18529 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18530 size of CONSTRUCTOR write. Fix buffer size we pass to
18531 native_encode_expr.
18532
18533 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18534
18535 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18536 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18537 r273773.
18538
18539 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18540
18541 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18542 explicitly disabled with --disable-initfini-array.
18543
18544 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18545
18546 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18547 if-exists.
18548
18549 2019-07-24 Martin Sebor <msebor@redhat.com>
18550
18551 PR tree-optimization/91183
18552 PR tree-optimization/86688
18553 * builtins.c (compute_objsize): Handle MEM_REF.
18554 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18555 (get_min_string_length): Remove.
18556 (count_nonzero_bytes): New function.
18557 (handle_char_store): Rename...
18558 (handle_store): to this. Handle multibyte stores via integer types.
18559 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18560 function name.
18561
18562 2019-07-24 Martin Sebor <msebor@redhat.com>
18563
18564 PR driver/80545
18565 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18566 (diagnostic_report_diagnostic): Same.
18567 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18568 (diagnostic_context::lang_mask): New data member.
18569 * ipa-pure-const.c (suggest_attribute): Use
18570 lang_hooks.option_lang_mask ().
18571 * opts-common.c (option_enabled): Handle new argument.
18572 (get_option_state): Pass an additional argument.
18573 * opts.c (print_filtered_help): Print supported languages for
18574 unsupported options. Adjust printing of current state.
18575 * opts.h (option_enabled): Add argument.
18576 * toplev.c (print_switch_values): Use lang_mask.
18577 (general_init): Set global_dc->lang_mask.
18578
18579 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18580
18581 PR bootstrap/87030
18582 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18583
18584 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18585
18586 * cgraphunit.c (symbol_table::compile): Start and stop
18587 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18588 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18589
18590 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18591
18592 * gimplify.c (flag_instrument_functions_exclude_p): Include
18593 namespace/class information in the printable name.
18594 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18595 to tokens entered into the vector.
18596
18597 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18598
18599 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18600 (get_static_chain): Call it instead of build_simple_mem_ref.
18601 (get_frame_field): Likewise.
18602 (get_nonlocal_debug_decl): Likewise.
18603 (convert_nonlocal_reference_op): Likewise.
18604
18605 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18606
18607 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18608 declaration.
18609 (arc_compute_frame_size): Millicode is disabled when compiling
18610 ISR.
18611 (arc_return_address_register): Likewise.
18612 (arc_compute_function_type): Likewise.
18613 (arc_compute_frame_size): Likewise.
18614 (secondary_reload_info): Likewise.
18615 (arc_get_unalign): Likewise.
18616 (arc_can_use_return_insn): Declare.
18617 * config/arc/arc.c (AUX_LP_START): Define
18618 (AUX_LP_END): Likewise.
18619 (arc_frame_info): Update gmask member to 64-bit datum.
18620 (GMASK_LEN): Update.
18621 (arc_compute_function_type): Make it static, move it forward.
18622 (arc_must_save_register): Update, consider the extra regs.
18623 (arc_compute_millicode_save_restore_regs): Update to use the 64
18624 bit gmask.
18625 (arc_compute_frame_size): Likewise.
18626 (arc_enter_leave_p): Likewise.
18627 (arc_save_callee_saves): Likewise.
18628 (arc_restore_callee_saves): Likewise.
18629 (arc_save_callee_enter): Likewise.
18630 (arc_restore_callee_leave): Likewise.
18631 (arc_save_callee_milli): Likewise.
18632 (arc_restore_callee_milli): Likewise.
18633 (arc_expand_prologue): Add new interrupt handling.
18634 (arc_return_address_register): Make it static, move it forward.
18635 (arc_expand_epilogue): Add new interrupt handling.
18636 (arc_get_unalign): Delete.
18637 (arc_epilogue_uses): Make sure we do not remove the extra
18638 saved/restored registers when interrupt.
18639 (arc_can_use_return_insn): New function.
18640 (push_reg): Likewise.
18641 (pop_reg): Likewise.
18642 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18643 procedures.
18644 (arc_restore_callee_saves): Likewise, but restoring.
18645 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18646 (R33_REG): Likewise.
18647 (R34_REG): Likewise.
18648 (R35_REG): Likewise.
18649 (R36_REG): Likewise.
18650 (R37_REG): Likewise.
18651 (R38_REG): Likewise.
18652 (R39_REG): Likewise.
18653 (R45_REG): Likewise.
18654 (R46_REG): Likewise.
18655 (R47_REG): Likewise.
18656 (R48_REG): Likewise.
18657 (R49_REG): Likewise.
18658 (R50_REG): Likewise.
18659 (R51_REG): Likewise.
18660 (R52_REG): Likewise.
18661 (R53_REG): Likewise.
18662 (R54_REG): Likewise.
18663 (R55_REG): Likewise.
18664 (R56_REG): Likewise.
18665 (R58_REG): Likewise.
18666 (type): Add rtie attribute.
18667 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18668 (movsi_insn): Accept moves to lp_count.
18669 (rtie): Update pattern.
18670 (simple_return): Simplify it, don't use this pattern as a return
18671 from an interrupt.
18672 (arc600_rtie): New pattern.
18673 (p_return_i): Clean up.
18674 (return): Likewise.
18675 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18676 family CPUs.
18677 * config/arc/predicates.md (move_src_operand): Consider lp_count
18678 as a register.
18679
18680 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18681
18682 * config/s390/predicates.md (addv_const_operand): New predicate.
18683 * config/s390/s390-modes.def (CCO): New condition code mode.
18684 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18685 (s390_branch_condition_mask): Likewise.
18686 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18687 ("mulv<mode>4"): New expanders.
18688 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18689 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18690 pattern definitions.
18691
18692 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18693
18694 PR middle-end/91166
18695 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18696 (define_predicates): Add entry for uniform_vector_p.
18697 (vec_same_elem_p): New match pattern.
18698
18699 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18700
18701 PR bootstrap/87030
18702 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18703 * config/i386/darwin32-biarch.h .. to here.
18704 * config/i386/darwin64-biarch.h: Adjust comments.
18705 * config/rs6000/darwin32-biarch.h: Likewise.
18706 * config/rs6000/darwin64-biarch.h: Likewise.
18707 * config.gcc: Missed commit from r273746
18708 (*-*-darwin*): Don't include CPU t-darwin here.
18709 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18710 an error message if i686-darwin configuration is attempted for
18711 Darwin >= 18.
18712
18713 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18714
18715 PR bootstrap/87030
18716 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18717 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18718 an error message if i686-darwin configuration is attempted for
18719 Darwin >= 18.
18720 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18721 (powerpc-*-darwin*): Use biarch files where needed.
18722 (powerpc64-*-darwin*): Likewise.
18723 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18724 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18725 arch case.
18726 * config/i386/darwin32-biarch.h: New.
18727 * config/i386/darwin64.h: Rename.
18728 * config/i386/darwin64-biarch.h: To this.
18729 * config/i386/t-darwin: Rename.
18730 * config/i386/t-darwin32-biarch: To this.
18731 * config/i386/t-darwin64: Rename.
18732 * config/i386/t-darwin64-biarch: To this.
18733 * config/rs6000/darwin32-biarch.h: New.
18734 * config/rs6000/darwin64.h: Rename.
18735 * config/rs6000/darwin64-biarch.h: To this.
18736 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18737 arch case.
18738 * config/rs6000/t-darwin8: Rename.
18739 * config/rs6000/t-darwin32-biarch: To this.
18740 * config/rs6000/t-darwin64 Rename.
18741 * config/rs6000/t-darwin64-biarch: To this.
18742
18743 2019-07-23 Martin Sebor <msebor@redhat.com>
18744
18745 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18746
18747 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18748
18749 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18750 (rh): New alias for it.
18751
18752 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18753
18754 * gdbhooks.py: Pass replace=True to
18755 gdb.printing.register_pretty_printer.
18756
18757 2019-07-23 Richard Biener <rguenther@suse.de>
18758
18759 PR debug/91231
18760 * lto-streamer-in.c (input_function): Drop inline-entry markers
18761 that ended up with an unknown location block.
18762
18763 2019-07-23 Richard Biener <rguenther@suse.de>
18764
18765 PR tree-optimization/83518
18766 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18767 init from a constant even when partial defs are already recorded.
18768
18769 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18770
18771 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18772 * config/i386/znver1.md: Enable patterns for znver2 and add store
18773 variants which use extra AGU unit.
18774
18775 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18776
18777 * config/i386/i386-options.c (ix86_option_override_internal): Default
18778 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18779 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18780 for ZNVER2.
18781
18782 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18783
18784 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18785 (znver2_costs): Update 256 bit SSE costs and multiplication.
18786
18787 2019-07-23 Jan Beulich <jbeulich@suse.com>
18788
18789 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18790 Require only AVX512F.
18791 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18792 alternative expanding to vpternlog.
18793
18794 2019-07-23 Martin Liska <mliska@suse.cz>
18795
18796 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18797 to -flto in dwarf producer string.
18798
18799 2019-07-23 Richard Biener <rguenther@suse.de>
18800
18801 * tree-cfg.c (label_for_bb): Remove global var.
18802 (main_block_label): Take label_for_bb as argument.
18803 (cleanup_dead_labels_eh): Likewise, adjust.
18804 (cleanup_dead_labels): Adjust.
18805
18806 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18807
18808 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18809 Configurations): Add documentation for __builtin_mtfsf.
18810
18811 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18812
18813 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18814 * config/riscv/riscv.c (riscv_constant_alignment): Use
18815 riscv_align_data_type.
18816 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18817 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18818 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18819 * config/riscv/riscv.opt (malign-data): New.
18820 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18821
18822 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18823
18824 * cgraph.c (dump_graphviz): New function.
18825 * cgraph.h (dump_graphviz): New function.
18826 * symtab.c (dump_graphviz): New function.
18827
18828 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18829
18830 * config/aarch64/aarch64-simd.md
18831 (*aarch64_simd_sra<mode>): New.
18832 * config/aarch64/iterators.md
18833 (SHIFTRT): New iterator.
18834 (sra_op): New attribute.
18835
18836 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18837
18838 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18839 callee-saved regs R4->R10 in an interrupt function that calls another
18840 function.
18841
18842 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18843
18844 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18845 (_mm_blendv_epi8): New.
18846
18847 2019-07-22 Richard Biener <rguenther@suse.de>
18848
18849 PR tree-optimization/91221
18850 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18851 restrict partial-def handling of empty constructors and
18852 memset to refs with known offset.
18853
18854 2019-07-22 Jan Beulich <jbeulich@suse.com>
18855
18856 * config/i386/sse.md (ternlogsuffix): New.
18857 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18858 AVX512F is in use.
18859 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18860
18861 2019-07-22 Martin Liska <mliska@suse.cz>
18862
18863 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18864 comment.
18865 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18866
18867 2019-07-22 Martin Liska <mliska@suse.cz>
18868
18869 * lto-section-in.c (lto_get_section_data):
18870 Use new function get_compression.
18871 * lto-streamer-out.c (produce_lto_section): Use
18872 set_compression to encode compression algorithm.
18873 * lto-streamer.h (struct lto_section): Do not
18874 use bitfields in the format.
18875
18876 2019-07-22 Martin Liska <mliska@suse.cz>
18877
18878 PR driver/91172
18879 * opts-common.c (decode_cmdline_option): Decode
18880 argument of -Werror and check it for a wrong language.
18881 * opts-global.c (complain_wrong_lang): Remove such case.
18882
18883 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18884
18885 * config/arc/arc.c (prepare_move_operands): Always use an
18886 intermediate register when storing a TLS symbols.
18887
18888 2019-07-22 Stafford Horne <shorne@gmail.com>
18889
18890 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18891 force_reg.
18892
18893 2019-07-22 Stafford Horne <shorne@gmail.com>
18894
18895 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18896 and munordered-float validations.
18897 * config/or1k/constraints.md (d): New register constraint.
18898 * config/or1k/predicates.md (fp_comparison_operator): New.
18899 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18900 operands.
18901 (or1k_expand_compare): Normalize unordered comparisons.
18902 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18903 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18904 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18905 * config/or1k/or1k.md (type): Add fpu.
18906 (fpu): New instruction reservation.
18907 (F, f, fr, fi, FI, FOP, fop): New.
18908 (<fop><F:mode>3): New ALU instruction definition.
18909 (float<fi><F:mode>2): New conversion instruction definition.
18910 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18911 (fpcmpcc): New code iterator.
18912 (*sf_fp_insn): New instruction definition.
18913 (cstore<F:mode>4): New expand definition.
18914 (cbranch<F:mode>4): New expand definition.
18915 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18916 munordered-float): New options.
18917 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18918 munordered-float.
18919
18920 2019-07-22 Stafford Horne <shorne@gmail.com>
18921
18922 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18923 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18924 documenation to be more clear.
18925 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18926 more clear.
18927 * config/or1k/or1k.opt (mrori): New option.
18928 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18929 msfimm, mshftimm): Rewrite documentation to be more clear.
18930 * config/or1k/or1k.md (insn_support): Add ror and rori.
18931 (enabled): Add conditions for ror and rori.
18932 (rotrsi3): Replace condition for shftimm with ror and rori.
18933
18934 2019-07-22 Stafford Horne <shorne@gmail.com>
18935
18936 PR target/90363
18937 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18938 (extend<mode>si2): Update predicate.
18939 * config/or1k/predicates.md (volatile_mem_operand): New.
18940 (reg_or_mem_operand): New.
18941
18942 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18943
18944 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18945 * config/rs6000/rs6000-call.c: ... to here.
18946
18947 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18948
18949 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18950 memory.
18951
18952 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18953
18954 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18955
18956 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18957
18958 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18959
18960 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18961
18962 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18963 (any_memory_operand): New predicate.
18964 (reg_or_mem_operand): Use it.
18965
18966 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18967
18968 PR target/91204
18969 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18970
18971 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18972
18973 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18974 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18975
18976 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18977
18978 * tree.def (OMP_LOOP): New tree code.
18979 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18980 (enum omp_clause_bind_kind): New enum.
18981 (struct tree_omp_clause): Add subcode.bind_kind.
18982 * tree.h (OMP_LOOP_CHECK): Rename to ...
18983 (OMP_LOOPING_CHECK): ... this.
18984 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18985 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18986 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18987 (OMP_CLAUSE_BIND_KIND): Define.
18988 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18989 bind clause entries.
18990 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18991 * tree-pretty-print.c (dump_omp_clause): Likewise.
18992 (dump_generic_node): Handle OMP_LOOP.
18993 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18994 (in_omp_construct): New variable.
18995 (is_gimple_stmt): Handle OMP_LOOP.
18996 (gimplify_scan_omp_clauses): For lastprivate don't set
18997 check_non_private if code == OMP_LOOP. For reduction clause
18998 on OMP_LOOP combined with parallel or teams propagate as shared
18999 on the combined construct. Handle OMP_CLAUSE_BIND.
19000 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19001 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19002 for constructs from a loop construct to gimplify_scan_omp_clauses.
19003 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19004 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19005 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19006 to match the implicit ORT_TARGET construct around whole body.
19007 Temporarily clear in_omp_construct when processing body.
19008 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19009 etc. temporarily set in_omp_construct when processing body.
19010 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19011 * omp-low.c (struct omp_context): Add loop_p.
19012 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19013 in that the original var might be private.
19014 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19015 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19016 addition of loop construct.
19017 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19018
19019 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19020 lastprivate non-addressable iterator of a collapse(1) simd.
19021
19022 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19023
19024 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19025 as in rs6000.c.
19026
19027 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19028
19029 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19030 refer to default conditions. Warn for the 'y' spec which is ignored
19031 by current linkers.
19032
19033 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19034
19035 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19036 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19037 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19038 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19039 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19040 init_cumulative_args, rs6000_promote_function_mode,
19041 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19042 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19043 rs6000_function_arg_boundary, rs6000_parm_offset,
19044 rs6000_parm_start, rs6000_arg_size,
19045 rs6000_darwin64_record_arg_advance_flush,
19046 rs6000_darwin64_record_arg_advance_recurse,
19047 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19048 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19049 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19050 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19051 rs6000_finish_function_arg, rs6000_function_arg,
19052 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19053 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19054 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19055 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19056 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19057 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19058 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19059 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19060 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19061 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19062 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19063 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19064 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19065 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19066 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19067 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19068 get_element_number, altivec_expand_vec_set_builtin,
19069 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19070 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19071 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19072 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19073 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19074 rs6000_expand_builtin, rs6000_vector_type,
19075 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19076 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19077 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19078 to rs6000-call.c.
19079 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19080 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19081 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19082 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19083 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19084 init_cumulative_args, rs6000_promote_function_mode,
19085 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19086 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19087 rs6000_function_arg_boundary, rs6000_parm_offset,
19088 rs6000_parm_start, rs6000_arg_size,
19089 rs6000_darwin64_record_arg_advance_flush,
19090 rs6000_darwin64_record_arg_advance_recurse,
19091 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19092 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19093 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19094 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19095 rs6000_finish_function_arg, rs6000_function_arg,
19096 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19097 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19098 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19099 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19100 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19101 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19102 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19103 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19104 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19105 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19106 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19107 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19108 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19109 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19110 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19111 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19112 get_element_number, altivec_expand_vec_set_builtin,
19113 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19114 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19115 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19116 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19117 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19118 rs6000_expand_builtin, rs6000_vector_type,
19119 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19120 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19121 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19122 to here from rs6000.c.
19123 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19124 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19125 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19126 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19127 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19128 rs6000_return_in_memory, rs6000_return_in_msb,
19129 rs6000_pass_by_reference, setup_incoming_varargs,
19130 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19131 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19132 rs6000_function_arg_padding, rs6000_function_arg,
19133 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19134 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19135 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19136 rs6000_passes_long_double, rs6000_passes_vector,
19137 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19138 altivec_builtin_mask_for_load) Add declarations.
19139 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19140 * config/config.gcc: Add new source file rs6000-call.c to garbage
19141 collector and extra_objs.
19142
19143 2019-07-19 Jeff Law <law@redhat.com>
19144
19145 PR tree-optimization/86061
19146 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19147 strncpy. Drop some trivial dead code.
19148 (maybe_trim_memstar_call): Handle strncpy.
19149
19150 2019-07-19 Richard Biener <rguenther@suse.de>
19151
19152 PR tree-optimization/91211
19153 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19154 memset encoding size.
19155
19156 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19157
19158 PR target/91204
19159 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19160
19161 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19162
19163 PR ipa/91194
19164 * ipa-inline.c (recursive_inlining): Fix limits check.
19165
19166 2019-07-19 Richard Biener <rguenther@suse.de>
19167
19168 PR tree-optimization/91200
19169 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19170 no PHI nodes in middle-bb.
19171
19172 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19173
19174 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19175 to +sve-bitperm.
19176 * config/aarch64/aarch64-option-extensions.def: Likewise.
19177
19178 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19179
19180 PR middle-end/91190
19181 * function.c (insert_temp_slot_address): Store into the hash table
19182 a copy of address to avoid RTL sharing issues.
19183
19184 2019-07-19 Richard Biener <rguenther@suse.de>
19185
19186 PR tree-optimization/91207
19187 Revert
19188 2019-07-17 Richard Biener <rguenther@suse.de>
19189
19190 PR tree-optimization/91178
19191 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19192 loads with a gap larger than the vector size always use
19193 VMAT_STRIDED_SLP.
19194 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19195 avoid loading vectors that are only contained in the gap
19196 and thus are not needed.
19197
19198 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19199
19200 * config/i386/i386.md (*addqi_2_slp): Remove.
19201 (*<code>qi_2_slp): Ditto.
19202
19203 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19204
19205 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19206 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19207 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19208 Rename function from rs6000_prefixed_address.
19209 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19210 TARGET_HAS_TOC.
19211 (TARGET_TOC): Likewise.
19212 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19213 rs6000.h.
19214 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19215 TARGET_HAS_TOC.
19216 (TARGET_TOC): Likewise.
19217 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19218 rs6000.h.
19219 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19220 TARGET_HAS_TOC.
19221 (TARGET_TOC): Likewise.
19222 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19223 check to require -mcmodel=medium for pc-relative addressing.
19224 (create_TOC_reference): Add assertion for TARGET_TOC.
19225 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19226 TARGET_NO_TOC.
19227 (rs6000_emit_move): Likewise.
19228 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19229 to 'TOC_alias_set'.
19230 (get_TOC_alias_set): Likewise.
19231 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19232 TARGET_NO_TOC.
19233 (rs6000_can_eliminate): Likewise.
19234 (rs6000_prefixed_address_mode_p): Rename function from
19235 rs6000_prefixed_address.
19236 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19237 TARGET_HAS_TOC and not pc-relative.
19238 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19239 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19240 TARGET_HAS_TOC.
19241 (TARGET_TOC): Likewise.
19242 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19243 rs6000.h.
19244
19245 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19246
19247 PR target/91188
19248 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19249 for operand 0. Do not use (match_dup) to match operand 1 with
19250 operand 0. Add check in insn constraint that either input operand
19251 matches operand 0. Use SWI12 mode iterator to also handle
19252 HImode operands.
19253 (*and<mode>_1_slp): Ditto.
19254 (*<code>qi_1_slp): Ditto.
19255 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19256 Do not use (match_dup) to match operand 1 with operand 0. Add
19257 check in insn constraint that operand 1 matches operand 0.
19258 Use SWI12 mode iterator to also handle HImode operands.
19259 (*ashl<mode>3_1_slp): Ditto.
19260 (*<shift_insn><mode>3_1_slp): Ditto.
19261 (*<rotate_insn><mode>3_1_slp): Ditto.
19262
19263 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19264
19265 * config/arm/arm-builtins.c
19266 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19267 (arm_expand_unop_builtin): Likewise.
19268 * config/arm/crypto.md
19269 (crypto_sha1h): Convert from define_insn to define_expand.
19270 (crypto_<crypto_pattern>): Likewise.
19271 (crypto_sha1h_lb): New define_insn.
19272 (crypto_<crypto_pattern>_lb): Likewise.
19273
19274 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19275
19276 PR target/90317
19277 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19278 (vsha1cq_u32): Likewise.
19279 (vsha1pq_u32): Likewise.
19280 (vsha1mq_u32): Likewise.
19281 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19282 vec select.
19283 (crypto_sha1c): Correct vec select.
19284 (crypto_sha1m): Likewise.
19285 (crypto_sha1p): Likewise.
19286
19287 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19288
19289 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19290 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19291 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19292 (subdi_zesidi_zesidi): Likewise.
19293 (negdi2_compare, negdi2_insn): Likewise.
19294 (negdi_extensidi): Likewise.
19295 (negdi_zero_extendsidi): Likewise.
19296 (arm_cmpdi_insn): Likewise.
19297 (subsi3_carryin): Use arm_borrow_operation.
19298 (subsi3_carryin_const): Likewise.
19299 (subsi3_carryin_const0): Likewise.
19300 (subsi3_carryin_compare): Likewise.
19301 (subsi3_carryin_compare_const): Likewise.
19302 (subsi3_carryin_compare_const0): Likewise.
19303 (subsi3_carryin_shift): Likewise.
19304 (rsbsi3_carryin_shift): Likewise.
19305 (negsi2_carryin_compare): Likewise.
19306
19307 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19308
19309 PR tree-optimization/91137
19310 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19311 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19312 Init, use and fini the above new field.
19313 (determine_base_object_1): New function.
19314 (determine_base_object): Reimplement using walk_tree.
19315
19316 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19317
19318 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19319 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19320 CLEANUP_FORCE_FAST_DCE is set.
19321 * ifcvt.c (rest_of_handle_if_conversion): Pass
19322 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19323 if-conversion succeeded.
19324
19325 2019-07-18 Richard Biener <rguenther@suse.de>
19326
19327 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19328 branches to make code less indented.
19329
19330 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19331
19332 PR middle-end/81824
19333 * attribs.c (decls_mismatched_attributes): Simplify the logic
19334 that avoids duplicates and false positives.
19335
19336 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19337
19338 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19339 data into data section when generating PIC code.
19340 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19341 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19342 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19343 return 2 for SOM and 0 for other targets.
19344
19345 2019-07-17 Jeff Law <law@redhat.com>
19346
19347 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19348 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19349 avoid unexpected switch statement fallthru.
19350
19351 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19352
19353 * config/i386/i386.md (*add<dwi>3_doubleword):
19354 Remove redundant constraints.
19355 (*add<mode>_1): Ditto.
19356 (*addhi_1): Ditto.
19357 (*addqi_1): Ditto.
19358 (*addqi_1_slp): Ditto.
19359 (*add<mode>_2): Ditto.
19360 (*addv<mode>4): Ditto.
19361 (*sub<dwi>3_doubleword): Ditto.
19362 (*sub<mode>_1): Ditto.
19363 (*subqi_1_slp): Ditto.
19364 (*sub<mode>_2): Ditto.
19365 (*subv<mode>4): Ditto.
19366 (*sub<mode>_3): Ditto.
19367 (@add<mode>3_carry): Ditto.
19368 (@sub<mode>3_carry): Ditto.
19369 (*add<mode>3_cc_overflow_1): Ditto.
19370 (*add<mode>3_zext_cc_overflow_2): Ditto.
19371 (*anddi_1): Ditto.
19372 (*and<mode>_1): Ditto.
19373 (*andqi_1): Ditto.
19374 (*andqi_1_slp): Ditto.
19375 (*anddi_2): Ditto.
19376 (*andqi_2_maybe_si): Ditto.
19377 (*and<mode>_2): Ditto.
19378 (*andqi_2_slp): Ditto.
19379 (*<code><mode>_1): Ditto.
19380 (*<code>qi_1): Ditto.
19381 (*<code>qi_1_slp): Ditto.
19382 (*<code><mode>_2): Ditto.
19383 (*<code>qi_2_slp): Ditto.
19384
19385 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19386
19387 * alias.c (record_component_aliases): Do not simplify pointed-to
19388 types of ODR types.
19389
19390 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19391
19392 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19393 partial reg stall on alternative 2.
19394
19395 2019-07-17 Richard Biener <rguenther@suse.de>
19396
19397 PR tree-optimization/91178
19398 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19399 lower SSA names to avoid quadratic behavior in the common case.
19400 * tree-data-ref.c (split_constant_offset): Add limit argument
19401 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19402 (split_constant_offset_1): Add limit argument and use it to
19403 limit SSA def walking. Optimize the common plus/minus case.
19404
19405 2019-07-17 Richard Biener <rguenther@suse.de>
19406
19407 PR tree-optimization/91178
19408 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19409 loads with a gap larger than the vector size always use
19410 VMAT_STRIDED_SLP.
19411 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19412 avoid loading vectors that are only contained in the gap
19413 and thus are not needed.
19414
19415 2019-07-17 Richard Biener <rguenther@suse.de>
19416
19417 PR tree-optimization/91180
19418 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19419 computation for memset partial defs.
19420
19421 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19422
19423 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19424 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19425 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19426 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19427 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19428 * omp-grid.c (grid_process_grid_body,
19429 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19430 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19431 == GF_OMP_FOR_KIND_SIMD.
19432 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19433 check_omp_nesting_restrictions, scan_omp_1_stmt,
19434 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19435 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19436 omp_find_scan): Likewise.
19437 * omp-expand.c (expand_omp_for): Likewise.
19438 * omp-general.c (omp_extract_for_data): Likewise.
19439
19440 PR tree-optimization/91157
19441 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19442 a vector boolean with scalar mode.
19443 (expand_vector_condition): Handle first operand being a vector boolean
19444 with scalar mode.
19445 (expand_vector_operations_1): For comparisons, don't bail out early
19446 if the return type is vector boolean with scalar mode, but comparison
19447 operand type is not.
19448
19449 2019-07-17 Richard Biener <rguenther@suse.de>
19450
19451 PR tree-optimization/91181
19452 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19453 IFN_LOADs as calls.
19454
19455 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19456
19457 * config/i386/i386.md (*testdi_1): Match CCZmode for
19458 constants that might have the SImode sign bit set.
19459 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19460 Use correct constraints for pentium pairing.
19461 (*test<mode>_1): Ditto.
19462
19463 2019-07-16 Jeff Law <law@redhat.com>
19464
19465 PR rtl-optimization/91173
19466 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19467 SSA_NAME with a constant value, fold its value into the offset
19468 and clear the base before calling gen_addr_rtx.
19469
19470 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19471
19472 PR rtl-optimization/91164
19473 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19474 invalidate dominance info.
19475
19476 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19477
19478 * read-md.h (md_reader::record_potential_iterator_use): Add a
19479 file_location parameter.
19480 * read-rtl.c (attribute_use::loc): New field.
19481 (map_attr_string): Take a file_location parameter. Report cases
19482 in which attributes map to multiple distinct values.
19483 (apply_attribute_uses): Update call accordingly.
19484 (md_reader::handle_overloaded_name): Likewise.
19485 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19486 nonnull strings.
19487 (record_attribute_use): Take a file_location parameter.
19488 Initialize attribute_use::loc.
19489 (md_reader::record_potential_iterator_use): Take a file_location
19490 parameter. Update call to record_attribute_use.
19491 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19492 (rtx_reader::read_rtx_code): Likewise.
19493 (rtx_reader::read_rtx_operand): Likewise. Record a location
19494 for implicitly-expanded empty strings.
19495
19496 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19497
19498 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19499 Use file_location instead of separate fields.
19500 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19501 separate filename and line number.
19502 * read-md.c (ptr_loc): As above.
19503 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19504 (md_reader::fprint_md_ptr_loc): Likewise.
19505 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19506 instead of a separate filename and line number.
19507 (md_reader::read_string): Update call accordingly.
19508
19509 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19510
19511 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19512 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19513 leaving the choice between SFDF and P implicit.
19514 (*mov<mode>_update2): Likewise.
19515 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19516 rather than leaving the choice betweem IBM128 and GPR implicit.
19517 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19518 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19519 QHSI implicit.
19520 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19521 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19522 * config/rs6000/vsx.md
19523 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19524 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19525 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19526 and VSX_EXTRACT_I implicit.
19527
19528 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19529
19530 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19531 Explicitly use <MOVEP1:MODE> for the mode attribute.
19532
19533 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19534
19535 PR bootstrap/91176
19536 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19537
19538 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19539
19540 PR target/91050
19541 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19542 .machine directive.
19543
19544 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19545
19546 * config/i386/i386.md (@test<mode>_ccno_1):
19547 Rename from test<mode>_ccno_1.
19548 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19549 (*testqi_1_maybe_si): Remove modrm attribute.
19550 (*test<mode>_1): Ditto.
19551 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19552 gen_test_ccno_1 and gen_extend_insn.
19553
19554 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19555
19556 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19557 to 0.
19558
19559 2019-07-15 Richard Biener <rguenther@suse.de>
19560
19561 PR middle-end/91162
19562 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19563 node make sure to replace all uses with something valid.
19564
19565 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19566
19567 PR tree-optimization/88497
19568 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19569 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19570 function undistribute_bitref_for_vector.
19571 (undistribute_bitref_for_vector): New function.
19572 (cleanup_vinfo_map): Likewise.
19573 (sort_by_mach_mode): Likewise.
19574
19575 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19576
19577 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19578 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19579 and testdi_ccno_1 using SWI48 mode attribute.
19580 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19581 x86_64_szext_general_operand.
19582 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19583 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19584 instead of genera_operand mode attribute.
19585
19586 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19587
19588 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19589 fopen and fclose to their respective types.
19590 (DotFn.invoke): Ditto.
19591
19592 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19593
19594 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19595 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19596 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19597 (array_index_predicate): Remove.
19598 (analyze_function_body): Account cost for variable ofsetted array
19599 indexing.
19600 (estimate_node_size_and_time): Do not compute array index hint.
19601 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19602 (inline_read_section): Do not read array index hint.
19603 (ipa_fn_summary_write): Do not write array index hint.
19604 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19605 * ipa-cp.c (hint_time_bonus): Remove.
19606 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19607 (ipa_fnsummary): Remove array_index.
19608 * ipa-inline.c (want_inline_small_function_p): Do not use
19609 array_index.
19610 (edge_badness): Likewise.
19611 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19612
19613 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19614
19615 PR target/91148
19616 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19617 superfluous "builtin function" phrasing.
19618
19619 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19620
19621 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19622 Break out from ...
19623 (aliasing_component_refs_walk): Break out from ...
19624 (aliasing_component_refs_p): ... here.
19625
19626 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19627
19628 PR target/91148
19629 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19630 "builtin function" phrasing.
19631
19632 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19633
19634 PR target/90723
19635 * recog.h (temporary_volatile_ok): New class.
19636 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19637 volatile_ok temporarily to true using temporary_volatile_ok.
19638 * expr.c (emit_block_move_via_cpymem): Likewise.
19639 * optabs.c (maybe_legitimize_operand): Likewise.
19640
19641 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19642
19643 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19644 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19645 uses inside of order(concurrent) constructs.
19646 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19647 OMP_CLAUSE_ORDER is seen.
19648 * omp-low.c (struct omp_context): Add order_concurrent member.
19649 (scan_sharing_clauses): Set ctx->order_concurrent if
19650 OMP_CLAUSE_ORDER is seen.
19651 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19652 of simd order(concurrent). Diagnose constructs not allowed inside of
19653 for order(concurrent).
19654 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19655 complaining about static double setjmp (double); or class static
19656 methods or non-global namespace setjmps.
19657 (omp_runtime_api_call): New function.
19658 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19659 order(concurrent) loops.
19660
19661 2019-07-12 Martin Sebor <msebor@redhat.com>
19662
19663 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19664 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19665 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19666 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19667
19668 2019-07-12 Jan Hubicka <jh@suse.cz>
19669
19670 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19671 (indirect_refs_may_alias_p): ... here.
19672 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19673 mem refs in the access paths.
19674
19675 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19676
19677 PR tree-optimization/89430
19678 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19679 store elimination for local variable without address escape.
19680
19681 2019-07-12 Jeff Law <law@redhat.com>
19682
19683 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19684 for the ".far" section.
19685
19686 2019-07-12 Richard Biener <rguenther@suse.de>
19687
19688 PR tree-optimization/91145
19689 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19690 chain check.
19691
19692 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19693
19694 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19695 rather than this_state as the lowering context for the ELSE
19696 seq in a GIMPLE_EH_ELSE.
19697
19698 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19699
19700 * vector-builder.h (vector_builder::elt): Allow already-supplied
19701 elements to be read back before building is complete.
19702
19703 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19704
19705 PR rtl-optimization/91136
19706 * df-core.c (ACCESSING REFS): Fix typos in comment.
19707 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19708 the beginning of the block to the initial set of live registers.
19709
19710 2019-07-12 Richard Biener <rguenther@suse.de>
19711
19712 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19713 * fold-const.c (get_array_ctor_element_at_index): Add
19714 ctor_idx output parameter informing the caller where in
19715 the constructor the element was (not) found. Add early exit
19716 for when the ctor is sorted.
19717 * gimple-fold.c (fold_array_ctor_reference): Support constant
19718 folding across multiple array elements.
19719
19720 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19721
19722 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19723 doesn't have location, set the current location to the function's end.
19724
19725 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19726
19727 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19728 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19729 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19730 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19731 * config/aarch64/aarch64-simd.md
19732 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19733 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19734 * config/aarch64/aarch64-sve.md
19735 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19736 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19737
19738 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19739
19740 * doc/md.texi: Document that @ patterns can have different
19741 numbers of operands.
19742 * genemit.c (handle_overloaded_gen): Handle this case.
19743 * genopinit.c (handle_overloaded_gen): Likewise.
19744 * gensupport.c (replace_operands_with_dups): Iterate over
19745 the new rtx's format rather than the old one's.
19746
19747 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19748
19749 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19750 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19751 order clause entries.
19752 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19753 * tree-pretty-print.c (dump_omp_clause): Likewise.
19754 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19755 Likewise.
19756 * omp-low.c (scan_sharing_clauses): Likewise.
19757 * tree-nested.c (convert_nonlocal_omp_clauses,
19758 convert_local_omp_clauses): Likewise.
19759
19760 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19761
19762 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19763 fallthrough target of current basic block isn't the placed
19764 right next.
19765
19766 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19767
19768 PR target/90980
19769 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19770 (_mm512_storeu_epi64): Likewise.
19771 (_mm512_loadu_epi32): Likewise.
19772 (_mm512_storeu_epi32): Likewise.
19773 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19774 (_mm_storeu_epi64): Likewise.
19775 (_mm256_storeu_epi32): Likewise.
19776 (_mm_storeu_epi32): Likewise.
19777
19778 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19779
19780 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19781
19782 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19783
19784 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19785 Handle Modula-2.
19786
19787 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19788
19789 PR target/91124
19790 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19791 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19792 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19793 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19794 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19795 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19796 define_insns.
19797 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19798 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19799 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19800 define_insns.
19801 (sse2_cvttpd2dq<mask_name>): Change into ...
19802 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19803 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19804 (*sse2_cvtpd2dq<mask_name>): Change into ...
19805 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19806 Add "C" constraint to const0_operand.
19807 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19808 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19809 changes.
19810
19811 PR target/91124
19812 * config/i386/i386-builtin-types.def
19813 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19814 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19815 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19816 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19817 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19818 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19819 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19820 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19821 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19822 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19823 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19824 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19825 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19826 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19827 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19828 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19829 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19830 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19831 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19832 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19833 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19834 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19835 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19836 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19837 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19838 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19839 __builtin_ia32_vpdpbusd_v4si_maskz,
19840 __builtin_ia32_vpdpbusds_v16si_mask,
19841 __builtin_ia32_vpdpbusds_v16si_maskz,
19842 __builtin_ia32_vpdpbusds_v8si_mask,
19843 __builtin_ia32_vpdpbusds_v8si_maskz,
19844 __builtin_ia32_vpdpbusds_v4si_mask,
19845 __builtin_ia32_vpdpbusds_v4si_maskz,
19846 __builtin_ia32_vpdpwssd_v16si_mask,
19847 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19848 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19849 __builtin_ia32_vpdpwssd_v4si_maskz,
19850 __builtin_ia32_vpdpwssds_v16si_mask,
19851 __builtin_ia32_vpdpwssds_v16si_maskz,
19852 __builtin_ia32_vpdpwssds_v8si_mask,
19853 __builtin_ia32_vpdpwssds_v8si_maskz,
19854 __builtin_ia32_vpdpwssds_v4si_mask,
19855 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19856 suffixed types rather than *_INT.
19857 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19858 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19859 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19860 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19861 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19862 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19863
19864 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19865
19866 * tree-vrp.c (intersect_ranges): If we know the intersection is
19867 empty, there is no need to conservatively add anything else to
19868 the set.
19869
19870 2019-07-11 Richard Biener <rguenther@suse.de>
19871
19872 PR middle-end/91131
19873 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19874 when the object is volatile and we have not cleared it even though
19875 there are no nonzero elements.
19876
19877 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19878
19879 * config/rs6000/predicates.md (cint34_operand): Update
19880 SIGNED_34BIT_OFFSET_P call.
19881 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19882 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19883 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19884 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19885 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19886 argument.
19887 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19888 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19889 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19890 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19891 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19892
19893 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19894
19895 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19896 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19897 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19898 (DEF_MIN_OSX_VERSION): New.
19899
19900 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19901
19902 * fold-const.c (fold_relational_const): Fix folding of
19903 vector-to-scalar NE_EXPRs.
19904 (test_vector_folding): Add more tests.
19905
19906 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19907
19908 PR target/91060
19909 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19910 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19911 (vec_setv2di_internal): Reexpress as...
19912 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19913 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19914 rather than gen_neon_vset_lane<mode>.
19915
19916 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19917
19918 PR target/91102
19919 * lra-constraints.c (process_alt_operands): Don't match user
19920 defined regs only if they are early clobbers.
19921
19922 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19923
19924 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19925
19926 2019-07-10 Richard Biener <rguenther@suse.de>
19927
19928 PR tree-optimization/91126
19929 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19930 native encoding offset for BYTES_BIG_ENDIAN.
19931 (vn_reference_lookup_3): Likewise.
19932
19933 2019-07-10 Richard Biener <rguenther@suse.de>
19934
19935 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19936 LHS whenever possible.
19937
19938 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19939
19940 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19941 from ...; work also on duplicated types.
19942 (nonoverlapping_component_refs_since_match): ... here
19943 (ncr_type_uid): Break out from ...
19944 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19945 available.
19946 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19947 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19948
19949 2019-07-09 Martin Sebor <msebor@redhat.com>
19950
19951 PR tree-optimization/90989
19952 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19953 optimization to just single character stores.
19954
19955 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19956
19957 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19958 Swap operands only once.
19959
19960 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19961
19962 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19963 for both call instructions.
19964
19965 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19966
19967 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19968 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19969
19970 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19971
19972 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19973 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19974 function from rs6000-logue.c back to rs6000.c.
19975 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19976
19977 2019-07-09 Martin Sebor <msebor@redhat.com>
19978
19979 PR c++/61339
19980 * auto-profile.c: Change class-key of PODs to struct and others
19981 to class.
19982 * basic-block.h: Same.
19983 * bitmap.c (bitmap_alloc): Same.
19984 * bitmap.h: Same.
19985 * builtins.c (expand_builtin_prefetch): Same.
19986 (expand_builtin_interclass_mathfn): Same.
19987 (expand_builtin_strlen): Same.
19988 (expand_builtin_mempcpy_args): Same.
19989 (expand_cmpstr): Same.
19990 (expand_builtin___clear_cache): Same.
19991 (expand_ifn_atomic_bit_test_and): Same.
19992 (expand_builtin_thread_pointer): Same.
19993 (expand_builtin_set_thread_pointer): Same.
19994 * caller-save.c (setup_save_areas): Same.
19995 (replace_reg_with_saved_mem): Same.
19996 (insert_restore): Same.
19997 (insert_save): Same.
19998 (add_used_regs): Same.
19999 * cfg.c (get_bb_copy): Same.
20000 (set_loop_copy): Same.
20001 * cfg.h: Same.
20002 * cfganal.h: Same.
20003 * cfgexpand.c (alloc_stack_frame_space): Same.
20004 (add_stack_var): Same.
20005 (add_stack_var_conflict): Same.
20006 (add_scope_conflicts_1): Same.
20007 (update_alias_info_with_stack_vars): Same.
20008 (expand_used_vars): Same.
20009 * cfghooks.c (redirect_edge_and_branch_force): Same.
20010 (delete_basic_block): Same.
20011 (split_edge): Same.
20012 (make_forwarder_block): Same.
20013 (force_nonfallthru): Same.
20014 (duplicate_block): Same.
20015 (lv_flush_pending_stmts): Same.
20016 * cfghooks.h: Same.
20017 * cfgloop.c (flow_loops_cfg_dump): Same.
20018 (flow_loop_nested_p): Same.
20019 (superloop_at_depth): Same.
20020 (get_loop_latch_edges): Same.
20021 (flow_loop_dump): Same.
20022 (flow_loops_dump): Same.
20023 (flow_loops_free): Same.
20024 (flow_loop_nodes_find): Same.
20025 (establish_preds): Same.
20026 (flow_loop_tree_node_add): Same.
20027 (flow_loop_tree_node_remove): Same.
20028 (flow_loops_find): Same.
20029 (find_subloop_latch_edge_by_profile): Same.
20030 (find_subloop_latch_edge_by_ivs): Same.
20031 (mfb_redirect_edges_in_set): Same.
20032 (form_subloop): Same.
20033 (merge_latch_edges): Same.
20034 (disambiguate_multiple_latches): Same.
20035 (disambiguate_loops_with_multiple_latches): Same.
20036 (flow_bb_inside_loop_p): Same.
20037 (glb_enum_p): Same.
20038 (get_loop_body_with_size): Same.
20039 (get_loop_body): Same.
20040 (fill_sons_in_loop): Same.
20041 (get_loop_body_in_dom_order): Same.
20042 (get_loop_body_in_custom_order): Same.
20043 (release_recorded_exits): Same.
20044 (get_loop_exit_edges): Same.
20045 (num_loop_branches): Same.
20046 (remove_bb_from_loops): Same.
20047 (find_common_loop): Same.
20048 (delete_loop): Same.
20049 (cancel_loop): Same.
20050 (verify_loop_structure): Same.
20051 (loop_preheader_edge): Same.
20052 (loop_exit_edge_p): Same.
20053 (single_exit): Same.
20054 (loop_exits_to_bb_p): Same.
20055 (loop_exits_from_bb_p): Same.
20056 (get_loop_location): Same.
20057 (record_niter_bound): Same.
20058 (get_estimated_loop_iterations_int): Same.
20059 (max_stmt_executions_int): Same.
20060 (likely_max_stmt_executions_int): Same.
20061 (get_estimated_loop_iterations): Same.
20062 (get_max_loop_iterations): Same.
20063 (get_max_loop_iterations_int): Same.
20064 (get_likely_max_loop_iterations): Same.
20065 * cfgloop.h (simple_loop_desc): Same.
20066 (get_loop): Same.
20067 (loop_depth): Same.
20068 (loop_outer): Same.
20069 (loop_iterator::next): Same.
20070 (loop_outermost): Same.
20071 * cfgloopanal.c (mark_irreducible_loops): Same.
20072 (num_loop_insns): Same.
20073 (average_num_loop_insns): Same.
20074 (expected_loop_iterations_unbounded): Same.
20075 (expected_loop_iterations): Same.
20076 (mark_loop_exit_edges): Same.
20077 (single_likely_exit): Same.
20078 * cfgloopmanip.c (fix_bb_placement): Same.
20079 (fix_bb_placements): Same.
20080 (remove_path): Same.
20081 (place_new_loop): Same.
20082 (add_loop): Same.
20083 (scale_loop_frequencies): Same.
20084 (scale_loop_profile): Same.
20085 (create_empty_if_region_on_edge): Same.
20086 (create_empty_loop_on_edge): Same.
20087 (loopify): Same.
20088 (unloop): Same.
20089 (fix_loop_placements): Same.
20090 (copy_loop_info): Same.
20091 (duplicate_loop): Same.
20092 (duplicate_subloops): Same.
20093 (loop_redirect_edge): Same.
20094 (can_duplicate_loop_p): Same.
20095 (duplicate_loop_to_header_edge): Same.
20096 (mfb_keep_just): Same.
20097 (has_preds_from_loop): Same.
20098 (create_preheader): Same.
20099 (create_preheaders): Same.
20100 (lv_adjust_loop_entry_edge): Same.
20101 (loop_version): Same.
20102 * cfgloopmanip.h: Same.
20103 * cgraph.h: Same.
20104 * cgraphbuild.c: Same.
20105 * combine.c (make_extraction): Same.
20106 * config/i386/i386-features.c: Same.
20107 * config/i386/i386-features.h: Same.
20108 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20109 (ix86_emit_outlined_ms2sysv_restore): Same.
20110 (ix86_noce_conversion_profitable_p): Same.
20111 (ix86_init_cost): Same.
20112 (ix86_simd_clone_usable): Same.
20113 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20114 Wstruct-not-pod.
20115 * coretypes.h: Same.
20116 * data-streamer-in.c (string_for_index): Change class-key of PODs
20117 to struct and others to class.
20118 (streamer_read_indexed_string): Same.
20119 (streamer_read_string): Same.
20120 (bp_unpack_indexed_string): Same.
20121 (bp_unpack_string): Same.
20122 (streamer_read_uhwi): Same.
20123 (streamer_read_hwi): Same.
20124 (streamer_read_gcov_count): Same.
20125 (streamer_read_wide_int): Same.
20126 * data-streamer.h (streamer_write_bitpack): Same.
20127 (bp_unpack_value): Same.
20128 (streamer_write_char_stream): Same.
20129 (streamer_write_hwi_in_range): Same.
20130 (streamer_write_record_start): Same.
20131 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20132 (add_cross_iteration_register_deps): Same.
20133 (build_intra_loop_deps): Same.
20134 * df-core.c (df_analyze): Same.
20135 (loop_post_order_compute): Same.
20136 (loop_inverted_post_order_compute): Same.
20137 * df-problems.c (df_rd_alloc): Same.
20138 (df_rd_simulate_one_insn): Same.
20139 (df_rd_local_compute): Same.
20140 (df_rd_init_solution): Same.
20141 (df_rd_confluence_n): Same.
20142 (df_rd_transfer_function): Same.
20143 (df_rd_free): Same.
20144 (df_rd_dump_defs_set): Same.
20145 (df_rd_top_dump): Same.
20146 (df_lr_alloc): Same.
20147 (df_lr_reset): Same.
20148 (df_lr_local_compute): Same.
20149 (df_lr_init): Same.
20150 (df_lr_confluence_n): Same.
20151 (df_lr_free): Same.
20152 (df_lr_top_dump): Same.
20153 (df_lr_verify_transfer_functions): Same.
20154 (df_live_alloc): Same.
20155 (df_live_reset): Same.
20156 (df_live_init): Same.
20157 (df_live_confluence_n): Same.
20158 (df_live_finalize): Same.
20159 (df_live_free): Same.
20160 (df_live_top_dump): Same.
20161 (df_live_verify_transfer_functions): Same.
20162 (df_mir_alloc): Same.
20163 (df_mir_reset): Same.
20164 (df_mir_init): Same.
20165 (df_mir_confluence_n): Same.
20166 (df_mir_free): Same.
20167 (df_mir_top_dump): Same.
20168 (df_word_lr_alloc): Same.
20169 (df_word_lr_reset): Same.
20170 (df_word_lr_init): Same.
20171 (df_word_lr_confluence_n): Same.
20172 (df_word_lr_free): Same.
20173 (df_word_lr_top_dump): Same.
20174 (df_md_alloc): Same.
20175 (df_md_simulate_one_insn): Same.
20176 (df_md_reset): Same.
20177 (df_md_init): Same.
20178 (df_md_free): Same.
20179 (df_md_top_dump): Same.
20180 * df-scan.c (df_insn_delete): Same.
20181 (df_insn_rescan): Same.
20182 (df_notes_rescan): Same.
20183 (df_sort_and_compress_mws): Same.
20184 (df_install_mws): Same.
20185 (df_refs_add_to_chains): Same.
20186 (df_ref_create_structure): Same.
20187 (df_ref_record): Same.
20188 (df_def_record_1): Same.
20189 (df_find_hard_reg_defs): Same.
20190 (df_uses_record): Same.
20191 (df_get_conditional_uses): Same.
20192 (df_get_call_refs): Same.
20193 (df_recompute_luids): Same.
20194 (df_get_entry_block_def_set): Same.
20195 (df_entry_block_defs_collect): Same.
20196 (df_get_exit_block_use_set): Same.
20197 (df_exit_block_uses_collect): Same.
20198 (df_mws_verify): Same.
20199 (df_bb_verify): Same.
20200 * df.h (df_scan_get_bb_info): Same.
20201 * doc/tm.texi: Same.
20202 * dse.c (record_store): Same.
20203 * dumpfile.h: Same.
20204 * emit-rtl.c (const_fixed_hasher::equal): Same.
20205 (set_mem_attributes_minus_bitpos): Same.
20206 (change_address): Same.
20207 (adjust_address_1): Same.
20208 (offset_address): Same.
20209 * emit-rtl.h: Same.
20210 * except.c (dw2_build_landing_pads): Same.
20211 (sjlj_emit_dispatch_table): Same.
20212 * explow.c (allocate_dynamic_stack_space): Same.
20213 (emit_stack_probe): Same.
20214 (probe_stack_range): Same.
20215 * expmed.c (store_bit_field_using_insv): Same.
20216 (store_bit_field_1): Same.
20217 (store_integral_bit_field): Same.
20218 (extract_bit_field_using_extv): Same.
20219 (extract_bit_field_1): Same.
20220 (emit_cstore): Same.
20221 * expr.c (emit_block_move_via_cpymem): Same.
20222 (expand_cmpstrn_or_cmpmem): Same.
20223 (set_storage_via_setmem): Same.
20224 (emit_single_push_insn_1): Same.
20225 (expand_assignment): Same.
20226 (store_constructor): Same.
20227 (expand_expr_real_2): Same.
20228 (expand_expr_real_1): Same.
20229 (try_casesi): Same.
20230 * flags.h: Same.
20231 * function.c (try_fit_stack_local): Same.
20232 (assign_stack_local_1): Same.
20233 (assign_stack_local): Same.
20234 (cut_slot_from_list): Same.
20235 (insert_slot_to_list): Same.
20236 (max_slot_level): Same.
20237 (move_slot_to_level): Same.
20238 (temp_address_hasher::equal): Same.
20239 (remove_unused_temp_slot_addresses): Same.
20240 (assign_temp): Same.
20241 (combine_temp_slots): Same.
20242 (update_temp_slot_address): Same.
20243 (preserve_temp_slots): Same.
20244 * function.h: Same.
20245 * fwprop.c: Same.
20246 * gcc-rich-location.h: Same.
20247 * gcov.c: Same.
20248 * genattrtab.c (check_attr_test): Same.
20249 (check_attr_value): Same.
20250 (convert_set_attr_alternative): Same.
20251 (convert_set_attr): Same.
20252 (check_defs): Same.
20253 (copy_boolean): Same.
20254 (get_attr_value): Same.
20255 (expand_delays): Same.
20256 (make_length_attrs): Same.
20257 (min_fn): Same.
20258 (make_alternative_compare): Same.
20259 (simplify_test_exp): Same.
20260 (tests_attr_p): Same.
20261 (get_attr_order): Same.
20262 (clear_struct_flag): Same.
20263 (gen_attr): Same.
20264 (compares_alternatives_p): Same.
20265 (gen_insn): Same.
20266 (gen_delay): Same.
20267 (find_attrs_to_cache): Same.
20268 (write_test_expr): Same.
20269 (walk_attr_value): Same.
20270 (write_attr_get): Same.
20271 (eliminate_known_true): Same.
20272 (write_insn_cases): Same.
20273 (write_attr_case): Same.
20274 (write_attr_valueq): Same.
20275 (write_attr_value): Same.
20276 (write_dummy_eligible_delay): Same.
20277 (next_comma_elt): Same.
20278 (find_attr): Same.
20279 (make_internal_attr): Same.
20280 (copy_rtx_unchanging): Same.
20281 (gen_insn_reserv): Same.
20282 (check_tune_attr): Same.
20283 (make_automaton_attrs): Same.
20284 (handle_arg): Same.
20285 * genextract.c (gen_insn): Same.
20286 (VEC_char_to_string): Same.
20287 * genmatch.c (print_operand): Same.
20288 (lower): Same.
20289 (parser::parse_operation): Same.
20290 (parser::parse_capture): Same.
20291 (parser::parse_c_expr): Same.
20292 (parser::parse_simplify): Same.
20293 (main): Same.
20294 * genoutput.c (output_operand_data): Same.
20295 (output_get_insn_name): Same.
20296 (compare_operands): Same.
20297 (place_operands): Same.
20298 (process_template): Same.
20299 (validate_insn_alternatives): Same.
20300 (validate_insn_operands): Same.
20301 (gen_expand): Same.
20302 (note_constraint): Same.
20303 * genpreds.c (write_one_predicate_function): Same.
20304 (add_constraint): Same.
20305 (process_define_register_constraint): Same.
20306 (write_lookup_constraint_1): Same.
20307 (write_lookup_constraint_array): Same.
20308 (write_insn_constraint_len): Same.
20309 (write_reg_class_for_constraint_1): Same.
20310 (write_constraint_satisfied_p_array): Same.
20311 * genrecog.c (optimize_subroutine_group): Same.
20312 * gensupport.c (process_define_predicate): Same.
20313 (queue_pattern): Same.
20314 (remove_from_queue): Same.
20315 (process_rtx): Same.
20316 (is_predicable): Same.
20317 (change_subst_attribute): Same.
20318 (subst_pattern_match): Same.
20319 (alter_constraints): Same.
20320 (alter_attrs_for_insn): Same.
20321 (shift_output_template): Same.
20322 (alter_output_for_subst_insn): Same.
20323 (process_one_cond_exec): Same.
20324 (subst_dup): Same.
20325 (process_define_cond_exec): Same.
20326 (mnemonic_htab_callback): Same.
20327 (gen_mnemonic_attr): Same.
20328 (read_md_rtx): Same.
20329 * ggc-page.c: Same.
20330 * gimple-loop-interchange.cc (dump_reduction): Same.
20331 (dump_induction): Same.
20332 (loop_cand::~loop_cand): Same.
20333 (free_data_refs_with_aux): Same.
20334 (tree_loop_interchange::interchange_loops): Same.
20335 (tree_loop_interchange::map_inductions_to_loop): Same.
20336 (tree_loop_interchange::move_code_to_inner_loop): Same.
20337 (compute_access_stride): Same.
20338 (compute_access_strides): Same.
20339 (proper_loop_form_for_interchange): Same.
20340 (tree_loop_interchange_compute_ddrs): Same.
20341 (prune_datarefs_not_in_loop): Same.
20342 (prepare_data_references): Same.
20343 (pass_linterchange::execute): Same.
20344 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20345 (unroll_jam_possible_p): Same.
20346 (fuse_loops): Same.
20347 (adjust_unroll_factor): Same.
20348 (tree_loop_unroll_and_jam): Same.
20349 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20350 (loop_versioning::expensive_stmt_p): Same.
20351 (loop_versioning::version_for_unity): Same.
20352 (loop_versioning::dump_inner_likelihood): Same.
20353 (loop_versioning::find_per_loop_multiplication): Same.
20354 (loop_versioning::analyze_term_using_scevs): Same.
20355 (loop_versioning::record_address_fragment): Same.
20356 (loop_versioning::analyze_expr): Same.
20357 (loop_versioning::analyze_blocks): Same.
20358 (loop_versioning::prune_conditions): Same.
20359 (loop_versioning::merge_loop_info): Same.
20360 (loop_versioning::add_loop_to_queue): Same.
20361 (loop_versioning::decide_whether_loop_is_versionable): Same.
20362 (loop_versioning::make_versioning_decisions): Same.
20363 (loop_versioning::implement_versioning_decisions): Same.
20364 * gimple-ssa-evrp-analyze.c
20365 (evrp_range_analyzer::record_ranges_from_phis): Same.
20366 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20367 (count_multiple_uses): Same.
20368 (split_group): Same.
20369 (imm_store_chain_info::output_merged_store): Same.
20370 (pass_store_merging::process_store): Same.
20371 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20372 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20373 (is_max): Same.
20374 (alloca_call_type): Same.
20375 (pass_walloca::execute): Same.
20376 * gimple-streamer-in.c (input_phi): Same.
20377 (input_gimple_stmt): Same.
20378 * gimple-streamer.h: Same.
20379 * godump.c (go_force_record_alignment): Same.
20380 (go_format_type): Same.
20381 (go_output_type): Same.
20382 (go_output_fndecl): Same.
20383 (go_output_typedef): Same.
20384 (keyword_hash_init): Same.
20385 (find_dummy_types): Same.
20386 * graph.c (draw_cfg_nodes_no_loops): Same.
20387 (draw_cfg_nodes_for_loop): Same.
20388 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20389 * hsa-brig.c: Same.
20390 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20391 * hsa-dump.c (dump_hsa_cfun): Same.
20392 * hsa-gen.c (gen_function_def_parameters): Same.
20393 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20394 * input.c (dump_line_table_statistics): Same.
20395 (test_lexer): Same.
20396 * input.h: Same.
20397 * internal-fn.c (get_multi_vector_move): Same.
20398 (expand_load_lanes_optab_fn): Same.
20399 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20400 (expand_GOMP_SIMT_EXIT): Same.
20401 (expand_GOMP_SIMT_LAST_LANE): Same.
20402 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20403 (expand_GOMP_SIMT_VOTE_ANY): Same.
20404 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20405 (expand_GOMP_SIMT_XCHG_IDX): Same.
20406 (expand_addsub_overflow): Same.
20407 (expand_neg_overflow): Same.
20408 (expand_mul_overflow): Same.
20409 (expand_call_mem_ref): Same.
20410 (expand_mask_load_optab_fn): Same.
20411 (expand_scatter_store_optab_fn): Same.
20412 (expand_gather_load_optab_fn): Same.
20413 * ipa-cp.c (ipa_get_parm_lattices): Same.
20414 (print_all_lattices): Same.
20415 (ignore_edge_p): Same.
20416 (build_toporder_info): Same.
20417 (free_toporder_info): Same.
20418 (push_node_to_stack): Same.
20419 (ipcp_lattice<valtype>::set_contains_variable): Same.
20420 (set_agg_lats_to_bottom): Same.
20421 (ipcp_bits_lattice::meet_with): Same.
20422 (set_single_call_flag): Same.
20423 (initialize_node_lattices): Same.
20424 (ipa_get_jf_ancestor_result): Same.
20425 (ipcp_verify_propagated_values): Same.
20426 (propagate_scalar_across_jump_function): Same.
20427 (propagate_context_across_jump_function): Same.
20428 (propagate_bits_across_jump_function): Same.
20429 (ipa_vr_operation_and_type_effects): Same.
20430 (propagate_vr_across_jump_function): Same.
20431 (set_check_aggs_by_ref): Same.
20432 (set_chain_of_aglats_contains_variable): Same.
20433 (merge_aggregate_lattices): Same.
20434 (agg_pass_through_permissible_p): Same.
20435 (propagate_aggs_across_jump_function): Same.
20436 (call_passes_through_thunk_p): Same.
20437 (propagate_constants_across_call): Same.
20438 (devirtualization_time_bonus): Same.
20439 (good_cloning_opportunity_p): Same.
20440 (context_independent_aggregate_values): Same.
20441 (gather_context_independent_values): Same.
20442 (perform_estimation_of_a_value): Same.
20443 (estimate_local_effects): Same.
20444 (value_topo_info<valtype>::add_val): Same.
20445 (add_all_node_vals_to_toposort): Same.
20446 (value_topo_info<valtype>::propagate_effects): Same.
20447 (ipcp_propagate_stage): Same.
20448 (ipcp_discover_new_direct_edges): Same.
20449 (same_node_or_its_all_contexts_clone_p): Same.
20450 (cgraph_edge_brings_value_p): Same.
20451 (gather_edges_for_value): Same.
20452 (create_specialized_node): Same.
20453 (find_more_scalar_values_for_callers_subset): Same.
20454 (find_more_contexts_for_caller_subset): Same.
20455 (copy_plats_to_inter): Same.
20456 (intersect_aggregates_with_edge): Same.
20457 (find_aggregate_values_for_callers_subset): Same.
20458 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20459 (decide_about_value): Same.
20460 (decide_whether_version_node): Same.
20461 (spread_undeadness): Same.
20462 (identify_dead_nodes): Same.
20463 (ipcp_store_vr_results): Same.
20464 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20465 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20466 (redirect_to_unreachable): Same.
20467 (edge_set_predicate): Same.
20468 (evaluate_conditions_for_known_args): Same.
20469 (evaluate_properties_for_edge): Same.
20470 (ipa_fn_summary_t::duplicate): Same.
20471 (ipa_call_summary_t::duplicate): Same.
20472 (dump_ipa_call_summary): Same.
20473 (ipa_dump_fn_summary): Same.
20474 (eliminated_by_inlining_prob): Same.
20475 (set_cond_stmt_execution_predicate): Same.
20476 (set_switch_stmt_execution_predicate): Same.
20477 (compute_bb_predicates): Same.
20478 (will_be_nonconstant_expr_predicate): Same.
20479 (phi_result_unknown_predicate): Same.
20480 (analyze_function_body): Same.
20481 (compute_fn_summary): Same.
20482 (estimate_edge_devirt_benefit): Same.
20483 (estimate_edge_size_and_time): Same.
20484 (estimate_calls_size_and_time): Same.
20485 (estimate_node_size_and_time): Same.
20486 (remap_edge_change_prob): Same.
20487 (remap_edge_summaries): Same.
20488 (ipa_merge_fn_summary_after_inlining): Same.
20489 (ipa_fn_summary_generate): Same.
20490 (inline_read_section): Same.
20491 (ipa_fn_summary_read): Same.
20492 (ipa_fn_summary_write): Same.
20493 * ipa-fnsummary.h: Same.
20494 * ipa-hsa.c (ipa_hsa_read_section): Same.
20495 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20496 * ipa-icf.c (sem_function::param_used_p): Same.
20497 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20498 * ipa-inline.c (edge_badness): Same.
20499 (inline_small_functions): Same.
20500 * ipa-polymorphic-call.c
20501 (ipa_polymorphic_call_context::stream_out): Same.
20502 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20503 (predicate::remap_after_inlining): Same.
20504 (predicate::stream_out): Same.
20505 * ipa-predicate.h: Same.
20506 * ipa-profile.c (ipa_profile_read_summary): Same.
20507 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20508 (count_formal_params): Same.
20509 (ipa_dump_param): Same.
20510 (ipa_alloc_node_params): Same.
20511 (ipa_print_node_jump_functions_for_edge): Same.
20512 (ipa_print_node_jump_functions): Same.
20513 (ipa_load_from_parm_agg): Same.
20514 (get_ancestor_addr_info): Same.
20515 (ipa_compute_jump_functions_for_edge): Same.
20516 (ipa_analyze_virtual_call_uses): Same.
20517 (ipa_analyze_stmt_uses): Same.
20518 (ipa_analyze_params_uses_in_bb): Same.
20519 (update_jump_functions_after_inlining): Same.
20520 (try_decrement_rdesc_refcount): Same.
20521 (ipa_impossible_devirt_target): Same.
20522 (update_indirect_edges_after_inlining): Same.
20523 (combine_controlled_uses_counters): Same.
20524 (ipa_edge_args_sum_t::duplicate): Same.
20525 (ipa_write_jump_function): Same.
20526 (ipa_write_indirect_edge_info): Same.
20527 (ipa_write_node_info): Same.
20528 (ipa_read_edge_info): Same.
20529 (ipa_prop_read_section): Same.
20530 (read_replacements_section): Same.
20531 * ipa-prop.h (ipa_get_param_count): Same.
20532 (ipa_get_param): Same.
20533 (ipa_get_type): Same.
20534 (ipa_get_param_move_cost): Same.
20535 (ipa_set_param_used): Same.
20536 (ipa_get_controlled_uses): Same.
20537 (ipa_set_controlled_uses): Same.
20538 (ipa_get_cs_argument_count): Same.
20539 * ipa-pure-const.c (analyze_function): Same.
20540 (pure_const_read_summary): Same.
20541 * ipa-ref.h: Same.
20542 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20543 * ipa-split.c (test_nonssa_use): Same.
20544 (dump_split_point): Same.
20545 (dominated_by_forbidden): Same.
20546 (split_part_set_ssa_name_p): Same.
20547 (find_split_points): Same.
20548 * ira-build.c (finish_loop_tree_nodes): Same.
20549 (low_pressure_loop_node_p): Same.
20550 * ira-color.c (ira_reuse_stack_slot): Same.
20551 * ira-int.h: Same.
20552 * ira.c (setup_reg_equiv): Same.
20553 (print_insn_chain): Same.
20554 (ira): Same.
20555 * loop-doloop.c (doloop_condition_get): Same.
20556 (add_test): Same.
20557 (record_reg_sets): Same.
20558 (doloop_optimize): Same.
20559 * loop-init.c (loop_optimizer_init): Same.
20560 (fix_loop_structure): Same.
20561 * loop-invariant.c (merge_identical_invariants): Same.
20562 (compute_always_reached): Same.
20563 (find_exits): Same.
20564 (may_assign_reg_p): Same.
20565 (find_invariants_bb): Same.
20566 (find_invariants_body): Same.
20567 (replace_uses): Same.
20568 (can_move_invariant_reg): Same.
20569 (free_inv_motion_data): Same.
20570 (move_single_loop_invariants): Same.
20571 (change_pressure): Same.
20572 (mark_ref_regs): Same.
20573 (calculate_loop_reg_pressure): Same.
20574 * loop-iv.c (biv_entry_hasher::equal): Same.
20575 (iv_extend_to_rtx_code): Same.
20576 (check_iv_ref_table_size): Same.
20577 (clear_iv_info): Same.
20578 (latch_dominating_def): Same.
20579 (iv_get_reaching_def): Same.
20580 (iv_constant): Same.
20581 (iv_subreg): Same.
20582 (iv_extend): Same.
20583 (iv_neg): Same.
20584 (iv_add): Same.
20585 (iv_mult): Same.
20586 (get_biv_step): Same.
20587 (record_iv): Same.
20588 (analyzed_for_bivness_p): Same.
20589 (record_biv): Same.
20590 (iv_analyze_biv): Same.
20591 (iv_analyze_expr): Same.
20592 (iv_analyze_def): Same.
20593 (iv_analyze_op): Same.
20594 (iv_analyze): Same.
20595 (iv_analyze_result): Same.
20596 (biv_p): Same.
20597 (eliminate_implied_conditions): Same.
20598 (simplify_using_initial_values): Same.
20599 (shorten_into_mode): Same.
20600 (canonicalize_iv_subregs): Same.
20601 (determine_max_iter): Same.
20602 (check_simple_exit): Same.
20603 (find_simple_exit): Same.
20604 (get_simple_loop_desc): Same.
20605 * loop-unroll.c (report_unroll): Same.
20606 (decide_unrolling): Same.
20607 (unroll_loops): Same.
20608 (loop_exit_at_end_p): Same.
20609 (decide_unroll_constant_iterations): Same.
20610 (unroll_loop_constant_iterations): Same.
20611 (compare_and_jump_seq): Same.
20612 (unroll_loop_runtime_iterations): Same.
20613 (decide_unroll_stupid): Same.
20614 (unroll_loop_stupid): Same.
20615 (referenced_in_one_insn_in_loop_p): Same.
20616 (reset_debug_uses_in_loop): Same.
20617 (analyze_iv_to_split_insn): Same.
20618 * lra-eliminations.c (lra_debug_elim_table): Same.
20619 (setup_can_eliminate): Same.
20620 (form_sum): Same.
20621 (lra_get_elimination_hard_regno): Same.
20622 (lra_eliminate_regs_1): Same.
20623 (eliminate_regs_in_insn): Same.
20624 (update_reg_eliminate): Same.
20625 (init_elimination): Same.
20626 (lra_eliminate): Same.
20627 * lra-int.h: Same.
20628 * lra-lives.c (initiate_live_solver): Same.
20629 * lra-remat.c (create_remat_bb_data): Same.
20630 * lra-spills.c (lra_spill): Same.
20631 * lra.c (lra_set_insn_recog_data): Same.
20632 (lra_set_used_insn_alternative_by_uid): Same.
20633 (init_reg_info): Same.
20634 (expand_reg_info): Same.
20635 * lto-cgraph.c (output_symtab): Same.
20636 (read_identifier): Same.
20637 (get_alias_symbol): Same.
20638 (input_node): Same.
20639 (input_varpool_node): Same.
20640 (input_ref): Same.
20641 (input_edge): Same.
20642 (input_cgraph_1): Same.
20643 (input_refs): Same.
20644 (input_symtab): Same.
20645 (input_offload_tables): Same.
20646 (output_cgraph_opt_summary): Same.
20647 (input_edge_opt_summary): Same.
20648 (input_cgraph_opt_section): Same.
20649 * lto-section-in.c (lto_free_raw_section_data): Same.
20650 (lto_create_simple_input_block): Same.
20651 (lto_free_function_in_decl_state_for_node): Same.
20652 * lto-streamer-in.c (lto_tag_check_set): Same.
20653 (lto_location_cache::revert_location_cache): Same.
20654 (lto_location_cache::input_location): Same.
20655 (lto_input_location): Same.
20656 (stream_input_location_now): Same.
20657 (lto_input_tree_ref): Same.
20658 (lto_input_eh_catch_list): Same.
20659 (input_eh_region): Same.
20660 (lto_init_eh): Same.
20661 (make_new_block): Same.
20662 (input_cfg): Same.
20663 (fixup_call_stmt_edges): Same.
20664 (input_struct_function_base): Same.
20665 (input_function): Same.
20666 (lto_read_body_or_constructor): Same.
20667 (lto_read_tree_1): Same.
20668 (lto_read_tree): Same.
20669 (lto_input_scc): Same.
20670 (lto_input_tree_1): Same.
20671 (lto_input_toplevel_asms): Same.
20672 (lto_input_mode_table): Same.
20673 (lto_reader_init): Same.
20674 (lto_data_in_create): Same.
20675 * lto-streamer-out.c (output_cfg): Same.
20676 * lto-streamer.h: Same.
20677 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20678 (generate_prolog_epilog): Same.
20679 (mark_loop_unsched): Same.
20680 (dump_insn_location): Same.
20681 (loop_canon_p): Same.
20682 (sms_schedule): Same.
20683 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20684 (expand_omp_for_generic): Same.
20685 (expand_omp_for_static_nochunk): Same.
20686 (expand_omp_for_static_chunk): Same.
20687 (expand_omp_simd): Same.
20688 (expand_omp_taskloop_for_inner): Same.
20689 (expand_oacc_for): Same.
20690 (expand_omp_atomic_pipeline): Same.
20691 (mark_loops_in_oacc_kernels_region): Same.
20692 * omp-offload.c (oacc_xform_loop): Same.
20693 * omp-simd-clone.c (simd_clone_adjust): Same.
20694 * optabs-query.c (get_traditional_extraction_insn): Same.
20695 * optabs.c (expand_vector_broadcast): Same.
20696 (expand_binop_directly): Same.
20697 (expand_twoval_unop): Same.
20698 (expand_twoval_binop): Same.
20699 (expand_unop_direct): Same.
20700 (emit_indirect_jump): Same.
20701 (emit_conditional_move): Same.
20702 (emit_conditional_neg_or_complement): Same.
20703 (emit_conditional_add): Same.
20704 (vector_compare_rtx): Same.
20705 (expand_vec_perm_1): Same.
20706 (expand_vec_perm_const): Same.
20707 (expand_vec_cond_expr): Same.
20708 (expand_vec_series_expr): Same.
20709 (maybe_emit_atomic_exchange): Same.
20710 (maybe_emit_sync_lock_test_and_set): Same.
20711 (expand_atomic_compare_and_swap): Same.
20712 (expand_atomic_load): Same.
20713 (expand_atomic_store): Same.
20714 (maybe_emit_op): Same.
20715 (valid_multiword_target_p): Same.
20716 (create_integer_operand): Same.
20717 (maybe_legitimize_operand_same_code): Same.
20718 (maybe_legitimize_operand): Same.
20719 (create_convert_operand_from_type): Same.
20720 (can_reuse_operands_p): Same.
20721 (maybe_legitimize_operands): Same.
20722 (maybe_gen_insn): Same.
20723 (maybe_expand_insn): Same.
20724 (maybe_expand_jump_insn): Same.
20725 (expand_insn): Same.
20726 * optabs.h (create_expand_operand): Same.
20727 (create_fixed_operand): Same.
20728 (create_output_operand): Same.
20729 (create_input_operand): Same.
20730 (create_convert_operand_to): Same.
20731 (create_convert_operand_from): Same.
20732 * optinfo.h: Same.
20733 * poly-int.h: Same.
20734 * predict.c (optimize_insn_for_speed_p): Same.
20735 (optimize_loop_for_size_p): Same.
20736 (optimize_loop_for_speed_p): Same.
20737 (optimize_loop_nest_for_speed_p): Same.
20738 (get_base_value): Same.
20739 (predicted_by_loop_heuristics_p): Same.
20740 (predict_extra_loop_exits): Same.
20741 (predict_loops): Same.
20742 (predict_paths_for_bb): Same.
20743 (predict_paths_leading_to): Same.
20744 (propagate_freq): Same.
20745 (pass_profile::execute): Same.
20746 * predict.h: Same.
20747 * profile-count.c (profile_count::differs_from_p): Same.
20748 (profile_probability::differs_lot_from_p): Same.
20749 * profile-count.h: Same.
20750 * profile.c (branch_prob): Same.
20751 * regrename.c (free_chain_data): Same.
20752 (mark_conflict): Same.
20753 (create_new_chain): Same.
20754 (merge_overlapping_regs): Same.
20755 (init_rename_info): Same.
20756 (merge_chains): Same.
20757 (regrename_analyze): Same.
20758 (regrename_do_replace): Same.
20759 (scan_rtx_reg): Same.
20760 (record_out_operands): Same.
20761 (build_def_use): Same.
20762 * regrename.h: Same.
20763 * reload.h: Same.
20764 * reload1.c (init_reload): Same.
20765 (maybe_fix_stack_asms): Same.
20766 (copy_reloads): Same.
20767 (count_pseudo): Same.
20768 (count_spilled_pseudo): Same.
20769 (find_reg): Same.
20770 (find_reload_regs): Same.
20771 (select_reload_regs): Same.
20772 (spill_hard_reg): Same.
20773 (fixup_eh_region_note): Same.
20774 (set_reload_reg): Same.
20775 (allocate_reload_reg): Same.
20776 (compute_reload_subreg_offset): Same.
20777 (reload_adjust_reg_for_icode): Same.
20778 (emit_input_reload_insns): Same.
20779 (emit_output_reload_insns): Same.
20780 (do_input_reload): Same.
20781 (inherit_piecemeal_p): Same.
20782 * rtl.h: Same.
20783 * sanopt.c (maybe_get_dominating_check): Same.
20784 (maybe_optimize_ubsan_ptr_ifn): Same.
20785 (can_remove_asan_check): Same.
20786 (maybe_optimize_asan_check_ifn): Same.
20787 (sanopt_optimize_walker): Same.
20788 * sched-deps.c (add_dependence_list): Same.
20789 (chain_to_prev_insn): Same.
20790 (add_insn_mem_dependence): Same.
20791 (create_insn_reg_set): Same.
20792 (maybe_extend_reg_info_p): Same.
20793 (sched_analyze_reg): Same.
20794 (sched_analyze_1): Same.
20795 (get_implicit_reg_pending_clobbers): Same.
20796 (chain_to_prev_insn_p): Same.
20797 (deps_analyze_insn): Same.
20798 (deps_start_bb): Same.
20799 (sched_free_deps): Same.
20800 (init_deps): Same.
20801 (init_deps_reg_last): Same.
20802 (free_deps): Same.
20803 * sched-ebb.c: Same.
20804 * sched-int.h: Same.
20805 * sched-rgn.c (add_branch_dependences): Same.
20806 (concat_insn_mem_list): Same.
20807 (deps_join): Same.
20808 (sched_rgn_compute_dependencies): Same.
20809 * sel-sched-ir.c (reset_target_context): Same.
20810 (copy_deps_context): Same.
20811 (init_id_from_df): Same.
20812 (has_dependence_p): Same.
20813 (change_loops_latches): Same.
20814 (bb_top_order_comparator): Same.
20815 (make_region_from_loop_preheader): Same.
20816 (sel_init_pipelining): Same.
20817 (get_loop_nest_for_rgn): Same.
20818 (make_regions_from_the_rest): Same.
20819 (sel_is_loop_preheader_p): Same.
20820 * sel-sched-ir.h (inner_loop_header_p): Same.
20821 (get_all_loop_exits): Same.
20822 * selftest.h: Same.
20823 * sese.c (sese_build_liveouts): Same.
20824 (sese_insert_phis_for_liveouts): Same.
20825 * sese.h (defined_in_sese_p): Same.
20826 * sreal.c (sreal::stream_out): Same.
20827 * sreal.h: Same.
20828 * streamer-hooks.h: Same.
20829 * target-globals.c (save_target_globals): Same.
20830 * target-globals.h: Same.
20831 * target.def: Same.
20832 * target.h: Same.
20833 * targhooks.c (default_has_ifunc_p): Same.
20834 (default_empty_mask_is_expensive): Same.
20835 (default_init_cost): Same.
20836 * targhooks.h: Same.
20837 * toplev.c: Same.
20838 * tree-affine.c (aff_combination_mult): Same.
20839 (aff_combination_expand): Same.
20840 (aff_combination_constant_multiple_p): Same.
20841 * tree-affine.h: Same.
20842 * tree-cfg.c (build_gimple_cfg): Same.
20843 (replace_loop_annotate_in_block): Same.
20844 (replace_uses_by): Same.
20845 (remove_bb): Same.
20846 (dump_cfg_stats): Same.
20847 (gimple_duplicate_sese_region): Same.
20848 (gimple_duplicate_sese_tail): Same.
20849 (move_block_to_fn): Same.
20850 (replace_block_vars_by_duplicates): Same.
20851 (move_sese_region_to_fn): Same.
20852 (print_loops_bb): Same.
20853 (print_loop): Same.
20854 (print_loops): Same.
20855 (debug): Same.
20856 (debug_loops): Same.
20857 * tree-cfg.h: Same.
20858 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20859 (chrec_fold_multiply_poly_poly): Same.
20860 (chrec_evaluate): Same.
20861 (chrec_component_in_loop_num): Same.
20862 (reset_evolution_in_loop): Same.
20863 (is_multivariate_chrec): Same.
20864 (chrec_contains_symbols): Same.
20865 (nb_vars_in_chrec): Same.
20866 (chrec_convert_1): Same.
20867 (chrec_convert_aggressive): Same.
20868 * tree-chrec.h: Same.
20869 * tree-core.h: Same.
20870 * tree-data-ref.c (dump_data_dependence_relation): Same.
20871 (canonicalize_base_object_address): Same.
20872 (data_ref_compare_tree): Same.
20873 (prune_runtime_alias_test_list): Same.
20874 (get_segment_min_max): Same.
20875 (create_intersect_range_checks): Same.
20876 (conflict_fn_no_dependence): Same.
20877 (object_address_invariant_in_loop_p): Same.
20878 (analyze_ziv_subscript): Same.
20879 (analyze_siv_subscript_cst_affine): Same.
20880 (analyze_miv_subscript): Same.
20881 (analyze_overlapping_iterations): Same.
20882 (build_classic_dist_vector_1): Same.
20883 (add_other_self_distances): Same.
20884 (same_access_functions): Same.
20885 (build_classic_dir_vector): Same.
20886 (subscript_dependence_tester_1): Same.
20887 (subscript_dependence_tester): Same.
20888 (access_functions_are_affine_or_constant_p): Same.
20889 (get_references_in_stmt): Same.
20890 (loop_nest_has_data_refs): Same.
20891 (graphite_find_data_references_in_stmt): Same.
20892 (find_data_references_in_bb): Same.
20893 (get_base_for_alignment): Same.
20894 (find_loop_nest_1): Same.
20895 (find_loop_nest): Same.
20896 * tree-data-ref.h (dr_alignment): Same.
20897 (ddr_dependence_level): Same.
20898 * tree-if-conv.c (fold_build_cond_expr): Same.
20899 (add_to_predicate_list): Same.
20900 (add_to_dst_predicate_list): Same.
20901 (phi_convertible_by_degenerating_args): Same.
20902 (idx_within_array_bound): Same.
20903 (all_preds_critical_p): Same.
20904 (pred_blocks_visited_p): Same.
20905 (predicate_bbs): Same.
20906 (build_region): Same.
20907 (if_convertible_loop_p_1): Same.
20908 (is_cond_scalar_reduction): Same.
20909 (predicate_scalar_phi): Same.
20910 (remove_conditions_and_labels): Same.
20911 (combine_blocks): Same.
20912 (version_loop_for_if_conversion): Same.
20913 (versionable_outer_loop_p): Same.
20914 (ifcvt_local_dce): Same.
20915 (tree_if_conversion): Same.
20916 (pass_if_conversion::gate): Same.
20917 * tree-if-conv.h: Same.
20918 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20919 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20920 (free_rdg): Same.
20921 (stmt_has_scalar_dependences_outside_loop): Same.
20922 (copy_loop_before): Same.
20923 (create_bb_after_loop): Same.
20924 (const_with_all_bytes_same): Same.
20925 (generate_memset_builtin): Same.
20926 (generate_memcpy_builtin): Same.
20927 (destroy_loop): Same.
20928 (build_rdg_partition_for_vertex): Same.
20929 (compute_access_range): Same.
20930 (data_ref_segment_size): Same.
20931 (latch_dominated_by_data_ref): Same.
20932 (compute_alias_check_pairs): Same.
20933 (fuse_memset_builtins): Same.
20934 (finalize_partitions): Same.
20935 (find_seed_stmts_for_distribution): Same.
20936 (prepare_perfect_loop_nest): Same.
20937 * tree-parloops.c (lambda_transform_legal_p): Same.
20938 (loop_parallel_p): Same.
20939 (reduc_stmt_res): Same.
20940 (add_field_for_name): Same.
20941 (create_call_for_reduction_1): Same.
20942 (replace_uses_in_bb_by): Same.
20943 (transform_to_exit_first_loop_alt): Same.
20944 (try_transform_to_exit_first_loop_alt): Same.
20945 (transform_to_exit_first_loop): Same.
20946 (num_phis): Same.
20947 (gen_parallel_loop): Same.
20948 (gather_scalar_reductions): Same.
20949 (get_omp_data_i_param): Same.
20950 (try_create_reduction_list): Same.
20951 (oacc_entry_exit_single_gang): Same.
20952 (parallelize_loops): Same.
20953 * tree-pass.h: Same.
20954 * tree-predcom.c (determine_offset): Same.
20955 (last_always_executed_block): Same.
20956 (split_data_refs_to_components): Same.
20957 (suitable_component_p): Same.
20958 (valid_initializer_p): Same.
20959 (find_looparound_phi): Same.
20960 (insert_looparound_copy): Same.
20961 (add_looparound_copies): Same.
20962 (determine_roots_comp): Same.
20963 (predcom_tmp_var): Same.
20964 (initialize_root_vars): Same.
20965 (initialize_root_vars_store_elim_1): Same.
20966 (initialize_root_vars_store_elim_2): Same.
20967 (finalize_eliminated_stores): Same.
20968 (initialize_root_vars_lm): Same.
20969 (remove_stmt): Same.
20970 (determine_unroll_factor): Same.
20971 (execute_pred_commoning_cbck): Same.
20972 (base_names_in_chain_on): Same.
20973 (combine_chains): Same.
20974 (pcom_stmt_dominates_stmt_p): Same.
20975 (try_combine_chains): Same.
20976 (prepare_initializers_chain_store_elim): Same.
20977 (prepare_initializers_chain): Same.
20978 (prepare_initializers): Same.
20979 (prepare_finalizers_chain): Same.
20980 (prepare_finalizers): Same.
20981 (insert_init_seqs): Same.
20982 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20983 (compute_overall_effect_of_inner_loop): Same.
20984 (add_to_evolution_1): Same.
20985 (add_to_evolution): Same.
20986 (follow_ssa_edge_binary): Same.
20987 (follow_ssa_edge_expr): Same.
20988 (backedge_phi_arg_p): Same.
20989 (follow_ssa_edge_in_condition_phi_branch): Same.
20990 (follow_ssa_edge_in_condition_phi): Same.
20991 (follow_ssa_edge_inner_loop_phi): Same.
20992 (follow_ssa_edge): Same.
20993 (analyze_evolution_in_loop): Same.
20994 (analyze_initial_condition): Same.
20995 (interpret_loop_phi): Same.
20996 (interpret_condition_phi): Same.
20997 (interpret_rhs_expr): Same.
20998 (interpret_expr): Same.
20999 (interpret_gimple_assign): Same.
21000 (analyze_scalar_evolution_1): Same.
21001 (analyze_scalar_evolution): Same.
21002 (analyze_scalar_evolution_for_address_of): Same.
21003 (get_instantiated_value_entry): Same.
21004 (loop_closed_phi_def): Same.
21005 (instantiate_scev_name): Same.
21006 (instantiate_scev_poly): Same.
21007 (instantiate_scev_binary): Same.
21008 (instantiate_scev_convert): Same.
21009 (instantiate_scev_not): Same.
21010 (instantiate_scev_r): Same.
21011 (instantiate_scev): Same.
21012 (resolve_mixers): Same.
21013 (initialize_scalar_evolutions_analyzer): Same.
21014 (scev_reset_htab): Same.
21015 (scev_reset): Same.
21016 (derive_simple_iv_with_niters): Same.
21017 (simple_iv_with_niters): Same.
21018 (expression_expensive_p): Same.
21019 (final_value_replacement_loop): Same.
21020 * tree-scalar-evolution.h (block_before_loop): Same.
21021 * tree-ssa-address.h: Same.
21022 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21023 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21024 (record_edge_info): Same.
21025 * tree-ssa-live.c (var_map_base_fini): Same.
21026 (remove_unused_locals): Same.
21027 * tree-ssa-live.h: Same.
21028 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21029 (pass_ch_vect::execute): Same.
21030 (pass_ch::process_loop_p): Same.
21031 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21032 (movement_possibility): Same.
21033 (outermost_invariant_loop): Same.
21034 (stmt_cost): Same.
21035 (determine_max_movement): Same.
21036 (invariantness_dom_walker::before_dom_children): Same.
21037 (move_computations): Same.
21038 (may_move_till): Same.
21039 (force_move_till_op): Same.
21040 (force_move_till): Same.
21041 (memref_free): Same.
21042 (record_mem_ref_loc): Same.
21043 (set_ref_stored_in_loop): Same.
21044 (mark_ref_stored): Same.
21045 (sort_bbs_in_loop_postorder_cmp): Same.
21046 (sort_locs_in_loop_postorder_cmp): Same.
21047 (analyze_memory_references): Same.
21048 (mem_refs_may_alias_p): Same.
21049 (find_ref_loc_in_loop_cmp): Same.
21050 (rewrite_mem_ref_loc::operator): Same.
21051 (first_mem_ref_loc_1::operator): Same.
21052 (sm_set_flag_if_changed::operator): Same.
21053 (execute_sm_if_changed_flag_set): Same.
21054 (execute_sm): Same.
21055 (hoist_memory_references): Same.
21056 (ref_always_accessed::operator): Same.
21057 (refs_independent_p): Same.
21058 (record_dep_loop): Same.
21059 (ref_indep_loop_p_1): Same.
21060 (ref_indep_loop_p): Same.
21061 (can_sm_ref_p): Same.
21062 (find_refs_for_sm): Same.
21063 (loop_suitable_for_sm): Same.
21064 (store_motion_loop): Same.
21065 (store_motion): Same.
21066 (fill_always_executed_in): Same.
21067 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21068 (estimated_unrolled_size): Same.
21069 (loop_edge_to_cancel): Same.
21070 (remove_exits_and_undefined_stmts): Same.
21071 (remove_redundant_iv_tests): Same.
21072 (unloop_loops): Same.
21073 (estimated_peeled_sequence_size): Same.
21074 (try_peel_loop): Same.
21075 (canonicalize_loop_induction_variables): Same.
21076 (canonicalize_induction_variables): Same.
21077 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21078 (name_info): Same.
21079 (stmt_after_inc_pos): Same.
21080 (contains_abnormal_ssa_name_p): Same.
21081 (niter_for_exit): Same.
21082 (find_bivs): Same.
21083 (mark_bivs): Same.
21084 (find_givs_in_bb): Same.
21085 (find_induction_variables): Same.
21086 (find_interesting_uses_cond): Same.
21087 (outermost_invariant_loop_for_expr): Same.
21088 (idx_find_step): Same.
21089 (add_candidate_1): Same.
21090 (add_iv_candidate_derived_from_uses): Same.
21091 (alloc_use_cost_map): Same.
21092 (prepare_decl_rtl): Same.
21093 (generic_predict_doloop_p): Same.
21094 (computation_cost): Same.
21095 (determine_common_wider_type): Same.
21096 (get_computation_aff_1): Same.
21097 (get_use_type): Same.
21098 (determine_group_iv_cost_address): Same.
21099 (iv_period): Same.
21100 (difference_cannot_overflow_p): Same.
21101 (may_eliminate_iv): Same.
21102 (determine_set_costs): Same.
21103 (cheaper_cost_pair): Same.
21104 (compare_cost_pair): Same.
21105 (iv_ca_cand_for_group): Same.
21106 (iv_ca_recount_cost): Same.
21107 (iv_ca_set_remove_invs): Same.
21108 (iv_ca_set_no_cp): Same.
21109 (iv_ca_set_add_invs): Same.
21110 (iv_ca_set_cp): Same.
21111 (iv_ca_add_group): Same.
21112 (iv_ca_cost): Same.
21113 (iv_ca_compare_deps): Same.
21114 (iv_ca_delta_reverse): Same.
21115 (iv_ca_delta_commit): Same.
21116 (iv_ca_cand_used_p): Same.
21117 (iv_ca_delta_free): Same.
21118 (iv_ca_new): Same.
21119 (iv_ca_free): Same.
21120 (iv_ca_dump): Same.
21121 (iv_ca_extend): Same.
21122 (iv_ca_narrow): Same.
21123 (iv_ca_prune): Same.
21124 (cheaper_cost_with_cand): Same.
21125 (iv_ca_replace): Same.
21126 (try_add_cand_for): Same.
21127 (get_initial_solution): Same.
21128 (try_improve_iv_set): Same.
21129 (find_optimal_iv_set_1): Same.
21130 (create_new_iv): Same.
21131 (rewrite_use_compare): Same.
21132 (remove_unused_ivs): Same.
21133 (determine_scaling_factor): Same.
21134 * tree-ssa-loop-ivopts.h: Same.
21135 * tree-ssa-loop-manip.c (create_iv): Same.
21136 (compute_live_loop_exits): Same.
21137 (add_exit_phi): Same.
21138 (add_exit_phis): Same.
21139 (find_uses_to_rename_use): Same.
21140 (find_uses_to_rename_def): Same.
21141 (find_uses_to_rename_in_loop): Same.
21142 (rewrite_into_loop_closed_ssa): Same.
21143 (check_loop_closed_ssa_bb): Same.
21144 (split_loop_exit_edge): Same.
21145 (ip_end_pos): Same.
21146 (ip_normal_pos): Same.
21147 (copy_phi_node_args): Same.
21148 (gimple_duplicate_loop_to_header_edge): Same.
21149 (can_unroll_loop_p): Same.
21150 (determine_exit_conditions): Same.
21151 (scale_dominated_blocks_in_loop): Same.
21152 (niter_for_unrolled_loop): Same.
21153 (tree_transform_and_unroll_loop): Same.
21154 (rewrite_all_phi_nodes_with_iv): Same.
21155 * tree-ssa-loop-manip.h: Same.
21156 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21157 (number_of_iterations_ne): Same.
21158 (assert_no_overflow_lt): Same.
21159 (assert_loop_rolls_lt): Same.
21160 (number_of_iterations_lt): Same.
21161 (adjust_cond_for_loop_until_wrap): Same.
21162 (tree_simplify_using_condition): Same.
21163 (simplify_using_initial_conditions): Same.
21164 (simplify_using_outer_evolutions): Same.
21165 (loop_only_exit_p): Same.
21166 (ssa_defined_by_minus_one_stmt_p): Same.
21167 (number_of_iterations_popcount): Same.
21168 (number_of_iterations_exit): Same.
21169 (find_loop_niter): Same.
21170 (finite_loop_p): Same.
21171 (chain_of_csts_start): Same.
21172 (get_val_for): Same.
21173 (loop_niter_by_eval): Same.
21174 (derive_constant_upper_bound_ops): Same.
21175 (do_warn_aggressive_loop_optimizations): Same.
21176 (record_estimate): Same.
21177 (get_cst_init_from_scev): Same.
21178 (record_nonwrapping_iv): Same.
21179 (idx_infer_loop_bounds): Same.
21180 (infer_loop_bounds_from_ref): Same.
21181 (infer_loop_bounds_from_array): Same.
21182 (infer_loop_bounds_from_pointer_arith): Same.
21183 (infer_loop_bounds_from_signedness): Same.
21184 (bound_index): Same.
21185 (discover_iteration_bound_by_body_walk): Same.
21186 (maybe_lower_iteration_bound): Same.
21187 (estimate_numbers_of_iterations): Same.
21188 (estimated_loop_iterations): Same.
21189 (estimated_loop_iterations_int): Same.
21190 (max_loop_iterations): Same.
21191 (max_loop_iterations_int): Same.
21192 (likely_max_loop_iterations): Same.
21193 (likely_max_loop_iterations_int): Same.
21194 (estimated_stmt_executions_int): Same.
21195 (max_stmt_executions): Same.
21196 (likely_max_stmt_executions): Same.
21197 (estimated_stmt_executions): Same.
21198 (stmt_dominates_stmt_p): Same.
21199 (nowrap_type_p): Same.
21200 (loop_exits_before_overflow): Same.
21201 (scev_var_range_cant_overflow): Same.
21202 (scev_probably_wraps_p): Same.
21203 (free_numbers_of_iterations_estimates): Same.
21204 * tree-ssa-loop-niter.h: Same.
21205 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21206 (idx_analyze_ref): Same.
21207 (analyze_ref): Same.
21208 (gather_memory_references_ref): Same.
21209 (mark_nontemporal_store): Same.
21210 (emit_mfence_after_loop): Same.
21211 (may_use_storent_in_loop_p): Same.
21212 (mark_nontemporal_stores): Same.
21213 (should_unroll_loop_p): Same.
21214 (volume_of_dist_vector): Same.
21215 (add_subscript_strides): Same.
21216 (self_reuse_distance): Same.
21217 (insn_to_prefetch_ratio_too_small_p): Same.
21218 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21219 (patch_loop_exit): Same.
21220 (find_or_create_guard_phi): Same.
21221 (easy_exit_values): Same.
21222 (connect_loop_phis): Same.
21223 (connect_loops): Same.
21224 (compute_new_first_bound): Same.
21225 (split_loop): Same.
21226 (tree_ssa_split_loops): Same.
21227 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21228 (is_maybe_undefined): Same.
21229 (tree_may_unswitch_on): Same.
21230 (simplify_using_entry_checks): Same.
21231 (tree_unswitch_single_loop): Same.
21232 (tree_unswitch_loop): Same.
21233 (tree_unswitch_outer_loop): Same.
21234 (empty_bb_without_guard_p): Same.
21235 (used_outside_loop_p): Same.
21236 (get_vop_from_header): Same.
21237 (hoist_guard): Same.
21238 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21239 (get_lsm_tmp_name): Same.
21240 * tree-ssa-loop.h: Same.
21241 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21242 (build_and_add_sum): Same.
21243 (no_side_effect_bb): Same.
21244 (get_ops): Same.
21245 (linearize_expr): Same.
21246 (should_break_up_subtract): Same.
21247 (linearize_expr_tree): Same.
21248 * tree-ssa-scopedtables.c: Same.
21249 * tree-ssa-scopedtables.h: Same.
21250 * tree-ssa-structalias.c (condense_visit): Same.
21251 (label_visit): Same.
21252 (dump_pred_graph): Same.
21253 (perform_var_substitution): Same.
21254 (move_complex_constraints): Same.
21255 (remove_preds_and_fake_succs): Same.
21256 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21257 (determine_bb_domination_status): Same.
21258 (duplicate_thread_path): Same.
21259 (thread_through_all_blocks): Same.
21260 * tree-ssa-threadupdate.h: Same.
21261 * tree-streamer-in.c (streamer_read_string_cst): Same.
21262 (input_identifier): Same.
21263 (unpack_ts_type_common_value_fields): Same.
21264 (unpack_ts_block_value_fields): Same.
21265 (unpack_ts_translation_unit_decl_value_fields): Same.
21266 (unpack_ts_omp_clause_value_fields): Same.
21267 (streamer_read_tree_bitfields): Same.
21268 (streamer_alloc_tree): Same.
21269 (lto_input_ts_common_tree_pointers): Same.
21270 (lto_input_ts_vector_tree_pointers): Same.
21271 (lto_input_ts_poly_tree_pointers): Same.
21272 (lto_input_ts_complex_tree_pointers): Same.
21273 (lto_input_ts_decl_minimal_tree_pointers): Same.
21274 (lto_input_ts_decl_common_tree_pointers): Same.
21275 (lto_input_ts_decl_non_common_tree_pointers): Same.
21276 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21277 (lto_input_ts_field_decl_tree_pointers): Same.
21278 (lto_input_ts_function_decl_tree_pointers): Same.
21279 (lto_input_ts_type_common_tree_pointers): Same.
21280 (lto_input_ts_type_non_common_tree_pointers): Same.
21281 (lto_input_ts_list_tree_pointers): Same.
21282 (lto_input_ts_vec_tree_pointers): Same.
21283 (lto_input_ts_exp_tree_pointers): Same.
21284 (lto_input_ts_block_tree_pointers): Same.
21285 (lto_input_ts_binfo_tree_pointers): Same.
21286 (lto_input_ts_constructor_tree_pointers): Same.
21287 (lto_input_ts_omp_clause_tree_pointers): Same.
21288 (streamer_read_tree_body): Same.
21289 * tree-streamer.h: Same.
21290 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21291 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21292 (vect_analyze_possibly_independent_ddr): Same.
21293 (vect_analyze_data_ref_dependence): Same.
21294 (vect_compute_data_ref_alignment): Same.
21295 (vect_enhance_data_refs_alignment): Same.
21296 (vect_analyze_data_ref_access): Same.
21297 (vect_check_gather_scatter): Same.
21298 (vect_find_stmt_data_reference): Same.
21299 (vect_create_addr_base_for_vector_ref): Same.
21300 (vect_setup_realignment): Same.
21301 (vect_supportable_dr_alignment): Same.
21302 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21303 (adjust_phi_and_debug_stmts): Same.
21304 (vect_set_loop_mask): Same.
21305 (add_preheader_seq): Same.
21306 (vect_maybe_permute_loop_masks): Same.
21307 (vect_set_loop_masks_directly): Same.
21308 (vect_set_loop_condition_masked): Same.
21309 (vect_set_loop_condition_unmasked): Same.
21310 (slpeel_duplicate_current_defs_from_edges): Same.
21311 (slpeel_add_loop_guard): Same.
21312 (slpeel_can_duplicate_loop_p): Same.
21313 (create_lcssa_for_virtual_phi): Same.
21314 (iv_phi_p): Same.
21315 (vect_update_ivs_after_vectorizer): Same.
21316 (vect_gen_vector_loop_niters_mult_vf): Same.
21317 (slpeel_update_phi_nodes_for_loops): Same.
21318 (slpeel_update_phi_nodes_for_guard1): Same.
21319 (find_guard_arg): Same.
21320 (slpeel_update_phi_nodes_for_guard2): Same.
21321 (slpeel_update_phi_nodes_for_lcssa): Same.
21322 (vect_do_peeling): Same.
21323 (vect_create_cond_for_alias_checks): Same.
21324 (vect_loop_versioning): Same.
21325 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21326 (vect_inner_phi_in_double_reduction_p): Same.
21327 (vect_analyze_scalar_cycles_1): Same.
21328 (vect_fixup_scalar_cycles_with_patterns): Same.
21329 (vect_get_loop_niters): Same.
21330 (bb_in_loop_p): Same.
21331 (vect_get_max_nscalars_per_iter): Same.
21332 (vect_verify_full_masking): Same.
21333 (vect_compute_single_scalar_iteration_cost): Same.
21334 (vect_analyze_loop_form_1): Same.
21335 (vect_analyze_loop_form): Same.
21336 (vect_active_double_reduction_p): Same.
21337 (vect_analyze_loop_operations): Same.
21338 (neutral_op_for_slp_reduction): Same.
21339 (vect_is_simple_reduction): Same.
21340 (vect_model_reduction_cost): Same.
21341 (get_initial_def_for_reduction): Same.
21342 (get_initial_defs_for_reduction): Same.
21343 (vect_create_epilog_for_reduction): Same.
21344 (vectorize_fold_left_reduction): Same.
21345 (vectorizable_reduction): Same.
21346 (vectorizable_induction): Same.
21347 (vectorizable_live_operation): Same.
21348 (loop_niters_no_overflow): Same.
21349 (vect_get_loop_mask): Same.
21350 (vect_transform_loop_stmt): Same.
21351 (vect_transform_loop): Same.
21352 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21353 (vect_determine_precisions): Same.
21354 (vect_pattern_recog_1): Same.
21355 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21356 * tree-vect-stmts.c (stmt_vectype): Same.
21357 (process_use): Same.
21358 (vect_init_vector_1): Same.
21359 (vect_truncate_gather_scatter_offset): Same.
21360 (get_group_load_store_type): Same.
21361 (vect_build_gather_load_calls): Same.
21362 (vect_get_strided_load_store_ops): Same.
21363 (vectorizable_simd_clone_call): Same.
21364 (vectorizable_store): Same.
21365 (permute_vec_elements): Same.
21366 (vectorizable_load): Same.
21367 (vect_transform_stmt): Same.
21368 (supportable_widening_operation): Same.
21369 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21370 (vec_info::free_stmt_vec_info): Same.
21371 (vect_free_loop_info_assumptions): Same.
21372 (vect_loop_vectorized_call): Same.
21373 (set_uid_loop_bbs): Same.
21374 (vectorize_loops): Same.
21375 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21376 * tree.c (add_tree_to_fld_list): Same.
21377 (fld_type_variant_equal_p): Same.
21378 (fld_decl_context): Same.
21379 (fld_incomplete_type_of): Same.
21380 (free_lang_data_in_binfo): Same.
21381 (need_assembler_name_p): Same.
21382 (find_decls_types_r): Same.
21383 (get_eh_types_for_runtime): Same.
21384 (find_decls_types_in_eh_region): Same.
21385 (find_decls_types_in_node): Same.
21386 (assign_assembler_name_if_needed): Same.
21387 * value-prof.c (stream_out_histogram_value): Same.
21388 * value-prof.h: Same.
21389 * var-tracking.c (use_narrower_mode): Same.
21390 (prepare_call_arguments): Same.
21391 (vt_expand_loc_callback): Same.
21392 (resolve_expansions_pending_recursion): Same.
21393 (vt_expand_loc): Same.
21394 * varasm.c (const_hash_1): Same.
21395 (compare_constant): Same.
21396 (tree_output_constant_def): Same.
21397 (simplify_subtraction): Same.
21398 (get_pool_constant): Same.
21399 (output_constant_pool_2): Same.
21400 (output_constant_pool_1): Same.
21401 (mark_constants_in_pattern): Same.
21402 (mark_constant_pool): Same.
21403 (get_section_anchor): Same.
21404 * vr-values.c (compare_range_with_value): Same.
21405 (vr_values::extract_range_from_phi_node): Same.
21406 * vr-values.h: Same.
21407 * web.c (unionfind_union): Same.
21408 * wide-int.h: Same.
21409
21410 2019-07-09 Martin Sebor <msebor@redhat.com>
21411
21412 PR c++/61339
21413 * align.h: Change class-key from class to struct and vice versa
21414 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21415 * alloc-pool.h: Same.
21416 * asan.c (shadow_mem_size): Same.
21417 * auto-profile.c: Same.
21418 * basic-block.h: Same.
21419 * bitmap.h: Same.
21420 * cfgexpand.c (set_rtl): Same.
21421 (expand_one_stack_var_at): Same.
21422 * cfghooks.h: Same.
21423 * cfgloop.h: Same.
21424 * cgraph.h: Same.
21425 * config/i386/i386.h: Same.
21426 * df-problems.c (df_print_bb_index): Same.
21427 * df-scan.c: Same.
21428 * df.h (df_single_use): Same.
21429 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21430 (layout::annotation_line_showed_range_p): Same.
21431 (get_printed_columns): Same.
21432 (correction::ensure_terminated): Same.
21433 (line_corrections::~line_corrections): Same.
21434 * dojump.h: Same.
21435 * dse.c: Same.
21436 * dump-context.h: Same.
21437 * dumpfile.h: Same.
21438 * dwarf2out.c: Same.
21439 * edit-context.c: Same.
21440 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21441 * flags.h: Same.
21442 * function.c (assign_stack_local): Same.
21443 * function.h: Same.
21444 * gcc.c: Same.
21445 * gcov.c (block_info::block_info): Same.
21446 * genattrtab.c: Same.
21447 * genextract.c: Same.
21448 * genmatch.c (comparison_code_p): Same.
21449 (id_base::id_base): Same.
21450 (decision_tree::print): Same.
21451 * genoutput.c: Same.
21452 * genpreds.c (write_one_predicate_function): Same.
21453 * genrecog.c (validate_pattern): Same.
21454 (find_operand_positions): Same.
21455 (optimize_subroutine_group): Same.
21456 (merge_pattern_transition::merge_pattern_transition): Same.
21457 (merge_pattern_info::merge_pattern_info): Same.
21458 (merge_state_result::merge_state_result): Same.
21459 (merge_into_state): Same.
21460 * gensupport.c: Same.
21461 * gensupport.h: Same.
21462 * ggc-common.c (init_ggc_heuristics): Same.
21463 * ggc-tests.c (test_union): Same.
21464 * gimple-loop-interchange.cc (dump_induction): Same.
21465 * gimple-loop-versioning.cc: Same.
21466 * gimple-match.h (gimple_match_cond::any_else): Same.
21467 * gimple-ssa-backprop.c: Same.
21468 * gimple-ssa-sprintf.c: Same.
21469 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21470 Same.
21471 (store_immediate_info::store_immediate_info): Same.
21472 (merged_store_group::apply_stores): Same.
21473 (get_location_for_stmts): Same.
21474 * gimple-ssa-strength-reduction.c: Same.
21475 * gimple-ssa-warn-alloca.c: Same.
21476 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21477 * godump.c (go_type_decl): Same.
21478 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21479 * hash-map.h: Same.
21480 * hash-set-tests.c (test_set_of_strings): Same.
21481 * hsa-brig.c: Same.
21482 * hsa-common.h: Same.
21483 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21484 * input.c (assert_loceq): Same.
21485 * input.h: Same.
21486 * ipa-cp.c: Same.
21487 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21488 * ipa-fnsummary.h: Same.
21489 * ipa-inline.h: Same.
21490 * ipa-prop.h: Same.
21491 * ipa-split.c (visit_bb): Same.
21492 * ira-int.h (minmax_set_iter_next): Same.
21493 * loop-invariant.c: Same.
21494 * loop-iv.c: Same.
21495 * lra-eliminations.c: Same.
21496 * lra-int.h: Same.
21497 * lra-lives.c (mark_regno_dead): Same.
21498 * lra-remat.c: Same.
21499 * lra-spills.c: Same.
21500 * lto-streamer.h: Same.
21501 * mem-stats.h: Same.
21502 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21503 * omp-low.c (omp_clause_aligned_alignment): Same.
21504 * optabs-query.h (get_vcond_eq_icode): Same.
21505 * optabs.h: Same.
21506 * opts.c (wrap_help): Same.
21507 * poly-int.h: Same.
21508 * predict.c (predict_paths_leading_to_edge): Same.
21509 * pretty-print.h: Same.
21510 * profile-count.h: Same.
21511 * read-md.h: Same.
21512 * read-rtl-function.c: Same.
21513 * ree.c: Same.
21514 * reginfo.c: Same.
21515 * regrename.c: Same.
21516 * regrename.h: Same.
21517 * reload.h: Same.
21518 * rtl-iter.h: Same.
21519 * rtl.h (costs_add_n_insns): Same.
21520 * sanopt.c: Same.
21521 * sched-int.h: Same.
21522 * sel-sched-ir.h: Same.
21523 * selftest.h: Same.
21524 * sese.h (vec_find): Same.
21525 * stmt.c: Same.
21526 * target-globals.h: Same.
21527 * tree-affine.c (aff_combination_find_elt): Same.
21528 * tree-affine.h: Same.
21529 * tree-data-ref.h: Same.
21530 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21531 * tree-predcom.c: Same.
21532 * tree-scalar-evolution.c (find_var_scev_info): Same.
21533 * tree-ssa-alias.h: Same.
21534 * tree-ssa-ccp.c: Same.
21535 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21536 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21537 (rewrite_mem_refs): Same.
21538 (execute_sm_if_changed): Same.
21539 (hoist_memory_references): Same.
21540 * tree-ssa-loop-ivopts.c (operator<=): Same.
21541 * tree-ssa-loop.h: Same.
21542 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21543 * tree-ssa-structalias.c: Same.
21544 * tree-switch-conversion.h (cluster::cluster): Same.
21545 (simple_cluster::simple_cluster): Same.
21546 * tree-vect-patterns.c (type_conversion_p): Same.
21547 * tree-vectorizer.c (dump_stmt_cost): Same.
21548 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21549 * tree.c (protected_set_expr_location): Same.
21550 * tree.h (desired_pro_or_demotion_p): Same.
21551 (fndecl_built_in_p): Same.
21552 * unique-ptr-tests.cc: Same.
21553 * var-tracking.c (delete_variable_part): Same.
21554 * varasm.c (assemble_real): Same.
21555 (tree_output_constant_def): Same.
21556 * vec.c: Same.
21557 * wide-int-bitmask.h: Same.
21558 * wide-int.h (decompose): Same.
21559
21560 2019-07-09 Richard Biener <rguenther@suse.de>
21561
21562 PR tree-optimization/91114
21563 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21564 find a vector type isn't fatal.
21565
21566 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21567
21568 * config/aarch64/aarch64-simd.md
21569 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21570 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21571 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21572 (*aarch64_crypto_aese_fused,
21573 *aarch64_crypto_aesd_fused): Update to new definition.
21574 * config/aarch64/aarch64.c
21575 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21576
21577 2019-07-09 Richard Biener <rguenther@suse.de>
21578
21579 * gimple-match.h (gimple_match_op::resimplify): New.
21580 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21581 gimple_resimplify4, gimple_resimplify5): Remove.
21582 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21583 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21584 Make static.
21585 (gimple_match_op::resimplify): New.
21586 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21587 according to availability. Use gimple_match_op::resimplify.
21588
21589 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21590
21591 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21592
21593 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21594
21595 * config/arm/crypto.md:
21596 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21597 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21598 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21599 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21600 * config/arm/arm.c
21601 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21602 * config/arm/aarch-common-protos.h
21603 (aarch_crypto_can_dual_issue): Remove.
21604 * config/arm/aarch-common.c
21605 (aarch_crypto_can_dual_issue): Likewise.
21606 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21607 * config/arm/cortex-a53.md: Likewise.
21608 * config/arm/cortex-a57.md: Likewise.
21609 * config/arm/iterators.md:
21610 (CRYPTO_BINARY): Redefine.
21611 (CRYPTO_UNARY): Removed.
21612 (CRYPTO_AES, CRYPTO_AESMC): New.
21613
21614 2019-07-09 Richard Biener <rguenther@suse.de>
21615
21616 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21617 (vn_reference_lookup_3): If the main ref has no access path recorded
21618 but orig_ref has use it to do access-path based disambiguation.
21619 (vn_reference_lookup_pieces): Adjust.
21620 (vn_reference_lookup): Pass down original ref if we valueized.
21621
21622 2019-07-09 Martin Liska <mliska@suse.cz>
21623
21624 * doc/extend.texi: Document influence on loop
21625 optimizers.
21626
21627 2019-07-09 Martin Liska <mliska@suse.cz>
21628
21629 * lto-compress.c (lto_normalized_zstd_level): Do not use
21630 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21631 of libzstd. One can use 0 as a default compression level.
21632
21633 2019-07-09 Martin Liska <mliska@suse.cz>
21634
21635 * doc/invoke.texi: Add link from -fprofile-dir option.
21636 Use better wording for 'gcno filename'.
21637
21638 2019-07-08 Martin Sebor <msebor@redhat.com>
21639
21640 PR middle-end/71924
21641 PR middle-end/90549
21642 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21643 comment.
21644 (args_loc_t): New type.
21645 (args_loc_t, locmap_t): same.
21646 (diag_returned_locals): New function.
21647 (is_addr_local): Same.
21648 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21649 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21650 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21651
21652 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21653
21654 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21655 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21656 and casts in offset when different, both through gimple stmts
21657 and through trees. Rewritten using loops to minimize code duplication
21658 for each operand.
21659
21660 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21661
21662 * emit-rtl.c (set_insn_locations): New function moved from...
21663 * function.c (set_insn_locations): ...here.
21664 * ira-emit.c (emit_moves): Propagate location of the first instruction
21665 to the inserted move instructions.
21666 * reg-stack.c (compensate_edge): Set the location if the sequence is
21667 inserted on the edge.
21668 * rtl.h (set_insn_locations): Declare.
21669
21670 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21671
21672 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21673 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21674 .machine string.
21675
21676 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21677
21678 PR rtl-optimization/88233
21679 * common.opt (fsplit-wide-types-early): New option.
21680 * common/config/rs6000/rs6000-common.c
21681 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21682 OPT_LEVELS_ALL.
21683 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21684 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21685 flag_split_wide_types_early.
21686 (pass_data_lower_subreg3): New.
21687 (pass_lower_subreg3): New.
21688 (make_pass_lower_subreg3): New.
21689 * passes.def (pass_lower_subreg2): Move after the loop passes.
21690 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21691 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21692 the pass pipeline; its previous place is taken by ...
21693 (make_pass_lower_subreg3): ... this.
21694
21695 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21696
21697 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21698 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21699
21700 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21701
21702 * config/s390/constraints.md: Add new jsc constraint.
21703 * config/s390/predicates.md: New predicates.
21704 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21705 * config/s390/s390.c (s390_valid_shift_count): New function.
21706 (print_shift_count_operand): Use s390_valid_shift_count.
21707 (print_operand): Likewise.
21708 * config/s390/s390.md: Use new predicate.
21709 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21710 * config/s390/vector.md: Use new predicate.
21711
21712 2019-07-08 Andrew Waterman <andrew@sifive.com>
21713 Jim Wilson <jimw@sifive.com>
21714
21715 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21716 bitsize instead of BITS_PER_WORD.
21717
21718 2019-07-08 Martin Liska <mliska@suse.cz>
21719
21720 * collect2.c (defined): Revert to before r254460.
21721 (scan_prog_file): Revert to before r254460.
21722
21723 2019-07-08 Richard Biener <rguenther@suse.de>
21724
21725 PR tree-optimization/83518
21726 * tree-ssa-sccvn.c: Include splay-tree.h.
21727 (struct pd_range, struct pd_data): New.
21728 (struct vn_walk_cb_data): Add data to track partial definitions.
21729 (vn_walk_cb_data::~vn_walk_cb_data): New.
21730 (vn_walk_cb_data::push_partial_def): New.
21731 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21732 (vn_reference_lookup_2): When partial defs are registered give up.
21733 (vn_reference_lookup_3): Track partial defs for memset and
21734 constructor zeroing and for defs from constants.
21735
21736 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21737
21738 * doc/install.texi (bootstrap-Og): Document.
21739
21740 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21741
21742 * config/riscv/pic.md (*local_pic_load_s<mode>)
21743 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21744 referenced by <mode>, giving...
21745 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21746 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21747 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21748 use <X:MODE> for the mode attribute.
21749
21750 2019-07-07 Jeff Law <law@redhat.com>
21751
21752 PR tree-optimization/91090
21753 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21754 in handling of ranges to simplify switch statements.
21755
21756 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21757
21758 * config/darwin.c (darwin_override_options): Make a final check on PIC
21759 options.
21760
21761 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21762
21763 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21764 on for kernel code.
21765
21766 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21767
21768 PR target/91068
21769 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21770 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21771 instead of matching them to "l" output operands.
21772
21773 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21774
21775 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21776 and check whether addr.reg is nonnull before using it.
21777
21778 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21779
21780 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21781 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21782 variable(s). For conditional lastprivate look through outer
21783 GIMPLE_OMP_SCAN context.
21784 (lower_omp_1): For conditional lastprivate look through outer
21785 GIMPLE_OMP_SCAN context.
21786
21787 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21788 member to combined_into_simd_safelen1.
21789 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21790 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21791 clauses if ctx->combined_into_simd_safelen1 put statements after the
21792 predicate conditionalized block rather than into it.
21793
21794 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21795
21796 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21797 operand 1.
21798 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21799 Make the choice of <mode> explicit, giving...
21800 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21801
21802 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21803
21804 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21805 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21806 of .md attributes.
21807 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21808 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21809 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21810 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21811 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21812 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21813 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21814 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21815 (*avx512f_scatterdi<mode>): Likewise.
21816 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21817
21818 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21819
21820 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21821 specify the mode iterator referenced by <mode>, giving...
21822 (*push1_h8300hs_<QHI:mode>): ...this.
21823
21824 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21825
21826 * config/gcn/gcn-valu.md
21827 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21828 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21829 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21830 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21831 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21832 but using the _exec comparison patterns.
21833 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21834 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21835 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21836 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21837 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21838 but using the _exec comparison patterns.
21839
21840 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21841
21842 * config/arm/sync.md
21843 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21844 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21845 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21846 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21847 <SIDI:cas_cmp_str>.
21848
21849 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21850
21851 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21852 (maybe_lookup_ctx): Add forward declaration.
21853 (omp_find_scan): Likewise. Walk into body of simd if composited
21854 with worksharing loop.
21855 (scan_omp_simd_scan): New function.
21856 (scan_omp_1_stmt): Call it.
21857 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21858 ctx->for_simd_scan_phase.
21859 (lower_rec_input_clauses): Do much less work for inscan reductions
21860 in ctx->for_simd_scan_phase is_simd regions.
21861 (lower_omp_scan): Set is_simd also on simd constructs composited
21862 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21863 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21864 emit their body after in simd constructs composited with worksharing
21865 loop.
21866 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21867
21868 * omp-low.c (omp_find_scan): Make static.
21869 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21870 the second loop, var2 represents the first partial sum and so needs
21871 to go before rprivb[ivar].
21872
21873 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21874
21875 * config/rs6000/rs6000-logue.c: Remove unused code.
21876
21877 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21878
21879 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21880
21881 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21882
21883 PR target/90712
21884 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21885 check with a frame laid out check.
21886
21887 2019-07-05 Richard Biener <rguenther@suse.de>
21888
21889 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21890 when comparing against a store with possibly the same value.
21891
21892 2019-07-05 Richard Biener <rguenther@suse.de>
21893
21894 PR tree-optimization/91091
21895 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21896 (walk_non_aliased_vuses): Likewise.
21897 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21898 (get_continuation_for_phi): New tbaa_p parameter and pass
21899 it down.
21900 (walk_non_aliased_vuses): Likewise.
21901 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21902 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21903 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21904 Likewise.
21905 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21906 (adjust_offsets_for_equal_base_address): New function.
21907 (vn_reference_lookup_3): Use it to catch more base equivalences.
21908 Handle and pass down tbaa_p flag.
21909 (vn_reference_lookup_pieces): Adjust.
21910 (vn_reference_lookup): Remove alias-set altering, instead pass
21911 down false as tbaa_p.
21912
21913 2019-07-05 Richard Biener <rguenther@suse.de>
21914
21915 PR tree-optimization/91091
21916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21917 accesses can happen with -fno-strict-aliasing.
21918
21919 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21920
21921 * tree-ssa-alias.c (alias_stats): Add
21922 nonoverlapping_component_refs_since_match_p_must_overlap.
21923 (dump_alias_stats): Print it.
21924 (nonoverlapping_component_refs_since_match_p): Add early exit.
21925 (nonoverlapping_component_refs_p): Do not account early exit.
21926
21927 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21928
21929 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21930 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21931 (emit_eh_dispatch): Delete.
21932 (lower_catch): Emit the eh_dispatch manually and set the location of
21933 the first catch statement onto it.
21934 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21935 (lower_eh_dispatch): Propagate location.
21936 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21937 (eliminate_build): Likewise.
21938
21939 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21940
21941 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21942 phi nodes if possible.
21943 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21944 location info on the newly created statement.
21945 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21946 newly created increment if needed.
21947
21948 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21949
21950 PR middle-end/78884
21951 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21952 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21953 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21954 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21955 ctx->add_safelen1 is set.
21956
21957 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21958 GOMP_loop_start at the start of second worksharing loop in a scan.
21959 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21960 worksharing loop in a scan even if there are conditional lastprivates,
21961 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21962
21963 2019-07-04 Jan Hubicka <jh@suse.cz>
21964
21965 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21966 Fix check for match in the ref walk.
21967
21968 2019-07-04 Martin Liska <mliska@suse.cz>
21969
21970 * tree-ssa-loop-niter.c
21971 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21972 (estimate_numbers_of_iterations):
21973 Support __builtin_expect_with_probability for analysis
21974 of # of loop iterations.
21975
21976 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21977
21978 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21979 * except.c: Likewise.
21980 * expr.c (expand_expr_real_1): Reject it.
21981 * gimplify.c (gimplify_expr): Gimplify it, within
21982 TRY_FINALLY_EXPR.
21983 * tree-dump.c (dequeue_and_dump): Dump it.
21984 * tree-pretty-print.c (dump_generic_node): Likewise.
21985 * tree.c (block_may_fallthru): Handle it.
21986 * tree.def (EH_ELSE_EXPR): Introduce it.
21987 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21988 with GIMPLE_EH_ELSE as try/finally/else.
21989
21990 2019-07-04 Richard Biener <rguenther@suse.de>
21991
21992 PR ipa/91062
21993 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21994 parameter whether to disable GC collection.
21995 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21996 honor it.
21997 (execute_all_ipa_transforms): Likewise and pass it down.
21998 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21999 collection from applying IPA transforms.
22000 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22001 from applying IPA transforms.
22002
22003 2019-07-04 Richard Biener <rguenther@suse.de>
22004
22005 PR tree-optimization/90911
22006 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22007 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22008 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22009 scalar_loop_scaling.
22010 (vect_transform_loop): Scale scalar loop profile if needed.
22011 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22012 the loop copy from if-conversion adjust edge probabilities
22013 and scale the vectorized loop body profile, queue the scalar
22014 profile for updating after peeling.
22015
22016 2019-07-04 Jan Hubicka <jh@suse.cz>
22017
22018 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22019 parameters; return early for must-alias.
22020 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22021 outer types match, try nonoverlapping_component_refs
22022 if must-alias is not obvious.
22023 (indirect_refs_may_alias_p): Likewise.
22024 (refs_may_alias_p_2): Likewise.
22025
22026 2019-07-04 Richard Biener <rguenther@suse.de>
22027
22028 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22029 argument.
22030 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22031 globals into...
22032 (struct vn_walk_cb_data): New callback data struct.
22033 (vn_reference_lookup_2): Adjust.
22034 (vn_reference_lookup_3): Likewise.
22035 (vn_reference_lookup_pieces): Likewise.
22036 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22037 (visit_reference_op_load): Adjust.
22038
22039 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22040
22041 PR tree-optimization/91063
22042 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22043 stmt from stmts sequence before calling vect_init_vector_1.
22044 Formatting fix.
22045
22046 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22047
22048 PR target/88833
22049 * fwprop.c (reg_single_def_p): New function.
22050 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22051 (forward_propagate_into): New parameter reg_prop_only
22052 with default value false.
22053 Propagate def's src into loop only if SET_SRC and SET_DEST
22054 of def_set have single definitions.
22055 Likewise if reg_prop_only is set to true.
22056 (fwprop): New param fwprop_addr_p.
22057 Integrate fwprop_addr into fwprop.
22058 (fwprop_addr): Remove.
22059 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22060 to true.
22061 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22062 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22063 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22064
22065 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22066
22067 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22068 in worksharing loop scans.
22069
22070 PR tree-optimization/91074
22071 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22072 temporary.
22073
22074 PR rtl-optimization/90756
22075 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22076 for VECTOR_TYPE_P.
22077
22078 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22079
22080 * config/aarch64/aarch64.md: Remove redundant constraints from
22081 define_expand but keep some patterns untouched if they are
22082 specially selected by TARGET_SECONDARY_RELOAD hook.
22083 * config/aarch64/aarch64-sve.md: Likewise.
22084 * config/aarch64/atomics.md: Remove redundant constraints from
22085 define_expand.
22086 * config/aarch64/aarch64-simd.md: Likewise.
22087
22088 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22089
22090 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22091 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22092 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22093 clauses.
22094 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22095 DARWIN_NOPIE_SPEC.
22096
22097 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22098
22099 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22100 (STARTFILE_SPEC): Split crt3 into a separate spec.
22101 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22102 (DARWIN_CRT2_SPEC): New.
22103 (DARWIN_CRT3_SPEC): New.
22104 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22105 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22106 (DARWIN_CRT3_SPEC): New.
22107
22108 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22109
22110 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22111 Change the RTL attribute "length" from "4" to "*" to allow the
22112 length attribute to be adjusted automatically for prefixed load,
22113 store, and add immediate instructions.
22114 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22115 Likewise.
22116 (extendsi<mode>2, EXTSI iterator): Likewise.
22117 (movsi_internal1): Likewise.
22118 (movsi_from_sf): Likewise.
22119 (movdi_from_sf_zero_ext): Likewise.
22120 (mov<mode>_internal): Likewise.
22121 (movcc_internal1, QHI iterator): Likewise.
22122 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22123 (movsf_from_si): Likewise.
22124 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22125 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22126 (mov<mode>, FMOVE128 iterator): Likewise.
22127 (movdi_internal64): Likewise.
22128 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22129 Likewise.
22130 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22131 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22132 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22133 (vsx_splat_v4sf): Likewise.
22134
22135 2019-07-03 Mark Wielaard <mark@klomp.org>
22136
22137 PR debug/90981
22138 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22139 DW_AT_addr_base if there is actually a .debug_addr section with
22140 addresses.
22141 (output_addr_table): Add DWARF5 table header generation here after
22142 checking there are actually any addresses from...
22143 (dwarf2out_finish): ...here.
22144
22145 2019-07-03 Richard Biener <rguenther@suse.de>
22146
22147 PR middle-end/91069
22148 * match.pd (vec_perm -> bit_insert): Fix element read from
22149 first vector.
22150
22151 2019-07-03 Martin Liska <mliska@suse.cz>
22152
22153 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22154 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22155 condition.
22156 * generic-match-head.c: Include dbgcnt.h.
22157 * gimple-match-head.c: Likewise.
22158
22159 2019-07-03 Martin Liska <mliska@suse.cz>
22160
22161 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22162 (GCOV_COUNTER_V_TOPN): New.
22163 (GCOV_COUNTER_V_INDIR): Use _topn.
22164 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22165 (GCOV_TOPN_VALUES): New.
22166 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22167 (GCOV_TOPN_VALUES_COUNTERS): New.
22168 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22169 * tree-profile.c:
22170 (gimple_init_gcov_profiler): Rename variables from one_value
22171 to topn_values.
22172 (gimple_gen_one_value_profiler): Remove.
22173 (gimple_gen_topn_values_profiler): New function.
22174 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22175 names instead of SINGLE_VALUE.
22176 (stream_out_histogram_value): Likewise.
22177 (stream_in_histogram_value): Likewise.
22178 (get_most_common_single_value): Likewise.
22179 (gimple_divmod_fixed_value_transform): Likewise.
22180 (gimple_stringops_transform): Likewise.
22181 (gimple_divmod_values_to_profile): Likewise.
22182 (gimple_stringops_values_to_profile): Likewise.
22183 (gimple_find_values_to_profile): Likewise.
22184 * value-prof.h (enum hist_type): Rename to TOPN.
22185 (gimple_gen_one_value_profiler): Remove.
22186 (gimple_gen_topn_values_profiler): New.
22187
22188 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22189
22190 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22191 if it has the DW_AT_data_member_location attribute.
22192
22193 2019-07-03 Richard Biener <rguenther@suse.de>
22194
22195 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22196 dumping.
22197
22198 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22199
22200 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22201 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22202 (tlsdesc_small_sve_<mode>): Likewise.
22203
22204 2019-07-03 Martin Liska <mliska@suse.cz>
22205
22206 * Makefile.in: Define ZSTD_LIB.
22207 * common.opt: Adjust compression level
22208 to support also zstd levels.
22209 * config.in: Regenerate.
22210 * configure: Likewise.
22211 * configure.ac: Add --with-zstd and --with-zstd-include options
22212 and detect ZSTD.
22213 * doc/install.texi: Mention zstd dependency.
22214 * gcc.c: Print supported LTO compression algorithms.
22215 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22216 (lto_compression_zstd): Likewise.
22217 (lto_uncompression_zstd): Likewise.
22218 (lto_end_compression): Dispatch in between zlib and zstd.
22219 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22220 (lto_uncompression_zlib): Make it static.
22221 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22222 * lto-section-in.c (lto_get_section_data): Pass info
22223 about used compression.
22224 * lto-streamer-out.c: By default use zstd when possible.
22225 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22226 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22227
22228 2019-07-03 Martin Liska <mliska@suse.cz>
22229
22230 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22231 * lto-section-out.c (lto_destroy_simple_output_block): Never
22232 compress LTO_section_lto section.
22233 * lto-streamer-out.c (produce_asm): Do not set major_version
22234 and minor_version.
22235 (lto_output_toplevel_asms): Likewise.
22236 (produce_lto_section): New function.
22237 (lto_output): Call produce_lto_section.
22238 (lto_write_mode_table): Do not set major_version and
22239 minor_version.
22240 (produce_asm_for_decls): Likewise.
22241 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22242 type.
22243 (struct lto_header): Remove.
22244 (struct lto_section): New struct.
22245 (struct lto_simple_header): Do not inherit from lto_header.
22246 (struct lto_file_decl_data): Add lto_section_header field.
22247
22248 2019-07-03 Martin Liska <mliska@suse.cz>
22249
22250 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22251 dead assignemts.
22252 * reg-stack.c (check_asm_stack_operands): Likewise.
22253 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22254 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22255 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22256 force_expand_binop.
22257
22258 2019-07-03 Martin Liska <mliska@suse.cz>
22259
22260 PR tree-optimization/90892
22261 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22262 in string constants.
22263
22264 2019-07-03 Martin Liska <mliska@suse.cz>
22265
22266 PR middle-end/90899
22267 * multiple_target.c (create_dispatcher_calls): Add to comdat
22268 group only if set for ifunc.
22269
22270 2019-07-03 Martin Liska <mliska@suse.cz>
22271
22272 PR target/88056
22273 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22274 Define local_object_name in outer scope in order to handle
22275 use-after-scope issue.
22276
22277 2019-07-03 Martin Liska <mliska@suse.cz>
22278
22279 * common.opt: Add fprofile-note.
22280 * coverage.c (coverage_init): Append the option
22281 to bbg_file_name.
22282 * doc/invoke.texi: Document -fprofile-note.
22283
22284 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22285
22286 PR tree-optimization/91033
22287 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22288 vect_analyze_data_refs): Add bool * arguments.
22289 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22290 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22291 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22292 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22293 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22294 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22295 vect_analyze_data_refs caller.
22296
22297 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22298 clause.
22299 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22300 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22301 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22302 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22303 OMP_CLAUSE__SCANTEMP_ entry.
22304 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22305 * tree-pretty-print.c (dump_omp_clause): Likewise.
22306 * tree-nested.c (convert_nonlocal_omp_clauses,
22307 convert_local_omp_clauses): Likewise.
22308 * omp-general.h (struct omp_for_data): Add have_scantemp and
22309 have_nonctrl_scantemp members.
22310 * omp-general.c (omp_extract_for_data): Initialize them.
22311 * omp-low.c (struct omp_context): Add scan_exclusive member.
22312 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22313 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22314 ctx->scan_exclusive.
22315 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22316 of !ctx->scan_inclusive.
22317 (lower_rec_input_clauses): Simplify gimplification of dtors using
22318 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22319 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22320 loops. Don't add barrier for reduction_omp_orig_ref if
22321 ctx->scan_??xclusive.
22322 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22323 (lower_omp_scan): Use ctx->scan_exclusive instead
22324 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22325 reductions. Use new_vard != new_var instead of repeated
22326 omp_is_reference calls.
22327 (omp_find_scan, lower_omp_for_scan): New functions.
22328 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22329 inscan reductions.
22330 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22331 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22332 and fd->have_scantemp.
22333
22334 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22335 on worksharing loop propagate it as shared clause to containing
22336 combined parallel.
22337
22338 * omp-expand.c (expand_omp_for_static_nochunk,
22339 expand_omp_for_static_chunk): For nowait worksharing loop with
22340 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22341 at the end.
22342
22343 2019-07-02 qing zhao <qing.zhao@oracle.com>
22344
22345 PR preprocessor/90581
22346 * doc/cppopts.texi: Add document for -fmax-include-depth.
22347 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22348
22349 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22350
22351 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22352 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22353 (mmx_packssdw): Ditto.
22354 (mmx_punpckhbw): Ditto.
22355 (mmx_punpcklbw): Ditto.
22356 (mmx_punpckhwd): Ditto.
22357 (mmx_punpcklwd): Ditto.
22358 (mmx_punpckhdq): Ditto.
22359 (mmx_punpckldq): Ditto.
22360 (*vec_dupv4hi): Ditto.
22361 (*vec_dupv2si): Ditto.
22362 (mmx_pmovmskb): Ditto.
22363 * config/i386/sse.md (sse_cvtpi2ps): Use
22364 TARGET_SSE2 && SSE_REG_P in split condition.
22365 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22366 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22367 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22368 (ssse3_pshufbv8qi3): Ditto.
22369 (ssse3_palignrdi): Ditto.
22370
22371 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22372
22373 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22374 with inlined save and restore.
22375
22376 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22377
22378 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22379 to be inserted on single successor edge of the entry block. Then call
22380 commit_edge_insertions instead of inserting the instructions manually.
22381 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22382 RTL expansion and rebuild jump labels chain.
22383
22384 2019-07-02 Richard Biener <rguenther@suse.de>
22385
22386 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22387 TI_CHREC_KNOWN.
22388 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22389 Define here.
22390 * tree.c (build_common_tree_nodes): Initialize them.
22391 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22392 Make declarations comments.
22393 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22394 chrec_known): Remove definitions.
22395 (initialize_scalar_evolutions_analyzer): Remove.
22396 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22397 * tree-streamer.c (preload_common_nodes): Do not preload
22398 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22399
22400 2019-07-02 Jan Hubicka <jh@suse.cz>
22401
22402 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22403 sanity check.
22404
22405 2019-07-02 Jan Hubicka <jh@suse.cz>
22406
22407 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22408 to ..
22409 (nonoverlapping_component_refs_since_match_p): ... this one;
22410 handle also non-decl bases; return -1 if search gave up.
22411 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22412 nonoverlapping_component_refs_of_decl_p_no_alias to
22413 nonoverlapping_component_refs_since_match_p_may_alias,
22414 nonoverlapping_component_refs_since_match_p_no_alias.
22415 (dump_alias_stats): Update dumping.
22416 (aliasing_matching_component_refs_p): Break out from ...;
22417 dispatch to nonoverlapping_component_refs_for_decl_p
22418 and nonoverlapping_component_refs_since_match_p.
22419 (aliasing_component_refs_p): ... here; call
22420 nonoverlapping_component_refs_p in scenarios where we can not
22421 precisely determine base match.
22422 (decl_refs_may_alias_p): Use
22423 nonoverlapping_component_refs_since_match_p.
22424 (indirect_ref_may_alias_decl_p): Do not call
22425 nonoverlapping_component_refs_p.
22426 (indirect_refs_may_alias_p): Likewise.
22427
22428 2019-07-02 Jan Hubicka <jh@suse.cz>
22429
22430 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22431 to clobber of return value.
22432
22433 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22434
22435 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22436 for is_neon_type instructions that have not already been categorized.
22437
22438 2019-07-02 Richard Biener <rguenther@suse.de>
22439
22440 PR tree-optimization/58483
22441 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22442 for MEM_REF base hashing.
22443 (equal_mem_array_ref_p): Likewise for base comparison.
22444
22445 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22446
22447 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22448 parameterized name.
22449 (signbit<mode>2): Use that name. Simplify.
22450
22451 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22452
22453 PR middle-end/66726
22454 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22455 Tune heuristic from PR71016 to allow MIN / MAX.
22456
22457 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22458
22459 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22460 parameterized name.
22461 (abs<mode>2): Use that name. Simplify.
22462
22463 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22464
22465 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22466 parameterized name.
22467 (neg<mode>2): Use that name. Simplify.
22468
22469 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22470
22471 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22472 name.
22473 (abs<mode>2): Use that name. Simplify.
22474
22475 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22476
22477 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22478 name.
22479 (neg<mode>2): Use that name. Simplify.
22480
22481 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22482
22483 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22484 ("enabled" attribute): Handle sse_noavx isa attribute.
22485 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22486 Use TARGET_SSE && SSE_REGNO_P in split condition.
22487 (*vec_dupv2sf): Ditto.
22488
22489 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22490
22491 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22492 name.
22493 (floatsi<mode>2): Use that name. Simplify.
22494
22495 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22496
22497 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22498 parameterized name.
22499 (extenddf<mode>2_vsx): Make this a parameterized name.
22500 (extenddf<mode>2): Use those names. Simplify.
22501
22502 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22503
22504 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22505 name.
22506 (eh_return): Use that name. Simplify.
22507
22508 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22509
22510 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22511 (doloop_end): Use that name. Simplify.
22512
22513 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22514
22515 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22516 parameterized name.
22517 (indirect_jump): Use that name. Simplify.
22518
22519 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22520
22521 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22522 parameterized name.
22523 (abs<mode>2): Use that name. Simplify.
22524
22525 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22526
22527 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22528 parameterized name.
22529 (fix_trunc<mode>si2): Use that name. Simplify.
22530
22531 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22532
22533 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22534 (allocate_stack): Use that name. Simplify.
22535
22536 2019-07-01 Martin Sebor <msebor@redhat.com>
22537
22538 PR middle-end/90923
22539 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22540 (hash_map::get_or_insert): Same. Reformat comment.
22541 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22542 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22543 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22544 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22545 (hash_table::hash_table (const hash_table&)): Use copy ctor
22546 instead of assignment to copy elements.
22547
22548 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22549 John David Anglin <danglin@gcc.gnu.org>
22550
22551 PR target/90963
22552 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22553 using saved frame pointer.
22554
22555 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22556
22557 PR middle-end/64242
22558 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22559 Add frame clobber and schedule blockage.
22560
22561 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22562
22563 * doc/invoke.texi (Link Options): Further editorial changes to
22564 -flinker-output docs.
22565
22566 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22567
22568 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22569 Load both operands of a PLUS into registers separately.
22570
22571 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22572
22573 * config/s390/vector.md: Fix shift count operand printing.
22574
22575 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22576
22577 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22578
22579 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22580
22581 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22582 Use recog_data to test for an output operand.
22583
22584 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22585
22586 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22587 exclude any others that are disparaged or that are bound to need
22588 a reload or spill.
22589 (ira_get_dup_out_num): Expand comment.
22590
22591 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22592
22593 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22594 constraint string for each operand/alternative combo. Only handle
22595 '%' at the start of constraint strings, and look for it outside
22596 the main loop.
22597
22598 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22599
22600 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22601 alternative_mask instead of HARD_REG_SET to represent a
22602 bitmask of alternatives.
22603 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22604 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22605
22606 2019-07-01 Martin Liska <mliska@suse.cz>
22607
22608 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22609 use () for a constructor call.
22610 (test_applying_fixits_line_out_of_range): Likewise.
22611 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22612 argument.
22613 (free_page): Likewise.
22614
22615 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22616
22617 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22618 parameter names to match usage (no functional change).
22619 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22620
22621 2019-07-01 Richard Biener <rguenther@suse.de>
22622
22623 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22624 pass parameter.
22625 (pass_fre::execute): Honor it.
22626 * passes.def: Adjust pass_fre invocations to allow iterating,
22627 add non-iterating pass_fre before late threading/dom.
22628
22629 2019-07-01 Richard Biener <rguenther@suse.de>
22630
22631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22632 TARGET_MEM_REF handling to also handle address-taken ones.
22633
22634 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22635
22636 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22637 hardware attributes): Document avx512vp2intersect.
22638
22639 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22640
22641 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22642 (abs<mode>2): New expander.
22643 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22644 Use CODE_FOR_ssse3_absv8qi2.
22645 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22646 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22647
22648 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22649
22650 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22651 to sse, sse_noavx and avx. Update all uses.
22652
22653 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22654
22655 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22656 (*mmx_<plusminus_insn><mode>3): Ditto.
22657 (*mmx_mulv4hi3"): Ditto.
22658 (*mmx_smulv4hi3_highpart): Ditto.
22659 (*mmx_umulv4hi3_highpart): Ditto.
22660 (*mmx_pmaddwd): Ditto.
22661 (*sse2_umulv1siv1di3): Ditto.
22662 (*mmx_<code>v4hi3): Ditto.
22663 (*mmx_<code>v8qi3): Ditto.
22664 (mmx_ashr<mode>3): Ditto.
22665 ("mmx_<shift_insn><mode>3): Ditto.
22666 (*mmx_eq<mode>3): Ditto.
22667 (mmx_gt<mode>3): Ditto.
22668 (mmx_andnot<mode>3): Ditto.
22669 (*mmx_<code><mode>3): Ditto.
22670 (*mmx_pinsrw): Ditto.
22671 (*mmx_pextrw): Ditto.
22672 (mmx_pshufw_1): Ditto.
22673 (*mmx_uavgv8qi3): Ditto.
22674 (*mmx_uavgv4hi3): Ditto.
22675 ("mmx_psadbw): Ditto.
22676 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22677 (sse_cvttps2pi): Ditto.
22678 (ssse3_pmaddubsw): Ditto.
22679 (*ssse3_pmulhrswv4hi3): Ditto.
22680 (ssse3_psign<mode>3): Ditto.
22681
22682 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22683
22684 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22685 adjustment for bit-fields to all aggregate types.
22686
22687 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22688
22689 * config/rs6000/predicates.md (pcrel_address): Use
22690 SYMBOL_REF_LOCAL_P to determine if a label is local.
22691 (pcrel_external_address): New predicate.
22692 (non_prefixed_mem_operand): Delete, predicate not used.
22693 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22694 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22695 addressing.
22696 (SYMBOL_REF_PCREL_P): Likewise.
22697
22698 PR target/91009
22699 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22700 alternative.
22701 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22702 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22703 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22704
22705 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22706
22707 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22708 override on extra_headers.
22709
22710 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22711
22712 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22713 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22714 from warning.
22715 (darwin_driver_init): Likewise.
22716
22717 2019-06-28 Jan Beulich <jbeulich@suse.com>
22718
22719 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22720 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22721 Eliminate redundant alternative.
22722
22723 2019-06-28 Jan Beulich <jbeulich@suse.com>
22724
22725 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22726 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22727 Use vector_operand.
22728
22729 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22730
22731 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22732 having a lower cost regardless of the speed option.
22733
22734 2019-06-28 Jan Beulich <jbeulich@suse.com>
22735
22736 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22737 vector_operand plus, on both alternatives, "Bm" constraint.
22738
22739 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22740
22741 * config/arm/arm.md: Remove redundant constraints from
22742 define_expand but leave reload_inm and reload_outm patterns
22743 untouched since they need special constraints to work.
22744 * config/arm/arm-fixed.md: Remove redundant constraints from
22745 define_expand.
22746 * config/arm/iwmmxt.md: Likewise.
22747 * config/arm/neon.md: Likewise.
22748 * config/arm/sync.md: Likewise.
22749 * config/arm/thumb1.md: Likewise.
22750 * config/arm/vec-common.md: Likewise.
22751
22752 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22753
22754 * doc/install.texi: Document --disable-tm-clone-registry.
22755
22756 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22757
22758 PR c++/91024
22759 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22760 statements.
22761
22762 PR tree-optimization/91010
22763 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22764 return true. Otherwise, don't call operand_equal_p if offset1 or
22765 offset2 is NULL and just return false.
22766
22767 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22768
22769 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22770 user-specified float mode choice for kernel mode code.
22771
22772 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22773
22774 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22775 spec.
22776
22777 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22778
22779 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22780 use longcall for 64b code.
22781
22782 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22783
22784 * builtins.c (get_memory_rtx): Fix comment.
22785 * optabs.def (movmem_optab): Change to cpymem_optab.
22786 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22787 (emit_block_move_hints): Change movmem to cpymem.
22788 * defaults.h: Change movmem to cpymem.
22789 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22790 (default_use_by_pieces_infrastructure_p): Ditto.
22791 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22792 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22793 to cpymem.
22794 * config/aarch64/aarch64.h: Change movmem to cpymem.
22795 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22796 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22797 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22798 movmem to cpymem.
22799 * config/arc/arc-protos.h: Change movmem to cpymem.
22800 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22801 * config/arc/arc.h: Change movmem to cpymem in comment.
22802 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22803 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22804 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22805 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22806 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22807 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22808 * config/avr/avr-protos.h: Change movmem to cpymem.
22809 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22810 avr_out_movmem): Change movmem to cpymem.
22811 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22812 Change movmem to cpymem.
22813 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22814 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22815 Change movmem to cpymem.
22816 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22817 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22818 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22819 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22820 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22821 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22822 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22823 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22824 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22825 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22826 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22827 expand_small_cpymem_or_setmem,
22828 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22829 expand_set_or_cpymem_constant_prologue,
22830 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22831 * config/i386/i386-protos.h: Change movmem to cpymem.
22832 * config/i386/i386.h: Change movmem to cpymem in comment.
22833 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22834 (setmem<mode>): Change expansion function name.
22835 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22836 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22837 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22838 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22839 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22840 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22841 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22842 to cpymem.
22843 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22844 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22845 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22846 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22847 Change movmem to cpymem.
22848 * config/mips/mips.h: Change movmem to cpymem.
22849 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22850 * config/nds32/nds32-memory-manipulation.c
22851 (nds32_expand_movmemsi_loop_unknown_size,
22852 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22853 nds32_expand_movmemsi_unroll,
22854 nds32_expand_movmemsi): Change movmem to cpymem.
22855 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22856 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22857 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22858 (pa_adjust_insn_length): Change call to compute_movmem_length.
22859 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22860 movmemdi, movmemdi_prereload,
22861 movmemdi_postreload): Change movmem to cpymem.
22862 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22863 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22864 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22865 * config/riscv/riscv.h: Change movmem to cpymem.
22866 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22867 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22868 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22869 movmem to cpymem.
22870 * config/s390/s390-protos.h: Change movmem to cpymem.
22871 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22872 s390_expand_insv): Change movmem to cpymem.
22873 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22874 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22875 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22876 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22877 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22878 for nonexistent function.
22879 * config/vax/vax.h: Change movmem to cpymem in comment.
22880 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22881 * config/visium/visium.h: Change movmem to cpymem in comment.
22882 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22883 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22884 * doc/md.texi: Change movmem to cpymem and update description to match.
22885 * doc/rtl.texi: Change movmem to cpymem.
22886 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22887 * doc/tm.texi: Regenerate.
22888
22889 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22890
22891 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22892 -fvariable-expansion-in-unroller by default.
22893 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22894 default for Power.
22895
22896 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22897
22898 Revert
22899 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22900 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22901
22902 * config.gcc(rs6000-*-*): Define target_gtfiles.
22903
22904 2019-06-27 Jan Hubicka <jh@suse.cz>
22905
22906 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22907 (add_type_duplicate): When odr hash is not allocated, to nothing.
22908 (odr_based_tbaa_p): New function.
22909 (set_type_canonical_for_odr_type): New function.
22910 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22911 set_type_canonical_for_odr_type): New.
22912 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22913 ODR based TBAA are not equivalent to non-ODR types.
22914
22915 2019-06-27 Martin Liska <mliska@suse.cz>
22916
22917 PR tree-optimization/90974
22918 PR rtl-optimization/90975
22919 PR rtl-optimization/90976
22920 PR target/91016
22921 PR tree-optimization/91017
22922 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22923 unused tmp.
22924 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22925 initial commit of IRA.
22926 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22927 of op0 and op1.
22928 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22929 Remove unused mode1.
22930 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22931 to new_stmt_info.
22932
22933 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22934
22935 PR target/90991
22936 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22937 instead of register_operand for operands[1], add m to its constraints
22938 if operands[2] uses "C" constraint. Ensure in condition that if
22939 operands[2] is not 0, then operands[1] is not a MEM. For last two
22940 alternatives, use unaligned loads instead of aligned if operands[1] is
22941 misaligned_operand.
22942
22943 2019-06-27 Martin Liska <mliska@suse.cz>
22944
22945 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22946 dead assignments.
22947 * bt-load.c (move_btr_def): Likewise.
22948 * builtins.c (expand_builtin_apply_args_1): Likewise.
22949 (expand_builtin_apply): Likewise.
22950 * cfgexpand.c (expand_asm_stmt): Likewise.
22951 (construct_init_block): Likewise.
22952 * cfghooks.c (verify_flow_info): Likewise.
22953 * cfgloopmanip.c (remove_path): Likewise.
22954 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22955 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22956 * combine.c (simplify_if_then_else): Likewise.
22957 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22958 (choose_basereg): Likewise.
22959 (ix86_expand_prologue): Likewise.
22960 (ix86_preferred_output_reload_class): Likewise.
22961 * cselib.c (cselib_record_sets): Likewise.
22962 * df-scan.c (df_scan_alloc): Likewise.
22963 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22964 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22965 * emit-rtl.c (try_split): Likewise.
22966 * graphite-scop-detection.c (assign_parameter_index_in_region):
22967 Likewise.
22968 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22969 * ira-color.c (setup_profitable_hard_regs): Likewise.
22970 * ira.c (rtx_moveable_p): Likewise.
22971 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22972 * read-rtl.c (read_subst_mapping): Likewise.
22973 * regrename.c (scan_rtx): Likewise.
22974 * reorg.c (fill_slots_from_thread): Likewise.
22975 * tree-inline.c (tree_function_versioning): Likewise.
22976 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22977 * tree-ssa-sink.c (statement_sink_location): Likewise.
22978 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22979 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22980 (vect_create_epilog_for_reduction): Likewise.
22981 * tree.c (build_nonstandard_integer_type): Likewise.
22982
22983 2019-06-27 Richard Biener <rguenther@suse.de>
22984
22985 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22986
22987 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22988
22989 PR tree-optimization/89772
22990 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22991 out-of-bound accesses checking.
22992
22993 2019-06-27 Martin Liska <mliska@suse.cz>
22994
22995 PR tree-optimization/91014
22996 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22997 when LHS is NULL_TREE.
22998
22999 2019-06-27 Martin Liska <mliska@suse.cz>
23000
23001 * symbol-summary.h (traverse): Pass
23002 argument a to the call of callback.
23003 (gt_ggc_mx): Mark arguments as unused.
23004 (gt_pch_nx): Likewise.
23005
23006 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23007
23008 PR target/62147
23009 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23010 finiteness.
23011
23012 2019-06-26 Jeff Law <law@redhat.com>
23013
23014 PR tree-optimization/90883
23015 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23016 (delete_dead_or_redundant_assignment): Likewise.
23017
23018 PR tree-optimization/90883
23019 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23020 * tree-ssa-dse.c: Update various comments to distinguish between
23021 dead and redundant stores.
23022 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23023 (dse_optimize_redundant_stores): New function.
23024 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23025 Distinguish between dead and redundant calls in dump output. All
23026 callers updated.
23027 (delete_dead_or_redundant_assignment): Similarly for assignments.
23028 (dse_optimize_stmt): Handle _CHK variants. For statements which
23029 store 0 into multiple memory locations, try to prove a subsequent
23030 store is redundant.
23031
23032 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23033
23034 PR target/89021
23035 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23036 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23037
23038 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23039
23040 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23041 (branch_islands): New extern.
23042 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23043 * config/rs6000/rs6000.c: .. here.
23044
23045 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23046
23047 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23048 (powerpc*-*-*) ... to here.
23049
23050 2019-06-26 Jeff Law <law@redhat.com>
23051
23052 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23053 memcpy, memmove and memset builtins.
23054 (maybe_trim_memstar_call): Likewise.
23055
23056 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23057
23058 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23059
23060 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23061
23062 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23063
23064 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23065
23066 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23067 declaration.
23068 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23069 "static".
23070 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23071 declaration.
23072
23073 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23074
23075 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23076
23077 2019-06-26 Richard Biener <rguenther@suse.de>
23078
23079 PR ipa/90982
23080 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23081
23082 2019-06-26 Richard Biener <rguenther@suse.de>
23083
23084 * lto-streamer.h (lto_bitmap_alloc): Remove.
23085 (lto_bitmap_free): Likewise.
23086 * lto-streamer.c (lto_bitmap_alloc): Remove.
23087 (lto_bitmap_free): Likewise.
23088 (lto_obstack): Likewise.
23089 (lto_obstack_initialized): Likewise.
23090 * lto-streamer-out.c (lto_output): Use own obstack for local
23091 bitmap, free it consistently.
23092
23093 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23094
23095 PR target/90991
23096 * config/i386/sse.md
23097 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23098 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23099 insns if operands[2] is misaligned_operand.
23100
23101 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23102
23103 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23104 TARGET_POWERPC64.
23105 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23106 to GPR.
23107
23108 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23109
23110 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23111
23112 2019-06-26 Martin Liska <mliska@suse.cz>
23113
23114 PR tree-optimization/90973
23115 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23116 epilogue_cost_vec instead of prologue_cost_vec for
23117 a epilogue cost.
23118
23119 2019-06-26 Martin Liska <mliska@suse.cz>
23120
23121 * bb-reorder.c (connect_better_edge_p): Add missing else
23122 statement in the middle of if-else statements.
23123
23124 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23125 H.J. Lu <hongjiu.lu@intel.com>
23126 Olga Makhotina <olga.makhotina@intel.com>
23127
23128 * common/config/i386/i386-common.c
23129 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23130 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23131 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23132 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23133 (ix86_handle_option): Handle -mavx512vp2intersect.
23134 * config/i386/avx512vp2intersectintrin.h: New.
23135 * config/i386/avx512vp2intersectvlintrin.h: New.
23136 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23137 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23138 AVX512VP2INTERSECT.
23139 * config/i386/i386-builtin-types.def: Add new types.
23140 * config/i386/i386-builtin.def: Add new builtins.
23141 * config/i386/i386-builtins.c: (enum processor_features): Add
23142 F_AVX512VP2INTERSECT.
23143 (static const _isa_names_table isa_names_table): Ditto.
23144 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23145 __AVX512VP2INTERSECT__.
23146 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23147 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23148 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23149 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23150 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23151 * config/i386/i386-options.c (ix86_target_string): Add
23152 -mavx512vp2intersect.
23153 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23154 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23155 P2HImode and P2QImode.
23156 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23157 number for P2QImode and P2HImode.
23158 (ix86_regmode_natural_size): New function.
23159 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23160 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23161 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23162 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23163 * config/i386/i386.opt: Add -mavx512vp2intersect.
23164 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23165 avx512vp2intersectvlintrin.h.
23166 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23167 (define_mode_iterator VI48_AVX512VP2VL): New.
23168 (avx512vp2intersect_2intersect<mode>,
23169 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23170 * config.gcc: Add avx512vp2intersectvlintrin.h and
23171 avx512vp2intersectintrin.h to extra_headers.
23172 * doc/invoke.texi: Document -mavx512vp2intersect.
23173
23174 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23175
23176 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23177
23178 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23179
23180 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23181 savres_routine_syms, savres_routine_name, morestack_ref,
23182 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23183 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23184 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23185 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23186 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23187 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23188 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23189 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23190 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23191 get_stack_clash_protection_probe_interval,
23192 get_stack_clash_protection_guard_size,
23193 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23194 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23195 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23196 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23197 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23198 gen_frame_mem_offset, rs6000_savres_routine_name,
23199 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23200 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23201 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23202 rs6000_global_entry_point_prologue_needed_p,
23203 rs6000_get_separate_components, rs6000_components_for_bb,
23204 rs6000_disqualify_components, rs6000_emit_prologue_components,
23205 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23206 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23207 rs6000_output_savres_externs, rs6000_output_function_prologue,
23208 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23209 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23210 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23211 rs6000_output_function_epilogue, gen_add3_const,
23212 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23213 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23214 to rs6000-logue.c.
23215 (machine_function): Moved to rs6000.h.
23216 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23217 rs6000-internal.h.
23218 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23219 savres_routine_syms, savres_routine_name, morestack_ref,
23220 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23221 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23222 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23223 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23224 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23225 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23226 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23227 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23228 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23229 get_stack_clash_protection_probe_interval,
23230 get_stack_clash_protection_guard_size,
23231 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23232 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23233 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23234 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23235 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23236 gen_frame_mem_offset, rs6000_savres_routine_name,
23237 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23238 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23239 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23240 rs6000_global_entry_point_prologue_needed_p,
23241 rs6000_get_separate_components, rs6000_components_for_bb,
23242 rs6000_disqualify_components, rs6000_emit_prologue_components,
23243 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23244 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23245 rs6000_output_savres_externs, rs6000_output_function_prologue,
23246 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23247 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23248 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23249 rs6000_output_function_epilogue, gen_add3_const,
23250 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23251 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23252 to here from rs6000.c.
23253 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23254 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23255 quad_address_offset_p) Moved to here from rs6000.c.
23256 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23257 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23258 collector.
23259
23260 2019-06-25 Martin Liska <mliska@suse.cz>
23261
23262 * hash-table.c (hashtab_chk_error): Move here from ...
23263 * hash-table.h (hashtab_chk_error): ... here.
23264
23265 2019-06-25 Martin Liska <mliska@suse.cz>
23266
23267 PR tree-optimization/90978
23268 * df-scan.c (df_update_entry_block_defs): Remove dead else
23269 branch.
23270 (df_update_exit_block_uses): Likewise.
23271
23272 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23273 Andrew Stubbs <ams@codesourcery.com>
23274
23275 * config.gcc (thread_file): Set to gcn for AMD GCN.
23276 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23277 (TARGET_EMUTLS_VAR_INIT): New hook.
23278
23279 2019-06-25 Martin Jambor <mjambor@suse.cz>
23280
23281 PR ipa/90939
23282 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23283
23284 2019-06-25 Richard Biener <rguenther@suse.de>
23285
23286 PR tree-optimization/90930
23287 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23288 into parallel form in the last pass instance.
23289
23290 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23291
23292 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23293 (arc_legitimize_pic_address): Simplify and cleanup the function.
23294 (SYMBOLIC_CONST): Remove.
23295 (prepare_pic_move): Likewise.
23296 (prepare_move_operands): Handle complex mov cases here.
23297 (arc_legitimize_address_0): Remove call to
23298 arc_legitimize_pic_address.
23299 (arc_legitimize_address): Remove call to
23300 arc_legitimize_tls_address.
23301 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23302 (movhi_insn): Likewise.
23303
23304 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23305
23306 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23307 PTRDIFF_TYPE.
23308 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23309 format of "__intN" types for UINTMAX_TYPE.
23310 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23311 format of "__intN" types for SIZETYPE.
23312 * tree.c (build_common_tree_nodes): Accept "__intN__"
23313 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23314 * doc/invoke.texi: Document that __intN__ disables pedantic
23315 warnings.
23316
23317 2019-06-25 Jan Hubicka <jh@suse.cz>
23318
23319 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23320 base2_alias_set is non-zero before doing TBAA based disambiguation.
23321
23322 2019-06-25 Martin Liska <mliska@suse.cz>
23323
23324 PR tree-optimization/90973
23325 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23326 of prologue and epilogue.
23327
23328 2019-06-24 Jan Hubicka <jh@suse.cz>
23329
23330 * ipa-utils.h (type_with_linkage_p): Verify that type is
23331 CXX_ODR_P.
23332 (odr_type_p): Remove extra return.
23333 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23334 hash STRING_FLAG only for arrays and integers.
23335 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23336 Update analogously.
23337 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23338 Likewise.
23339 * print-tree.c (print_node): Print cxx-odr-p
23340 and string-flag.
23341 * tree.c (need_assembler_name_p): Also check that type
23342 is CXX_ODR_TYPE_P
23343 (verify_type_variant): Update verification of SRING_FLAG;
23344 also check CXX_ODR_P.
23345 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23346 (TYPE_STRING_FLAG): Use it.
23347 (TYPE_CXX_ODR_P): New macro.
23348 * dwarf2out.c (gen_array_type_die): First check that type
23349 is an array and then test string flag.
23350
23351 2019-06-24 Richard Biener <rguenther@suse.de>
23352
23353 PR tree-optimization/90972
23354 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23355 in common code, dealing with STRING_CST properly.
23356
23357 2019-06-24 Richard Biener <rguenther@suse.de>
23358
23359 PR tree-optimization/90930
23360 PR tree-optimization/90316
23361 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23362 decrement of limit.
23363
23364 2019-06-24 Martin Sebor <msebor@redhat.com>
23365
23366 * tree-pretty-print.h: Remove unnecessary punctuation characters
23367 from a diagnostic.
23368 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23369
23370 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23371
23372 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23373 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23374 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23375
23376 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23377
23378 * config/rs6000/darwin.h: Handle GCC target pragma.
23379
23380 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23381
23382 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23383
23384 2019-06-22 Jeff Law <law@redhat.com>
23385
23386 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23387
23388 2019-06-22 Jan Hubicka <jh@suse.cz>
23389
23390 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23391 give up on bitfields; continue searching for different refs
23392 appearing later.
23393
23394 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23395
23396 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23397 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23398 containing the offset as possible simd lane access. Look through
23399 widening conversion. Move the
23400 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23401
23402 2019-06-21 Richard Biener <rguenther@suse.de>
23403
23404 PR tree-optimization/90930
23405 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23406 flag on new stmts to avoid re-processing them.
23407
23408 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23409
23410 PR c++/90875 - added -Wswitch-outside-range option
23411 * doc/invoke.texi (Wswitch-outside-range): Document.
23412
23413 2019-06-21 Jeff Law <law@redhat.com>
23414
23415 PR tree-optimization/90949
23416 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23417 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23418
23419 2019-06-21 Richard Biener <rguenther@suse.de>
23420
23421 PR debug/90914
23422 * dwarf2out.c (prune_unused_types_walk): Always consider
23423 function-local extern declarations as used.
23424
23425 2019-06-21 Richard Biener <rguenther@suse.de>
23426
23427 PR tree-optimization/90913
23428 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23429 the scalar variant of if-conversion versioning.
23430
23431 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23432
23433 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23434 create another "omp scan inscan exclusive" array if
23435 !ctx->scan_inclusive.
23436 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23437 (lower_omp_scan): Likewise.
23438 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23439 2-bit bitfield for simd_lane_access_p member.
23440 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23441 aux == (void *)-4 as simd lane access.
23442 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23443 comment with permutations to show the canonical permutation order.
23444 (vectorizable_scan_store): Handle exclusive scan.
23445 (vectorizable_store): Call vectorizable_scan_store even for
23446 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23447
23448 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23449 "omp simd array" arrays with one byte elements.
23450
23451 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23452
23453 * config/alpha/alpha.md (@unaligned_store<mode>):
23454 Rename from unaligned_store<mode>.
23455 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23456 * config/alpha/sync.md (@load_locked_<mode>): Rename
23457 from load_locked_<mode>.
23458 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23459 (@atomic_compare_and_swap<mode>_1): Rename
23460 from atomic_compare_and_swap<mode>_1.
23461 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23462 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23463 Use gen_reload_in_aligned and gen_unaligned_store.
23464 (emit_load_locked): Remove.
23465 (emit_store_conditional): Ditto.
23466 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23467 (alpha_split_compare_and_swap): Ditto.
23468 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23469 (alpha_split_compare_and_swap_12): Use gen_load_locked
23470 and gen_store_conditional.
23471 (alpha_split_atomic_exchange): Ditto.
23472 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23473 (alpha_split_atomic_exchange_12): Use gen_load_locked
23474 and gen_store_conditional.
23475
23476 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23477
23478 * config/aarch64/aarch64-errata.h: New file.
23479 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23480 (CA53_ERR_843419_SPEC): Delete.
23481 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23482 * config/aarch64/aarch64-linux.h: Likewise.
23483 * config/aarch64/aarch64-netbsd.h: Likewise.
23484 * config/aarch64/aarch64-freebsd.h: Likewise.
23485
23486 2019-06-20 Marek Polacek <polacek@redhat.com>
23487
23488 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23489
23490 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23491
23492 * config/rs6000/rs6000.md (isa attribute): Add support for
23493 for a future processor.
23494
23495 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23496
23497 PR target/54855
23498 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23499 standard scalar operation pattern for V2DF.
23500 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23501 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23502 (*ieee_<ieee_maxmin><mode>3): Likewise.
23503 (vec_setv2df_0): Likewise.
23504
23505 2019-06-20 Jan Hubicka <jh@suse.cz>
23506
23507 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23508 parameter; it has no use in gimple memory model.
23509 (indirect_ref_may_alias_decl_p): Update.
23510
23511 2019-06-20 Martin Liska <mliska@suse.cz>
23512
23513 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23514 to 10.
23515
23516 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23517
23518 * tree-vect-stmts.c (enum scan_store_kind): New type.
23519 (scan_store_can_perm_p): Change last argument from int * to
23520 vec<enum scan_store_kind> *, record precisely which permutations
23521 need whole vector left shift or that plus VEC_COND_EXPR.
23522 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23523 and additional VEC_COND_EXPR only for those iterations that need it.
23524
23525 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23526
23527 * config.gcc: Fix ARM --with-fpu checking and error message.
23528
23529 2019-06-19 Marek Polacek <polacek@redhat.com>
23530
23531 PR c++/60364 - noreturn after first decl not diagnosed.
23532 * attribs.c (get_attribute_namespace): No longer static.
23533 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23534 attributes.
23535 (attr_noreturn_exclusions): Make it extern.
23536 * attribs.h (get_attribute_namespace): Declare.
23537 * tree-inline.c (function_attribute_inlinable_p): Use
23538 get_attribute_name.
23539
23540 2019-06-19 Martin Sebor <msebor@redhat.com>
23541
23542 PR tree-optimization/90626
23543 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23544
23545 PR tree-optimization/90626
23546 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23547 (handle_builtin_string_cmp): Call it.
23548
23549 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23550
23551 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23552 and DARWIN_NOPIE_SPEC.
23553 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23554 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23555 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23556 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23557 (DARWIN_EXPORT_DYNAMIC): Delete.
23558 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23559 and pie options processing to darwin.h.
23560 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23561
23562 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23563
23564 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23565 in computing the number of options to be moved.
23566
23567 2019-06-19 Maya Rashish <coypu@sdf.org>
23568
23569 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23570 (CLEAR_INSN_CACHE) Use it.
23571
23572 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23573
23574 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23575
23576 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23577
23578 PR middle-end/84521
23579 * builtins.c (expand_builtin_setjmp_setup): Save
23580 hard_frame_pointer_rtx.
23581 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23582 restore fp.
23583 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23584 non-local goto.
23585 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23586 elimination code.
23587 (remove_reg_equal_offset_note): Remove unused function.
23588 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23589 code.
23590 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23591 (arc_builtin_setjmp_frame_value): Remove function.
23592 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23593 (avr_builtin_setjmp_frame_value): Remove function.
23594 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23595 (ix86_builtin_setjmp_frame_value): Remove function.
23596 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23597 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23598 (sparc_builtin_setjmp_frame_value): Remove function.
23599 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23600 (vax_builtin_setjmp_frame_value): Remove function.
23601 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23602 pointer if has_nonlocal_label.
23603
23604 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23605
23606 * doc/md.texi: Document vec_shl_<mode> pattern.
23607 * optabs.def (vec_shl_optab): New optab.
23608 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23609 argument, if == vec_shl_optab, check for left whole vector shift
23610 pattern rather than right shift.
23611 (expand_vec_perm_const): Add vec_shl_optab support.
23612 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23613 in the comment.
23614 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23615 can be handled by vec_shl_optab.
23616 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23617 (check_scan_store): Use it.
23618 (vectorizable_scan_store): If target can't do normal permutations,
23619 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23620 after it.
23621 * config/i386/sse.md (vec_shl_<mode>): New expander.
23622
23623 * omp-low.c (lower_rec_input_clauses): Handle references properly
23624 in inscan clauses.
23625 (lower_omp_scan): Likewise.
23626
23627 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23628
23629 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23630 mem_mode is BLKmode.
23631
23632 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23633
23634 PR target/90922
23635 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23636 pointer adjustment for the case of no callee-saved registers and
23637 stack frame bigger than 128 bytes.
23638
23639 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23640
23641 PR middle-end/90862
23642 * omp-low.c (check_omp_nesting_restrictions): Handle
23643 GF_OMP_TARGET_KIND_OACC_DECLARE.
23644
23645 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23646
23647 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23648 (@add<mode>3_carry): Rename from add<mode>3_carry.
23649 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23650 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23651 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23652 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23653 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23654 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23655 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23656 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23657 (cmpstrnsi): Use gen_cmp_1.
23658 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23659 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23660 (@umonitor_<mode>): Rename from umonitor_<mode>.
23661 * config/i386/i386-expand.c (ix86_expand_copysign):
23662 Use gen_copysign3_const and gen_copysign3_var.
23663 (ix86_expand_xorsign): Use gen_xorsign3_1.
23664 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23665 gen_sub3_carry_ccgz and gen_cmp1.
23666 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23667 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23668 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23669 (ix86_split_lshr): Ditto.
23670 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23671
23672 2019-06-18 Jason Merrill <jason@redhat.com>
23673
23674 * tree.c (build_constructor): Add MEM_STAT_DECL.
23675
23676 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23677
23678 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23679 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23680 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23681 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23682 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23683 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23684 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23685 Use CC_NZC instead of CC.
23686 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23687 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23688 (aarch64_print_operand): Handle E_CC_NZCmode.
23689 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23690 of gen_set_clobber_cc.
23691
23692 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23693
23694 * config/aarch64/aarch64-sve.md: Tabify file.
23695
23696 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23697
23698 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23699 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23700 * config/aarch64/aarch64-sve.md: Use it.
23701
23702 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23703
23704 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23705 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23706 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23707 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23708 (aarch64_expand_sve_vec_cmp_int): Use it.
23709 (aarch64_expand_sve_vec_cmp_float): Likewise.
23710 * config/aarch64/aarch64-sve.md: Likewise throughout.
23711
23712 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23713 Kugan Vivekanandarajah <kuganv@linaro.org>
23714
23715 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23716 (*cond_<optab><mode>_z): Fold into...
23717 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23718 operand 4 can be tied to operand 0 (either inherently or via RA).
23719
23720 2019-06-18 Richard Biener <rguenther@suse.de>
23721
23722 PR debug/90900
23723 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23724 as if optimized away.
23725
23726 2019-06-18 Tom de Vries <tdevries@suse.de>
23727
23728 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23729 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23730 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23731 Rename to ...
23732 (define_insn "@set_softstack_<mode>"): ... this.
23733 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23734 (define_insn "@omp_simt_enter_<mode>"): ... this.
23735 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23736 (define_insn "@omp_simt_exit_<mode>"): ... this.
23737
23738 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23739
23740 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23741 vf parameter. Restore the previous iv step of nscalars_step,
23742 but give it iv_type rather than compare_type. Tweak code order
23743 to match the comments.
23744 (vect_set_loop_condition_masked): Update accordingly.
23745 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23746 for iv_precision. Tweak comment formatting.
23747
23748 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23749
23750 * config/darwin.c: Strip trailing whitespace.
23751
23752 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23753
23754 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23755 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23756
23757 2019-06-18 Martin Jambor <mjambor@suse.cz>
23758
23759 PR ipa/90889
23760 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23761 caller does not have flag_ipa_cp set.
23762
23763 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23764
23765 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23766 from "*fold_left_plus_<mode>", updated operands order.
23767 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23768 * internal-fn.c (mask_fold_left_direct): New define.
23769 (expand_mask_fold_left_optab_fn): Likewise.
23770 (direct_mask_fold_left_optab_supported_p): Likewise.
23771 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23772 * optabs.def (mask_fold_left_plus_optab): New optab.
23773 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23774 masked internal_fn for a reduction ifn.
23775 (vectorize_fold_left_reduction): Add support for masking reductions.
23776
23777 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23778
23779 PR middle-end/80791
23780 * target.def (predict_doloop_p): New hook.
23781 * targhooks.h (default_predict_doloop_p): New declaration.
23782 * targhooks.c (default_predict_doloop_p): New function.
23783 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23784 * doc/tm.texi: Regenerate.
23785 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23786 (TARGET_PREDICT_DOLOOP_P): New macro.
23787 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23788
23789 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23790
23791 * omp-low.c (struct omp_context): Add scan_inclusive field.
23792 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23793 if inclusive scan.
23794 (struct omplow_simd_context): Add lastlane member.
23795 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23796 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23797 1 or 2 argument.
23798 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23799 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23800 (lower_omp_scan): New function.
23801 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23802 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23803 check 3rd argument if present rather than 2nd.
23804 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23805 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23806 2-bit bitfield.
23807 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23808 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23809 than 2nd.
23810 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23811 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23812 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23813 init.
23814 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23815 IFN_GOMP_SIMD_LANE argument.
23816 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23817 encoded ->aux value.
23818 * tree-vect-stmts.c: Include attribs.h.
23819 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23820 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23821 functions.
23822 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23823 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23824
23825 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23826
23827 PR target/62055
23828 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23829 (*nabs<mode>2_1): Ditto.
23830 (nabs sse-reg splitter): New splitter.
23831 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23832
23833 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23834
23835 PR bootstrap/90873.
23836 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23837 TMR index check.
23838
23839 2019-06-17 Tom de Vries <tdevries@suse.de>
23840
23841 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23842 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23843 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23844 ...
23845 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23846 match_operand 0.
23847 (define_insn "omp_simt_enter_insn"): Rename to ...
23848 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23849 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23850 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23851 gen_omp_simt_enter_si.
23852 (define_expand "omp_simt_exit"): New.
23853 (define_insn "omp_simt_exit"): Rename to ...
23854 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23855 match_operand 0.
23856
23857 2019-06-17 Matthew Green <mrg@eterna.com.au>
23858 Maya Rashish <coypu@sdf.org>
23859
23860 * config.gcc (aarch64*-*-netbsd*): New target.
23861 * config/aarch64/aarch64-netbsd.h: New file.
23862 * config/aarch64/t-aarch64-netbsd: Likewise.
23863
23864 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23865
23866 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23867 the access path from base to first VIEW_CONVERT_EXPR or
23868 BIT_FIELD_REF.
23869
23870 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23871
23872 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23873 access path on BIT_FIELD_REFs.
23874
23875 2019-06-17 Martin Liska <mliska@suse.cz>
23876
23877 PR ipa/90874
23878 * ipa-utils.h (odr_type_p): Remove dead code.
23879
23880 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23881
23882 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23883 alternative Solaris 11.4 format.
23884 * configure: Regenerate.
23885
23886 2019-06-17 Tom de Vries <tdevries@suse.de>
23887
23888 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23889 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23890 match_operand 0.
23891 (define_insn "call_value_insn"): Rename to ...
23892 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23893 match_operand 0.
23894 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23895 DI.
23896
23897 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23898
23899 PR middle-end/64242
23900 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23901 frame clobbers and schedule block.
23902 (builtin_longjmp): Likewise.
23903
23904 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23905
23906 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23907 describe how to perform MSPABI compliant 64-bit shift.
23908 * config/msp430/msp430.md (ashldi3): New define_expand.
23909 (ashrdi3): New define_expand.
23910 (lshrdi3): New define_expand.
23911
23912 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23913
23914 * doc/sourcebuild.texi: Document new effective target keyword
23915 longlong64.
23916
23917 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23918
23919 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23920 indirect_refs_may_alias_p): Revert accidental commits.
23921
23922 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23923 at the end of structures.
23924
23925 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23926
23927 * config/darwin.c (machopic_indirect_call_target): Use renamed
23928 darwin_picsymbol_stubs to decide on output.
23929 (darwin_override_options): Handle darwin_picsymbol_stubs.
23930 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23931 (LD64_VERSION): Revise default.
23932 * config/darwin.opt: (mpic-symbol-stubs): New option.
23933 (darwin_picsymbol_stubs): New variable.
23934 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23935 rename to TARGET_MACHO_PICSYM_STUBS.
23936 * config/i386/i386.c (output_pic_addr_const): Likewise.
23937 * config/i386/i386.h Likewise.
23938 * config/rs6000/darwin.h: Likewise.
23939 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23940 darwin_picsymbol_stubs.
23941
23942 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23943
23944 * config/darwin.opt (prebind, noprebind, seglinkedit,
23945 noseglinkedit): Add RejectNegative.
23946
23947 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23948
23949 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23950 in my previous patch.
23951
23952 2019-06-16 Tom de Vries <tdevries@suse.de>
23953
23954 PR tree-optimization/89376
23955 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23956
23957 2019-06-15 Maya Rashish <coypu@sdf.org>
23958
23959 * doc/invoke.texi (Spec Files): Update location of the
23960 Fortran spec file.
23961
23962 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23963
23964 * doc/extend.texi (Common Function Attributes): Clarify
23965 no_sanitize. Fix grammar.
23966
23967 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23968
23969 * tree-ssa-alias.c (alias_stats): Add
23970 nonoverlapping_component_refs_p_may_alias,
23971 nonoverlapping_component_refs_p_no_alias,
23972 nonoverlapping_component_refs_of_decl_p_may_alias,
23973 nonoverlapping_component_refs_of_decl_p_no_alias.
23974 (dump_alias_stats): Dump them.
23975 (nonoverlapping_component_refs_of_decl_p): Add stats.
23976 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23977 ARRAY_REF.
23978
23979 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23980
23981 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23982 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23983 only.
23984 (*anddi3_doubleword): Split before reload. Merge with
23985 anddi->zext pre-reload splitter.
23986 (*andndi3_doubleword): Split before reload.
23987 (*<code>di3_doubleword): Ditto.
23988 (*one_cmpldi2_doubleword): Ditto.
23989
23990 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23991
23992 PR middle-end/90779
23993 * gimplify.c: Include omp-offload.h and context.h.
23994 (gimplify_bind_expr): Add "omp declare target" attributes
23995 to static block scope variables inside of target region or target
23996 functions.
23997
23998 2019-06-15 Tom de Vries <tdevries@suse.de>
23999
24000 PR tree-optimization/90009
24001 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24002 Return NULL if bb contains IFN_UNIQUE.
24003
24004 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24005
24006 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24007 (un): New define_mode_attr.
24008 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24009 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24010 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24011 merge into ...
24012 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24013
24014 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24015
24016 * config/darwin.opt: Add RejectNegative where needed, reorder
24017 and add minimal functional descriptions.
24018
24019 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24020
24021 PR rtl-optimization/90765
24022 * calls.c (update_stack_alignment_for_call): New function.
24023 (expand_call): Call update_stack_alignment_for_call when
24024 outgoing parameter is passed in the stack.
24025 (emit_library_call_value_1): Likewise.
24026 * function.c (locate_and_pad_parm): Don't update
24027 stack_alignment_needed and preferred_stack_boundary.
24028
24029 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24030
24031 PR target/90877
24032 * config/i386/i386-features.c
24033 (dimode_scalar_chain::compute_convert_gain): Replace
24034 mmxsse_to_integer with sse_to_integer.
24035 * config/i386/i386.c (ix86_register_move_cost): Verify that
24036 moves between MMX and non-MMX units require secondary memory.
24037 Correct costs of moves between SSE and integer units.
24038 * config/i386/i386.h (processor_costs): Rename cost of moving
24039 SSE register to integer to sse_to_integer. Rename cost of
24040
24041 2019-06-14 Matt Thomas <matt@3am-software.com>
24042 Matthew Green <mrg@eterna.com.au>
24043 Nick Hudson <skrll@netbsd.org>
24044 Maya Rashish <coypu@sdf.org>
24045 Richard Earnshaw <rearnsha@arm.com>
24046
24047 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24048 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24049 * config/arm/netbsd-eabi.h: New file.
24050 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24051 redefining.
24052 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24053 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24054 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24055 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24056
24057 2019-06-14 Richard Biener <rguenther@suse.de>
24058
24059 * tree-loop-distribution.c (classify_partition): Return
24060 whether a reduction appeared in all partitions and do not
24061 stop builtin detection because of this.
24062 (distribute_loop): Sort a non-builtin partition last if
24063 there's a reduction in all partitions and make sure the
24064 partition prevailing as last is not a builtin.
24065
24066 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24067
24068 PR ipa/90401
24069 * ipa-prop.c (add_to_agg_contents_list): New function.
24070 (clobber_by_agg_contents_list_p): Likewise.
24071 (extract_mem_content): Likewise.
24072 (get_place_in_agg_contents_list): Delete.
24073 (determine_known_aggregate_parts): Renamed from
24074 determine_locally_known_aggregate_parts. New parameter
24075 aa_walk_budget_p.
24076
24077 2019-06-13 Martin Sebor <msebor@redhat.com>
24078
24079 PR tree-optimization/90662
24080 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24081 to the same type.
24082
24083 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24084
24085 PR bootstrap/90873
24086 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24087 dbase is not TARGET_MEM_REF.
24088
24089 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24090
24091 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24092 Update all uses.
24093 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24094 Do not generate DImode extends for 32bit targets.
24095 (and->zext post-reload splitter): Use gen_extend_insn
24096 instead of indirect functions.
24097 (anddi->zext pre-reload splitter): New.
24098 (*zext<mode>_doubleword_and): Remove.
24099 (*zext<mode>_doubleword): Ditto.
24100 (*zextsi_doubleword): Dittto.
24101
24102 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24103
24104 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24105 Use gen_sub3_insn instead of indirect function.
24106 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24107 indirect function.
24108 (ix86_adjust_counter): Ditto.
24109
24110 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24111 Lijia He <helijia@linux.ibm.com>
24112
24113 PR tree-optimization/77820
24114 * tree-ssa-threadedge.c
24115 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24116 function.
24117 (thread_across_edge): Add call to
24118 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24119
24120 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24121
24122 * config/darwin-driver.c (validate_macosx_version_min): New.
24123 (darwin_default_min_version): Cleanup and validate supplied version.
24124 (darwin_driver_init): Likewise and push cleaned version into opts.
24125
24126 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24127
24128 PR tree-optimization/90869
24129 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24130 converts in MEM_REF referencing decl rather than view converts
24131 from decl type to MEM_REF type.
24132
24133 2019-06-13 Richard Biener <rguenther@suse.de>
24134
24135 PR tree-optimization/90856
24136 * tree-sra.c (build_ref_for_model): Only use
24137 build_reconstructed_reference when address-spaces are the same.
24138
24139 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24140
24141 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24142 wrap ei variable name in the declaration in ()s.
24143 (nvptx_single): Actually use mode_label variable. Formatting fix.
24144
24145 2019-06-13 Richard Biener <rguenther@suse.de>
24146
24147 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24148 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24149 also return the condition stmt.
24150 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24151 loop we can version and version that, reusing the loop version
24152 created by if-conversion instead of versioning again.
24153
24154 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24155
24156 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24157 may_contain_p.
24158 * tree-vrp (value_range_base::may_contain_p): Call into
24159 value_inside_range.
24160 (value_inside_range): Make private inside value_range_base class.
24161 Take min/max from *this.
24162 (range_includes_p): Remove.
24163 * tree-vrp.h (value_range_base): Add value_inside_range.
24164 (range_includes_p): Remove.
24165 (range_includes_zero_p): Call may_contain_p.
24166 * vr-values.c (compare_range_with_value): Same.
24167
24168 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24169
24170 * doc/extend.texi (ARC Function Attributes): Update info.
24171
24172 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24173
24174 PR tree-optimization/89713
24175 * doc/invoke.texi (-ffinite-loops): Document new option.
24176 * common.opt (-ffinite-loops): New option.
24177 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24178 IFN_GOACC_LOOP calls as necessary.
24179 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24180 is finite.
24181 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24182 IFN_GOACC_LOOP call is not used.
24183 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24184
24185 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24186
24187 PR target/88838
24188 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24189 compare_type is not with Pmode size, we will create an IV with
24190 Pmode size with truncated use (i.e. converted to the correct type).
24191 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24192 (vect_iv_limit_for_full_masking): New. Factored out of
24193 vect_set_loop_condition_masked.
24194 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24195 (vect_iv_limit_for_full_masking): Declare.
24196
24197 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24198
24199 PR target/88834
24200 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24201 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24202 (get_alias_ptr_type_for_ptr_address): Likewise.
24203 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24204 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24205 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24206 allow_reg_index_p.
24207
24208 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24209
24210 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24211
24212 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24213
24214 * common/config/pru/pru-common.c: New file.
24215 * config.gcc: Add PRU target.
24216 * config/pru/alu-zext.md: New file.
24217 * config/pru/constraints.md: New file.
24218 * config/pru/predicates.md: New file.
24219 * config/pru/pru-opts.h: New file.
24220 * config/pru/pru-passes.c: New file.
24221 * config/pru/pru-pragma.c: New file.
24222 * config/pru/pru-protos.h: New file.
24223 * config/pru/pru.c: New file.
24224 * config/pru/pru.h: New file.
24225 * config/pru/pru.md: New file.
24226 * config/pru/pru.opt: New file.
24227 * config/pru/t-pru: New file.
24228 * doc/extend.texi: Document PRU pragmas.
24229 * doc/invoke.texi: Document PRU-specific options.
24230 * doc/md.texi: Document PRU asm constraints.
24231
24232 2019-06-12 Martin Sebor <msebor@redhat.com>
24233
24234 PR middle-end/90676
24235 * tree-pretty-print.c (dump_mem_ref): New function. Include
24236 MEM_REF type in output when different size than operand.
24237 (dump_generic_node): Move code to dump_mem_ref and call it.
24238
24239 2019-06-12 Martin Sebor <msebor@redhat.com>
24240
24241 PR tree-optimization/90662
24242 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24243 to arrays.
24244
24245 2019-06-12 Tom de Vries <tdevries@suse.de>
24246
24247 PR tree-optimization/90009
24248 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24249
24250 2019-06-12 Martin Liska <mliska@suse.cz>
24251
24252 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24253 the created map.
24254 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24255 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24256 Do not sanitize created maps.
24257
24258 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24259
24260 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24261 value_range::singleton_p.
24262 * tree-vrp.c (value_range_constant_singleton): Remove.
24263 * tree-vrp.h (value_range_constant_singleton): Remove.
24264 * vr-values.c (vr_values::singleton): Use
24265 value_range::singleton_p.
24266
24267 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24268
24269 PR target/90811
24270 * cfgexpand.c (align_local_variable): Add really_expand argument,
24271 don't SET_DECL_ALIGN if it is false.
24272 (add_stack_var): Add really_expand argument, pass it through to
24273 align_local_variable.
24274 (expand_one_stack_var_1): Pass true as really_expand to
24275 align_local_variable.
24276 (expand_one_ssa_partition): Pass true as really_expand to
24277 add_stack_var.
24278 (expand_one_var): Pass really_expand through to add_stack_var.
24279
24280 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24281
24282 * config/arm/iterators.md (VABAL): New int iterator.
24283 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24284 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24285 UNSPEC_VABAL_U values.
24286
24287 2019-06-12 Martin Liska <mliska@suse.cz>
24288
24289 * value-prof.c (stream_out_histogram_value): Only first value
24290 can't be negative.
24291
24292 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24293
24294 PR c/90760
24295 * symtab.c (symtab_node::set_section): Allow being called on aliases
24296 as long as they aren't analyzed yet.
24297
24298 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24299
24300 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24301 to `mips_set_text_contents_type' to indicate whether a
24302 non-debug insn follows.
24303
24304 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24305
24306 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24307 enabling -mpcrel by default.
24308 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24309 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24310 that the test against -mcpu=future is done first. Then test if
24311 -mprefixed-addr is on for -mpcrel.
24312 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24313
24314 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24315
24316 PR target/90811
24317 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24318 instead of and.u%d.
24319
24320 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24321
24322 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24323
24324 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24325
24326 PR c++/90449 - add -Winaccessible-base option.
24327 * doc/invoke.texi (Winaccessible-base): Document.
24328
24329 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24330
24331 PR tree-optimization/62041
24332 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24333
24334 2019-06-11 Jason Merrill <jason@redhat.com>
24335
24336 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24337 * tree.c (get_tree_code_name): Likewise.
24338 * print-tree.c (print_node): Only briefly print a node with an
24339 invalid code.
24340
24341 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24342
24343 PR bootstrap/90819
24344 * trans-mem.c (tm_memopt_compute_available): Add assertion
24345 that blocks is not empty. Formatting fix.
24346
24347 2019-06-11 Martin Liska <mliska@suse.cz>
24348
24349 PR c++/87847
24350 * hash-table.h: Extend create_gcc, add one parameter
24351 that is passed into hash_table::hash_table.
24352
24353 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24354
24355 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24356 New prototype.
24357 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24358 Emit clobber also for non-sse operations.
24359 (ix86_split_fp_absneg_operator): New function.
24360 * config/i386/i386.md (SSEMODEF): New mode iterator.
24361 (ssevecmodef): New mode attribute.
24362 (<code>tf2): Use absneg code iterator.
24363 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24364 Add three-operand AVX alternatives.
24365 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24366 Use absneg code iterator and X87MODEF mode iterator.
24367 (absneg fp_reg non-sse splitter): Call absneg code iterator
24368 and X87MODEF mode iterator.
24369 (absneg general_reg non-sse splitter): Use absneg code iterator
24370 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24371 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24372 code iterator. Add three-operand AVX alternative.
24373 (absneg sse_reg splitter): Use absneg code iterator
24374 and SSEMODEF mode iterator. Handle AVX operands.
24375 (absneg fp_reg splitter): Use absneg code iterator
24376 and MODEF mode iterator.
24377 (absneg general_reg splitter): Merge splitters using MODEF mode
24378 iterator. Use absneg code iterator. Call
24379 ix86_split_fp_absneg_operator.
24380 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24381 Do not enable for non-sse modes before reload.
24382 (CSGNMODE): Remove.
24383 (CSGNVMODE): Ditto.
24384 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24385 ssevecmodef mode attribute instaed of CSGNVMODE.
24386 (copysign<mode>3_const): Ditto.
24387 (copysign<mode>3_var): Ditto.
24388 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24389 Use absneg code iterator. Simplify code using std::swap.
24390 * config/i386/predicates.md (absneg_operator): Remove.
24391
24392 2019-06-10 Martin Sebor <msebor@redhat.com>
24393
24394 * gimple-fold.c (get_range_strlen): Update comment that didn't
24395 make it into r267503 or related commits.
24396
24397 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24398
24399 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24400 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24401
24402 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24403
24404 * tree.def (OMP_SCAN): New tree code.
24405 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24406 OMP_CLAUSE_EXCLUSIVE.
24407 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24408 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24409 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24410 OMP_CLAUSE_{IN,EX}CLUSIVE.
24411 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24412 * tree-nested.c (convert_nonlocal_reference_stmt,
24413 convert_local_reference_stmt, convert_gimple_call): Handle
24414 GIMPLE_OMP_SCAN.
24415 * tree-pretty-print.c (dump_omp_clause): Handle
24416 OMP_CLAUSE_{IN,EX}CLUSIVE.
24417 (dump_generic_node): Handle OMP_SCAN.
24418 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24419 * gimple.h (gomp_scan): New type.
24420 (is_a_helper <gomp_scan *>::test,
24421 is_a_helper <const gomp_scan *>::test): New templates.
24422 (gimple_build_omp_scan): Declare.
24423 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24424 gimple_omp_scan_set_clauses): New inline functions.
24425 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24426 * gimple.c (gimple_build_omp_scan): New function.
24427 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24428 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24429 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24430 GIMPLE_OMP_TASKGROUP.
24431 (dump_gimple_omp_scan): New function.
24432 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24433 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24434 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24435 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24436 (is_gimple_stmt): Handle OMP_SCAN.
24437 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24438 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24439 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24440 mentioned in nested #pragma omp scan. Handle
24441 OMP_CLAUSE_{IN,EX}CLUSIVE.
24442 (gimplify_expr): Handle OMP_SCAN.
24443 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24444 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24445 simd constructs.
24446 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24447 GIMPLE_OMP_SCAN.
24448
24449 2019-06-10 Martin Liska <mliska@suse.cz>
24450
24451 * ipa-cp.c (ignore_edge_p): New function.
24452 (build_toporder_info): Use it.
24453 * ipa-inline.c (ignore_edge_p): New function.
24454 (inline_small_functions): Use it.
24455 * ipa-pure-const.c (ignore_edge_for_nothrow):
24456 Verify opt_for_fn for caller and callee.
24457 (ignore_edge_for_pure_const): Likewise.
24458 * ipa-reference.c (ignore_edge_p): Extend to check
24459 for opt_for_fn.
24460 * ipa-utils.c (searchc): Refactor.
24461 * ipa-utils.h: Fix coding style.
24462
24463 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24464
24465 * config/arc/arc.c (arc_rtx_costs): Update costs.
24466
24467 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24468
24469 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24470 (arc_split_ior): Likewise.
24471 (arc_check_mov_const): Likewise.
24472 (arc_split_mov_const): Likewise.
24473 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24474 (arc_rtx_costs): Replace check Crr with Cax constraint.
24475 (prepare_move_operands): Cleanup, remove unused code.
24476 (arc_split_ior): New function.
24477 (arc_check_ior_const): Likewise.
24478 (arc_split_mov_const): Likewise.
24479 (arc_check_mov_const): Likewise.
24480 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24481 in define_insn_and_split pattern.
24482 (iorsi3): Likewise.
24483 (mulsi3_v2): Add new matching variant.
24484 (andsi3_i): Cleanup pattern.
24485 (rotrsi3_cnt1): Update pattern.
24486 (rotrsi3_cnt8): New pattern.
24487 (ashlsi2_cnt8): Likewise.
24488 (ashlsi2_cnt16): Likewise.
24489 * config/arc/constraints.md (C0p): Update constraint.
24490 (Crr): Remove it.
24491 (C0x): New pattern.
24492 (Cax): New pattern.
24493
24494 2019-06-10 Martin Liska <mliska@suse.cz>
24495
24496 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24497 Update coding style.
24498 (sem_item_optimizer::dump_cong_classes):
24499 Print how many items are in a non-singular class. Improve
24500 coding style.
24501
24502 2019-06-10 Martin Liska <mliska@suse.cz>
24503
24504 * value-prof.c (dump_histogram_value): Change dump format.
24505 (gimple_mod_subtract_transform): Remove legacy comment.
24506
24507 2019-06-10 Martin Liska <mliska@suse.cz>
24508
24509 * value-prof.c (dump_histogram_value): Print histogram values
24510 only if present.
24511
24512 2019-06-10 Martin Liska <mliska@suse.cz>
24513
24514 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24515 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24516 * ipa-profile.c (ipa_profile_generate_summary):
24517 Use get_most_common_single_value.
24518 * tree-profile.c (gimple_init_gcov_profiler):
24519 Instrument with __gcov_one_value_profiler_v2
24520 and __gcov_indirect_call_profiler_v4.
24521 * value-prof.c (dump_histogram_value):
24522 Print all values for HIST_TYPE_SINGLE_VALUE.
24523 (stream_out_histogram_value): Update assert for
24524 N values.
24525 (stream_in_histogram_value): Set number of
24526 counters for HIST_TYPE_SINGLE_VALUE.
24527 (get_most_common_single_value): New.
24528 (gimple_divmod_fixed_value_transform):
24529 Use get_most_common_single_value.
24530 (gimple_ic_transform): Likewise.
24531 (gimple_stringops_transform): Likewise.
24532 (gimple_find_values_to_profile): Set number
24533 of counters for HIST_TYPE_SINGLE_VALUE.
24534 * value-prof.h (get_most_common_single_value): New.
24535
24536 2019-06-10 Martin Liska <mliska@suse.cz>
24537
24538 * hash-map.h: Pass default value to hash_table ctor.
24539 * hash-table.h: Add default value to call of a ctor.
24540
24541 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24542
24543 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24544 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24545
24546 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24547
24548 PR target/90751
24549 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24550 Call pa_output_function_label.
24551 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24552 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24553 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24554 to declaration.
24555 (pa_linux_output_function_prologue): Declare.
24556 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24557 (pa_output_function_label): New.
24558 (pa_output_function_prologue): Revise to use pa_output_function_label.
24559 (pa_linux_output_function_prologue): New.
24560 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24561
24562 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24563
24564 * tree-vrp.h (value_range_base::intersect): New.
24565 (value_range::intersect_helper): Move from here...
24566 (value_range_base::intersect_helper): ...to here.
24567 * tree-vrp.c (value_range::intersect_helper): Rename to...
24568 (value_range_base::intersect_helper): ...this, and rewrite to
24569 return a value instead of modifying THIS in place.
24570 Also, move equivalence handling...
24571 (value_range::intersect): ...here, while calling intersect_helper.
24572 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24573 calling intersect.
24574 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24575 Same.
24576 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24577
24578 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24579
24580 * Makefile.in (genprogerr): Add condmd.
24581 (genprog): Remove it here.
24582
24583 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24584
24585 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24586
24587 2019-06-07 Richard Biener <rguenther@suse.de>
24588
24589 PR debug/90574
24590 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24591 that appear after user labels.
24592
24593 2019-06-07 Martin Liska <mliska@suse.cz>
24594
24595 * cselib.c (cselib_init): Disable hash table
24596 sanitization.
24597 * hash-set.h: Pass new default argument to m_table.
24598 * hash-table.c: Add global variable with hash table
24599 sanitization limit.
24600 * hash-table.h (Allocator>::hash_table): Add new argument
24601 to ctor.
24602 (hashtab_chk_error): New.
24603 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24604 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24605 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24606
24607 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24608
24609 * common.opt (flto-odr-type-merging): Ignore.
24610 * invoke.texi (-flto-odr-type-merging): Remove.
24611 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24612 (can_be_vtable_hashed_p): Remove.
24613 (hash_odr_vtable): Remove.
24614 (odr_vtable_hasher::hash): Remove.
24615 (types_same_for_odr): Remove.
24616 (types_odr_comparable): Remove.
24617 (odr_vtable_hasher::equal): Remove.
24618 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24619 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24620 (get_odr_type): Do not use vtable hash.
24621 (dump_odr_type): Remove commented out code.
24622 (build_type_inheritance_graph): Do not allocate vtable hash.
24623 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24624 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24625 (odr_type_p): Likewise.
24626 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24627 test.
24628
24629 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24630
24631 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24632 immediately after same_types_for_tbaa_p returns -1 and continue
24633 looking for possible exact match; if matching types are arrays
24634 watch for partial overlaps.
24635 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24636 (indirect_refs_may_alias_p): Do type based disambiguation first;
24637 update comment.
24638
24639 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24640
24641 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24642
24643 2019-06-07 Martin Liska <mliska@suse.cz>
24644
24645 * doc/invoke.texi: Remove param.
24646 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24647 Remove.
24648 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24649 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24650 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24651 * profile.c (instrument_values): Remove
24652 HIST_TYPE_INDIR_CALL_TOPN.
24653 * tree-profile.c (init_ic_make_global_vars):
24654 Always build __gcov_indirect_call only.
24655 (gimple_init_gcov_profiler): Remove usage
24656 of PARAM_INDIR_CALL_TOPN_PROFILE.
24657 (gimple_gen_ic_profiler): Likewise.
24658 * value-prof.c (dump_histogram_value): Likewise.
24659 (stream_in_histogram_value): Likewise.
24660 (gimple_indirect_call_to_profile): Likewise.
24661 (gimple_find_values_to_profile): Likewise.
24662 * value-prof.h (enum hist_type): Likewise.
24663
24664 2019-06-07 Martin Liska <mliska@suse.cz>
24665
24666 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24667 function.
24668
24669 2019-06-07 Martin Liska <mliska@suse.cz>
24670
24671 PR tree-optimization/78902
24672 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24673 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24674 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24675 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24676 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24677 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24678 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24679 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24680 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24681 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24682 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24683 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24684 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24685 New.
24686 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24687 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24688 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24689 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24690 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24691 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24692 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24693 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24694 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24695 warn_unused_result attribute.
24696 (BUILT_IN_STRDUP): Likewise.
24697 (BUILT_IN_STRNDUP): Likewise.
24698 (BUILT_IN_ALLOCA): Likewise.
24699 (BUILT_IN_CALLOC): Likewise.
24700 (BUILT_IN_MALLOC): Likewise.
24701 (BUILT_IN_REALLOC): Likewise.
24702
24703 2019-06-06 Jim Wilson <jimw@sifive.com>
24704
24705 PR target/89955
24706 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24707 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24708 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24709
24710 2019-06-06 Martin Sebor <msebor@redhat.com>
24711
24712 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24713 (handle_builtin_malloc): Remove trailing spaces.
24714 (handle_builtin_memset): Same.
24715 (handle_builtin_memcmp): Same.
24716 (compute_string_length): Same.
24717 (determine_min_objsize): Same.
24718 (handle_builtin_string_cmp): Same.
24719 (handle_char_store): Same. Break up excessively long line.
24720
24721 2019-06-06 Martin Jambor <mjambor@suse.cz>
24722
24723 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24724 check.
24725
24726 2019-06-06 Martin Jambor <mjambor@suse.cz>
24727
24728 * tree-sra.c (struct access): New field grp_same_access_path.
24729 (dump_access): Dump it.
24730 (build_reconstructed_reference): New function.
24731 (build_ref_for_model): Use it if possible.
24732 (path_comparable_for_same_access): New function.
24733 (same_access_path_p): Likewise.
24734 (sort_and_splice_var_accesses): Set the new flag.
24735 (analyze_access_subtree): Likewise.
24736 (propagate_subaccesses_across_link): Propagate zero value of the new
24737 flag down the access tree.
24738
24739 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24740
24741 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24742 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24743 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24744 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24745 Add gfx906.
24746
24747 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24748
24749 PR tree-optimization/90332
24750 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24751 Handle VALS containing two vectors.
24752 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24753 to...
24754 (@aarch64_combinez<mode>): ... This.
24755 (*aarch64_combinez_be<mode>): Rename to...
24756 (@aarch64_combinez_be<mode>): ... This.
24757 (vec_init<mode><Vhalf>): New define_expand.
24758 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24759
24760 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24761
24762 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24763 library functions only when not optimizing for size.
24764 (ashlsi3): Likewise.
24765 (ashrhi3): Likewise.
24766 (ashrsi3): Likewise.
24767 (lshrhi3): Likewise.
24768 (lshrsi3): Likewise.
24769
24770 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24771
24772 PR rtl-optimization/88751
24773 * ira.c (ira): Use the number of the actually referenced registers
24774 when calculating the threshold.
24775
24776 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24777
24778 * configure: Regenerate.
24779
24780 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24781
24782 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24783 register if it is in memory, so the shift can be emulated with a rotate
24784 instruction.
24785 (ashrhi3): Likewise.
24786 (lshrhi3): Likewise.
24787
24788 2019-06-06 Martin Liska <mliska@suse.cz>
24789
24790 PR tree-optimization/87954
24791 * match.pd: Simplify mult where both arguments are 0 or 1.
24792
24793 2019-06-06 Richard Biener <rguenther@suse.de>
24794
24795 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24796 put equivalences on UNDEFINED ranges.
24797 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24798 Make sure to drop defs of stmts added during simplification
24799 to VARYING.
24800
24801 2019-06-06 Richard Biener <rguenther@suse.de>
24802
24803 * tree-ssa-structalias.c: Include tree-cfg.h.
24804 (make_heapvar): Do not make heap vars artificial.
24805 (find_func_aliases_for_builtin_call): Handle stack allocation
24806 functions.
24807 (find_func_aliases): Delay processing of simple enough returns
24808 in non-IPA mode.
24809 (set_uids_in_ptset): Adjust.
24810 (find_what_var_points_to): Likewise.
24811 (solve_constraints): Do not dump points-to sets here.
24812 (compute_points_to_sets): Post-process return statements,
24813 amending the escaped solution. Dump points-to sets afterwards.
24814 (ipa_pta_execute): Dump points-to sets.
24815
24816 2019-06-06 Martin Liska <mliska@suse.cz>
24817
24818 PR web/87933
24819 * doc/install.texi: Fix HTML headers and
24820 titles for 'Installing GCC' pages.
24821
24822 2019-06-06 Martin Liska <mliska@suse.cz>
24823
24824 * ipa-icf-gimple.h (dump_message_1): Remove.
24825 (dump_message): Likewise.
24826 (return_false_with_message_1): Print also file.
24827 (return_false_with_msg): Likewise.
24828 (return_with_result): Likewise.
24829 (return_with_debug): Likewise.
24830 * ipa-icf.c (sem_function::equals_private): Remove call
24831 to dump_message.
24832
24833 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24834
24835 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24836 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24837 memory operand for it.
24838 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24839
24840 2019-06-05 Martin Sebor <msebor@redhat.com>
24841
24842 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24843 Adjust quoting and hyphenation.
24844 * convert.c (convert_to_real_1): Same.
24845 * gcc.c (driver_wrong_lang_callback): Same.
24846 (driver::handle_unrecognized_options): Same.
24847 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24848 * opts-common.c (cmdline_handle_error): Same.
24849 (read_cmdline_option): Same.
24850 * opts-global.c (complain_wrong_lang): Same.
24851 (print_ignored_options): Same.
24852 (handle_common_deferred_options): Same.
24853 * pretty-print.h: Same.
24854 * print-rtl.c (debug_bb_n_slim): Same.
24855 * sched-rgn.c (make_pass_sched_fusion): Same.
24856 * tree-cfg.c (verify_gimple_assign_unary): Same.
24857 (verify_gimple_label): Same.
24858 * tree-ssa-operands.c (verify_ssa_operands): Same.
24859 * varasm.c (do_assemble_alias): Same.
24860 (assemble_alias): Same.
24861
24862 2019-06-05 Richard Henderson <rth@twiddle.net>
24863
24864 * config/alpha/alpha.c (direct_return): Move down after
24865 struct machine_function definition; use saved frame_size;
24866 return bool.
24867 (struct machine_function): Add sa_mask, sa_size, frame_size.
24868 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24869 (alpha_compute_frame_layout): ... new function.
24870 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24871 (alpha_initial_elimination_offset): Use saved sa_size.
24872 (alpha_vms_initial_elimination_offset): Likewise.
24873 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24874 (alpha_expand_prologue): Use saved frame data. Merge integer
24875 and fp register save loops.
24876 (alpha_expand_epilogue): Likewise.
24877 (alpha_start_function): Use saved frame data.
24878 * config/alpha/alpha-protos.h (direct_return): Update.
24879 (alpha_sa_size): Remove.
24880
24881 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24882
24883 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24884 multiplication by a power-of-two value.
24885 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24886 and turn the modulo operation into a masking operation.
24887
24888 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24889
24890 PR debug/90733
24891 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24892 with VOIDmode inner operands.
24893
24894 2019-06-05 Richard Biener <rguenther@suse.de>
24895
24896 PR middle-end/90726
24897 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24898 turn an expression graph into a tree.
24899
24900 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24901
24902 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24903 member.
24904 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24905 treat it like explicit monotonic schedule modifier.
24906 (expand_omp_for): Initialize has_lastprivate_conditional.
24907 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24908 schedule modifier.
24909
24910 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24911 references, lookup in in hash map MEM_REF operand instead of the
24912 MEM_REF itself.
24913 (lower_omp_1): When looking for lastprivate conditional assignments,
24914 handle MEM_REFs with REFERENCE_TYPE operands.
24915
24916 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24917 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24918 and references a VLA. Handle references to non-VLAs if is_simd
24919 all privatization clauses like reductions.
24920 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24921 If omp_is_reference, use always omp simd arrays and set
24922 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24923 fails, emit reference initialization.
24924
24925 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24926
24927 PR target/89803
24928 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24929 _mm_mask_fpclass_sd_mask): New intrinsics.
24930 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24931 * config/i386/i386-builtin.def
24932 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24933 New builtins.
24934 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24935 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24936 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24937 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24938 case QI_FTYPE_V2SF_INT): Ditto.
24939 * config/i386/sse.md
24940 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24941 Extended to insnstructions with mask operands.
24942
24943 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24944
24945 * config/rs6000/constraints.md (define_register_constraint "wp"):
24946 Delete.
24947 (define_register_constraint "wq"): Delete.
24948 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24949 (rs6000_init_hard_regno_mode_ok): Adjust.
24950 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24951 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24952 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24953 (define_mode_attr VSa): Delete.
24954 (define_mode_attr VSisa): New.
24955 (rest of file): Adjust.
24956 * doc/md.texi (Machine Constraints): Adjust.
24957
24958 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24959
24960 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24961 (define_attr "enabled"): Handle those new isa values.
24962
24963 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24964
24965 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24966 (define_mode_attr VSr5): Delete.
24967 (define_mode_attr VStype_sqrt): Delete.
24968 (define_mode_iterator VSX_SPDP): Delete.
24969 (define_mode_attr VS_spdp_res): Delete.
24970 (define_mode_attr VS_spdp_insn): Delete.
24971 (define_mode_attr VS_spdp_type): Delete.
24972 (*vsx_sqrt<mode>2): Adjust.
24973 (vsx_<VS_spdp_insn>): Delete, split to...
24974 (vsx_xscvdpsp): ... this. New. And...
24975 (vsx_xvcvspdp): ... this. New. And...
24976 (vsx_xvcvdpsp): ... this. New.
24977
24978 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24979
24980 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24981 and V2DF.
24982 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24983 (rest of file): Adjust.
24984
24985 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24986
24987 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24988 (vsx_extract_<mode>_var): Ditto.
24989
24990 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24991
24992 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24993 with just "wa".
24994
24995 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24996
24997 * config/rs6000/constraints.md (define_register_constraint "ww"):
24998 Delete.
24999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25000 (rs6000_init_hard_regno_mode_ok): Adjust.
25001 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25002 RS6000_CONSTRAINT_ww.
25003 * config/rs6000/rs6000.md: Adjust.
25004 * config/rs6000/vsx.md: Adjust.
25005 * doc/md.texi (Machine Constraints): Adjust.
25006
25007 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25008
25009 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25010 (define_mode_attr sd): New.
25011 (define_mode_attr s): New.
25012 (define_mode_attr Ftrad): Delete.
25013 (define_mode_attr Fvsx): Delete.
25014 (define_mode_attr Fs): Delete.
25015 (rest of file): Use the new mode attributes.
25016 * config.rs6000/vsx.md: Use the new mode attributes.
25017
25018 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25019
25020 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25021 with just "wa".
25022
25023 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25024
25025 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25026 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25027 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25028
25029 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25030
25031 PR target/78263
25032 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25033 C++ with strict ANSI requirements.
25034
25035 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25036
25037 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25038 computations when step is 1.
25039
25040 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25041
25042 * config/rs6000/constraints.md (define_register_constraint "wf"):
25043 Delete.
25044 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25045 (rs6000_init_hard_regno_mode_ok): Adjust.
25046 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25047 RS6000_CONSTRAINT_wf.
25048 * config/rs6000/rs6000.md: Adjust.
25049 * config/rs6000/vsx.md: Adjust.
25050 * doc/md.texi (Machine Constraints): Adjust.
25051
25052 2019-06-04 Andrew Pinski <apinski@marvell.com>
25053
25054 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25055 Fix ILP32 value.
25056
25057 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25058
25059 * config/rs6000/constraints.md (define_register_constraint "wd"):
25060 Delete.
25061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25062 (rs6000_init_hard_regno_mode_ok): Adjust.
25063 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25064 RS6000_CONSTRAINT_wd.
25065 * config/rs6000/rs6000.md: Adjust.
25066 * config/rs6000/vsx.md: Adjust.
25067 * doc/md.texi (Machine Constraints): Adjust.
25068
25069 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25070
25071 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25072 (rest of file): Adjust.
25073
25074 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25075
25076 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25077 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25078 (vsx_splat_<mode>_reg): Adjust.
25079
25080 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25081
25082 * config/rs6000/constraints.md (define_register_constraint "ws"):
25083 Delete.
25084 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25085 (rs6000_init_hard_regno_mode_ok): Adjust.
25086 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25087 RS6000_CONSTRAINT_ws.
25088 * config/rs6000/rs6000.md: Adjust.
25089 * config/rs6000/vsx.md: Adjust.
25090 * doc/md.texi (Machine Constraints): Adjust.
25091
25092 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25093
25094 * config/rs6000/constraints.md (define_register_constraint "wv"):
25095 Delete.
25096 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25097 (rs6000_init_hard_regno_mode_ok): Adjust.
25098 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25099 RS6000_CONSTRAINT_wv.
25100 * config/rs6000/rs6000.md: Adjust.
25101 * config/rs6000/vsx.md: Adjust.
25102 * doc/md.texi (Machine Constraints): Adjust.
25103
25104 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25105
25106 * config/rs6000/constraints.md (define_register_constraint "wi"):
25107 Delete.
25108 (define_register_constraint "wt"): Delete.
25109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25110 (rs6000_init_hard_regno_mode_ok): Adjust.
25111 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25112 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25113 * config/rs6000/rs6000.md: Adjust.
25114 * config/rs6000/vsx.md: Adjust.
25115 * doc/md.texi (Machine Constraints): Adjust.
25116
25117 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25118
25119 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25120 const.
25121 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25122 default_elf_asm_output_external.
25123
25124 2019-06-04 Martin Liska <mliska@suse.cz>
25125
25126 * ipa-icf.c (INCLUDE_LIST): Remove.
25127 (sem_item_optimizer::execute): Remove call to init_wpa.
25128 * ipa-icf.h (init_wpa): Remove.
25129
25130 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25131
25132 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25133 conditional on combined for simd.
25134 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25135 member.
25136 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25137 constructs, don't remove lastprivate_conditional_map, but instead set
25138 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25139 to parent construct temporaries.
25140 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25141 like !ctx->lastprivate_conditional_map.
25142 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25143 use up->outer context instead of up.
25144 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25145 gimple_omp_for_combined_p.
25146 (expand_omp_for_static_nochunk): Likewise.
25147 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25148 probably moved over into expand_omp_for_generic rather than being copied
25149 there.
25150
25151 2019-06-04 Martin Liska <mliska@suse.cz>
25152
25153 * value-prof.c (dump_histogram_value): Fix typo.
25154 (gimple_mod_subtract_transform): Likewise.
25155
25156 2019-06-04 Richard Biener <rguenther@suse.de>
25157
25158 PR middle-end/90726
25159 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25160 (tree_contains_chrecs): Likewise.
25161 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25162 exponential behaivor from ...
25163 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25164 ... here.
25165 (expression_expensive_p): Avoid exponential behavior and compute
25166 expanded size, rejecting any expansion.
25167 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25168 (idx_contains_abnormal_ssa_name_p): Likewise.
25169 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25170 (contains_abnormal_ssa_name_p): Simplify and use
25171 walk_tree_without_duplicates.
25172
25173 2019-06-04 Richard Biener <rguenther@suse.de>
25174
25175 PR tree-optimization/90738
25176 Revert
25177 2019-06-03 Richard Biener <rguenther@suse.de>
25178
25179 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25180 full reference tree and record in ref->ref.
25181 (vn_reference_lookup_3): Pass in original ref to
25182 ao_ref_init_from_vn_reference.
25183 (vn_reference_lookup): Likewise.
25184 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25185 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25186 Handle non-decl bases in the original reference.
25187
25188 2019-06-04 Martin Liska <mliska@suse.cz>
25189
25190 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25191 number of references.
25192 (sem_item_optimizer::do_congruence_step):
25193 (sem_item_optimizer::worklist_push): Dump how references
25194 a class has.
25195 (sem_item_optimizer::worklist_pop): Use heap.
25196 (sem_item_optimizer::process_cong_reduction): Likewise.
25197 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25198
25199 2019-06-04 Martin Liska <mliska@suse.cz>
25200
25201 * ipa-icf.h (struct sem_usage_pair_hash): New.
25202 (sem_usage_pair_hash::hash): Likewise.
25203 (sem_usage_pair_hash::equal): Likewise.
25204 (struct sem_usage_hash): Likewise.
25205 * ipa-icf.c (sem_item::sem_item): Initialize
25206 referenced_by_count.
25207 (sem_item::add_reference): Register a reference
25208 in ref_map and not in target->usages.
25209 (sem_item::setup): Remove initialization of
25210 dead vectors.
25211 (sem_item::~sem_item): Remove usage of dead vectors.
25212 (sem_item::dump): Remove dump of references.
25213 (sem_item_optimizer::sem_item_optimizer): Initialize
25214 m_references.
25215 (sem_item_optimizer::read_section): Remove useless
25216 dump.
25217 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25218 (sem_item_optimizer::build_graph): Pass m_references
25219 to ::add_reference.
25220 (sem_item_optimizer::verify_classes): Remove usage of dead
25221 vectors.
25222 (sem_item_optimizer::traverse_congruence_split): Return true
25223 when a class is split.
25224 (sem_item_optimizer::do_congruence_step_for_index): Use
25225 hash_map for look up of (sem_item *, index). That brings
25226 significant speed up.
25227 (sem_item_optimizer::do_congruence_step): Return true
25228 when a split is done.
25229 (congruence_class::is_class_used): Use referenced_by_count.
25230
25231 2019-06-04 Alan Modra <amodra@gmail.com>
25232
25233 PR target/90689
25234 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25235 error.
25236
25237 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25238
25239 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25240 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25241 (rs6000_secondary_reload_simple_move): Adjust.
25242 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25243 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25244 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25245 comment.
25246 (power6x): Adjust.
25247 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25248 (floatunssi<mode>2_lfiwzx): Adjust.
25249 (fix_trunc<mode>si2_stfiwx): Adjust.
25250 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25251 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25252 (mfpgpr): Mark as deprecated.
25253 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25254 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25255 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25256
25257 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25258
25259 * config/rs6000/constraints.md (define_register_constraint "wg"):
25260 Delete.
25261 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25262 RS6000_CONSTRAINT_wg.
25263 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25264 (rs6000_init_hard_regno_mode_ok): Adjust.
25265 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25266 Delete "wg" alternatives.
25267 * doc/md.texi (Machine Constraints): Adjust.
25268
25269 2019-06-03 Alan Modra <amodra@gmail.com>
25270
25271 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25272 (get_uncond_jump_length): Assert length less than INT_MAX and
25273 non-negative.
25274
25275 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25276
25277 PR middle-end/64242
25278 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25279 block.
25280 (expand_builtin_nonlocal_goto): Likewise.
25281
25282 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25283
25284 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25285 (aarch64_asm_output_external): Declare.
25286 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25287 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25288 (aarch64_asm_output_alias): New.
25289 (aarch64_asm_output_external): New.
25290 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25291 (ASM_OUTPUT_EXTERNAL): Define.
25292
25293 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25294 * tree-vrp.h (value_range_base::nonzero_p): New.
25295 (value_range_base::set_nonnull): Rename to...
25296 (value_range_base::set_nonzero): ...this.
25297 (value_range_base::set_null): Rename to...
25298 (value_range_base::set_zero): ...this.
25299 (value_range::set_nonnull): Remove.
25300 (value_range::set_null): Remove.
25301 * tree-vrp.c (range_is_null): Remove.
25302 (range_is_nonnull): Remove.
25303 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25304 instead of range_is_*null.
25305 (extract_range_from_unary_expr): Same.
25306 (value_range_base::set_nonnull): Rename to...
25307 (value_range_base::set_nonzero): ...this.
25308 (value_range::set_nonnull): Remove.
25309 (value_range_base::set_null): Rename to...
25310 (value_range_base::set_zero): ...this.
25311 (value_range::set_null): Remove.
25312 (extract_range_from_binary_expr): Rename set_*null uses to
25313 set_*zero.
25314 (extract_range_from_unary_expr): Same.
25315 (union_helper): Same.
25316 * vr-values.c (get_value_range): Use set_*zero instead of
25317 set_*null.
25318 (vr_values::extract_range_from_binary_expr): Same.
25319 (vr_values::extract_range_basic): Same.
25320
25321 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25322
25323 PR driver/90684
25324 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25325
25326 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25327
25328 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25329 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25330 Rename to...
25331 (aarch64_<su>abd<mode>_3): ... This.
25332 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25333
25334 2019-06-03 Richard Biener <rguenther@suse.de>
25335
25336 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25337 full reference tree and record in ref->ref.
25338 (vn_reference_lookup_3): Pass in original ref to
25339 ao_ref_init_from_vn_reference.
25340 (vn_reference_lookup): Likewise.
25341 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25342 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25343 Handle non-decl bases in the original reference.
25344
25345 2019-06-03 Martin Liska <mliska@suse.cz>
25346
25347 * doc/generic.texi: Remove Java Trees.
25348
25349 2019-06-03 Martin Liska <mliska@suse.cz>
25350
25351 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25352 returns 0 when operands are equal.
25353
25354 2019-06-03 Richard Biener <rguenther@suse.de>
25355
25356 PR tree-optimization/90716
25357 * tree-loop-distribution.c (destroy_loop): Process blocks in
25358 correct order.
25359
25360 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25361
25362 PR target/88837
25363 * vector-builder.h (vector_builder::count_dups): New method.
25364 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25365 Declare prototype.
25366 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25367 (vec_init<mode><Vel>): New pattern.
25368 * config/aarch64/aarch64.c (emit_insr): New function.
25369 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25370 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25371 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25372 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25373
25374 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25375
25376 PR tree-optimization/90681
25377 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25378 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25379 special case for SLP, but fail on non-groupped loads.
25380
25381 2019-06-03 Martin Liska <mliska@suse.cz>
25382
25383 * cfg.c (debug): Use TDF_DETAILS for debug and
25384 print edge info only once.
25385
25386 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25387
25388 PR fortran/90539
25389 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25390
25391 2019-06-01 Martin Sebor <msebor@redhat.com>
25392
25393 PR middle-end/90694
25394 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25395
25396 2019-05-31 Jan Hubicka <jh@suse.cz>
25397
25398 * alias.c: Include ipa-utils.h.
25399 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25400 * ipa-devirt.c (prevailing_odr_type): New.
25401 * ipa-utils.h (previaling_odr_type): Declare.
25402
25403 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25404 Hongtao Liu <hongtao.liu@intel.com>
25405
25406 PR target/89355
25407 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25408 NOTE_INSN_DELETED_LABEL check.
25409
25410 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25411 Robert Suchanek <robert.suchanek@mips.com>
25412
25413 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25414 and 3rd operands of the fmadd/fmsub/maddv builtin.
25415
25416 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25417
25418 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25419 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25420 on OMP_SIMD if not nested inside of worksharing loop that also has
25421 lastprivate conditional clause for the same decl.
25422 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25423 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25424 on simd.
25425 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25426 on simd construct.
25427 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25428 on simd construct.
25429 (lower_lastprivate_clauses): Likewise.
25430 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25431 calling lower_rec_input_clauses.
25432 (lower_omp_for): Likewise.
25433 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25434 clause on simd construct.
25435 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25436 OMP_CLAUSE__CONDTEMP_ clause is present.
25437
25438 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25439 ivar and lvar.
25440
25441 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25442
25443 PR c/43673
25444 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25445 TEX_D32, TEX_D64 or TEX_D128.
25446
25447 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25448
25449 * match.pd (~(vec?cst1:cst2)): New transformation.
25450
25451 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25452
25453 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25454 ((size_t)(A /[ex] B) CMP C): New transformation.
25455
25456 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25457
25458 * doc/md.texi: Document define_insn_and_rewrite.
25459 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25460 * gensupport.c (queue_elem): Update comment.
25461 (replace_operands_with_dups): New function.
25462 (gen_rewrite_sequence): Likewise.
25463 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25464 * read-rtl.c (apply_subst_iterator): Likewise.
25465 (add_condition_to_rtx, named_rtx_p): Likewise.
25466 (rtx_reader::read_rtx_operand): Likewise.
25467 * config/aarch64/aarch64-sve.md
25468 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25469 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25470 define_insn_and_rewrite.
25471 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25472 Remove separate define_split.
25473
25474 2019-05-31 Jan Hubicka <jh@suse.cz>
25475
25476 * tree-ssa-alias.c (type_has_components_p): New function.
25477 (aliasing_component_refs_p): Use it.
25478
25479 2019-05-31 Martin Liska <mliska@suse.cz>
25480
25481 * gdbhooks.py: Add const_tree to TreePrinter.
25482
25483 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25484
25485 PR debug/86964
25486 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25487 * doc/invoke.texi (Debugging Options): Document new default of
25488 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25489
25490 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25491
25492 PR tree-optimization/90671
25493 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25494 template_block used to be empty on the first call, don't use
25495 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25496 seq with bb_seq and set it with set_bb_seq.
25497
25498 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25499
25500 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25501
25502 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25503 Michael Meissner <meissner@linux.ibm.com>
25504
25505 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25506 (prefixed_mem_operand): Likewise.
25507 (non_prefixed_mem_operand): Likewise.
25508 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25509 prototype.
25510 * config/rs6000/rs6000.c (print_operand_address): Handle
25511 PC-relative addresses.
25512 (mode_supports_prefixed_address_p): New function.
25513 (rs6000_prefixed_address): New function.
25514 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25515 (SYMBOL_REF_PCREL_P): Likewise.
25516
25517 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25518
25519 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25520 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25521 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25522 is nested inside of parallel region, add _condtemp_ clause to both.
25523 * tree-nested.c (convert_nonlocal_omp_clauses,
25524 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25525 assertion failure.
25526 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25527 member.
25528 * omp-general.c (omp_extract_for_data): Compute it.
25529 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25530 (lower_rec_input_clauses): Likewise.
25531 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25532 clause is already present, just add one further one after it.
25533 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25534 (lower_send_shared_vars): Clear _condtemp_ vars.
25535 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25536 or section or taskgroup.
25537 * omp-expand.c (determine_parallel_type): Disallow combining only if
25538 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25539 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25540 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25541 expand_omp_for_static_chunk, expand_omp_for): Use
25542 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25543 determine if a special set of API routines are needed and if condtemp
25544 needs to be initialized, while always initialize cond_var if
25545 fd->lastprivate_conditional is non-zero.
25546
25547 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25548 Michael Meissner <meissner@linux.ibm.com>
25549
25550 * config/rs6000/constraints.md (eI): New constraint.
25551 * config/rs6000/predicates.md (cint34_operand): New predicate.
25552 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25553 (SIGNED_34BIT_OFFSET_P): Likewise.
25554 * doc/md.texi (eI): Document constraint.
25555
25556 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25557
25558 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25559
25560 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25561 Michael Meissner <meissner@linux.ibm.com>
25562
25563 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25564 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25565 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25566 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25567 (OTHER_FUTURE_MASKS): Likewise.
25568 (POWERPC_MASKS): Likewise.
25569 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25570 specified without -mprefixed-addr or -mcpu=future. Error if
25571 -mprefixed-addr is specified without -mcpu=future.
25572 (rs6000_opt_masks): Add entry for prefixed-addr.
25573 * rs6000.opt (mprefixed-addr): New option.
25574
25575 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25576
25577 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25578 cfun->is_thunk check.
25579
25580 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25581
25582 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25583 to length.
25584
25585 2019-05-30 Martin Liska <mliska@suse.cz>
25586
25587 * gdbinit.in: Fix 'ptc' command. Add trt
25588 that prints TREE_TYPE($).
25589
25590 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25591 Alan Modra <amodra@gmail.com>
25592
25593 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25594 calls here...
25595 (rs6000_indirect_call_template_1): ...and here.
25596 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25597 plt16_ha, plt16_lo, mtctr indirect calls. Use
25598 rs6000_pltseq_enum.
25599 (rs6000_decl_ok_for_sibcall): New function.
25600 (rs6000_function_ok_for_sibcall): Refactor.
25601 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25602 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25603 when pcrel. Reorganize.
25604 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25605 * rs6000.h (rs6000_pltseq_enum): New enum.
25606 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25607 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25608 (*pltseq_plt16_ha): Likewise.
25609 (*pltseq_plt16_lo): Likewise.
25610 (*pltseq_mtctr): Likewise.
25611 (*pltseq_plt_pcrel): New insn.
25612 (*call_local_aix): Handle @notoc calls.
25613 (*call_value_local_aix): Likewise.
25614 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25615 (*call_value_nonlocal_aix): Likewise.
25616 (*call_indirect_pcrel): New insn.
25617 (*call_value_indirect_pcrel): Likewise.
25618
25619 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25620
25621 * config/i386/sse.md (*save_multiple<mode>): Rename from
25622 save_multiple<mode>.
25623 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25624 (*restore_multiple_and_return<mode>): Rename from
25625 restore_multiple_and_return<mode>.
25626 (*restore_multiple_leave_return<mode>): Rename from
25627 restore_multiple_leave_return<mode>.
25628
25629 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25630
25631 * config.gcc (rx-*-linux*): New target.
25632 * config/rx/elf.opt: New file.
25633 * config/rx/linux.h: Likewise.
25634 * config/rx/t-linux: Likewise.
25635 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25636 make it zero.
25637 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25638 (ASM_APP_OFF): Likewise.
25639 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25640 moved elsewhere.
25641
25642 2019-05-29 Jan Hubicka <jh@suse.cz>
25643
25644 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25645 variants are pointer equivalent.
25646
25647 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25648
25649 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25650 * config/aarch64/aarch64-sve2.md: New file.
25651 (<u>avg<mode>3_floor): New pattern.
25652 (<u>avg<mode>3_ceil): Likewise.
25653 (*<sur>h<addsub><mode>): Likewise.
25654 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25655 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25656
25657 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25658
25659 PR bootstrap/90543
25660 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25661 for var_opt_string printing. In cl_optimization_print_diff, print
25662 (null) instead of invoking undefined behavior if one of the
25663 var_opt_string pointers is NULL and use && instead of first || in the
25664 guarding condition. For var_target_other options, handle const char *
25665 target variables similarly to const char * optimize node variables.
25666
25667 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25668
25669 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25670 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25671 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25672 Add autib1716 and pacib1716 initialisation.
25673 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25674 for autib1716 and pacib1716.
25675 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25676 aarch64_post_cfi_startproc): Define.
25677 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25678 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25679 aarch64_handle_pac_ret_protection): Set default sign key to A.
25680 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25681 aarch64_expand_prologue): Add check for b-key.
25682 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25683 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25684 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25685 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25686 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25687 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25688 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25689 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25690 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25691 pauth_hint_num_a with pauth_hint_num.
25692 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25693 pauth_hint_num_a with pauth_hint_num.
25694 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25695 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25696 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25697 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25698 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25699 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25700 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25701 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25702 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25703 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25704 UNSPEC_AUTIA1716 respectively.
25705 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25706 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25707 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25708 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25709 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25710 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25711
25712 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25713
25714 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25715 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25716 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25717 explicit clause on combined parallel into implicit shared clause.
25718 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25719 and firstprivate if the decl has one too from combined parallel to
25720 the worksharing construct.
25721
25722 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25723 Michael Meissner <meissner@linux.ibm.com>
25724
25725 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25726
25727 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25728
25729 * rtl.h (LABEL_REF_P): New #define.
25730
25731 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25732
25733 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25734
25735 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25736
25737 * internal-fn.c: Marked mask_load_direct as vectorizable.
25738 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25739 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25740 combined even if masks different with allow_slp_p param.
25741 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25742 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25743 dissolve SLP-only vectorizable groups when SLP has been discarded.
25744 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25745 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25746 masks.
25747 (vect_build_slp_tree_1): Fixed comment typo.
25748 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25749 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25750 loads for SLP only.
25751 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25752 vectorizable.
25753 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25754
25755 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25756
25757 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25758 Remove obsolete use_thunk reference.
25759 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25760 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25761 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25762 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25763 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25764 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25765 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25766 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25767 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25768
25769 2019-05-28 Nathan Sidwell <nathan@acm.org>
25770
25771 * tree.h (IDENTIFIER_ANON_P): New.
25772 (anon_aggrname_format, anon_aggname_p): Don't declare.
25773 (make_anon_name): Declare.
25774 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25775 (hash_tree): Likewise.
25776 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25777 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25778 (anon_cnt, make_anon_name): New.
25779
25780 2019-05-28 Martin Liska <mliska@suse.cz>
25781
25782 PR other/90315
25783 * opts-global.c (decode_options): Print help for all
25784 help_option_arguments.
25785 * opts.c (print_help): Add new argument.
25786 (common_handle_option): Remember all values into
25787 help_option_arguments.
25788 * opts.h (print_help): Add new argument.
25789
25790 2019-05-28 Martin Liska <mliska@suse.cz>
25791
25792 PR ipa/90555
25793 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25794 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25795 (func_checker::compare_bb): Call compare_loops.
25796
25797 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25798
25799 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25800 on sections construct.
25801 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25802 construct.
25803 (lower_omp_sections): Handle lastprivate conditional.
25804 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25805 lastprivate_conditional_map.
25806 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25807
25808 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25809 critical, taskgroup and section regions when looking for a region
25810 with non-NULL lastprivate_conditional_map.
25811
25812 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25813
25814 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25815 (*ix86_gen_sub3): Ditto.
25816 (*ix86_gen_sub3_carry): Ditto.
25817 (*ix86_gen_one_cmpl2): Ditto.
25818 (*ix86_gen_andsp): Ditto.
25819 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25820 (gen_and2_insn): New static function.
25821 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25822 Use gen_add3_insn instead of ix86_gen_add3.
25823 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25824 instead of ix86_gen_add3.
25825 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25826 Use gen_sub3_insn instead of ix86_gen_sub3.
25827 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25828 instead of ix86_gen_add3.
25829 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25830 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25831 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25832 * config/i386/i386-options.c (ix86_option_override_internal):
25833 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25834 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25835
25836 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25837
25838 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25839 and DW_OP_GNU_const_index opcodes.
25840
25841 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25842
25843 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25844
25845 2019-05-27 Richard Biener <rguenther@suse.de>
25846
25847 PR tree-optimization/90637
25848 * tree-ssa-sink.c (statement_sink_location): Honor the
25849 computed sink location for single-uses.
25850
25851 2019-05-27 Richard Biener <rguenther@suse.de>
25852
25853 PR middle-end/90610
25854 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25855 a bit-insert.
25856
25857 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25858
25859 * config/i386/i386.md (@sub<mode>3_carry): Rename
25860 from sub<mode>3_carry.
25861 (@leave_<mode>): New expander.
25862 (*leave): Rename from leave.
25863 (*leave_rex64): Rename from leave_rex64.
25864 (@monitorx_<mode>): Rename from monitorx_<mode>.
25865 (@clzero_<mode>): Rename from clzero_<mode>.
25866 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25867 from sse3_monitor_<mode>.
25868 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25869 (*ix86_gen_leave): Ditto.
25870 (*ix86_gen_monitor): Ditto.
25871 (*ix86_gen_monitorx): Ditto.
25872 (*ix86_gen_clzero): Ditto.
25873 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25874 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25875 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25876 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25877 Use gen_sse3_monitor instead of ix86_gen_monitor.
25878 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25879 instead of ix86_gen_monitorx.
25880 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25881 instead of ix86_gen_clzero.
25882 * config/i386/i386-options.c (ix86_option_override_internal):
25883 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25884 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25885
25886 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25887
25888 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25889 Rename from tls_global_dynamic_64_<mode>.
25890 (@tls_local_dynamic_base_64_<mode>): Rename from
25891 tls_local_dynamic_base_64_<mode>.
25892 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25893 Remove indirect function.
25894 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25895 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25896 instead of ix86_gen_tls_global_dynamic_64.
25897 Use gen_tls_local_dynamic_base_64 instead of
25898 ix86_gen_tls_local_dynamic_base_64.
25899 * config/i386/i386-options.c (ix86_option_override_internal):
25900 Do not initialize ix86_gen_tls_global_dynamic_64 and
25901 ix86_gen_tls_local_dynamic_base_64.
25902
25903 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25904
25905 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25906 Rename from pro_epilogue_adjust_stack_<mode>_add.
25907 (@pro_epilogue_adjust_stack_sub_<mode>)
25908 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25909 (@allocate_stack_worker_probe_<mode>):
25910 Rename from allocate_stack_worker_probe_<mode>.
25911 (allocate_stack): Use gen_allocate_stack_worker_probe.
25912 (probe_stack): Use gen_probe_stack_1.
25913 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25914 (@adjust_stack_and_probe_<mode>): Rename from
25915 adjust_stack_and_probe<mode>.
25916 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25917 (stack_protect_set): Use gen_stack_protect_set_1.
25918 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25919 (stack_protect_test): Use gen_stack_protect_test_1.
25920 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25921 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25922 Remove indirect function.
25923 (*ix86_gen_adjust_stack_and_probe): Ditto.
25924 (*ix86_gen_probe_stack_range): Ditto.
25925 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25926 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25927 (ix86_adjust_stack_and_probe_stack_clash): Use
25928 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25929 (ix86_adjust_stack_and_probe): Ditto.
25930 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25931 of ix86_gen_probe_stack_range.
25932 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25933 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25934 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25935 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25936 CODE_FOR_stack_protect_test_{si,di}.
25937 * config/i386/i386-options.c (ix86_option_override_internal):
25938 Do not initialize ix86_gen_allocate_stack_worker,
25939 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25940
25941 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25942
25943 * doc/invoke.texi (Link Options): Many editorial changes around
25944 -flinker-output.
25945
25946 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25947
25948 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25949 pre-Solaris 11 referene and most Studio compiler details.
25950
25951 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25952
25953 PR target/90530
25954 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25955 DImode to SImode in floating-point registers on 64-bit target.
25956 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25957 register_operand in xmpyu patterns.
25958
25959 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25960
25961 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25962 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25963 OMP_CLAUSE__REDUCTEMP_.
25964 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25965 OMP_CLAUSE__CONDTEMP_.
25966 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25967 * tree-pretty-print.c (dump_omp_clause): Likewise.
25968 * tree-nested.c (convert_nonlocal_omp_clauses,
25969 convert_local_omp_clauses): Likewise.
25970 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25971 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25972 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25973 on OMP_FOR.
25974 (gimplify_omp_for): Warn and disable conditional modifier from
25975 lastprivate on loop iterators.
25976 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25977 member.
25978 * omp-general.c (omp_extract_for_data): Initialize it.
25979 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25980 member.
25981 (delete_omp_context): Delete it.
25982 (lower_lastprivate_conditional_clauses): New function.
25983 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25984 handle lastprivate conditional clauses.
25985 (lower_reduction_clauses): Add CLIST argument, emit it into
25986 the critical section if any.
25987 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25988 lower_reduction_clauses callers.
25989 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25990 to lower_lastprivate_clauses.
25991 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25992 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25993 clist into a critical section if not emitted there already by
25994 lower_reduction_clauses.
25995 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25996 callers.
25997 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25998 conditional variables.
25999 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26000 clause is present.
26001 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26002 expand_omp_for_static_chunk): Handle lastprivate conditional.
26003 (expand_omp_for): Handle fd.lastprivate_conditional like
26004 fd.have_reductemp.
26005
26006 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26007
26008 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26009 kernel does not exit cleanly.
26010 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26011
26012 2019-05-24 Jason Merrill <jason@redhat.com>
26013
26014 Revert:
26015 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26016
26017 2019-05-24 Richard Biener <rguenther@suse.de>
26018
26019 PR testsuite/90607
26020 * tree-loop-distribution.c (struct partition): Add location
26021 member.
26022 (partition_alloc): Initialize all fields.
26023 (generate_memset_builtin): Use the location recorded in the
26024 partition for the generated call.
26025 (generate_memcpy_builtin): Likewise.
26026 (classify_partition): Record the location of a single store
26027 as location for the partition.
26028
26029 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26030
26031 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26032 for lo-part.
26033
26034 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26035
26036 PR target/90588
26037 * common/config/aarch64/aarch64-common.c
26038 (aarch64_rewrite_selected_cpu): Change local temporary variable
26039 type from unsigned long to uint64_t.
26040 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26041 aarch64_get_extension_string_for_isa_flags): Change declaration to
26042 match new definition by replacing unsigned long with uint64_t.
26043
26044 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26045
26046 PR target/90568
26047 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26048 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26049 Handle stack_protect_test_<mode> codegen similarly to corresponding
26050 sub instruction.
26051
26052 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26053
26054 * config/i386/darwin.h: Reject -mfentry*.
26055 * doc/sourcebuild.texi: Document mfentry target support.
26056
26057 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26058
26059 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26060 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26061 false for PC-relative functions.
26062 (rs6000_output_function_prologue): Change called function name to
26063 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26064 name,1" for PC-relative functions.
26065 (rs6000_elf_declare_function_name): Change called function name to
26066 rs6000_global_entry_point_prologue_needed_p.
26067
26068 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26069
26070 PR target/90552
26071 * config/i386/i386.c (gen_rtx_cost):
26072 Use ix86_tune_cost instead of ix86_cost.
26073
26074 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26075 Michael Meissner <meissner@linux.ibm.com>
26076 Segher Boessenkool <segher@kernel.crashing.org>
26077
26078 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26079 OPTION_MASK_PCREL.
26080 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26081 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26082 (rs6000_fndecl_pcrel_p): Likewise.
26083 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26084 error if -mpcrel is requested without -mcpu=future.
26085 (rs6000_opt_masks): Add entry for pcrel.
26086 (rs6000_fndecl_pcrel_p): New function.
26087 (rs6000_pcrel_p): Likewise.
26088 * config/rs6000/rs6000.opt (mpcrel): New option.
26089 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26090
26091 2019-05-23 Jan Hubicka <jh@suse.cz>
26092 Martin Liska <mliska@suse.cz>
26093
26094 PR tree-optimization/90576
26095 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26096 poly_int_tree_p.
26097 (aliasing_component_refs_p): Fix three way size compare conditional;
26098 give up earlier in case we can not decide on equivalence.
26099
26100 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26101 Michael Meissner <meissner@linux.ibm.com>
26102 Segher Boessenkool <segher@kernel.crashing.org>
26103
26104 * config.gcc: Add future cpu.
26105 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26106 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26107 #define.
26108 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26109 (RS6000_CPU): New instantiation for future cpu.
26110 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26111 PROCESSOR_FUTURE.
26112 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26113 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26114 * config/rs6000/rs6000-tables.opt: Regenerate.
26115 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26116 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26117 (rs6000_machine_from_flags): Handle future cpu.
26118 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26119 PROCESSOR_POWER9 for now.
26120 (rs6000_adjust_cost): Likewise.
26121 (rs6000_issue_rate): Likewise.
26122 (rs6000_register_move_cost): Likewise.
26123 (rs6000_opt_masks): Add entry for future.
26124 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26125 (MASK_FUTURE): New #define.
26126 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26127 * config/rs6000/rs6000.opt (mfuture): New target option.
26128 * doc/invoke.texi (mcpu): Add future cpu.
26129
26130 2019-05-23 Martin Liska <mliska@suse.cz>
26131
26132 PR c++/90587
26133 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26134 operation points to a temporary (pointed via tree_to_wide_ref)
26135 that is out of scope after the &.
26136
26137 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26138
26139 PR c++/90592
26140 * doc/extend.texi (Function Names): Add missing word.
26141
26142 2019-05-23 Richard Biener <rguenther@suse.de>
26143
26144 PR tree-optimization/88440
26145 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26146 at -O[2s]+.
26147 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26148 generated call.
26149 (generate_memcpy_builtin): Likewise.
26150 (distribute_loop): Pass in whether to only distribute patterns.
26151 (prepare_perfect_loop_nest): Also allow size optimization.
26152 (pass_loop_distribution::execute): When optimizing a loop
26153 nest for size allow pattern replacement.
26154
26155 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26156
26157 PR target/90568
26158 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26159 of xor.
26160
26161 2019-05-23 Martin Liska <mliska@suse.cz>
26162
26163 PR sanitizer/90570
26164 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26165 expression similarly to gimplify_decl_expr.
26166
26167 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26168
26169 * cse.c (cse_dump_path): s/dump_file/f.
26170
26171 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26172
26173 PR c++/90462
26174 * diagnostic-format-json.cc: Include "selftest.h".
26175 (json_from_expanded_location): Only add "file" key for non-NULL
26176 file strings.
26177 (json_from_location_range): Don't add "start" and "finish"
26178 children if they are UNKNOWN_LOCATION.
26179 (selftest::test_unknown_location): New selftest.
26180 (selftest::test_bad_endpoints): New selftest.
26181 (selftest::diagnostic_format_json_cc_tests): New function.
26182 * json.cc (json::object::get): New function.
26183 (selftest::test_object_get): New selftest.
26184 (selftest::json_cc_tests): Call it.
26185 * json.h (json::object::get): New decl.
26186 * selftest-run-tests.c (selftest::run_tests): Call
26187 selftest::diagnostic_format_json_cc_tests.
26188 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26189 decl.
26190
26191 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26192 Andrew Stubbs <amd@codesourcery.com>
26193
26194 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26195 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26196 (kernel): Rename to...
26197 (main_kernel): ... this.
26198 (load_image): Load _init_array and _fini_array kernels.
26199 (run): Add argument for kernel to run.
26200 (main): Run init_array_kernel before main_kernel, and
26201 fini_array_kernel after.
26202 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26203 amdgpu_hsa_kernel attribute on functions.
26204 (gcn_disable_constructors): Delete.
26205 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26206 * config/gcn/crt0.c (size_t): Define.
26207 (_init_array, _fini_array): New.
26208 (__preinit_array_start, __preinit_array_end,
26209 __init_array_start, __init_array_end,
26210 __fini_array_start, __fini_array_end): Declare weak references.
26211
26212 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26213
26214 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26215
26216 2019-05-22 Jason Merrill <jason@redhat.com>
26217
26218 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26219
26220 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26221
26222 PR target/88483
26223 * config/i386/i386-options.c (ix86_init_machine_status): Set
26224 stack_frame_required to true.
26225 * config/i386/i386.c (ix86_get_frame_size): New function.
26226 (ix86_frame_pointer_required): Replace get_frame_size with
26227 ix86_get_frame_size.
26228 (ix86_compute_frame_layout): Likewise.
26229 (ix86_find_max_used_stack_alignment): Changed to void. Set
26230 stack_frame_required.
26231 (ix86_finalize_stack_frame_flags): Always call
26232 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26233 ix86_get_frame_size.
26234 * config/i386/i386.h (machine_function): Add stack_frame_required.
26235
26236 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26237
26238 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26239
26240 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26241
26242 * common/config/aarch64/aarch64-common.c
26243 (struct aarch64_option_extension, struct processor_name_to_arch,
26244 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26245 aarch64_contains_opt,
26246 aarch64_get_extension_string_for_isa_flags): Change type of
26247 variables storing flags to uint64_t.
26248 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26249 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26250 * config/aarch64/aarch64.c (struct processor,
26251 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26252 aarch64_validate_march, aarch64_override_options,
26253 aarch64_option_print, aarch64_handle_attr_isa_flags,
26254 aarch64_declare_function_name, aarch64_start_file): Make flag
26255 variables uint64_t.
26256 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26257 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26258 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26259 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26260 * config/aarch64/driver-aarch64.c
26261 (struct aarch64_arch_extension, struct aarch64_core_data,
26262 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26263 flag variables uint64_t.
26264 * doc/invoke.texi: Add documentation for new arguments.
26265
26266 2019-05-22 Richard Biener <rguenther@suse.de>
26267
26268 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26269 rewrite ...
26270 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26271
26272 2019-05-22 Martin Liska <mliska@suse.cz>
26273
26274 PR lto/90500
26275 * doc/extend.texi: Document the change.
26276
26277 2019-05-22 Richard Biener <rguenther@suse.de>
26278
26279 PR tree-optimization/90450
26280 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26281 (mem_ref_hasher::equal): Check it.
26282 (mem_ref_alloc): Initialize it.
26283 (gather_mem_refs_stmt): Set it.
26284
26285 2019-05-22 Richard Biener <rguenther@suse.de>
26286
26287 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26288 Add ABS_EXPR.
26289 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26290 as ABSU_EXPR.
26291
26292 2019-05-22 Alan Modra <amodra@gmail.com>
26293
26294 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26295 (ASM_CPU_SPEC): Conditionally add -many.
26296 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26297 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26298 (rs6000_file_start): ..extracted from here, and modified to
26299 test all ISA bits.
26300 (rs6000_output_function_prologue): Emit .machine as necessary.
26301
26302 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26303
26304 PR middle-end/90553
26305 * ira-lives.c (process_bb_node_lives): Consider defs
26306 for a call insn to be die before the call, not after.
26307
26308 * function.c (assign_parm_setup_block): Raise alignment of
26309 stacked parameter only for STRICT_ALIGNMENT targets.
26310
26311 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26312
26313 * config/rs6000/constraints.md (define_register_constraint "wz"):
26314 Delete.
26315 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26316 RS6000_CONSTRAINT_wz.
26317 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26318 (rs6000_init_hard_regno_mode_ok): Adjust.
26319 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26320 * doc/md.texi (Machine Constraints): Adjust.
26321
26322 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26323
26324 * config/rs6000/constraints.md (define_register_constraint "wl"):
26325 Delete.
26326 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26327 RS6000_CONSTRAINT_wl.
26328 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26329 (rs6000_init_hard_regno_mode_ok): Adjust.
26330 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26331 * doc/md.texi (Machine Constraints): Adjust.
26332
26333 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26334
26335 * config/rs6000/constraints.md (define_register_constraint "wm"):
26336 Delete.
26337 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26338 RS6000_CONSTRAINT_wm.
26339 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26340 (rs6000_init_hard_regno_mode_ok): Adjust.
26341 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26342 * doc/md.texi (Machine Constraints): Adjust.
26343
26344 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26345
26346 * config/rs6000/constraints.md (define_register_constraint "wk"):
26347 Delete.
26348 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26349 RS6000_CONSTRAINT_wk.
26350 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26351 (rs6000_init_hard_regno_mode_ok): Adjust.
26352 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26353 * doc/md.texi (Machine Constraints): Adjust.
26354
26355 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26356
26357 * config/rs6000/constraints.md (define_register_constraint "wj"):
26358 Delete.
26359 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26360 RS6000_CONSTRAINT_wj.
26361 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26362 (rs6000_init_hard_regno_mode_ok): Adjust.
26363 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26364 (VS_64dm): Delete.
26365 * config/rs6000/vsx.md: Ditto.
26366 * doc/md.texi (Machine Constraints): Adjust.
26367
26368 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26369
26370 * config/rs6000/constraints.md (define_register_constraint "wh"):
26371 Delete.
26372 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26373 RS6000_CONSTRAINT_wh.
26374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26375 (rs6000_init_hard_regno_mode_ok): Adjust.
26376 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26377 * doc/md.texi (Machine Constraints): Adjust.
26378
26379 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26380
26381 PR target/90547
26382 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26383 Avoid calling gen_lowpart with CONST operand.
26384
26385 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26386
26387 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26388 field template_last_to_copy.
26389 (ssa_create_duplicates): Set it, and use it. Attempt to
26390 preserve more debug stmts.
26391
26392 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26393
26394 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26395 (signbit<mode>2): New expander
26396
26397 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26398
26399 PR bootstrap/87338
26400 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26401 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26402
26403 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26404
26405 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26406 %ebx and %ecx bafore calling cpuid with leaf 1 or
26407 non-constant leaf argument.
26408
26409 2019-05-21 Alan Modra <amodra@gmail.com>
26410
26411 PR target/90545
26412 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26413 power9 direct move cost.
26414
26415 2019-05-21 Richard Biener <rguenther@suse.de>
26416
26417 PR middle-end/90510
26418 * fold-const.c (fold_read_from_vector): New function.
26419 * fold-const.h (fold_read_from_vector): Declare.
26420 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26421 single-element insert permutations. Canonicalize selector
26422 further and fix issue with last commit.
26423
26424 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26425
26426 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26427 parameter with default value false to declaration.
26428 (split_edges_for_insertion): New inline function. Wrapper for
26429 split_critical_edges with for_edge_insertion_p = true.
26430 * tree-cfg.c (split_critical_edges): Don't split non-critical
26431 edges if for_edge_insertion_p is false. Fix whitespace.
26432 * tree-ssa-pre.c (pass_pre::execute): Call
26433 split_edges_for_insertion instead of split_critical_edges.
26434 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26435 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26436 (pass_data_sink_code): Update function name in the comment.
26437
26438 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26439
26440 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26441 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26442 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26443 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26444 positives.
26445
26446 2019-05-21 Martin Liska <mliska@suse.cz>
26447
26448 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26449 an extra newline.
26450 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26451 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26452 vec_lvsr.
26453 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26454 Quote a C type.
26455 (rs6000_function_arg): Likewise.
26456 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26457 (rs6000_expand_ternop_builtin): Use interval syntax.
26458 (get_element_number): Likewise.
26459 (altivec_expand_builtin): Likewise.
26460 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26461
26462 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26463
26464 PR c++/59813
26465 PR target/90418
26466 * function.h (struct function): Add calls_eh_return member.
26467 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26468 gimplifying __builtin_eh_return call.
26469 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26470 to cfun.
26471 (expand_call_inline): Or in src_cfun->calls_eh_return into
26472 dst_cfun->calls_eh_return.
26473 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26474 cfun->calls_eh_return.
26475 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26476 * lto-streamer-out.c (output_struct_function_base): Write
26477 calls_eh_return.
26478
26479 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26480
26481 PR rtl-optimization/43147
26482 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26483 IX86_BUILTIN_SHUFPD.
26484
26485 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26486
26487 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26488 (refs_may_alias_p_1): ... here; update stats.
26489 (refs_may_alias_p): Do not update stats here.
26490
26491 2019-05-20 Richard Biener <rguenther@suse.de>
26492
26493 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26494 doesn't produce pointers.
26495 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26496 the first operand points to.
26497
26498 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26499
26500 * tree-ssa-alias.c (compare_sizes): New function.
26501 (sompare_type_sizes): New function
26502 (aliasing_component_refs_p): Use it.
26503 (indirect_ref_may_alias_decl_p): Likewise.
26504
26505 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26506
26507 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26508
26509 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26510
26511 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26512 (LIBLSAN_EARLY_SPEC): Likewise.
26513 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26514
26515 2019-05-20 Martin Liska <mliska@suse.cz>
26516
26517 * config/i386/i386.c (ix86_libc_has_fast_function):
26518 Add ATTRIBUTE_UNUSED for the argument.
26519
26520 2019-05-20 Richard Biener <rguenther@suse.de>
26521
26522 * gimple-match-head.c: Include vec-perm-indices.h.
26523 * generic-match-head.c: Likewise.
26524 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26525 is included.
26526 * fold-const.c (fold_vec_perm): Export.
26527 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26528 (match.pd): ...here.
26529
26530 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26531
26532 * cfgloop.h (struct loop): Add simdlen member.
26533 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26534 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26535 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26536 as new argument to autovectorize_vector_sizes target hook. If
26537 loop->simdlen, pick up vector size where the vectorization factor
26538 is equal to loop->simd, and if there is none, fall back to the first
26539 successful one.
26540 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26541 caller.
26542 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26543 * omp-general.c (omp_max_vf): Likewise.
26544 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26545 * tree-vect-slp.c (vect_slp_bb): Likewise.
26546 * target.def (autovectorize_vector_sizes): Add ALL argument and
26547 document it.
26548 * doc/tm.texi: Adjust documentation.
26549 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26550 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26551 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26552 bool argument.
26553 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26554 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26555 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26556 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26557 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26558 preferred vector size is not 512-bit or 256-bit, just put those
26559 unpreferred ones last.
26560
26561 2019-05-20 Martin Liska <mliska@suse.cz>
26562
26563 * targhooks.c (default_libc_has_fast_function): New function.
26564 * targhooks.h (default_libc_has_fast_function): Likewise.
26565
26566 2019-05-20 Martin Liska <mliska@suse.cz>
26567
26568 PR middle-end/90263
26569 * builtins.c (expand_builtin_memory_copy_args): When having a
26570 target with fast mempcpy implementation do now use memcpy.
26571 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26572 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26573 * doc/tm.texi: Likewise.
26574 * doc/tm.texi.in: Likewise.
26575 * target.def:
26576 * expr.c (emit_block_move_hints): Add 2 new arguments.
26577 * expr.h (emit_block_move_hints): Bail out when libcall
26578 to memcpy would be used.
26579
26580 2019-05-20 Martin Liska <mliska@suse.cz>
26581
26582 * profile-count.c: Add vertical spacing in order
26583 to separate functions.
26584 * profile-count.h: Likewise.
26585
26586 2019-05-20 Martin Liska <mliska@suse.cz>
26587
26588 * profile-count.h: Do not use full qualified
26589 names if possible.
26590 * profile-count.c (profile_count::to_frequency): Likewise.
26591
26592 2019-05-20 Martin Liska <mliska@suse.cz>
26593
26594 * profile-count.h (enum profile_quality): Use capital letters
26595 for enum value names. Use the adjusted names.
26596 * profile-count.c: Use the adjusted names.
26597
26598 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26599
26600 * config/rs6000/constraints.md (define_register_constraint "wH"):
26601 Delete.
26602 (define_register_constraint "wI"): Delete.
26603 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26604 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26605 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26606 (rs6000_init_hard_regno_mode_ok): Adjust.
26607 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26608 resp. "d", or with "wa" as appropriate, all with "p8v".
26609 * config/rs6000/vsx.md: Ditto.
26610 * doc/md.texi (Machine Constraints): Adjust.
26611
26612 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26613
26614 * config/rs6000/constraints.md (define_register_constraint "wy"):
26615 Delete.
26616 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26617 RS6000_CONSTRAINT_wy.
26618 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26619 (rs6000_init_hard_regno_mode_ok): Adjust.
26620 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26621 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26622 (define_mode_attr Fisa): New.
26623 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26624 * doc/md.texi (Machine Constraints): Adjust.
26625
26626 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26627
26628 * config/rs6000/constraints.md (define_register_constraint "wu"):
26629 Delete.
26630 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26631 RS6000_CONSTRAINT_wu.
26632 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26633 (rs6000_init_hard_regno_mode_ok): Adjust.
26634 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26635 both with "p8v".
26636 (define_mode_attr Fa): Delete.
26637 * config/rs6000/vsx.md: Ditto.
26638 * doc/md.texi (Machine Constraints): Adjust.
26639
26640 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26641
26642 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26643 Delete.
26644 (define_register_constraint "wK"): Delete.
26645 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26646 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26647 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26648 (rs6000_init_hard_regno_mode_ok): Adjust.
26649 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26650 Replace "wK" constraint by "wH" with "p9v".
26651 * config/rs6000/vsx.md: Ditto.
26652 * doc/md.texi (Machine Constraints): Adjust.
26653
26654 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26655
26656 * config/rs6000/constraints.md (define_register_constraint "wb"):
26657 Delete.
26658 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26659 RS6000_CONSTRAINT_wb.
26660 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26661 (rs6000_init_hard_regno_mode_ok): Adjust.
26662 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26663 * config/rs6000/vsx.md: Ditto.
26664 * doc/md.texi (Machine Constraints): Adjust.
26665
26666 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26667
26668 * config/rs6000/constraints.md (define_register_constraint "wo"):
26669 Delete.
26670 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26671 RS6000_CONSTRAINT_wo.
26672 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26673 (rs6000_init_hard_regno_mode_ok): Adjust.
26674 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26675 * config/rs6000/altivec.md: Ditto.
26676 * doc/md.texi (Machine Constraints): Adjust.
26677
26678 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26679
26680 * config/darwin-c.c (darwin_register_objc_includes): Do not
26681 prepend the sysroot when building gnu-runtime header search
26682 paths.
26683
26684 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26685
26686 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26687 instead of direct output of the asm.
26688
26689 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26690
26691 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26692 argument to be type bool (was int before).
26693 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26694 at first use. Use type bool for some variables. Fix a theoretical
26695 eh_return bug for svr4.
26696
26697 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26698
26699 * config/rs6000/rs6000.md (isa): New attribute.
26700 (enabled): New attribute.
26701
26702 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26703
26704 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26705 assemble_start_function and assemble_end_function.
26706
26707 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26708
26709 PR middle-end/89433
26710 * omp-general.c (oacc_verify_routine_clauses): Change formal
26711 parameters. Add checking if already marked with an OpenACC
26712 'routine' directive. Adjust all users.
26713
26714 PR middle-end/89433
26715 * omp-general.c (oacc_build_routine_dims): Move some of its
26716 processing into...
26717 (oacc_verify_routine_clauses): ... this new function.
26718 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26719
26720 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26721
26722 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26723 formating of picbase labels to match other ports.
26724
26725 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26726
26727 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26728 in the generated code.
26729
26730 2019-05-16 Martin Sebor <msebor@redhat.com>
26731
26732 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26733 identifiers, keywords, operators, and types in diagnostics. Correct
26734 quoting, spelling, and sentence capitalization issues.
26735 (expand_builtin_atomic_is_lock_free): Same.
26736 (fold_builtin_next_arg): Same.
26737 * cfgexpand.c (expand_one_var): Same.
26738 (tree_conflicts_with_clobbers_p): Same.
26739 (expand_asm_stmt): Same.
26740 (verify_loop_structure): Same.
26741 * cgraphunit.c (process_function_and_variable_attributes): Same.
26742 * collect-utils.c (collect_execute): Same.
26743 * collect2.c (maybe_run_lto_and_relink): Same.
26744 (is_lto_object_file): Same.
26745 (scan_prog_file): Same.
26746 * convert.c (convert_to_real_1): Same.
26747 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26748 * except.c (verify_eh_tree): Same.
26749 * gcc.c (execute): Same.
26750 (eval_spec_function): Same.
26751 (run_attempt): Same.
26752 (driver::set_up_specs): Same.
26753 (compare_debug_auxbase_opt_spec_function): Same.
26754 * gcov-tool.c (unlink_gcda_file): Same.
26755 (do_merge): Same.
26756 (do_rewrite): Same.
26757 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26758 * gimplify.c (gimplify_asm_expr): Same.
26759 (gimplify_adjust_omp_clauses): Same.
26760 * hsa-gen.c (gen_hsa_addr_insns): Same.
26761 (gen_hsa_insns_for_load): Same.
26762 (gen_hsa_cmp_insn_from_gimple): Same.
26763 (gen_hsa_insns_for_operation_assignment): Same.
26764 (gen_get_level): Same.
26765 (gen_hsa_alloca): Same.
26766 (omp_simple_builtin::generate): Same.
26767 (gen_hsa_atomic_for_builtin): Same.
26768 (gen_hsa_insns_for_call): Same.
26769 * input.c (dump_location_info): Same.
26770 * ipa-devirt.c (compare_virtual_tables): Same.
26771 * ira.c (ira_setup_eliminable_regset): Same.
26772 * lra-assigns.c (lra_assign): Same.
26773 * lra-constraints.c (lra_constraints): Same.
26774 * lto-streamer-in.c (lto_input_mode_table): Same.
26775 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26776 (merge_and_complain): Same.
26777 (compile_offload_image): Same.
26778 (compile_images_for_offload_targets): Same.
26779 (debug_objcopy): Same.
26780 (run_gcc): Same.
26781 (main): Same.
26782 * opts.c (print_specific_help): Same.
26783 (parse_no_sanitize_attribute): Same.
26784 (print_help): Same.
26785 (handle_param): Same.
26786 * plugin.c (add_new_plugin): Same.
26787 (parse_plugin_arg_opt): Same.
26788 (try_init_one_plugin): Same.
26789 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26790 operators, and types in diagnostics. Correct quoting and spelling
26791 issues.
26792 * read-rtl-function.c (parse_edge_flag_token): Same.
26793 (function_reader::parse_enum_value): Same.
26794 * reg-stack.c (check_asm_stack_operands): Same.
26795 * regcprop.c (validate_value_data): Same.
26796 * sched-rgn.c (make_pass_sched_fusion): Same.
26797 * stmt.c (check_unique_operand_names): Same.
26798 * targhooks.c (default_target_option_pragma_parse): Same.
26799 * tlink.c (recompile_files): Same.
26800 * toplev.c (process_options): Same.
26801 (do_compile): Same.
26802 * trans-mem.c (diagnose_tm_1): Same.
26803 (ipa_tm_scan_irr_block): Same.
26804 (ipa_tm_diagnose_transaction): Same.
26805 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26806 format a tree code name in a diagnostic.
26807 (verify_types_in_gimple_min_lval): Same.
26808 (verify_types_in_gimple_reference): Same.
26809 (verify_gimple_call): Same.
26810 (verify_gimple_assign_unary): Same.
26811 (verify_gimple_assign_binary): Same.
26812 (verify_gimple_assign_ternary): Same.
26813 (verify_gimple_assign_single): Same.
26814 (verify_gimple_switch): Same.
26815 (verify_gimple_label): Same.
26816 (verify_gimple_phi): Same.
26817 (verify_gimple_in_seq): Same.
26818 (verify_eh_throw_stmt_node): Same.
26819 (collect_subblocks): Same.
26820 (gimple_verify_flow_info): Same.
26821 (do_warn_unused_result): Same.
26822 * tree-inline.c (expand_call_inline): Same.
26823 * tree-into-ssa.c (update_ssa): Same.
26824 * tree.c (tree_int_cst_elt_check_failed): Same.
26825 (tree_vec_elt_check_failed): Same.
26826 (omp_clause_operand_check_failed): Same.
26827 (verify_type_variant): Same.
26828 (verify_type): Same.
26829 * value-prof.c (verify_histograms): Same.
26830 * varasm.c (assemble_start_function): Same.
26831
26832 2019-05-16 Martin Sebor <msebor@redhat.com>
26833
26834 * config/i386/i386-expand.c (get_element_number): Quote keywords
26835 and other internal names in diagnostics. Adjust other diagnostic
26836 formatting issues noted by -Wformat-diag.
26837 * config/i386/i386-features.c
26838 (ix86_mangle_function_version_assembler_name): Same.
26839 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26840 * config/i386/i386.c (ix86_function_type_abi): Same.
26841 (ix86_function_ms_hook_prologue): Same.
26842 (classify_argument): Same.
26843 (ix86_expand_prologue): Same.
26844 (ix86_md_asm_adjust): Same.
26845 (ix86_memmodel_check): Same.
26846
26847 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26848
26849 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26850 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26851 and fpxx modes.
26852
26853 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26854
26855 PR target/90497
26856 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26857 intrinsics without SSE/SSE2/SSSE3.
26858 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26859 check.
26860 (*mmx_uavgv8qi3): Likewise.
26861
26862 2019-05-17 Richard Biener <rguenther@suse.de>
26863
26864 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26865 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26866
26867 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26868
26869 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26870 vec_sldw insn pattern.
26871
26872 2019-05-17 Richard Biener <rguenther@suse.de>
26873
26874 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26875
26876 2019-05-17 Martin Liska <mliska@suse.cz>
26877
26878 PR driver/90496
26879 * toplev.c (output_stack_usage): With LTO and sanitizer it
26880 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26881 has no file location.
26882
26883 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26884
26885 PR c++/90484
26886 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26887 sz0 is equal to sz1, instead return false in that case.
26888
26889 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26890 has non-constant expression, force sctx.lane and use two
26891 argument IFN_GOMP_SIMD_LANE instead of single argument.
26892 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26893 two argument IFN_GOMP_SIMD_LANE without lhs.
26894 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26895 member.
26896 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26897 Define.
26898 (LOOP_REQUIRES_VERSIONING): Or in
26899 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26900 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26901 simd_if_cond.
26902 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26903 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26904 from simd if clause if needed.
26905
26906 2019-05-16 Richard Biener <rguenther@suse.de>
26907
26908 * tree-affine.c (expr_to_aff_combination): New function split
26909 out from...
26910 (tree_to_aff_combination): ... here.
26911 (aff_combination_expand): Avoid building a GENERIC tree.
26912
26913 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26914
26915 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26916 assemble_start_function and assemble_end_function calls.
26917 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26918 assemble_start_function and assemble_end_function.
26919 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26920 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26921 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26922 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26923 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26924 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26925 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26926 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26927 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26928 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26929 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26930 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26931 Likewise.
26932 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26933 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26934 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26935 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26936 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26937 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26938 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26939 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26940 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26941 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26942 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26943 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26944 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26945 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26946 Likewise.
26947 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26948 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26949 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26950
26951 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26952
26953 * tree-ssa-alias.c (alias_stats): Add
26954 aliasing_component_refs_p_may_alias and
26955 aliasing_component_refs_p_no_alias.
26956 (dump_alias_stats): Print aliasing_component_refs_p stats.
26957 (aliasing_component_refs_p): Update stats.
26958
26959 2019-05-16 Martin Liska <mliska@suse.cz>
26960
26961 PR lto/90500
26962 * multiple_target.c (expand_target_clones): Do not allow
26963 target_clones being used with a symbol that is an alias.
26964
26965 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26966
26967 PR tree-optimization/90394
26968 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26969 positives rather than ICE for cases where (code2 == NE_EXPR
26970 && code1 == BIT_AND_EXPR).
26971
26972 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26973
26974 PR fortran/90329
26975 * tree-core.h (struct tree_decl_common): Document
26976 decl_nonshareable_flag for PARM_DECLs.
26977 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26978 * calls.c (expand_call): Don't try tail call if caller
26979 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26980 passed on the stack and callee needs to pass any arguments on the
26981 stack.
26982 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26983 else if instead of series of mutually exclusive ifs. Handle
26984 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26985 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26986
26987 * lto-streamer.h (LTO_major_version): Bump to 9.
26988
26989 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26990
26991 PR tree-optimization/90106
26992 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26993 new parameter as new internal function call, also move it to new
26994 basic block.
26995 (use_internal_fn): Pass internal function call to
26996 shrink_wrap_one_built_in_call_with_conds.
26997
26998 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26999
27000 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27001 max_vf to 1.
27002 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27003 safelen_int and set loop->dont_vectorize.
27004
27005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27006
27007 PR target/89021
27008 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27009 SSE/SSE2/SSSE3.
27010 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27011 Likewise.
27012 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27013 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27014 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27015 is defined.
27016
27017 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27018
27019 PR target/89021
27020 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27021 define_insn_and_split to support SSE emulation.
27022 (*vec_extractv2sf_0): Likewise.
27023 (*vec_extractv2sf_1): Likewise.
27024 (*vec_extractv2si_0): Likewise.
27025 (*vec_extractv2si_1): Likewise.
27026 (*vec_extractv2si_zext_mem): Likewise.
27027 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27028 (vec_extractv2sf_1 splitter): Likewise.
27029 (vec_extractv2sfsf): Likewise.
27030 (vec_setv2si): Likewise.
27031 (vec_extractv2si_1 splitter): Likewise.
27032 (vec_extractv2sisi): Likewise.
27033 (vec_setv4hi): Likewise.
27034 (vec_extractv4hihi): Likewise.
27035 (vec_setv8qi): Likewise.
27036 (vec_extractv8qiqi): Likewise.
27037 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27038 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27039 (vec_extractv2sisi): Likewise.
27040 (vec_extractv4hihi): Likewise.
27041 (vec_extractv8qiqi): Likewise.
27042 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27043 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27044 (vec_initv2sisi): Likewise.
27045 (vec_initv4hihi): Likewise.
27046 (vec_initv8qiqi): Likewise.
27047 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27048 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27049 (vec_setv4hi): Likewise.
27050 (vec_setv8qi): Likewise.
27051
27052 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27053
27054 PR target/89021
27055 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27056 TARGET_MMX_WITH_SSE.
27057 (MMXMODE:*mov<mode>_internal): Likewise.
27058 (MMXMODE:movmisalign<mode>): Likewise.
27059
27060 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27061
27062 PR target/89021
27063 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27064 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27065 (sse2_cvtpd2pi): Ditto.
27066 (sse2_cvttpd2pi): Ditto.
27067 (*vec_concatv2sf_sse4_1): Ditto.
27068 (*vec_concatv2sf_sse): Ditto.
27069 (*vec_concatv2si_sse4_1): Ditto.
27070 (*vec_concatv2si): Ditto.
27071 (*vec_concatv4si_0): Ditto.
27072 (*vec_concatv2di_0): Ditto.
27073
27074 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27075
27076 PR target/89021
27077 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27078
27079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27080
27081 PR target/89021
27082 * config/i386/sse.md (ssse3_palignrdi): Changed to
27083 define_insn_and_split to support SSE emulation.
27084
27085 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27086
27087 PR target/89021
27088 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27089
27090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27091
27092 PR target/89021
27093 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27094 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27095 SSE emulation.
27096
27097 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27098
27099 PR target/89021
27100 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27101 or TARGET_MMX_WITH_SSE.
27102 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27103
27104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27105
27106 PR target/89021
27107 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27108
27109 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27110
27111 PR target/89021
27112 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27113 Changed to define_insn_and_split to support SSE emulation.
27114
27115 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27116
27117 PR target/89021
27118 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27119 Changed to define_insn_and_split to support SSE emulation.
27120
27121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27122
27123 PR target/89021
27124 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27125 (*mmx_<emms>): This.
27126 (mmx_<emms>): New expander.
27127
27128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27129
27130 PR target/89021
27131 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27132 support.
27133 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27134
27135 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27136
27137 PR target/89021
27138 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27139
27140 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27141
27142 PR target/89021
27143 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27144
27145 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27146
27147 PR target/89021
27148 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27149 TARGET_MMX_WITH_SSE.
27150 (*mmx_uavgv4hi3): Add SSE emulation.
27151
27152 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27153
27154 PR target/89021
27155 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27156 and TARGET_MMX_WITH_SSE.
27157 (*mmx_uavgv8qi3): Add SSE emulation.
27158
27159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27160
27161 PR target/89021
27162 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27163 maskmovdqu for __MMX_WITH_SSE__.
27164
27165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27166
27167 PR target/89021
27168 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27169 TARGET_MMX and TARGET_MMX_WITH_SSE.
27170 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27171
27172 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27173
27174 PR target/89021
27175 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27176 define_insn_and_split to support SSE emulation.
27177
27178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27179
27180 PR target/89021
27181 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27182 and TARGET_MMX_WITH_SSE.
27183 (mmx_<code>v8qi3): Likewise.
27184 (smaxmin:<code>v4hi3): New.
27185 (umaxmin:<code>v8qi3): Likewise.
27186 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27187 (umaxmin:*mmx_<code>v8qi3): Likewise.
27188
27189 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27190
27191 PR target/89021
27192 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27193 TARGET_MMX_WITH_SSE.
27194 (*mmx_pinsrw): Add SSE emulation.
27195
27196 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27197
27198 PR target/89021
27199 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27200
27201 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27202
27203 PR target/89021
27204 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27205 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27206 SSE emulation.
27207
27208 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27209
27210 PR target/89021
27211 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27212 (sse_cvttps2pi): Likewise.
27213
27214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27215
27216 PR target/89021
27217 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27218 TARGET_MMX_WITH_SSE.
27219 (mmx_pshufw_1): Add SSE emulation.
27220 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27221 TARGET_MMX_WITH_SSE to support SSE emulation.
27222
27223 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27224
27225 PR target/89021
27226 * config/i386/constraints.md (Yw): New constraint.
27227 * config/i386/mmx.md (*vec_dupv2si): Changed to
27228 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27229 support SSE emulation.
27230
27231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27232
27233 PR target/89021
27234 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27235 TARGET_MMX_WITH_SSE.
27236 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27237 support.
27238 (mmx_gt<mode>3): Likewise.
27239
27240 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27241
27242 PR target/89021
27243 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27244 TARGET_MMX_WITH_SSE. Add SSE support.
27245
27246 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27247
27248 PR target/89021
27249 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27250 TARGET_MMX_WITH_SSE.
27251 (any_logic:<code><mode>3): New.
27252 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27253 Add SSE support.
27254
27255 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27256
27257 PR target/89021
27258 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27259 TARGET_MMX_WITH_SSE. Add SSE emulation.
27260 (mmx_<shift_insn><mode>3): Likewise.
27261 (ashr<mode>3): New.
27262 (<shift_insn><mode>3): Likewise.
27263
27264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27265
27266 PR target/89021
27267 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27268 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27269
27270 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27271
27272 PR target/89021
27273 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27274 TARGET_MMX_WITH_SSE.
27275 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27276 SSE support.
27277
27278 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27279
27280 PR target/89021
27281 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27282 TARGET_MMX_WITH_SSE.
27283 (mulv4hi3): New.
27284 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27285 support.
27286
27287 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27288
27289 PR target/89021
27290 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27291 (plusminus:mmx_<plusminus_insn><mode>3): Check
27292 TARGET_MMX_WITH_SSE.
27293 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27294 (<plusminus_insn><mode>3): New.
27295 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27296 (*mmx_<plusminus_insn><mode>3): Likewise.
27297
27298 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27299
27300 PR target/89021
27301 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27302 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27303 prototype.
27304 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27305 define_insn_and_split to support SSE emulation.
27306 (mmx_punpcklbw): Likewise.
27307 (mmx_punpckhwd): Likewise.
27308 (mmx_punpcklwd): Likewise.
27309 (mmx_punpckhdq): Likewise.
27310 (mmx_punpckldq): Likewise.
27311
27312 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27313 Uros Bizjak <ubizjak@gmail.com>
27314
27315 PR target/89021
27316 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27317 New function.
27318 (ix86_split_mmx_pack): Likewise.
27319 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27320 New prototype.
27321 (ix86_split_mmx_pack): Likewise.
27322 * config/i386/i386.md (mmx_isa): New.
27323 (enabled): Also check mmx_isa.
27324 * config/i386/mmx.md (any_s_truncate): New code iterator.
27325 (s_trunsuffix): New code attr.
27326 (mmx_packsswb): Removed.
27327 (mmx_packssdw): Likewise.
27328 (mmx_packuswb): Likewise.
27329 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27330 MMX packsswb/packuswb with SSE2.
27331 (mmx_packssdw): Likewise.
27332 * config/i386/predicates.md (register_mmxmem_operand): New.
27333
27334 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27335
27336 PR target/89021
27337 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27338 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27339 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27340 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27341 (ix86_vector_mode_supported_p): Likewise.
27342 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27343
27344 2019-05-15 Martin Liska <mliska@suse.cz>
27345
27346 PR middle-end/90478
27347 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27348 Check for overflow.
27349
27350 2019-05-15 Richard Biener <rguenther@suse.de>
27351
27352 * tree-into-ssa.c (pass_build_ssa::execute): Run
27353 update_address_taken before going into SSA.
27354
27355 2019-05-15 Richard Biener <rguenther@suse.de>
27356
27357 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27358 as __BIT_FIELD_REF with type with -gimple.
27359
27360 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27361
27362 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27363 semantically equivalent branches (left over after prior refactorings).
27364
27365 2019-05-15 Richard Biener <rguenther@suse.de>
27366
27367 PR tree-optimization/88828
27368 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27369 bogus check.
27370
27371 2019-05-14 Richard Biener <rguenther@suse.de>
27372
27373 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27374 as __VIEW_CONVERT with -gimple.
27375
27376 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27377
27378 PR target/82920
27379 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27380 Darwin.
27381
27382 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27383
27384 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27385 define_split to become a define_insn_and_split.
27386
27387 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27388
27389 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27390 arguments.
27391 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27392 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27393 (sibcall_epilogue): Adjust.
27394 (epilogue): Adjust.
27395
27396 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27397
27398 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27399 to unsupported ones.
27400 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27401 * config.host: Likewise.
27402 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27403 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27404 __svr4__]: Remove "brand" fallback.
27405 [!KSTAT_DATA_STRING]: Remove.
27406 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27407 to *-*-solaris2*.
27408 (comdat_group): Likewise.
27409 (set_have_as_tls): Likewise.
27410 (gcc_cv_target_dl_iterate_phdr): Likewise.
27411 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27412 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27413 * configure: Regenerate.
27414 * doc/install.texi: Simplify Solaris target triplets.
27415 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27416 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27417 Remove Solaris 10 references.
27418 Remove obsolete Solaris bug reference.
27419 (Specific, sparc-sun-solaris2.10): Remove.
27420
27421 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27422
27423 * config/i386/i386.md (any_div): New code iterator.
27424 (paired_mod): New code attribute.
27425 (sgnprefix): Handle DIV and UDIV RTXes.
27426 (u): Ditto.
27427 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27428 and udivmod<mode>4 patterns using any_div code iterator.
27429 (divmod splitters): Macroize splitters using any_div code iterator.
27430 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27431 (*udivmodsi4_pow2_zext_2): Ditto.
27432 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27433 and *udivmod<mode>4_noext patterns using any_div code iterator.
27434 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27435 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27436 patterns using any_div code iterator.
27437 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27438 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27439 patterns using any_div code iterator.
27440 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27441 udivmodhiqi3 patterns using any_extend code iterator.
27442
27443 2019-05-14 Richard Biener <rguenther@suse.de>
27444 H.J. Lu <hongjiu.lu@intel.com>
27445
27446 PR tree-optimization/88828
27447 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27448 permuting in a single non-constant element not extracted
27449 from a vector.
27450
27451 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27452
27453 * internal-fn.def (SIGNBIT): New.
27454 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27455 defined.
27456 (signbitv4sf2): Likewise.
27457
27458 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27459
27460 PR target/90357
27461 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27462 next insn when the SRC reg is dead.
27463
27464 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27465
27466 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27467 (alloc_cand_and_find_basis): Ditto.
27468 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27469 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27470 (create_add_imm_cand, slsr_process_cast): Ditto.
27471 (slsr_process_copy, replace_mult_candidate): Ditto.
27472 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27473 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27474 (pass_strength_reduction::execute): Init the first NULL element.
27475
27476 2019-05-13 Nathan Sidwell <nathan@acm.org>
27477
27478 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27479 (run_attempt): Reformat line break.
27480
27481 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27482
27483 PR target/90418
27484 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27485 data registers in sibcall epilogues.
27486 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27487
27488 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27489
27490 PR target/89221
27491 * configure.ac (--enable-frame-pointer):
27492 Disable by default for cygwin and mingw.
27493 * configure: Regenerate.
27494
27495 2019-05-13 Nathan Sidwell <nathan@acm.org>
27496
27497 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27498 piece of code.
27499 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27500 (gen_member_die): Move abstract origin check earlier. Only VARs
27501 can be static_inline_p. Simplify splicing control flow.
27502
27503 2019-05-13 Richard Biener <rguenther@suse.de>
27504
27505 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27506 VIEW_CONVERT_EXPR.
27507 (vect_build_slp_tree_1): Likewise.
27508
27509 2019-05-13 Richard Biener <rguenther@suse.de>
27510
27511 PR tree-optimization/90402
27512 * tree-if-conv.c (tree_if_conversion): Value number only
27513 the loop body by making the latch an exit of the region
27514 as well.
27515 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27516 processing PHIs.
27517 (do_rpo_vn): Deal with multiple edges into the entry block
27518 that are not backedges inside the region by skipping PHIs
27519 of the entry block.
27520
27521 2019-05-13 Richard Biener <rguenther@suse.de>
27522
27523 PR tree-optimization/90316
27524 * tree-ssa-pre.c (insert_aux): Fold into ...
27525 (insert): ... this function. Use a RPO walk to reduce the
27526 number of required iterations.
27527
27528 2019-05-13 Martin Liska <mliska@suse.cz>
27529
27530 PR tree-optimization/90416
27531 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27532 string instead of passing the second part as va_arg argument.
27533
27534 2019-05-13 Martin Liska <mliska@suse.cz>
27535
27536 PR gcov-profile/90380
27537 * gcov.c (handle_cycle): Do not support zero cycle count,
27538 it should not be possible.
27539 (path_contains_zero_cycle_arc): New function.
27540 (circuit): Ignore zero cycle arc counts.
27541
27542 2019-05-13 Martin Liska <mliska@suse.cz>
27543
27544 PR gcov-profile/90380
27545 * gcov.c (enum loop_type): Remove the enum and
27546 the operator.
27547 (handle_cycle): Assert that we should not reach
27548 a negative count.
27549 (circuit): Use loop_found instead of a tri-state loop_type.
27550 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27551 happen.
27552
27553 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27554
27555 PR target/82920
27556 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27557 (ix86_output_indirect_branch_via_reg): Use output mechanism
27558 accounting for __USER_LABEL_PREFIX__.
27559 (ix86_output_indirect_branch_via_push): Likewise.
27560 (ix86_output_function_return): Likewise.
27561 (ix86_output_indirect_function_return): Likewise.
27562
27563 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27564
27565 * doc/md.texi: Document use of code attributes in rtx patterns.
27566 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27567 * read-rtl.c (find_code): Split out search loops into...
27568 (maybe_find_code): ...this new function.
27569 (check_code_iterator): Make the error message more informative.
27570 (check_code_attribute): New function.
27571 (rtx_reader::rtx_alloc_for_name): Likewise.
27572 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27573 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27574 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27575 <max_opp> directly as an rtx code instead of via a match_operator.
27576 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27577 (<su>abd<mode>_3): Update accordingly.
27578
27579 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27580
27581 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27582 is given, print the state of the EH "save world" computation for
27583 Darwin.
27584
27585 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27586
27587 PR c++/59813
27588 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27589 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27590
27591 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27592
27593 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27594 Use pinsrd for TARGET_SSE4_1.
27595 * config/i386/sse.md (movdi_to_sse): Ditto.
27596
27597 2019-05-10 Richard Biener <rguenther@suse.de>
27598
27599 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27600 (do_rpo_vn): Initialize next_value_id.
27601
27602 2019-05-10 Martin Liska <mliska@suse.cz>
27603
27604 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27605 Fix plural form.
27606
27607 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27608
27609 PR tree-optimization/90385
27610 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27611 arguments of the exit phis.
27612
27613 PR c++/90383
27614 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27615 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27616 id->do_not_fold.
27617 (copy_tree_body_r): Likewise.
27618 (copy_fn): Set id.do_not_fold to true.
27619
27620 2019-05-10 Martin Liska <mliska@suse.cz>
27621
27622 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27623 Reapply changes from r269790.
27624
27625 2019-05-10 Martin Liska <mliska@suse.cz>
27626
27627 PR middle-end/90340
27628 * doc/invoke.texi: New params.
27629 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27630 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27631 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27632 Use it.
27633 * tree-switch-conversion.h (struct jump_table_cluster):
27634 Likewise.
27635
27636 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27637
27638 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27639
27640 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27641
27642 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27643
27644 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27645
27646 PR rtl-optimization/88879
27647 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27648
27649 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27650
27651 PR target/90405
27652 * config/arm/arm.c (callee_saved_reg_p): Move before
27653 thumb_find_work_register.
27654 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27655 thumb_find_work_register. Only call df_get_live_out once.
27656 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27657 (thumb_find_work_register): Use
27658 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27659 algorithms to locate a spare call clobbered reg.
27660
27661 2019-05-09 Martin Liska <mliska@suse.cz>
27662
27663 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27664 and MAX_EXPR in GIMPLE FE format.
27665
27666 2019-05-09 Martin Liska <mliska@suse.cz>
27667
27668 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27669 * gimple-pretty-print.c (dump_gimple_bb_header):
27670 Dump BB count.
27671 (pp_cfg_jump): Dump edge probability.
27672 * profile-count.c (profile_quality_as_string): Simplify
27673 with a static array.
27674 (parse_profile_quality): New function.
27675 (profile_count::dump): Simplify with a static array.
27676 (profile_count::from_gcov_type): Add new argument.
27677 * profile-count.h (parse_profile_quality): Likewise.
27678 * predict.h (set_hot_bb_threshold): New.
27679 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27680 New param.
27681 * predict.c (get_hot_bb_threshold): Set from the new param.
27682 (set_hot_bb_threshold): New.
27683
27684 2019-05-09 Richard Biener <rguenther@suse.de>
27685
27686 PR tree-optimization/90395
27687 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27688 rewrite vector stores that throw internally.
27689
27690 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27691
27692 * cif-code.def (CHKP): Remove.
27693
27694 PR target/89221
27695 * configure.ac (--enable-frame-pointer): Disable by default for
27696 GNU systems.
27697 * configure: Regenerate.
27698
27699 2019-05-09 Alan Modra <amodra@gmail.com>
27700
27701 PR target/89271
27702 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27703 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27704 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27705 cost for general <-> vsx when direct moves are available.
27706 Cost union classes at minimal cost for any reg in the class.
27707 Correct calculation for moves between vsx, float, and altivec.
27708 Don't return a low cost for moves between special regs. Don't
27709 use hard coded register numbers.
27710 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27711 (rs6000_ira_change_pseudo_allocno_class): New function.
27712 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27713 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27714 alternatives.
27715 (movsi_internal1): Don't disparage vector alternatives.
27716 (mov<mode>_internal): Likewise, excepting alternative that
27717 will be split.
27718 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27719 we <- b alternative.
27720
27721 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27722
27723 PR c++/59813
27724 PR tree-optimization/89060
27725 * tree-ssa-live.h (live_vars_map): New typedef.
27726 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27727 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27728 (struct compute_live_vars_data): New type.
27729 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27730 live_vars_at_stmt, destroy_live_vars): New functions.
27731 * tree-tailcall.c: Include tree-ssa-live.h.
27732 (live_vars, live_vars_vec): New global variables.
27733 (find_tail_calls): Perform variable life analysis before punting.
27734 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27735 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27736 member.
27737 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27738 Perform variable life analysis to select variables that really need
27739 clobbers added.
27740 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27741 instead set id->eh_landing_pad_dest and assert it is the same.
27742 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27743
27744 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27745 Richard Earnshaw <rearnsha@arm.com>
27746
27747 PR target/88167
27748 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27749 function.
27750 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27751 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27752 register if both the epilogue and prologue can use call-clobbered
27753 regs.
27754 (thumb1_unexpanded_epilogue): Use
27755 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27756 picking temporaries for restoring high regs to match that of the
27757 prologue where possible.
27758 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27759 the list of work registers. Detect if the return address is still live
27760 at the end of the prologue and avoid using it for a work register if so.
27761 If the return address is not live, add LR to the list of pushable regs
27762 after the first pass.
27763
27764 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27765
27766 PR tree-optimization/90078
27767 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27768 (INFTY): Increase the value for infinite cost.
27769 (struct comp_cost): Promote type of members to int64_t.
27770 (infinite_cost): Don't set complexity in initialization.
27771 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27772 overflows to infinite_cost.
27773 (adjust_setup_cost): Promote type of parameter and cost computation
27774 to int64_t.
27775 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27776 int64_t.
27777 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27778 cost computation to int64_t.
27779 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27780 int64_t's format specifier in dump.
27781
27782 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27783
27784 PR tree-optimization/90240
27785 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27786 with respect to scaling factor pre-computed for each basic block.
27787 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27788 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27789 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27790 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27791 live range for array of loop's basic blocks. Cleanup aux field of
27792 loop's basic blocks.
27793
27794 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27795
27796 PR tree-optimization/90356
27797 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27798
27799 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27800
27801 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27802 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27803 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27804 (ix86_handle_option): Handle -mavx512bf16.
27805 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27806 to extra_headers.
27807 * config/i386/avx512bf16vlintrin.h: New.
27808 * config/i386/avx512bf16intrin.h: New.
27809 * config/i386/cpuid.h (bit_AVX512BF16): New.
27810 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27811 * config/i386/i386-builtin-types.def: Add new types.
27812 * config/i386/i386-builtin.def: Add new builtins.
27813 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27814 __AVX512BF16__.
27815 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27816 (ix86_option_override_internal): Handle BF16.
27817 (ix86_valid_target_attribute_inner_p): Ditto.
27818 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27819 * config/i386/i386-builtin.c (enum processor_features): Add
27820 F_AVX512BF16.
27821 (static const _isa_names_table isa_names_table): Ditto.
27822 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27823 (PTA_AVX512BF16): Ditto.
27824 * config/i386/i386.opt: Add -mavx512bf16.
27825 * config/i386/immintrin.h: Include avx512bf16intrin.h
27826 and avx512bf16vlintrin.h.
27827 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27828 avx512f_cvtneps2bf16_<mode><mask_name>,
27829 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27830 * config/i386/subst.md (mask_half): Add new subst.
27831 * doc/invoke.texi: Document -mavx512bf16.
27832
27833 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27834
27835 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27836 Delete declaration.
27837 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27838 (rs6000_debug_legitimize_reload_address): Delete.
27839 (rs6000_legitimize_reload_address_ptr): Delete.
27840 (rs6000_option_override_internal): Adjust.
27841 (mem_operand_gpr): Adjust comment.
27842 (legitimate_lo_sum_address_p): Ditto.
27843 (rs6000_legitimize_reload_address): Delete.
27844 (rs6000_debug_legitimize_reload_address): Delete.
27845 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27846
27847 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27848
27849 PR target/89765
27850 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27851 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27852 to compute vector element selector for both constant and variable
27853 operands.
27854
27855 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27856
27857 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27858 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27859 ashrdi3_cvt using SWI48 mode iterator.
27860
27861 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27862
27863 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27864 (aarch64_<su>abd<mode>_3): Likewise.
27865 (*aarch64_<su>abd<mode>_3): New define_insn.
27866 (<sur>sad<vsi2qi>): New define_expand.
27867 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27868 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27869 (build_vect_cond_expr): Likewise.
27870
27871 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27872
27873 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27874 clobbers outside of accessible_reg_set.
27875 * config/i386/i386.c (ix86_conditional_register_usage):
27876 Disable register sets by clearing corresponding bits in
27877 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27878 call_used_regs and don't clear corresponding reg_names array members.
27879
27880 2019-05-07 Richard Biener <rguenther@suse.de>
27881
27882 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27883 not specified still compute a comp_vectype for invariant
27884 compares.
27885
27886 2019-05-07 Richard Biener <rguenther@suse.de>
27887
27888 PR tree-optimization/90316
27889 * tree-ssa-pre.c (translate_vuse_through_block): When
27890 same_valid is NULL do not bother to search for a virtual
27891 PHI continuation.
27892 (phi_translate_1): When operands changed we cannot keep
27893 the same value-number so do not bother to ask whether
27894 that's possible from translate_vuse_through_block.
27895
27896 2019-05-07 Martin Liska <mliska@suse.cz>
27897
27898 * bitmap.c (bitmap_register): Come up with
27899 alloc_descriptor_max_uid and assign it for
27900 a new bitmap.
27901 (register_overhead): Use get_descriptor as
27902 a descriptor.
27903 (release_overhead): New.
27904 (bitmap_elem_to_freelist): Call it.
27905 (bitmap_elt_clear_from): Likewise.
27906 (bitmap_obstack_free): Likewise.
27907 (bitmap_move): Sensitively release memory.
27908 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27909 (bitmap_initialize): Initialize alloc_descriptor to zero.
27910 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27911
27912 2019-05-07 Richard Biener <rguenther@suse.de>
27913
27914 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27915 we build a SLP node. Remove max_size and limiting.
27916 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27917
27918 2019-05-07 Richard Biener <rguenther@suse.de>
27919
27920 PR tree-optimization/90316
27921 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27922 limit by reference.
27923 (walk_non_aliased_vuses): Take walking limit argument.
27924 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27925 walking if it is reached instead of just counting.
27926 (get_continuation_for_phi): Likewise.
27927 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27928 limiting to the callback.
27929 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27930 (vn_reference_lookup_3): Likewise.
27931 (vn_reference_lookup_pieces): Likewise.
27932 (vn_reference_lookup): Likewise.
27933 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27934 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27935 (avail_exprs_stack::lookup_avail_expr): Likewise.
27936
27937 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27938
27939 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27940 for comparaible types in the second direction even if first one
27941 hits incomparable type.
27942
27943 2019-05-07 Richard Biener <rguenther@suse.de>
27944
27945 PR lto/90369
27946 * lto-wrapper.c (debug_objcopy): Use the original filename
27947 including archive offset for the filename used for -save-temps.
27948
27949 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27950
27951 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27952 detection.
27953
27954 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27955 Hongtao Liu <hongtao.liu@intel.com>
27956
27957 PR target/89750
27958 PR target/86444
27959 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27960 Modified, original implementation isn't correct.
27961
27962 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27963
27964 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27965 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27966 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27967 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27968 (FRAME_POINTER_REGNUM): Change numbering.
27969 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27970 (alt_reg_names): Adjust.
27971 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27972 fixed.
27973 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27974 (DWARF_FRAME_REGISTERS): Delete.
27975 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27976 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27977 Adjust.
27978 (REG_ALLOC_ORDER): Adjust.
27979 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27980 (REG_CLASS_CONTENTS): Adjust.
27981 (RETURN_ADDR_RTX): Change comment.
27982 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27983 instead of 67.
27984 (REGISTER_NAMES): Adjust.
27985 (ADDITIONAL_REGISTER_NAMES): Adjust.
27986 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27987
27988 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27989
27990 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27991 Delete.
27992 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27993 (DWARF_FRAME_REGISTERS): Adjust.
27994 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27995 Adjust.
27996 (REG_ALLOC_ORDER): Adjust.
27997 (enum reg_class): Delete SPR_REGS.
27998 (REG_CLASS_NAMES): Delete SPR_REGS.
27999 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28000 (REGISTER_NAMES): Adjust.
28001 (ADDITIONAL_REGISTER_NAMES): Adjust.
28002 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28003 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28004 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28005 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28006 (htm_spr_regno): Delete.
28007 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28008 argument.
28009 (rs6000_dbx_register_number): Adjust.
28010
28011 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28012
28013 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28014
28015 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28016
28017 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28018 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28019
28020 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28021
28022 PR tree-optimization/88709
28023 PR tree-optimization/90271
28024 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28025 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28026 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28027 variable.
28028 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28029 of the store merging group is larger than
28030 PARAM_STORE_MERGING_MAX_SIZE parameter.
28031 (split_group): Add bzero_first argument. If set, always emit first
28032 the first store which must be = {} of the whole area and then for the
28033 rest of the stores consider all zero bytes as paddings.
28034 (imm_store_chain_info::output_merged_store): Check if first store
28035 is = {} of the whole area and if yes, determine which setting of
28036 bzero_first for split_group gives smaller number of stores. Adjust
28037 split_group callers.
28038 (lhs_valid_for_store_merging_p): Allow decls.
28039 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28040 no elts.
28041 (pass_store_merging::process_store): Likewise.
28042
28043 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28044
28045 PR target/89424
28046 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28047 handling of V1TImode.
28048
28049 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28050
28051 PR target/89221
28052 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28053 and enable_frame_pointer ...
28054 * configure.ac: ... here. Update help strings for
28055 --enable-frame-pointer.
28056 * configure: Regenerate.
28057 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28058 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28059 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28060 (USE_X86_64_FRAME_POINTER): Ditto.
28061
28062 2019-05-06 Martin Liska <mliska@suse.cz>
28063
28064 * config.gcc: Append to target_gtfiles and fix indentation.
28065
28066 2019-05-06 Richard Biener <rguenther@suse.de>
28067
28068 PR tree-optimization/90358
28069 * tree-vect-stmts.c (get_group_load_store_type): Properly
28070 detect unused upper half of load.
28071 (vectorizable_load): Likewise.
28072
28073 2019-05-06 Richard Biener <rguenther@suse.de>
28074
28075 PR tree-optimization/88828
28076 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28077 (simplify_vector_constructor): ...here. Handle constants in
28078 the constructor.
28079
28080 2019-05-06 Richard Biener <rguenther@suse.de>
28081
28082 PR tree-optimization/90328
28083 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28084 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28085 is valid in the loop nest before using it.
28086 (initialize_data_dependence_relation): Adjust.
28087 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28088 loop as loop-nest to dr_may_alias_p.
28089
28090 2019-05-06 Richard Biener <rguenther@suse.de>
28091
28092 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28093
28094 2019-05-06 Richard Biener <rguenther@suse.de>
28095
28096 PR tree-optimization/90316
28097 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28098 compute target on demand.
28099 (get_continuation_for_phi): Remove code walking stmts to
28100 get to a target virtual operand which could end up being
28101 quadratic.
28102
28103 2019-05-06 Martin Liska <mliska@suse.cz>
28104
28105 PR sanitizer/90312
28106 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28107 when -mabi is selected to a non-default version.
28108
28109 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28110 Martin Liska <mliska@suse.cz>
28111
28112 * Makefile.in: Add lto-dump.texi.
28113 * cgraph.h: Add new functions get_visibility_string and
28114 get_symtab_type_string.
28115 * doc/gcc.texi: Include lto-dump section.
28116 * doc/lto-dump.texi: New file.
28117 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28118 (parse_dump_option): Factor out this function.
28119 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28120 (parse_dump_option): Export the function.
28121 * symtab.c (symtab_node::get_visibility_string): New function.
28122 (symtab_node::get_symtab_type_string): Likewise.
28123
28124 2019-05-06 Martin Liska <mliska@suse.cz>
28125
28126 * config/i386/i386-builtins.c: New file.
28127 * config/i386/i386-builtins.h: New file.
28128 * config/i386/i386-expand.c: New file.
28129 * config/i386/i386-expand.h: New file.
28130 * config/i386/i386-features.c: New file.
28131 * config/i386/i386-features.h: New file.
28132 * config/i386/i386-options.c: New file.
28133 * config/i386/i386-options.h: New file.
28134 * config.gcc: Add new files into extra_objs and
28135 target_gtfiles.
28136 * config/i386/i386.c: Split content of the file
28137 into newly introduced files.
28138 * config/i386/i386.h: Declare common variables
28139 and macros.
28140 * config/i386/t-i386: Define dependencies for new files.
28141
28142 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28143
28144 PR target/89400
28145 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28146 Restrict 'all' variant to 32-bit configurations.
28147 (unaligned_loadhiu): Likewise.
28148 (unaligned_storehi): Likewise.
28149 (unaligned_storesi): Likewise.
28150 (unaligned_loadhis): Disable when compiling for thumb1.
28151
28152 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28153
28154 PR tree-optimization/90269
28155 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28156 Ignore clobbers.
28157
28158 2019-05-03 Martin Liska <mliska@suse.cz>
28159
28160 * hash-map.h: Add is_empty function.
28161 * hash-set.h: Likewise.
28162 * hash-table.h: Likewise.
28163 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28164 elements () == 0 (and similar usages).
28165 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28166 * gimplify.c (gimplify_bind_expr): Likewise.
28167 (gimplify_switch_expr): Likewise.
28168 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28169 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28170 * postreload-gcse.c (dump_hash_table): Likewise.
28171 (gcse_after_reload_main): Likewise.
28172 * predict.c (combine_predictions_for_bb): Likewise.
28173 * tree-parloops.c (reduction_phi): Likewise.
28174 (separate_decls_in_region): Likewise.
28175 (transform_to_exit_first_loop): Likewise.
28176 (gen_parallel_loop): Likewise.
28177 (gather_scalar_reductions): Likewise.
28178 (try_create_reduction_list): Likewise.
28179 * var-tracking.c (dump_vars): Likewise.
28180 (emit_notes_for_changes): Likewise.
28181 (vt_emit_notes): Likewise.
28182
28183 2019-05-03 Richard Biener <rguenther@suse.de>
28184
28185 PR tree-optimization/90316
28186 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28187 before running VN.
28188
28189 2019-05-03 Richard Biener <rguenther@suse.de>
28190
28191 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28192 peeling for gaps by loading only lower halves of vectors
28193 if possible.
28194 (vectorizable_load): Likewise.
28195
28196 2019-05-03 Richard Biener <rguenther@suse.de>
28197
28198 PR middle-end/89518
28199 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28200
28201 2019-05-03 Richard Biener <rguenther@suse.de>
28202
28203 PR middle-end/87314
28204 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28205 Handle STRING_CST vs DECL or STRING_CST.
28206
28207 2019-05-03 Richard Biener <rguenther@suse.de>
28208
28209 PR tree-optimization/88963
28210 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28211 vector loads feeding only BIT_FIELD_REFs to component
28212 loads. Rewrite stores fed by CONSTRUCTORs to component
28213 stores.
28214
28215 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28216
28217 * opts.h (finish_options): Remove lang_mask argument.
28218 (print_help, help_option_argument): Declare.
28219 * opts.c (print_help): Remove forward declaration, no longer static.
28220 (finish_options): Remove lang_mask argument, don't call print_help
28221 here.
28222 * opts-global.c (decode_options): Adjust finish_option caller, call
28223 print_help here.
28224
28225 PR tree-optimization/90303
28226 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28227 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28228
28229 2019-05-03 Richard Biener <rguenther@suse.de>
28230
28231 PR tree-optimization/89698
28232 * gimple-fold.c (canonicalize_constructor_val): Early out
28233 for constants, handle unfolded INTEGER_CSTs as they appear in
28234 C++ virtual table ctors.
28235
28236 2019-05-03 Richard Biener <rguenther@suse.de>
28237
28238 * passes.c (execute_function_todo): Remove dead code.
28239
28240 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28241
28242 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28243 the internal register number, for any "real" register.
28244
28245 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28246
28247 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28248 correct numbers for TFHAR, TFIAR, TEXASR.
28249
28250 2019-05-02 Richard Biener <rguenther@suse.de>
28251
28252 PR tree-optimization/89653
28253 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28254 update-address-taken before the pass.
28255 * passes.def (pass_tree_loop_init): Put comment before it.
28256
28257 2019-05-02 Richard Biener <rguenther@suse.de>
28258
28259 PR tree-optimization/89509
28260 * tree-ssa-structalias.c (compute_dependence_clique): Look
28261 at the first subvar when determining whether it is restrict.
28262
28263 2019-05-02 Richard Biener <rguenther@suse.de>
28264
28265 PR tree-optimization/90273
28266 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28267 useless debug stmts.
28268
28269 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28270
28271 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28272 ACLE branch.
28273 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28274 SVE ACLE branch.
28275 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28276 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28277 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28278 (vectorizable_reduction): Use the functions above to vectorize in a
28279 fully masked loop codes that don't have a conditional internal
28280 function.
28281
28282 2019-05-02 Martin Liska <mliska@suse.cz>
28283
28284 * cgraphclones.c: Call valid_attribute_p with 1 for
28285 target_clone.
28286 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28287 it's for target attribute.
28288 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28289 Add new boolean argument.
28290 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28291 Likewise.
28292 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28293 to ix86_valid_target_attribute_inner_p.
28294 (ix86_valid_target_attribute_p): Pass flags argument to
28295 ix86_valid_target_attribute_inner_p.
28296 (get_builtin_code_for_version): Use 0 as it's target attribute.
28297
28298 2019-05-02 Martin Liska <mliska@suse.cz>
28299
28300 * gcc.c (process_command): Add dummy file only
28301 if n_infiles == 0.
28302 * opts-global.c (decode_options): Pass lang_mask.
28303 * opts.c (print_help): New function.
28304 (finish_options): Print --help if help_option_argument
28305 is set.
28306 (common_handle_option): Factor out content of OPT__help_
28307 into print_help.
28308 * opts.h (finish_options): Add new argument.
28309
28310 2019-05-02 Martin Liska <mliska@suse.cz>
28311
28312 PR target/88809
28313 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28314 With -minline-all-stringops use inline expansion using 4B loop.
28315 * doc/invoke.texi: Document the change of
28316 -minline-all-stringops.
28317
28318 2019-05-01 Jeff Law <law@redhat.com>
28319
28320 PR tree-optimization/88797
28321 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28322 PHI feeds a conditional on the RHS of an assignment.
28323
28324 2019-04-30 Andrew Waterman <andrew@sifive.com>
28325 Jim Wilson <jimw@sifive.com>
28326
28327 * config/riscv/constraints.md (L): New.
28328 * config/riscv/predicates.md (lui_operand): New.
28329 (sfb_alu_operand): New.
28330 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28331 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28332 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28333 * config/riscv/risc.md (type): Add sfb_alu.
28334 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28335 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28336 (branch_zero<mode>): Delete.
28337 (mov<mode>cc): New.
28338 (mov<GPR:mode><X:mode>cc): Likewise.
28339 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28340
28341 2019-04-30 Nathan Sidwell <nathan@acm.org>
28342
28343 * tree.h (MARK_TS_EXP): New.
28344
28345 2019-04-30 Martin Liska <mliska@suse.cz>
28346
28347 * opts.c (enable_warning_as_error): Provide hints
28348 for unknown options.
28349
28350 2019-04-30 Martin Liska <mliska@suse.cz>
28351
28352 PR debug/90288
28353 * doc/invoke.texi: Add missing dash for gas-locview-support
28354 and gno-as-locview-support.
28355
28356 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28357
28358 PR target/89093
28359 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28360 whitespace at the start of target attribute string.
28361
28362 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28363
28364 PR target/86538
28365 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28366 Define __ARM_FEATURE_ATOMICS.
28367
28368 2019-04-30 Martin Liska <mliska@suse.cz>
28369
28370 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28371 into built_in_function enum. Remove code for endp == 2 and
28372 use BUILT_IN_* constants.
28373 (gimple_fold_builtin): Call the function with fcode.
28374
28375 2019-04-30 Martin Liska <mliska@suse.cz>
28376
28377 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28378 DECL_FUNCTION_CODE into ix86_builtins enum before
28379 the switch statement.
28380
28381 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28382
28383 PR tree-optimization/89475
28384 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28385 calls.
28386
28387 2019-04-30 Martin Liska <mliska@suse.cz>
28388
28389 PR translation/90274
28390 * opts.c (print_filtered_help): Wrap string in _(...).
28391
28392 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28393
28394 PR tree-optimization/90240
28395 Revert:
28396 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28397
28398 PR tree-optimization/90078
28399 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28400 checks for infinite_cost overflow.
28401
28402 2019-04-29 Jeff Law <law@redhat.com>
28403
28404 * passes.def: Move -Wrestrict pass after copy propagation.
28405
28406 2019-04-29 Maya Rashish <coypu@sdf.org>
28407
28408 * config.gcc (default_gnu_indirect_function): Default to yes
28409 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28410 sparc*-*-netbsd*, x86_64-*-netbsd*.
28411
28412 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28413
28414 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28415 where cond2 is NE_EXPR.
28416 (is_value_included_in): Update comment.
28417
28418 2019-04-29 Richard Biener <rguenther@suse.de>
28419
28420 PR tree-optimization/90278
28421 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28422 EH on comparison simplification.
28423
28424 2019-04-29 Jason Merrill <jason@redhat.com>
28425
28426 PR c++/82081 - tail call optimization breaks noexcept
28427 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28428 nothrow function to a might-throw function into a tail call.
28429
28430 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28431
28432 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28433 (DDR_INNER_LOOP): Likewise.
28434 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28435 (initialize_data_dependence_relation): Likewise.
28436 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28437
28438 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28439
28440 PR rtl-optimization/90257
28441 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28442 return value.
28443
28444 Revert the revert:
28445 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28446
28447 PR target/90178
28448 Revert:
28449 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28450
28451 Revert the revert:
28452 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28453
28454 Revert:
28455 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28456
28457 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28458
28459 2019-04-29 Richard Biener <rguenther@suse.de>
28460
28461 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28462 rhs issue a reset.
28463
28464 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28465
28466 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28467 varasm.h, and netbsd-protos.h.
28468
28469 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28470
28471 PR target/89261
28472 * config/i386/i386-protos.h (ix86_data_alignment): Change
28473 the second argument type to unsigned int.
28474 * config/i386/i386.c (ix86_data_alignment): Change "align"
28475 argument type to unsigned int.
28476
28477 2019-04-27 Martin Liska <mliska@suse.cz>
28478
28479 PR middle-end/90258
28480 * opt-suggestions.c (option_proposer::build_option_suggestions):
28481 When get_valid_option_values returns empty values, add the
28482 misspelling candidate.
28483
28484 2019-04-26 Jim Wilson <jimw@sifive.com>
28485
28486 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28487 parameter.
28488 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28489 Pass orig_mode to riscv_build_integer.
28490 (riscv_split_integer): Pass mode to riscv_move_integer.
28491 (riscv_legitimize_const_move): Likewise.
28492 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28493 promoted_mode. Replace force_reg call with code to load constant into
28494 promoted reg and then subreg it for the store.
28495 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28496 riscv_move_integer.
28497
28498 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28499
28500 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28501 corrupt codes.
28502
28503 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28504
28505 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28506 commentary about the encoding of precision.
28507
28508 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28509
28510 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28511 * config/i386/t-freebsd64: New file.
28512 * config.gcc: Add the t-freebsd64 for multilib support.
28513
28514 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28515
28516 * doc/extend.texi (vector_size): Add missing comma after @xref.
28517
28518 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28519
28520 * BASE-VER: Set to 10.0.0.
28521
28522 2019-04-25 Richard Biener <rguenther@suse.de>
28523
28524 PR middle-end/89765
28525 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28526 VIEW_CONVERT_EXPR into one operating on an rvalue.
28527
28528 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28529
28530 PR target/89929
28531 * config/i386/i386.c (feature_priority): Moved to file scope.
28532 (processor_features): Likewise.
28533 (processor_model): Likewise.
28534 (_arch_names_table): Likewise.
28535 (arch_names_table): Likewise.
28536 (_feature_list): Removed.
28537 (feature_list): Likewise.
28538 (_isa_names_table): Moved to file scope. Add priority.
28539 (isa_names_table): Likewise.
28540 (get_builtin_code_for_version): Replace feature_list with
28541 isa_names_table. Update error message for P_ZERO priority.
28542
28543 2019-04-25 Richard Biener <rguenther@suse.de>
28544
28545 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28546 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28547
28548 2019-04-24 Jeff Law <law@redhat.com>
28549
28550 PR tree-optimization/90037
28551 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28552 * passes.def: Replace all instance of phi-only cprop with the
28553 lattice propagator. Move propagation pass from after erroneous
28554 path isolation to before erroneous path isolation.
28555 * tree-ssa-phionlycprop.c: Remove.
28556
28557 2019-04-24 Richard Biener <rguenther@suse.de>
28558
28559 PR middle-end/90213
28560 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28561 by size and BITS_PER_UNIT on poly-wide-ints.
28562
28563 2019-04-25 Richard Biener <rguenther@suse.de>
28564
28565 PR middle-end/90194
28566 * match.pd: Add pattern to simplify view-conversion of an
28567 empty constructor.
28568
28569 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28570
28571 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28572 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28573 for Go on 32 bit AIX.
28574 * config/rs6000/aix72.h: Likewise.
28575
28576 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28577
28578 PR target/90193
28579 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28580 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28581
28582 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28583
28584 PR target/89952
28585 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28586 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28587 for restored hard frame pointer.
28588 (s390_sched_dependencies_evaluation): Implement new target hook.
28589 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28590
28591 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28592
28593 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28594 * config/arc/arc.c (arc_init): Cleanup warning message.
28595 (arc_override_options): Likewise.
28596
28597 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28598
28599 PR target/90187
28600 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28601 a register if both if_true and if_false are MEMs.
28602
28603 PR tree-optimization/90208
28604 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28605 after labels of new_bb, not before them.
28606
28607 PR tree-optimization/90211
28608 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28609 which are not SSA_NAMEs.
28610
28611 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28612
28613 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28614 AArch64.
28615 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28616
28617 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28618
28619 PR rtl-optimization/87979
28620 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28621 not equal zero.
28622
28623 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28624
28625 PR rtl-optimization/84032
28626 * modulo-sched.c (ps_insn_find_column): Change condition so that
28627 branch will always be the last insn in a row inside partial
28628 schedule.
28629
28630 2019-04-23 Richard Biener <rguenther@suse.de>
28631
28632 PR debug/90131
28633 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28634 dest_single_pred_p argument.
28635 (remove_forwarder_block): Adjust.
28636 (remove_forwarder_block_with_phi): Likewise.
28637
28638 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28639 Bernd Edlinger <bernd.edlinger@hotmail.de>
28640 Jakub Jelinek <jakub@redhat.com>
28641
28642 PR target/89093
28643 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28644 if used with general-regs-only.
28645 (arm_conditional_register_usage): Don't add non-general regs if
28646 general-regs-only.
28647 (arm_valid_target_attribute_rec): Handle general-regs-only.
28648 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28649 general-regs-only.
28650 (TARGET_HARD_FLOAT_SUB): Define.
28651 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28652 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28653 (TARGET_REALLY_IWMMXT2): Likewise.
28654 * config/arm/arm.opt: Add -mgeneral-regs-only.
28655 * doc/extend.texi: Document ARM general-regs-only target.
28656 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28657
28658 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28659
28660 PR tree-optimization/90078
28661 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28662 checks for infinite_cost overflow.
28663
28664 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28665
28666 PR tree-optimization/90021
28667 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28668 and check univariate against it.
28669 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28670 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28671
28672 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28673
28674 PR target/90178
28675 Revert:
28676 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28677
28678 Revert the revert:
28679 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28680
28681 Revert:
28682 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28683
28684 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28685
28686 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28687
28688 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28689 names using operand format, rather than hard-wired.
28690 (speculation_barrier): Likewise.
28691
28692 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28693
28694 PR tree-optimization/88055
28695 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28696 (gen_one_condition): Use it if !HONOR_NANS.
28697
28698 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28699
28700 PR middle-end/90139
28701 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28702 assign_temp instead of gen_reg_rtx.
28703
28704 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28705
28706 PR translation/90118
28707 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28708 Add missing space before %<.
28709
28710 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28711
28712 PR rtl-optimization/87871
28713 * ira-lives.c (make_object_dead): Don't add conflicts to
28714 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28715
28716 2019-04-18 Martin Sebor <msebor@redhat.com>
28717
28718 PR middle-end/89797
28719 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28720 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28721 assuming type size fits in SHWI.
28722
28723 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28724
28725 PR ipa/85051
28726 * ipa-inline.c (flatten_function): New parameter UPDATE.
28727 (ipa_inline, early_inliner): Use it.
28728
28729 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28730
28731 * fold-const.c (int_const_binop): Return early on failure.
28732
28733 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28734
28735 PR middle-end/85164
28736 * combine.c (force_int_to_mode): Cast the argument rather than
28737 the result of known_alignment.
28738 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28739
28740 2019-04-18 Richard Biener <rguenther@suse.de>
28741
28742 PR debug/90131
28743 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28744 out from ...
28745 (remove_forwarder_block): ... here.
28746 (remove_forwarder_block_with_phi): Also move debug stmts here.
28747
28748 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28749
28750 PR translation/79183
28751 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28752 inform where appropriate.
28753
28754 2019-04-18 Richard Biener <rguenther@suse.de>
28755
28756 * tree.c (get_qualified_type): Put found type variants at the
28757 head of the variant list.
28758
28759 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28760
28761 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28762
28763 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28764
28765 PR target/90125
28766 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28767 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28768 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28769 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28770 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28771
28772 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28773
28774 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28775 even for allocno's with no conflicts.
28776 (print_conflicts): Print an extra newline.
28777
28778 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28779
28780 * auto-inc-dec.c (attempt_change): Set the alignment of the
28781 temporary memory to that of the original.
28782
28783 2019-04-17 Joao Moreira <jmoreira@suse.de>
28784
28785 * targhooks.c (default_print_patchable_function_entry): Emit
28786 __patchable_function_entries section with writable flags to allow
28787 relocation resolution.
28788
28789 2019-04-17 Jonny Grant <jg@jguk.org>
28790
28791 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28792
28793 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28794
28795 PR middle-end/90095
28796 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28797 on lowpart SUBREGs.
28798
28799 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28800
28801 * config/arc/arc.c (arc_init): Format diagnostic string.
28802 (arc_override_options): Likewise.
28803 (check_if_valid_regno_const): Likewise.
28804 (arc_reorg): Likewise.
28805
28806 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28807
28808 PR target/17108
28809 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28810 name.
28811 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28812 name.
28813 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28814 (*movdi_update1): Use Pmode.
28815 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28816 (movdi_<mode>_update_stack): Rename to ...
28817 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28818 use Pmode.
28819 (*movsi_update1): Use Pmode.
28820 (*movsi_update2): Use Pmode.
28821 (movsi_update): Rename to ...
28822 (movsi_<mode>_update): ... this. Use Pmode.
28823 (movsi_update_stack): Fix condition.
28824 (*movhi_update1): Use Pmode. Fix argument to
28825 avoiding_indexed_address_p.
28826 (*movhi_update2): Ditto.
28827 (*movhi_update3): Ditto.
28828 (*movhi_update4): Ditto.
28829 (*movqi_update1): Ditto.
28830 (*movqi_update2): Ditto.
28831 (*movqi_update3): Ditto.
28832 (*movsf_update1, *movdf_update1): Merge, rename to...
28833 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28834 avoiding_indexed_address_p. Add "size" attribute.
28835 (*movsf_update2, *movdf_update2): Merge, rename to...
28836 (*mov<mode>_update2): This. Ditto.
28837 (*movsf_update3): Use Pmode. Fix argument to
28838 avoiding_indexed_address_p.
28839 (*movsf_update4): Ditto.
28840 (allocate_stack): Simplify condition. Adjust pattern names.
28841
28842 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28843
28844 PR target/89093
28845 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28846 whitespace at the start of target attribute string.
28847
28848 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28849
28850 PR target/84369
28851 * config/rs6000/power9.md: Add store forwarding bypass.
28852
28853 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28854
28855 PR debug/89528
28856 * valtrack.c (dead_debug_insert_temp): Reset debug references
28857 to the return value of a call being removed.
28858
28859 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28860
28861 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28862 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28863 implement target hook.
28864 (arc_memory_move_cost): New function.
28865 (TARGET_REGISTER_MOVE_COST): Define.
28866 (TARGET_MEMORY_MOVE_COST): Likewise.
28867 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28868 (MEMORY_MOVE_COST): Likewise.
28869
28870 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28871
28872 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28873 (sibcall_value_insn): Likewise.
28874 * config/arc/constraints.md (Rs5): Remove.
28875
28876 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28877
28878 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28879 for last two fake registers.
28880 (arc_conditional_register_usage): Make sure fake frame and arg
28881 pointer regs are in general regs class.
28882 (FRAME_POINTER_MASK): Remove.
28883 (RETURN_ADDR_MASK): Remove.
28884 (arc_must_save_register): Use hard frame regnum.
28885 (frame_restore_reg): Use hard_frame_pointer_rtx.
28886 (arc_save_callee_saves): Likewise.
28887 (arc_restore_callee_saves): Likewise.
28888 (arc_save_callee_enter): Likewise.
28889 (arc_restore_callee_leave): Likewise.
28890 (arc_save_callee_milli): Likewise.
28891 (arc_eh_return_address_location): Likewise.
28892 (arc_check_multi): Use hard frame regnum.
28893 (arc_can_eliminate): Likewise.
28894 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28895 for register allocator.
28896 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28897 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28898 (FRAME_POINTER_REGNUM): Change it to a fake register.
28899 (HARD_FRAME_POINTER_REGNUM): Defined.
28900 (ARG_POINTER_REGNUM): Change it to a new fake register.
28901 (ELIMINABLE_REGS): Update.
28902 (REGISTER_NAMES): Update names.
28903 * config/arc/arc.md (LP_START): Remove.
28904 (LP_END): Likewise.
28905 (shift_si3_loop): Update pattern.
28906
28907 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28908
28909 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28910 to avoid delay slot scheduling.
28911 (arc_must_save_register): Don't save SP.
28912 * config/arc/arc.md (stack_tie): Remove.
28913 (UNSPEC_ARC_STKTIE): Likewise.
28914
28915 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28916 Shiva Chen <shiva0217@gmail.com>
28917
28918 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28919 code gen with large shift amount.
28920
28921 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28922
28923 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28924 subreg.
28925
28926 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28927
28928 PR target/90096
28929 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28930 print -m64/-mx32/-m32 if it is true.
28931 (ix86_debug_options, ix86_function_specific_print): Pass true as
28932 ADD_ABI_P to ix86_target_string.
28933 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28934 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28935 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28936
28937 PR rtl-optimization/90082
28938 * dce.c (can_delete_call): New function.
28939 (deletable_insn_p, mark_insn): Use it.
28940
28941 PR tree-optimization/90090
28942 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28943 throw internally.
28944 (is_division_by_square): Likewise. Formatting fix.
28945
28946 2019-04-16 Richard Biener <rguenther@suse.de>
28947
28948 PR tree-optimization/56049
28949 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28950 equality check if alias-set zero will prevail.
28951
28952 2019-04-15 Jeff Law <law@redhat.com>
28953
28954 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28955 size and alignment as unsigned.
28956
28957 2019-04-15 Richard Biener <rguenther@suse.de>
28958
28959 PR debug/90074
28960 * tree-loop-distribution.c (destroy_loop): Preserve correct
28961 debug info.
28962
28963 2019-04-15 Richard Biener <rguenther@suse.de>
28964
28965 PR tree-optimization/90071
28966 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28967 abnormal operands from def stmts.
28968
28969 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28970
28971 PR rtl-optimization/89794
28972 * combine.c (count_auto_inc): New function.
28973 (try_combine): Count how many auto_inc expressions there were in the
28974 original instructions. Ensure we have the same number in the new
28975 instructions. Remove the code that tried to ensure auto_inc side
28976 effects on i1 and i0 are not lost.
28977
28978 2019-04-15 Richard Biener <rguenther@suse.de>
28979
28980 PR ipa/88936
28981 * tree.h (auto_var_p): Declare.
28982 * tree.c (auto_var_p): New function, split out from ...
28983 (auto_var_in_fn_p): ... here.
28984 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28985 member.
28986 (new_var_info): Initialize it.
28987 (set_uids_in_ptset): Also set the shadow variable uid if required.
28988 (ipa_pta_execute): Postprocess points-to solutions assigning
28989 shadow variable uids for locals that may reach their containing
28990 function recursively.
28991 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28992 assert but instead check whether the points-to solution is
28993 a singleton.
28994
28995 2019-04-15 Martin Jambor <mjambor@suse.cz>
28996
28997 PR ipa/pr89693
28998 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28999 the thunk chain.
29000
29001 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29002
29003 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29004
29005 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29006 Kito Cheng <kito.cheng@gmail.com>
29007 Shiva Chen <shiva0217@gmail.com>
29008
29009 * config/nds32/nds32-md-auxiliary.c
29010 (nds32_legitimize_pic_address): Use new PIC pattern.
29011 (nds32_legitimize_tls_address): Use new TLS pattern.
29012 (nds32_output_symrel): New.
29013 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29014 (nds32_alloc_relax_group_id): Ditto.
29015 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29016 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29017 relax_group_id.
29018 (nds32_group_tls_insn): Ditto.
29019 (nds32_group_float_insns): Ditto.
29020 * config/nds32/nds32.md (tls_le): New.
29021 (sym_got): Ditto.
29022
29023 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29024
29025 * configure: Add nds32 target for dwarf2 debug_line checking.
29026 * configure.ac: Regenerated.
29027
29028 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29029
29030 PR lto/89358
29031 * ipa-devirt.c (skip_in_fields_list_p): New.
29032 (odr_types_equivalent_p): Use it.
29033
29034 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29035
29036 PR target/89093
29037 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29038 instead of strncmp when checking for thumb and arm. Formatting fixes.
29039
29040 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29041
29042 * doc/install.texi: Document --with-target-system-zlib.
29043
29044 2019-04-12 Martin Sebor <msebor@redhat.com>
29045
29046 PR c/88383
29047 PR c/89288
29048 PR c/89798
29049 PR c/89797
29050 * targhooks.c (default_vector_alignment): Avoid assuming
29051 argument fits in SHWI.
29052 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29053 a shift expression.
29054 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29055
29056 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29057
29058 PR rtl-optimization/89965
29059 * dce.c: Include rtl-iter.h.
29060 (struct check_argument_load_data): New type.
29061 (check_argument_load): New function.
29062 (find_call_stack_args): Check for loads from stack slots still tracked
29063 in sp_bytes and punt if any is found.
29064
29065 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29066
29067 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29068
29069 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29070 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29071
29072 2019-04-12 Martin Liska <mliska@suse.cz>
29073
29074 PR middle-end/89970
29075 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29076 in error message.
29077 (separate_attrs): Handle multiple 'default's.
29078 (expand_target_clones): Rework error handling code.
29079
29080 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29081
29082 PR target/87532
29083 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29084 mode of vector rather than mode of destination for move instruction.
29085 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29086 Use QI inner mode with V16QI vector mode.
29087
29088 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29089
29090 PR target/52726
29091 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29092 "invalid %%t operand" in output_operand_lossage message.
29093
29094 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29095
29096 * config/s390/predicates.md (permute_pattern_operand): New
29097 predicate.
29098 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29099 operand for the permute pattern.
29100 ("*vec_perm<mode>"): New insn definition.
29101 ("bswap<mode>"): Generate the permute pattern operand in the
29102 expander and perform the operand reloads for pre arch13 level
29103 already.
29104 ("*bswap<mode>_emu"): Rename to ...
29105 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29106 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29107 Add the USE operand for the permute pattern.
29108 ("*vec_set_bswap_vec<mode>"): Likewise.
29109
29110 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29111
29112 PR c/89946
29113 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29114 and gcc_unreachable if it fails, just call tree_to_uhwi which
29115 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29116 Start warning message with a lower-case letter. Formatting fixes.
29117
29118 PR rtl-optimization/90026
29119 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29120 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29121 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29122 in cfglayout mode, use emit_barrier_after_bb.
29123
29124 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29125
29126 PR rtl-optimization/87763
29127 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29128 New Instruction.
29129
29130 2019-04-11 Tom de Vries <tdevries@suse.de>
29131
29132 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29133 max macro using statement expression.
29134
29135 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29136
29137 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29138 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29139 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29140 read_only_private_data_section using xcoff_private_rodata_section_name.
29141 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29142
29143 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29144
29145 PR target/90016
29146 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29147
29148 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29149
29150 PR rtl-optimization/89965
29151 * dce.c (sp_based_mem_offset): New function.
29152 (find_call_stack_args): Use sp_based_mem_offset.
29153
29154 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29155
29156 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29157
29158 2019-04-11 Richard Biener <rguenther@suse.de>
29159
29160 PR tree-optimization/90020
29161 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29162 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29163 * tree-ssa-pre.c (compute_avail): Use it to not put
29164 possibly trapping references after a call that might not
29165 return into EXP_GEN.
29166 * gcse.c (compute_hash_table_work): Do not elide
29167 marking a block containing a call if the call might not
29168 return.
29169
29170 2019-04-11 Richard Biener <rguenther@suse.de>
29171
29172 PR tree-optimization/90018
29173 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29174 Test both SLP and interleaving variants.
29175
29176 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29177
29178 * config/s390/8561.md: New file.
29179 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29180 Add arch13 cpu model.
29181 * config/s390/s390-opts.h (enum processor_type): Likewise.
29182 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29183 (s390_get_unit_mask): Likewise.
29184 (s390_is_fpd): Likewise.
29185 (s390_is_fxd): Likewise.
29186 * config/s390/s390.h (s390_tune_attr): Likewise.
29187 * config/s390/s390.md: Include arch13 pipeline description.
29188 * config/s390/s390.opt: Add arch13.
29189
29190 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29191
29192 PR rtl-optimization/87763
29193 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29194 New prototype.
29195 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29196 New function.
29197 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29198 New instruction.
29199 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29200 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29201 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29202 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29203
29204 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29205
29206 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29207 "Although" in -fipa-icf documentation.
29208
29209 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29210 of using multiple -g options.
29211
29212 2019-04-10 Martin Liska <mliska@suse.cz>
29213
29214 PR gcov-profile/89959
29215 * doc/gcov.texi: Make documentation of -x option
29216 more precise.
29217
29218 2019-04-10 Richard Biener <rguenther@suse.de>
29219
29220 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29221 member.
29222 (DR_GROUP_SAME_DR_STMT): Remove.
29223 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29224 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29225 replace with assert.
29226 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29227 (vect_record_grouped_load_vectors): Remove unreachable code.
29228
29229 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29230
29231 PR target/90016
29232 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29233 obsolete reference to N.
29234
29235 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29236
29237 PR middle-end/90025
29238 * expr.c (store_expr): Set properly size on the MEM passed to
29239 clear_storage.
29240
29241 PR c++/90010
29242 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29243 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29244 translation is needed, and when translation is needed, only append
29245 ... if the string length is hostsz or more bytes long. Avoid using
29246 strncpy or strcat.
29247
29248 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29249
29250 PR target/90024
29251 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29252 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29253 into three.
29254 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29255 differences directly.
29256 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29257
29258 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29259
29260 PR translation/90011
29261 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29262 from diagnostics.
29263 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29264 diagnostics.
29265 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29266 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29267 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29268 trailing space from -gsplit-dwarf diagnostics.
29269
29270 PR tree-optimization/89998
29271 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29272 instead of integer_type_node if possible, don't add ranges if return
29273 type is not compatible with int.
29274 * gimple-fold.c (gimple_fold_builtin_sprintf,
29275 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29276 integer_type_node.
29277
29278 2019-04-09 Martin Liska <mliska@suse.cz>
29279
29280 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29281 * doc/install.texi: Document the new config.
29282
29283 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29284
29285 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29286 use gimple_expr_type for load and store calls. Skip over the
29287 condition argument in a conditional internal function.
29288 Protect use of TREE_INT_CST_LOW.
29289
29290 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29291
29292 PR target/90015
29293 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29294 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29295 trailing period from it too.
29296
29297 2019-04-08 wu yuan <wuyuan5@huawei.com>
29298
29299 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29300 * config/aarch64/aarch64.md: Add "tsv110.md".
29301 * config/aarch64/tsv110.md: New file.
29302
29303 2019-04-08 Richard Biener <rguenther@suse.de>
29304
29305 PR tree-optimization/90006
29306 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29307 calls like lrint.
29308
29309 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29310
29311 PR target/83033
29312 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29313 construction.
29314 (fma_root_node): Likewise.
29315 (func_fma_steering): Likewise.
29316
29317 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29318
29319 PR rtl-optimization/89865
29320 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29321
29322 PR rtl-optimization/89865
29323 * config/i386/i386.md
29324 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29325 numbers not to clash with the additional operands[4].
29326 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29327 with extra register copy in the middle.
29328
29329 2019-04-08 Martin Liska <mliska@suse.cz>
29330
29331 PR gcov-profile/89961
29332 * doc/gcov.texi: Document data_file.
29333 * gcov.c (generate_results): Add data_info into JSON output.
29334
29335 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29336
29337 PR tree-optimization/89725
29338 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29339 loop's chrec as invariant symbol.
29340 * tree-chrec.h (chrec_contains_symbols): New parameter.
29341 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29342 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29343 function of loops not in DDR's loop_nest.
29344 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29345
29346 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29347
29348 PR target/89623
29349 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29350 Mask.
29351
29352 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29353
29354 PR target/89945
29355 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29356 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29357
29358 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29359
29360 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29361 targetm.fixed_condition_code_regs.
29362
29363 2019-04-05 Richard Biener <rguenther@suse.de>
29364
29365 PR debug/89892
29366 PR debug/89905
29367 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29368 debug bind stmts but reset them if they are not valid at the
29369 destination.
29370
29371 2019-04-05 Martin Liska <mliska@suse.cz>
29372
29373 PR translation/89936
29374 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29375 order to wrap keywords or arguments.
29376 * collect2.c (main): Likewise.
29377 (scan_prog_file): Likewise.
29378 (scan_libraries): Likewise.
29379 * common/config/riscv/riscv-common.c
29380 (riscv_subset_list::parsing_subset_version): Likewise.
29381 (riscv_subset_list::parse_std_ext): Likewise.
29382 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29383 Likewise.
29384 * config/arm/arm.c (arm_option_override): Likewise.
29385 * config/cris/cris.c (cris_print_operand): Likewise.
29386 * config/darwin-c.c (darwin_pragma_options): Likewise.
29387 (darwin_pragma_unused): Likewise.
29388 (darwin_pragma_ms_struct): Likewise.
29389 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29390 * config/i386/i386.c (print_reg): Likewise.
29391 (ix86_print_operand): Likewise.
29392 * config/i386/xm-djgpp.h: Likewise.
29393 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29394 * config/m32c/m32c.c (m32c_option_override): Likewise.
29395 * config/msp430/msp430.c (msp430_option_override): Likewise.
29396 * config/nds32/nds32.c (nds32_option_override): Likewise.
29397 * config/nvptx/mkoffload.c (main): Likewise.
29398 * config/rx/rx.c (rx_print_operand): Likewise.
29399 (valid_psw_flag): Likewise.
29400 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29401 (vms_pragma_nomember_alignment): Likewise.
29402 (vms_pragma_extern_model): Likewise.
29403 * lto-wrapper.c (compile_offload_image): Likewise.
29404 * omp-offload.c (oacc_parse_default_dims): Likewise.
29405 * symtab.c (symtab_node::verify_base): Likewise.
29406 * tlink.c (recompile_files): Likewise.
29407 (start_tweaking): Likewise.
29408 * tree-profile.c (parse_profile_filter): Likewise.
29409
29410 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29411
29412 PR tree-optimization/89956
29413 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29414 multiple negates of the same value.
29415
29416 2019-04-04 Martin Sebor <msebor@redhat.com>
29417
29418 PR middle-end/89957
29419 PR middle-end/89911
29420 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29421 have the same precision since the function crashes otherwise.
29422 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29423 has non-zero arguments.
29424
29425 2019-04-04 Martin Sebor <msebor@redhat.com>
29426
29427 PR middle-end/89934
29428 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29429 out if the number of arguments is less than expected.
29430
29431 2019-04-04 Jeff Law <law@redhat.com>
29432
29433 PR rtl-optimization/89399
29434 * ree.c (combine_set_extension): Use single_set rather than
29435 digging into PATTERN for items on the candidate list.
29436 (combine_reaching_defs): Likewise.
29437
29438 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29439
29440 PR rtl-optimization/46590
29441 * loop-invariant.c (find_defs): Move df_remove_problem and
29442 df_process_deferred_rescans to move_invariants.
29443 Move df_live_add_problem and df_live_set_all_dirty calls
29444 to move_invariants.
29445 (move_invariants): Likewise.
29446 (move_loop_invariants): Likewise, making the df_live calls
29447 conditional on -O. Remove the problem again if we added it
29448 locally.
29449
29450 2019-04-03 qing zhao <qing.zhao@oracle.com>
29451
29452 PR tree-optimization/89730
29453 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29454 -flive-patching=inline-only-static.
29455 (can_inline_edge_by_limits_p): Add the checking for
29456 -flive-patching=inline-only-static and grant always_inline
29457 even when -flive-patching=inline-only-static is specified.
29458
29459 2019-04-03 Jeff Law <law@redhat.com>
29460
29461 PR rtl-optimization/81025
29462 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29463
29464 2019-04-03 Richard Biener <rguenther@suse.de>
29465
29466 PR tree-optimization/84101
29467 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29468 regs.h for hard_regno_nregs.
29469 (cfun_returns): New helper.
29470 (vect_model_store_cost): When vectorizing a store to a decl
29471 we return and the function ABI returns in a multi-reg location
29472 account for the possible spilling that will happen.
29473
29474 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29475
29476 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29477 displacement addresses for vector mode operands.
29478
29479 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29480
29481 * config/arc/arc.c (GMASK_LEN): Define.
29482 (arc_restore_callee_saves): Restore first blink when
29483 !optimize_size.
29484
29485 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29486
29487 * doc/extend.texi: Add deprecated comment on sign-return-address
29488 function attribute and add mbranch-protection.
29489 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29490
29491 2019-04-03 Richard Biener <rguenther@suse.de>
29492
29493 PR lto/89896
29494 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29495 the all target phony.
29496
29497 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29498
29499 PR target/89902
29500 PR target/89903
29501 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29502 Return false for variable DImode shifts.
29503 (dimode_scalar_chain::compute_convert_gain): Do not handle
29504 register count operand in variable DImode shifts.
29505 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29506 count argument of a variable shift instruction to a vector register.
29507 (dimode_scalar_chain::convert_reg): Remove support to convert
29508 count argument of a variable shift instruction.
29509
29510 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29511
29512 PR rtl-optimization/84206
29513 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29514 iterating over loop headers.
29515
29516 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29517
29518 PR rtl-optimization/85876
29519 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29520 beyond the original fence.
29521
29522 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29523
29524 * config.gcc: Mark spu* targets as deprecated/obsolete.
29525
29526 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29527
29528 * config/s390/s390-builtin-types.def: New builtin function type
29529 definitions. Remove unused types.
29530 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29531 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29532 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29533 overloaded builtins.
29534 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29535 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29536 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29537 (vec_double, vec_signed, vec_unsigned): Define to use the new
29538 overloaded builtins.
29539 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29540 Remove expanders.
29541
29542 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29543
29544 * config/s390/s390-builtin-types.def: New builtin function type
29545 definitions.
29546 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29547 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29548 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29549 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29550 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29551 constant definitions.
29552 * config/s390/vecintrin.h (vec_search_string_cc)
29553 (vec_search_string_until_zero_cc): New builtin name definitions.
29554 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29555 expanders.
29556 ("vec_vstrs<mode>"): New insn definition.
29557
29558 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29559
29560 * config/s390/s390-builtin-types.def: Add new builtin function
29561 types.
29562 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29563 New overloaded builtins.
29564 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29565 s390_vsrd.
29566 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29567 (UNSPEC_VEC_SLDBYTE): ... this.
29568 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29569 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29570 definitions.
29571 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29572 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29573 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29574
29575 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29576
29577 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29578 New insn definition.
29579 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29580 * config/s390/vector.md (V_HW_HSD): ... here.
29581
29582 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29583
29584 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29585 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29586 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29587 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29588 New insn definitions.
29589
29590 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29591
29592 * config/s390/s390-builtin-types.def: Add new builtin function type.
29593 * config/s390/s390-builtins.def: Add overloaded builtin
29594 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29595 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29596 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29597 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29598 ("eltswap<mode>"): New expander.
29599 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29600 insn definitions.
29601
29602 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29603
29604 * config/s390/s390-builtin-types.def: Add new builtin function types.
29605 * config/s390/s390-builtins.def: Add overloaded builtin
29606 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29607 instructions.
29608 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29609 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29610 ("bswap<mode>"): New expander.
29611 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29612
29613 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29614
29615 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29616 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29617 vector builtin version number in __VEC__.
29618
29619 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29620
29621 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29622 iterators.
29623 (SFSI): New mode attribute.
29624 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29625 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29626 rename to ...
29627 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29628 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29629 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29630 ("floatsi<mode>2"): Add wcefb instruction.
29631
29632 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29633
29634 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29635 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29636 mode iterators.
29637 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29638 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29639 support 32 bit fp-int conversions. Rename to ...
29640 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29641 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29642 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29643 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29644 ... to these.
29645
29646 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29647
29648 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29649 if-then-else constructs if we can use the select instruction.
29650 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29651
29652 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29653
29654 * config/s390/s390.md ("*popcountdi_arch13_cc")
29655 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29656 definition.
29657 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29658 Append _z196 to make it ...
29659 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29660 ("popcounthi2_z196"): ... this.
29661 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29662 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29663
29664 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29665
29666 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29667 certain compares for arch13 in order to make use of the condition
29668 code result produced by the new instructions.
29669 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29670 nxrk, and nxgrk instruction patterns.
29671 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29672 (inv_no): Add new code iterator together with some attributes.
29673 ("*andc_split_<mode>"): Disable splitter for arch13.
29674 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29675 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29676 ("*<ANDOR:bitops_name>c<GPR:mode>")
29677 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29678 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29679 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29680 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29681
29682 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29683
29684 * common/config/s390/s390-common.c (processor_flags_table): New
29685 entry for arch13.
29686 * config.gcc: Support arch13 with the --with-arch= configure flag.
29687 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29688 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29689 * config/s390/s390.c (s390_get_sched_attrmask)
29690 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29691 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29692 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29693 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29694 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29695 definitions.
29696 * config/s390/s390.opt: Support arch13 as processor type in
29697 command line options.
29698
29699 2019-04-02 Martin Liska <mliska@suse.cz>
29700
29701 PR translation/89912
29702 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29703 Fix param description of graphite-max-arrays-per-scop.
29704
29705 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29706
29707 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29708 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29709 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29710
29711 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29712
29713 PR rtl-optimization/85412
29714 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29715 sel_sched_region_1, not after.
29716
29717 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29718
29719 PR rtl-optimization/86928
29720 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29721 compute_live if necessary.
29722 (sel_redirect_edge_and_branch): Likewise.
29723
29724 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29725
29726 PR rtl-optimization/89865
29727 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29728 register if it is a part of small class.
29729
29730 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29731
29732 PR rtl-optimization/87273
29733 * sel-sched-ir.c (merge_fences): Remove assert.
29734
29735 2019-04-01 Richard Biener <rguenther@suse.de>
29736
29737 PR tree-optimization/46590
29738 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29739 (dom_walker::m_reachability): Add in place of...
29740 (dom_walker::m_skip_unreachable_blocks): ...this.
29741 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29742 Move complex initialization ...
29743 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29744 lazily and initialize edge flags on each invocation.
29745 (dom_walker::bb_reachable): Use m_reachability.
29746
29747 2019-04-01 Martin Liska <mliska@suse.cz>
29748
29749 PR driver/89861
29750 * opt-suggestions.c (option_proposer::build_option_suggestions):
29751 Add variant without any argument in order to provide better
29752 hints.
29753
29754 2019-04-01 Richard Biener <rguenther@suse.de>
29755
29756 PR c/71598
29757 * gimple.c: Include langhooks.h.
29758 (gimple_get_alias_set): Treat enumeral types as the underlying
29759 integer type.
29760
29761 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29762 Eric Botcazou <ebotcazou@adacore.com>
29763
29764 PR rtl-optimization/89862
29765 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29766 that operates on the full registers for WORD_REGISTER_OPERATIONS
29767 architectures.
29768
29769 2019-03-29 Jim Wilson <jimw@sifive.com>
29770
29771 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29772 Clear MASK_RVC and then set if C subset supported.
29773
29774 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29775
29776 PR c/89872
29777 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29778 non-addressable complit into its initializer if it is volatile.
29779
29780 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29781
29782 * opts-common.c (integral_argument): Set errno properly in one case.
29783
29784 2019-03-29 Martin Liska <mliska@suse.cz>
29785
29786 * doc/invoke.texi: Remove -Wchkp from documentation.
29787
29788 2019-03-29 Martin Liska <mliska@suse.cz>
29789
29790 * dbgcnt.c (print_limit_reach): New function.
29791 (dbg_cnt): Use it.
29792
29793 2019-03-29 Martin Liska <mliska@suse.cz>
29794
29795 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29796 (dbg_cnt_process_opt): Parse first tokens aas
29797 dbg_cnt_process_single_pair is also using strtok.
29798
29799 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29800
29801 PR rtl-optimization/87485
29802 * function.c (expand_function_end): Move stack_protect_epilogue
29803 before loading of return value into hard register(s).
29804
29805 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29806
29807 PR middle-end/89621
29808 * tree-inline.h (struct copy_body_data): Add
29809 dont_remap_vla_if_no_change flag.
29810 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29811 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29812 and remap_type_2 returns false.
29813 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29814 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29815 only from where it is copied to nested contexts.
29816
29817 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29818
29819 PR target/89865
29820 * config/i386/i386.md (RMW operation with LEA peephole):
29821 Use LEAMODE mode attribute instead of SWI mode iterator for
29822 LEA pattern.
29823
29824 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29825
29826 PR target/89848
29827 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29828 Also process XEXP (src, 0) of a shift insn.
29829
29830 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29831
29832 PR middle-end/89725
29833 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29834 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29835
29836 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29837
29838 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29839 test.
29840 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29841 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29842 immediately after first one with df_analyze in between, but rather
29843 process all bbs, queueing ones that need second pass in a worklist,
29844 df_analyze, process queued debug insn changes and if second pass is
29845 needed, process bbs from worklist, df_analyze, process queued debug
29846 insns again.
29847
29848 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29849 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29850 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29851
29852 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29853
29854 PR c/79022
29855 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29856 definition.
29857
29858 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29859
29860 PR target/85667
29861 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29862 function for 32-bit MS_ABI.
29863 (function_value_ms_32): New function.
29864
29865 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29866
29867 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29868 (movdi): Call gen_movdi_symbol_save_scc.
29869 (gen_movdi_symbol_save_scc): New insn and split.
29870
29871 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29872
29873 PR rtl-optimization/89313
29874 * function.c (matching_constraint_num): New static function.
29875 (match_asm_constraints_1): Use it. Fixup white space and comment.
29876 Don't replace inputs with non-matching constraints which conflict
29877 with early clobber outputs.
29878
29879 2019-03-27 Jeff Law <law@redhat.com>
29880
29881 PR rtl-optimization/87761
29882 PR rtl-optimization/89826
29883 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29884 slightly later.
29885 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29886 note problem to get REG_DEAD/REG_UNUSED notes updated.
29887
29888 2019-03-27 Richard Biener <rguenther@suse.de>
29889
29890 PR tree-optimization/89463
29891 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29892 queue edges to remove.
29893 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29894 dead stmts. Delay edge removal until PHIs are removed to
29895 make debug-stmt creation not confused by seemingly degenerate
29896 PHIs.
29897
29898 2019-03-27 Alan Modra <amodra@gmail.com>
29899
29900 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29901 throughout file.
29902 * config/rs6000/darwin.h: Likewise.
29903 * config/rs6000/rs6000.c: Likewise.
29904
29905 2019-03-27 Alan Modra <amodra@gmail.com>
29906
29907 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29908 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29909
29910 2019-03-26 Andrew Waterman <andrew@sifive.com>
29911 Jim Wilson <jimw@sifive.com>
29912
29913 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29914 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29915 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29916 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29917 (generic_alu): Add auipc to type list.
29918 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29919 (riscv_microarchitecture): Declare.
29920 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29921 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29922 field.
29923 (riscv_microarchitecture): New.
29924 (sifive_7_tune_info): New.
29925 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29926 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29927 entries.
29928 (riscv_store_data_bypass_p): New.
29929 (riscv_option_override): Set riscv_microarchitecture from
29930 cpu->microarchitecture.
29931 * config/riscv/riscv.md: Include sifive-7.md.
29932 (type): Add auipc.
29933 (tune): New.
29934 (auipc<mode>): Change type to auipc.
29935 (restore_stack_nonlocal): New.
29936 * config/riscv/sifive-7.md: New.
29937 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29938
29939 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29940
29941 PR target/89827
29942 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29943 Also process XEXP (src, 0) of a shift insn.
29944
29945 2019-03-26 Richard Biener <rguenther@suse.de>
29946
29947 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29948 (copy_debug_stmt): Likewise.
29949 (expand_call_inline): Likewise.
29950 (copy_bb): Avoid redundant lookup & set of gimple_block.
29951 * gimple-low.c (lower_gimple_return): Likewise.
29952 (lower_builtin_setjmp): Likewise.
29953
29954 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29955
29956 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29957 is constant 0, turn into static const data member initialized to false.
29958 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29959 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29960
29961 2019-03-26 Jason Merrill <jason@redhat.com>
29962 Jakub Jelinek <jakub@redhat.com>
29963
29964 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29965 method.
29966 (mem_alloc_description::release_object_overhead): Fix comment typos.
29967 * hash-table.h (hash_table::~hash_table): Call
29968 release_instance_overhead only if m_entries is non-NULL, otherwise
29969 call unregister_descriptor.
29970
29971 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29972
29973 PR tree-optimization/81740
29974 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29975 In case of outer loop vectorization, check for backward dependence
29976 at the inner loop if outer loop dependence is reversed.
29977
29978 2019-03-26 Alan Modra <amodra@gmail.com>
29979
29980 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29981 rs6000_vector_mem init. Correct wI and wJ comment.
29982
29983 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29984
29985 PR rtl-optimization/88347
29986 PR rtl-optimization/88423
29987 * sched-deps.c (sched_analyze_insn): Take into account that for
29988 tablejumps the barrier appears after a label and a jump_table_data.
29989
29990 2019-03-25 Martin Sebor <msebor@redhat.com>
29991
29992 PR c/89812
29993 * c-common.c (check_user_alignment): Rename local. Correct maximum
29994 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29995 convert it to UHWI when it fits.
29996
29997 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29998
29999 PR debug/86964
30000 * dwarf2out.c (premark_used_variables): New function.
30001 (prune_unused_types_walk): Do not mark not premarked external
30002 variables.
30003 (prune_unused_types): Call premark_used_variables.
30004
30005 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30006
30007 PR rtl-optimization/89676
30008 * lra-constraints.c (curr_insn_transform): Do match reload for
30009 early clobbers when the match was successful only for different
30010 registers.
30011
30012 2019-03-25 Martin Sebor <msebor@redhat.com>
30013
30014 * doc/extend.texi (Common Type Attributes): Document vector_size.
30015 (Common Variable Attributes): Mention size constraint. Correct
30016 quoting and typos.
30017 (Vector Extensions): Use @dfn when defining bas type. Clarify
30018 base type and size constraints.
30019
30020 2019-03-25 Richard Biener <rguenther@suse.de>
30021
30022 PR tree-optimization/89789
30023 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30024 changes from non-undefined back to undefined.
30025
30026 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30027
30028 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30029 heap string and a gc string, but since this variable is unknown to
30030 ggc the gc string might get reused and corrupted. Fixed by always
30031 using a heap string.
30032
30033 2019-03-25 Richard Biener <rguenther@suse.de>
30034
30035 PR tree-optimization/89779
30036 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30037 to remove IV defs, delay actual removal.
30038 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30039 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30040 very end, properly also reset loop control IV information.
30041
30042 2019-03-25 Richard Biener <rguenther@suse.de>
30043
30044 PR tree-optimization/89802
30045 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30046 move EH data to folded stmt.
30047
30048 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30049
30050 * config/s390/s390-builtin-types.def: Remove few unused types and
30051 fix sort order for others.
30052
30053 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30054
30055 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30056 expected and found types with -mdebug during builtin matching.
30057
30058 2019-03-25 Richard Biener <rguenther@suse.de>
30059
30060 PR middle-end/89790
30061 * fold-const.c (operand_equal_p): Revert last change with
30062 updated comment.
30063
30064 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30065
30066 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30067 notes for the result of the __tls_get_addr calls.
30068 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30069
30070 2019-03-24 Jeff Law <law@redhat.com>
30071
30072 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30073
30074 PR rtl-optimization/87761
30075 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30076 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30077 as needed.
30078 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30079 rescans. Reprocess blocks as needed, calling df_analyze before
30080 reprocessing. Always call df_analyze before fixing up debug bind
30081 insns.
30082
30083 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30084
30085 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30086 big endian.
30087
30088 2019-03-22 Andrew Pinski <apinski@marvell.com>
30089
30090 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30091 attrribute for uxtw.
30092
30093 2019-03-26 Jeff Law <law@redhat.com>
30094
30095 PR rtl-optimization/87761
30096 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30097 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30098 (mips_split_move): Accept new INSN argument. Try to forward SRC
30099 into the next instruction.
30100 (mips_split_move_insn): Pass INSN through to mips_split_move.
30101
30102 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30103
30104 PR rtl-optimization/89676
30105 * lra-constraints.c (curr_insn_transform): Do match reload for
30106 early clobbers even if the match was successful.
30107
30108 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30109
30110 PR c++/87481
30111 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30112
30113 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30114
30115 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30116
30117 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30118
30119 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30120 <avx512>_fmsub_<mode>_mask3<round_name>,
30121 <avx512>_fnmadd_<mode>_mask3<round_name>,
30122 <avx512>_fnmsub_<mode>_mask3<round_name>,
30123 avx512f_vmfmadd_<mode>_mask3<round_name>,
30124 avx512f_vmfmsub_<mode>_mask3<round_name>,
30125 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30126 instead of register_operand and %v instead of v for match_operand 1.
30127 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30128 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30129 <round_nimm_predicate> instead of register_operand and %v instead of v
30130 for match_operand 1.
30131
30132 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30133 <avx512>_fmadd_<mode>_mask3<round_name>,
30134 <avx512>_fmsub_<mode>_mask<round_name>,
30135 <avx512>_fmsub_<mode>_mask3<round_name>,
30136 <avx512>_fnmadd_<mode>_mask<round_name>,
30137 <avx512>_fnmadd_<mode>_mask3<round_name>,
30138 <avx512>_fnmsub_<mode>_mask<round_name>,
30139 <avx512>_fnmsub_<mode>_mask3<round_name>,
30140 <avx512>_fmaddsub_<mode>_mask<round_name>,
30141 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30142 <avx512>_fmsubadd_<mode>_mask<round_name>,
30143 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30144 <round_nimm_predicate> instead of nonimmediate_operand.
30145 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30146 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30147 Use register_operand instead of <round_nimm_predicate> for the
30148 operand that needs to match output.
30149 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30150 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30151 Likewise. Formatting fixes.
30152
30153 PR target/89784
30154 * config/i386/i386.c (enum ix86_builtins): Remove
30155 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30156 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30157 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30158 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30159 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30160 __builtin_ia32_vfmsubss3_mask3): New builtins.
30161 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30162 avx512f_vmfmadd_<mode>_mask3<round_name>,
30163 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30164 *avx512f_vmfmsub_<mode>_mask<round_name>,
30165 avx512f_vmfmsub_<mode>_mask3<round_name>,
30166 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30167 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30168 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30169 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30170 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30171 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30172 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30173 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30174 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30175 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30176 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30177 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30178 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30179 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30180 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30181 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30182 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30183 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30184 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30185 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30186 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30187 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30188 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30189 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30190 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30191 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30192 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30193 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30194
30195 2019-03-21 Martin Sebor <msebor@redhat.com>
30196
30197 PR tree-optimization/89350
30198 * builtins.c (compute_objsize): Also ignore offsets whose upper
30199 bound is negative.
30200 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30201 (builtin_memref::builtin_memref): Initialize new member.
30202 Allow EXPR to be null.
30203 (builtin_memref::extend_offset_range): Replace local with a member.
30204 Avoid assuming pointer offsets are unsigned.
30205 (builtin_memref::set_base_and_offset): Determine base object
30206 before computing offset range.
30207 (builtin_access::builtin_access): Handle memset.
30208 (builtin_access::generic_overlap): Replace local with a member.
30209 (builtin_access::strcat_overlap): Same.
30210 (builtin_access::overlap): Same.
30211 (maybe_diag_overlap): Same.
30212 (maybe_diag_access_bounds): Same.
30213 (wrestrict_dom_walker::check_call): Handle memset.
30214 (check_bounds_or_overlap): Same.
30215
30216 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30217 Jakub Jelinek <jakub@redhat.com>
30218
30219 PR lto/89692
30220 * tree.c (fld_type_variant, fld_incomplete_type_of,
30221 fld_process_array_type): Call fld->pset.add and don't call
30222 add_tree_to_fld_list if it returns true.
30223 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30224 non-marked types from TYPE_NEXT_VARIANT list.
30225 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30226
30227 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30228
30229 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30230 to false, if true, don't alloc_entries during construction, but defer
30231 it to the first method that needs m_entries allocated.
30232 (hash_table::hash_table, hash_table::~hash_table,
30233 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30234 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30235 hash_table::clear_slot, hash_table::traverse_noresize,
30236 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30237 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30238 false.
30239 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30240 NO_INSERT instead of find_with_hash.
30241 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30242 hash_set::m_table): Add Lazy to template params of hash_table.
30243 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30244 * attribs.c (test_attribute_exclusions): Likewise.
30245 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30246 hash_set. Add tests for hash_set with Lazy = true.
30247
30248 2019-03-21 Richard Biener <rguenther@suse.de>
30249
30250 PR tree-optimization/89779
30251 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30252 checks with respect to released SSA names now having error_mark_node
30253 type.
30254 * fold-const.c (operand_equal_p): Likewise.
30255
30256 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30257
30258 PR target/89775
30259 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30260 available to ...
30261 (s390_optimize_register_info): Use global_not_special_regno_p to
30262 check for global regs.
30263
30264 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30265
30266 PR target/89752
30267 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30268 update this_alternative nor this_alternative_set.
30269
30270 2019-03-19 Jim Wilson <jimw@sifive.com>
30271
30272 PR target/89411
30273 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30274 align, size, offset. Use them to handle a BLKmode reference. Update
30275 comment.
30276 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30277
30278 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30279
30280 PR rtl-optimization/89768
30281 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30282 instead of GEN_INT.
30283 (unroll_loop_runtime_iterations): Likewise.
30284
30285 2019-03-19 Martin Sebor <msebor@redhat.com>
30286
30287 PR tree-optimization/89644
30288 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30289 rather than endptr as an indicator of nul-termination.
30290
30291 PR tree-optimization/89644
30292 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30293 arrays in determining sequence sizes in strncpy and stpncpy.
30294
30295 2019-03-19 Martin Liska <mliska@suse.cz>
30296
30297 PR middle-end/89737
30298 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30299 unlikely_edges if there's an edge that belongs to both these sets.
30300
30301 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30302
30303 PR target/89746
30304 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30305 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30306 go via a stack temporary.
30307
30308 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30309
30310 PR target/89378
30311 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30312 instead of gen_rtx_SUBREG.
30313 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30314
30315 2019-03-19 Richard Biener <rguenther@suse.de>
30316
30317 PR debug/88389
30318 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30319
30320 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30321
30322 PR lto/87809
30323 PR lto/89335
30324 * tree.c (free_lang_data_in_decl): Do not free context of C++
30325 destrutors.
30326
30327 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30328
30329 PR target/89506
30330 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30331 subs for the first alternative except when operands[3] is 1.
30332
30333 PR target/89752
30334 * gimplify.c (gimplify_asm_expr): For output argument with
30335 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30336 diagnose error.
30337
30338 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30339
30340 PR rtl-optimization/89753
30341 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30342 explicit unrolling factor even more robust.
30343
30344 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30345
30346 PR target/89726
30347 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30348 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30349 signed zeros, do another copysign after the compensation.
30350
30351 2019-03-18 Martin Sebor <msebor@redhat.com>
30352
30353 PR tree-optimization/89720
30354 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30355 more conservatively, the same as anti-range.
30356
30357 2019-03-18 Richard Biener <rguenther@suse.de>
30358
30359 PR middle-end/88945
30360 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30361 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30362 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30363 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30364
30365 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30366
30367 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30368 Extend queue to 1024 entries.
30369 Add "consumed" field.
30370 (gomp_print_output): Remove print_index parameter.
30371 Add final parameter.
30372 Change limit to unsigned.
30373 Use consumed field to implement circular buffer.
30374 Detect interrupted print in final pass.
30375 Flush output at the end.
30376 (run): Update gomp_print_output usage.
30377 (main): Initialize kernargs->output_data.consumed.
30378
30379 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30380
30381 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30382 calculation of the minimum number of scalar iterations for
30383 fully-predicated loops.
30384
30385 2019-03-18 Martin Jambor <mjambor@suse.cz>
30386
30387 PR tree-optimization/89546
30388 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30389 any propagation to its children took place.
30390
30391 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30392
30393 PR target/89627
30394 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30395 parameter, and make use of it.
30396 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30397
30398 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30399
30400 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30401 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30402 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30403 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30404 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30405 match what the ops is doing.
30406 (push_multi_fp_blink): Likewise.
30407 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30408 compiling for size and elf target.
30409 (arc_save_callee_enter): Adjust note to match what enter/leave
30410 operation does.
30411
30412 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30413
30414 * config/arc/arc.md (tst_movb): Fix constraint.
30415
30416 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30417
30418 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30419
30420 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30421
30422 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30423 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30424 reg_alloc_order references.
30425 (size_alloc_order): Define.
30426 (arc_adjust_reg_alloc_order): New function.
30427 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30428 order.
30429 (ADJUST_REG_ALLOC_ORDER): Define.
30430 (HONOR_REG_ALLOC_ORDER): Likewise.
30431
30432 2019-03-18 Richard Biener <rguenther@suse.de>
30433
30434 PR target/87561
30435 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30436 loads and stores a bit more.
30437
30438 2019-03-18 Richard Biener <rguenther@suse.de>
30439
30440 PR target/87561
30441 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30442 load pessimization to stores as well.
30443
30444 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30445
30446 PR middle-end/86979
30447 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30448 successor, use NULL as its av set.
30449
30450 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30451
30452 PR rtl-optimization/89721
30453 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30454
30455 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30456
30457 PR target/87532
30458 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30459 When handling vec_extract, use modular arithmetic to allow
30460 constant selectors greater than vector length.
30461 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30462 V1TImode vectors to have constant selector values greater than 0.
30463 Use modular arithmetic to compute vector index.
30464 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30465 index for in-memory vectors. Correct code generation for
30466 in-register vectors.
30467 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30468 compute index.
30469
30470 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30471
30472 PR c++/88534
30473 PR c++/88537
30474 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30475 VAR_DECL args.
30476
30477 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30478
30479 PR c++/89709
30480 * tree.c (inchash::add_expr): Strip any location wrappers.
30481 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30482 after hash verification.
30483
30484 PR debug/89704
30485 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30486 SIGN_EXTEND and ZERO_EXTEND.
30487
30488 2019-03-14 Jason Merrill <jason@redhat.com>
30489 Jakub Jelinek <jakub@redhat.com>
30490
30491 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30492 than if is_empty (*slot).
30493 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30494 existing elt and for elt removal.
30495 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30496 of already removed elt.
30497
30498 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30499
30500 PR target/89650
30501 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30502 REG_EH_REGION note.
30503
30504 2019-03-14 Martin Liska <mliska@suse.cz>
30505
30506 PR other/89712
30507 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30508
30509 2019-03-14 Richard Biener <rguenther@suse.de>
30510
30511 PR target/89711
30512 * config/i386/i386.c (make_resolver_func): Properly set
30513 DECL_CONTEXT on the RESULT_DECL.
30514 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30515
30516 2019-03-14 Richard Biener <rguenther@suse.de>
30517
30518 * gimple-pretty-print.c: Include cfgloop.h.
30519 (dump_gimple_phi): Adjust.
30520 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30521 (pp_cfg_jump): Adjust.
30522 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30523 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30524 (lower_phi_internal_fn): Remove.
30525 (verify_gimple_call): Remove IFN_PHI special-casing.
30526 (dump_function_to_file): Dump IL state.
30527 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30528 done to deal with PHI nodes being present in non-SSA state.
30529
30530 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30531
30532 PR ipa/89684
30533 * multiple_target.c (create_dispatcher_calls): Change
30534 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30535 In the node->iterate_referring loop, push *ref rather than ref, call
30536 ref->remove_reference () and always pass 0 to iterate_referring.
30537
30538 PR rtl-optimization/89679
30539 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30540 would contain a paradoxical SUBREG.
30541
30542 2019-03-14 Richard Biener <rguenther@suse.de>
30543
30544 PR tree-optimization/89710
30545 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30546 safe_dyn_cast.
30547
30548 2019-03-14 Martin Liska <mliska@suse.cz>
30549
30550 * coverage.c (coverage_begin_function): Stream also
30551 end_column.
30552 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30553 documentation about function declaration location.
30554 * gcov-dump.c (tag_function): Print whole range
30555 of function declaration.
30556 * gcov.c (struct function_info): Add end_column field.
30557 (function_info::function_info): Initialize it.
30558 (output_json_intermediate_file): Output {start,end}_column
30559 fields.
30560 (read_graph_file): Read end_column.
30561
30562 2019-03-14 Richard Biener <rguenther@suse.de>
30563
30564 PR middle-end/89698
30565 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30566 that the access types are similar.
30567
30568 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30569
30570 PR tree-optimization/89703
30571 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30572 aren't compatible also with builtin_decl_explicit. Check pure
30573 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30574 and BUILT_IN_STPNCPY{,_CHK}.
30575
30576 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30577
30578 PR target/89523
30579 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30580 addr32 prefix to VSIB address for X32.
30581 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30582 "%M2" to opcode.
30583 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30584 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30585 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30586 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30587 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30588 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30589 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30590 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30591 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30592 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30593 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30594 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30595 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30596 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30597 (*avx512f_scatterdi<mode>): Likewise.
30598
30599 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30600
30601 PR target/85860
30602 * lra-constraints.c (inherit_in_ebb): Update
30603 potential_reload_hard_regs along with live_hard_regs.
30604
30605 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30606
30607 PR debug/89498
30608 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30609 DWARF_OFFSET_SIZE.
30610 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30611
30612 2019-03-13 Martin Sebor <msebor@redhat.com>
30613
30614 PR tree-optimization/89662
30615 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30616 has a size.
30617
30618 2019-03-13 Richard Biener <rguenther@suse.de>
30619
30620 PR middle-end/89677
30621 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30622 throw FP expressions at tree-affine.
30623
30624 2019-03-14 Richard Biener <rguenther@suse.de>
30625
30626 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30627 dump negative integer constants using _Literal (type) -num.
30628
30629 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30630
30631 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30632 nonlocal_value member.
30633
30634 PR middle-end/88588
30635 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30636 (ipa_simd_modify_function_body): Handle PHIs.
30637
30638 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30639
30640 * config/s390/s390.c (s390_option_override_internal): Use more
30641 aggressive inlining parameters.
30642
30643 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30644
30645 * config/s390/3906.md: New file.
30646 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30647 (LONGRUNNING_THRESHOLD): Remove.
30648 (MAX_SCHED_MIX_SCORE): Decrease.
30649 (MAX_SCHED_MIX_DISTANCE): Decrease.
30650 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30651 (struct s390_sched_state): New struct to hold scheduling state.
30652 (S390_SCHED_STATE_NORMAL): Remove.
30653 (S390_SCHED_STATE_CRACKED): Remove.
30654 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30655 (s390_get_sched_attrmask): Use new attribute.
30656 (s390_get_unit_mask): Use new units.
30657 (s390_is_fpd): New function.
30658 (s390_is_fxd): New function.
30659 (s390_is_longrunning): New function.
30660 (s390_sched_score): Use new functions.
30661 (s390_sched_reorder): Likewise.
30662 (s390_sched_variable_issue): Rework and use new functions.
30663 (s390_sched_init): Use new functions.
30664 * config/s390/s390.h (s390_tune_attr): Add z14.
30665 * config/s390/s390.md: Add z14.
30666
30667 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30668
30669 * config/s390/2964.md: Update pipeline description.
30670 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30671 (LONGRUNNING_THRESHOLD): Remove.
30672 (LATENCY_FACTOR): Remove.
30673 (s390_get_unit_mask): Add unit.
30674 (s390_sched_score): Use fxd/fpd.
30675 (s390_sched_variable_issue): Use fxd/fpd.
30676
30677 2019-03-12 Martin Liska <mliska@suse.cz>
30678
30679 * config/i386/i386.c: Reword an error message.
30680
30681 2019-03-12 Martin Jambor <mjambor@suse.cz>
30682
30683 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30684 terminate with newline.
30685
30686 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30687
30688 PR target/52726
30689 * config/s390/s390.md (tabort): Use %wd instead of
30690 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30691 letters and periods.
30692 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30693 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30694 's with %< and %>.
30695
30696 PR middle-end/89663
30697 * builtins.c (expand_builtin_int_roundingfn,
30698 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30699 gcc_unreachable if validate_arglist fails.
30700
30701 2019-03-12 Richard Biener <rguenther@suse.de>
30702
30703 PR tree-optimization/89664
30704 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30705 free the occurance tree after the early out.
30706
30707 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30708
30709 PR middle-end/89655
30710 PR bootstrap/89656
30711 * vr-values.c (vr_values::update_value_range): If
30712 old_vr->varying_p (), don't update it, make new_vr also VARYING
30713 and return false.
30714
30715 2019-03-11 Martin Liska <mliska@suse.cz>
30716
30717 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30718 Fix double string quoting.
30719
30720 2019-03-11 Martin Liska <mliska@suse.cz>
30721
30722 * collect-utils.c (collect_wait): Wrap apostrophes
30723 in gcc internal format with %'.
30724 * collect2.c (main): Likewise.
30725 (scan_prog_file): Likewise.
30726 (scan_libraries): Likewise.
30727 * config/i386/i386.c (ix86_expand_call): Likewise.
30728 (ix86_handle_interrupt_attribute): Likewise.
30729 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30730 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30731 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30732 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30733 * symtab.c (symtab_node::verify_base): Likewise.
30734 * tree-cfg.c (verify_gimple_label): Likewise.
30735 * tree.c (verify_type_variant): Likewise.
30736
30737 2019-03-11 Martin Liska <mliska@suse.cz>
30738
30739 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30740 in a string format message and fix GNU coding style.
30741 (expand_builtin_set_thread_pointer): Likewise.
30742 * common/config/aarch64/aarch64-common.c
30743 (aarch64_rewrite_selected_cpu): Likewise.
30744 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30745 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30746 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30747 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30748 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30749 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30750 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30751 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30752 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30753 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30754 Likewise.
30755 * common/config/riscv/riscv-common.c
30756 (riscv_subset_list::parsing_subset_version): Likewise.
30757 (riscv_subset_list::parse_std_ext): Likewise.
30758 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30759 (riscv_subset_list::parse): Likewise.
30760 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30761 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30762 (aarch64_override_options_internal): Likewise.
30763 (aarch64_validate_mcpu): Likewise.
30764 (aarch64_validate_march): Likewise.
30765 (aarch64_validate_mtune): Likewise.
30766 (aarch64_override_options): Likewise.
30767 * config/alpha/alpha.c (alpha_option_override): Likewise.
30768 * config/arc/arc.c (arc_init): Likewise.
30769 (parse_mrgf_banked_regs_option): Likewise.
30770 (arc_override_options): Likewise.
30771 (arc_expand_builtin_aligned): Likewise.
30772 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30773 (arm_expand_builtin): Likewise.
30774 * config/arm/arm.c (arm_option_check_internal): Likewise.
30775 (arm_configure_build_target): Likewise.
30776 (arm_option_override): Likewise.
30777 (arm_options_perform_arch_sanity_checks): Likewise.
30778 (arm_handle_cmse_nonsecure_entry): Likewise.
30779 (arm_handle_cmse_nonsecure_call): Likewise.
30780 (arm_tls_referenced_p): Likewise.
30781 (thumb1_expand_prologue): Likewise.
30782 * config/avr/avr.c (avr_option_override): Likewise.
30783 * config/bfin/bfin.c (bfin_option_override): Likewise.
30784 * config/c6x/c6x.c (c6x_option_override): Likewise.
30785 * config/cr16/cr16.c (cr16_override_options): Likewise.
30786 * config/cris/cris.c (cris_option_override): Likewise.
30787 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30788 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30789 * config/darwin.c (darwin_override_options): Likewise.
30790 * config/frv/frv.c (frv_expand_builtin): Likewise.
30791 * config/h8300/h8300.c (h8300_option_override): Likewise.
30792 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30793 (ix86_option_override_internal): Likewise.
30794 (warn_once_call_ms2sysv_xlogues): Likewise.
30795 (ix86_expand_prologue): Likewise.
30796 (split_stack_prologue_scratch_regno): Likewise.
30797 (ix86_warn_parameter_passing_abi): Likewise.
30798 * config/ia64/ia64.c (fix_range): Likewise.
30799 * config/m68k/m68k.c (m68k_option_override): Likewise.
30800 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30801 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30802 (mips_set_compression_mode): Likewise.
30803 * config/mmix/mmix.c (mmix_option_override): Likewise.
30804 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30805 * config/msp430/msp430.c (msp430_option_override): Likewise.
30806 * config/nds32/nds32.c (nds32_option_override): Likewise.
30807 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30808 (nios2_option_override): Likewise.
30809 (nios2_expand_custom_builtin): Likewise.
30810 * config/nvptx/mkoffload.c (main): Likewise.
30811 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30812 * config/pa/pa.c (fix_range): Likewise.
30813 (pa_option_override): Likewise.
30814 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30815 (riscv_option_override): Likewise.
30816 * config/rl78/rl78.c (rl78_option_override): Likewise.
30817 * config/rs6000/aix61.h: Likewise.
30818 * config/rs6000/aix71.h: Likewise.
30819 * config/rs6000/aix72.h: Likewise.
30820 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30821 * config/rs6000/freebsd64.h: Likewise.
30822 * config/rs6000/linux64.h: Likewise.
30823 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30824 (rs6000_expand_zeroop_builtin): Likewise.
30825 (rs6000_expand_mtfsb_builtin): Likewise.
30826 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30827 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30828 (rs6000_invalid_builtin): Likewise.
30829 (rs6000_expand_split_stack_prologue): Likewise.
30830 * config/rs6000/rtems.h: Likewise.
30831 * config/rx/rx.c (valid_psw_flag): Likewise.
30832 (rx_expand_builtin): Likewise.
30833 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30834 * config/s390/s390.c (s390_expand_builtin): Likewise.
30835 (s390_function_profiler): Likewise.
30836 (s390_option_override_internal): Likewise.
30837 (s390_option_override): Likewise.
30838 * config/sh/sh.c (sh_option_override): Likewise.
30839 (sh_builtin_saveregs): Likewise.
30840 (sh_fix_range): Likewise.
30841 * config/sh/vxworks.h: Likewise.
30842 * config/sparc/sparc.c (sparc_option_override): Likewise.
30843 * config/spu/spu.c (spu_option_override): Likewise.
30844 (fix_range): Likewise.
30845 * config/visium/visium.c (visium_option_override): Likewise.
30846 (visium_handle_interrupt_attr): Likewise.
30847 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30848 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30849 (dbg_cnt_process_opt): Likewise.
30850 * dwarf2out.c (output_dwarf_version): Likewise.
30851 * except.c (expand_eh_return): Likewise.
30852 * gcc.c (defined): Likewise.
30853 (driver_handle_option): Likewise.
30854 (process_command): Likewise.
30855 (compare_files): Likewise.
30856 (driver::prepare_infiles): Likewise.
30857 (driver::do_spec_on_infiles): Likewise.
30858 (driver::maybe_run_linker): Likewise.
30859 * omp-offload.c (oacc_parse_default_dims): Likewise.
30860 * opts-global.c (handle_common_deferred_options): Likewise.
30861 * opts.c (parse_sanitizer_options): Likewise.
30862 (common_handle_option): Likewise.
30863 (enable_warning_as_error): Likewise.
30864 * passes.c (enable_disable_pass): Likewise.
30865 * plugin.c (parse_plugin_arg_opt): Likewise.
30866 (default_plugin_dir_name): Likewise.
30867 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30868 (default_pch_valid_p): Likewise.
30869 * toplev.c (init_asm_output): Likewise.
30870 (process_options): Likewise.
30871 (toplev::run_self_tests): Likewise.
30872 * tree-cfg.c (verify_gimple_call): Likewise.
30873 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30874 (tree_inlinable_function_p): Likewise.
30875 * var-tracking.c (vt_find_locations): Likewise.
30876
30877 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30878
30879 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30880 only on the else branch.
30881
30882 2019-03-11 Martin Liska <mliska@suse.cz>
30883
30884 * gcov.c (output_intermediate_json_line): Print function
30885 name of each line.
30886 (output_json_intermediate_file): Add new argument.
30887 * doc/gcov.texi: Document the change.
30888
30889 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30890
30891 PR rtl-optimization/89588
30892 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30893 explicit unrolling factor more robust.
30894
30895 2019-03-11 Richard Biener <rguenther@suse.de>
30896
30897 PR tree-optimization/89649
30898 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30899 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30900 on the prolog and epilog loops.
30901 (vect_loop_versioning): Return copy of loop.
30902 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30903 on the non-vectorized version of the loop.
30904
30905 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30906
30907 PR target/68924
30908 * config/i386/sse.md (*vec_extractv2di_0_sse):
30909 Add (=r,x) alternative and corresponding splitter.
30910
30911 2019-03-10 Martin Jambor <mjambor@suse.cz>
30912
30913 PR tree-optimization/85762
30914 PR tree-optimization/87008
30915 PR tree-optimization/85459
30916 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30917 it points to if there is a type changing MEM_REF. Adjust all callers.
30918 (build_accesses_from_assign): Disable total scalarization if
30919 contains_vce_or_bfcref_p returns true through the new parameter, for
30920 both rhs and lhs.
30921
30922 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30923
30924 PR c/88568
30925 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30926 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30927
30928 PR target/79645
30929 * common.opt (fdiagnostics-show-labels,
30930 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30931 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30932 gas-locview-support, ginline-points, ginternal-reset-location-views):
30933 Terminate description text with a dot.
30934 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30935 * config/mcore/mcore.opt (m210, m340): Likewise.
30936 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30937 mnops=): Start description text with a capital letter.
30938 * config/arc/arc.opt (msize-level=): Likewise.
30939 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30940 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30941 mnewlib): Likewise.
30942 * config/ft32/ft32.opt (msim): Likewise.
30943 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30944 (mnodiv, mnopm): Terminate description text with a dot.
30945 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30946 a colon.
30947 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30948 Likewise.
30949 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30950 text.
30951
30952 PR rtl-optimization/89634
30953 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30954 are modified in BB_END (e->src) instruction.
30955
30956 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30957
30958 PR target/79926
30959 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30960 messages more amenable to translation, and improve wording.
30961
30962 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30963
30964 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30965 ud- and du-chains between phases.
30966
30967 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30968
30969 PR debug/89631
30970 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30971 instead of POLY_INT_CST.
30972
30973 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30974
30975 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30976 requirement.
30977
30978 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30979
30980 PR target/68924
30981 PR target/78782
30982 PR target/87558
30983 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30984 (_mm_storeu_si64): Ditto.
30985
30986 2019-03-08 Martin Liska <mliska@suse.cz>
30987
30988 PR target/86952
30989 * config/i386/i386.c (ix86_option_override_internal): Disable
30990 jump tables when retpolines are used.
30991
30992 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30993
30994 PR go/63560
30995 * ipa-split.c (execute_split_functions): Do not split
30996 'noinline' or 'section' function.
30997
30998 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30999
31000 PR target/79846
31001 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31002 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31003 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31004
31005 PR ipa/80000
31006 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31007 from diagnostics. Formatting fixes.
31008
31009 PR target/85665
31010 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31011 warn_odr diagnostics.
31012
31013 PR other/80058
31014 * lra-constraints.c (process_alt_operands): Avoid one space before
31015 " at the end of line and another after " on another line in a string
31016 literal.
31017 * attribs.c (handle_dll_attribute): Likewise.
31018 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31019
31020 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31021 warning_at or inform messages in G_() if there is no ?:.
31022
31023 PR tree-optimization/89550
31024 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31025 returned true. Formatting fixes.
31026 (expand_builtin_strnlen): Formatting fixes.
31027 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31028 if warning_at returned true.
31029 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31030
31031 2019-03-08 Richard Biener <rguenther@suse.de>
31032
31033 PR middle-end/89578
31034 * cfgloop.h (struct loop): Add owned_clique field.
31035 * cfgloopmanip.c (copy_loop_info): Copy it.
31036 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31037 cliques.
31038 * tree-inline.c (copy_loops): Remap owned_clique.
31039 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31040 * lto-streamer-out.c (output_cfg): Likewise.
31041
31042 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31043
31044 PR target/80190
31045 * config/darwin.c: Include intl.h.
31046 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31047 composing the message out of two separate parts.
31048
31049 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31050
31051 PR target/80003
31052 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31053 doesn't start with a capital letter and doesn't end with a dot.
31054 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31055 with a capital letter.
31056 (ix86_mangle_function_version_assembler_name): Likewise.
31057 (ix86_generate_version_dispatcher_body): Likewise.
31058 (fold_builtin_cpu): Likewise.
31059 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31060 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31061 translators, wrap full type name in %qs.
31062
31063 PR translation/79999
31064 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31065 depend clause with source (or sink) modifier.
31066 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31067
31068 PR target/89602
31069 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31070 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31071 (avx512f_load<mode>_mask): New define_expand.
31072 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31073 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31074 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31075 __builtin_ia32_movess_mask): New builtins.
31076 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31077 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31078 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31079 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31080
31081 2019-03-07 Martin Jambor <mjambor@suse.cz>
31082
31083 PR lto/87525
31084 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31085 for extern inline functions.
31086
31087 2019-03-07 Martin Jambor <mjambor@suse.cz>
31088
31089 PR ipa/88235
31090 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31091 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31092 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31093 have multiple callees. At the end check if declarations match as
31094 opposed to cgraph_nodes.
31095
31096 2019-03-07 Martin Liska <mliska@suse.cz>
31097
31098 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31099 which is equivalent to searching for this in clones chain.
31100 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31101 names with a neighbour and special case first node in a chain.
31102
31103 2019-01-25 Jason Merrill <jason@redhat.com>
31104
31105 PR c++/80916 - spurious "static but not defined" warning.
31106 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31107 for an internal symbol with DECL_EXTERNAL.
31108
31109 2019-04-07 Richard Biener <rguenther@suse.de>
31110
31111 PR middle-end/89618
31112 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31113 * tree-inline.c (copy_loops): Simplify.
31114
31115 2019-03-07 Martin Liska <mliska@suse.cz>
31116
31117 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31118
31119 2019-03-07 Richard Biener <rguenther@suse.de>
31120
31121 PR tree-optimization/89595
31122 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31123 stmt iterator as reference, take boolean output parameter to
31124 indicate whether the stmt was removed and thus the iterator
31125 already advanced.
31126 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31127 stmts created by folding.
31128
31129 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31130
31131 PR c++/89585
31132 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31133 at toplevel.
31134
31135 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31136
31137 PR rtl-optimization/88845
31138 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31139 LRA.
31140 * lra.c (remove_scratches_1): New function.
31141 (remove_scratches): Use it.
31142 (lra_emit_move): Likewise.
31143
31144 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31145
31146 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31147 unaligned_access variable.
31148 * config/arc/arc.c (arc_override_options): Set unaligned access
31149 default on for HS CPUs.
31150 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31151
31152 2019-03-06 Martin Liska <mliska@suse.cz>
31153
31154 PR gcov-profile/89577
31155 * doc/gcov.texi: Prefer to use --coverage.
31156 * doc/sourcebuild.texi: Likewise.
31157
31158 2019-03-02 Jason Merrill <jason@redhat.com>
31159
31160 PR c++/86485 - -Wmaybe-unused with empty class ?:
31161 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31162
31163 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31164
31165 PR target/89587
31166 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31167 if_multiarch.
31168
31169 PR middle-end/89590
31170 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31171 exactly one argument.
31172
31173 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31174 Richard Sandiford <richard.sandiford@arm.com>
31175
31176 PR tree-optimization/89570
31177 * match.pd (vec_cond into cond_op simplification): Don't use
31178 get_conditional_internal_fn, use as_internal_fn (cond_op).
31179
31180 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31181
31182 PR target/89222
31183 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31184 to decide when to split off a non-zero offset from a symbol.
31185 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31186 in function symbols.
31187
31188 2019-03-05 Richard Biener <rguenther@suse.de>
31189
31190 PR tree-optimization/89594
31191 * tree-if-conv.c (pass_if_conversion::execute): Handle
31192 case where .LOOP_VECTORIZED_FUNCTION was removed.
31193
31194 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31195
31196 PR bootstrap/89560
31197 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31198 instead alloca it only when needed with the needed size.
31199
31200 PR tree-optimization/89570
31201 * match.pd (vec_cond into cond_op simplification): Guard with
31202 vectorized_internal_fn_supported_p test and #if GIMPLE.
31203
31204 PR tree-optimization/89566
31205 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31206 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31207 Punt if get_user_idx_format succeeds, but idx_format argument is
31208 not provided or doesn't have pointer type, or if idx_args is above
31209 number of provided arguments.
31210
31211 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31212
31213 PR tree-optimization/89437
31214 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31215
31216 2019-03-04 Richard Biener <rguenther@suse.de>
31217
31218 PR middle-end/89572
31219 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31220 safe_dyn_cast.
31221
31222 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31223
31224 PR tree-optimization/89487
31225 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31226 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31227 (distribute_loop): Don't do runtime alias check if there is non-
31228 addressable data reference.
31229 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31230 is a register variable.
31231
31232 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31233
31234 PR target/89506
31235 * config/arm/arm.md (cmpsi2_addneg): Use
31236 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31237 If operands[2] is 0 or INT_MIN, force use of subs.
31238 (*compare_scc splitter): Use gen_int_mode.
31239 (*negscc): Likewise.
31240 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31241
31242 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31243 Monk Chiang <sh.chiang04@gmail.com>
31244
31245 * common/config/riscv/riscv-common.c: Include sstream.
31246 (riscv_subset_list::to_string): New.
31247 (riscv_arch_str): Likewise.
31248 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31249 * config.in: Regen.
31250 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31251 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31252 (riscv_emit_attribute): New.
31253 (riscv_file_start): Emit attribute if needed.
31254 (riscv_option_override): Init riscv_emit_attribute_p.
31255 * config/riscv/riscv.opt (mriscv-attribute): New option.
31256 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31257 * configure: Regen.
31258 * doc/install.texi: Document --with-riscv-attribute.
31259 * doc/invoke.texi: Document -mriscv-attribute.
31260
31261 * common/config/riscv/riscv-common.c:
31262 Include config/riscv/riscv-protos.h.
31263 (INCLUDE_STRING): Defined.
31264 (RISCV_DONT_CARE_VERSION): Defined.
31265 (riscv_subset_t): Declare.
31266 (riscv_subset_t::riscv_subset_t): New.
31267 (riscv_subset_list): Declare.
31268 (riscv_subset_list::riscv_subset_list): New.
31269 (riscv_subset_list::~riscv_subset_list): Likewise.
31270 (riscv_subset_list::parsing_subset_version): Likewise.
31271 (riscv_subset_list::parse_std_ext): Likewise.
31272 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31273 (riscv_subset_list::add): Likewise.
31274 (riscv_subset_list::lookup): Likewise.
31275 (riscv_subset_list::xlen): Likewise.
31276 (riscv_subset_list::parse): Likewise.
31277 (riscv_supported_std_ext): Likewise.
31278 (current_subset_list): Likewise.
31279 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31280 parse.
31281
31282 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31283
31284 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31285 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31286 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31287
31288 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31289
31290 PR rtl-optimization/85899
31291 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31292 fallthru edges leading to the exit block.
31293
31294 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31295
31296 PR target/89517
31297 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31298 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31299
31300 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31301
31302 PR tree-optimization/89535
31303 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31304 for each operand. Calculate the fallback choice for mask operands
31305 and pass it to vect_get_vec_def_for_operand.
31306
31307 2019-03-01 Richard Biener <rguenther@suse.de>
31308
31309 PR middle-end/89541
31310 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31311 get virtual operands.
31312 (get_expr_operands): Handle CONST_DECL like other decls.
31313
31314 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31315
31316 PR middle-end/89503
31317 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31318 on DECL_P and EXPR_P.
31319
31320 2019-03-01 Richard Biener <rguenther@suse.de>
31321
31322 PR middle-end/89497
31323 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31324 argument, defaulted to zero.
31325 * passes.c (execute_function_todo): Pass down SSA update flags
31326 to cleanup_tree_cfg.
31327 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31328 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31329 form if requested.
31330 (cleanup_tree_cfg): Get and pass down SSA update flags.
31331
31332 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31333
31334 PR bootstrap/89539
31335 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31336 early_lto_debug argument.
31337
31338 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31339
31340 PR tree-optimization/89536
31341 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31342 only whether bit #0 of the value is 0 instead of the entire value.
31343
31344 2019-02-28 Marek Polacek <polacek@redhat.com>
31345
31346 PR c++/87068 - missing diagnostic with fallthrough statement.
31347 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31348 at the end of a seq, save its location to walk_stmt_info.
31349 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31350 a switch.
31351
31352 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31353
31354 PR lto/88585
31355 * tree.c (find_atomic_core_type): Move ahead in file.
31356 (check_base_type): Correctly compare alignments of atomic types.
31357
31358 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 PR target/89455
31361 * config/i386/i386.c (get_builtin_code_for_version): Identify
31362 Westmere from PCLMUL, instead of AES.
31363
31364 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31365
31366 PR target/89434
31367 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31368 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31369 -UINTVAL (...).
31370
31371 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31372
31373 PR target/88530
31374 * config/aarch64/aarch64-option-extensions.def: Document it.
31375 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31376 if empty hwcaps.
31377
31378 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31379
31380 PR c/89520
31381 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31382 builtins if they don't have a single scalar floating point argument.
31383 Formatting fixes.
31384
31385 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31386
31387 PR rtl-optimization/89490
31388 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31389 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31390 block section is not mergeable.
31391
31392 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31393
31394 PR target/70341
31395 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31396 old define_insn to ...
31397 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31398 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31399 Rename old define_insn to ...
31400 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31401 (thumb2_casesi_internal_pic): New define_expand. Rename old
31402 define_insn to ...
31403 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31404 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31405 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31406
31407 2019-02-27 Richard Biener <rguenther@suse.de>
31408
31409 PR debug/88878
31410 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31411
31412 2019-02-27 Richard Biener <rguenther@suse.de>
31413
31414 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31415 building.
31416
31417 2019-02-27 Richard Biener <rguenther@suse.de>
31418
31419 PR debug/88878
31420 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31421 parameter, prefix section name with .gnu.debuglto_ if true.
31422 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31423 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31424
31425 2019-02-27 Richard Biener <rguenther@suse.de>
31426
31427 PR debug/89514
31428 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31429 rather than on use_debug_types, doing what output_die does.
31430 (value_format): Likewise.
31431
31432 2019-02-27 Martin Jambor <mjambor@suse.cz>
31433 Martin Sebor <msebor@redhat.com>
31434
31435 * doc/invoke.texi (Warning Options): Reword description of
31436 -Wno-absolute-value.
31437
31438 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31439
31440 PR tree-optimization/89280
31441 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31442 builtin_setjmp_setup_bb): New functions.
31443 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31444 When visiting __builtin_setjmp_setup block, queue in special
31445 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31446 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31447 from visited after the loop if they don't have any visited successor
31448 blocks.
31449
31450 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31451
31452 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31453 New function.
31454 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31455
31456 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31457
31458 PR c++/89507
31459 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31460 with types other than sizetype/ssizetype.
31461
31462 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31463
31464 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31465 (enum sparc_processor_type): ...this.
31466 (enum sparc_code_model_type): New enumeration type.
31467 (enum sparc_memory_model_type): Tweak comments.
31468 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31469 (mtune): Likewise.
31470 (mcmodel): Use sparc_code_model enumeration and variable.
31471 (sparc_code_model): New enumeration.
31472 (mdebug): Add Undocumented marker.
31473 * config/sparc/sparc.h (enum cmodel): Delete.
31474 (sparc_cmodel): Likewise.
31475 (TARGET_CM_MEDLOW): Adjust to above renaming.
31476 (TARGET_CM_MEDMID): Likewise.
31477 (TARGET_CM_MEDANY): Likewise.
31478 (TARGET_CM_EMBMEDANY): Likewise.
31479 * config/sparc/sparc.c (sparc_cmodel): Delete.
31480 (sparc_option_override): Remove string/value mapping support for the
31481 code model. Move code and memory model support to after the handling
31482 of target flags. Do private machine setup last.
31483 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31484 (sparc_legitimize_reload_address): Likewise.
31485 (sparc_output_mi_thunk): Likewise.
31486 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31487
31488 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31489
31490 PR tree-optimization/89500
31491 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31492 (handle_builtin_strlen): Remove noncst_bound variable. Always
31493 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31494 cst if the first cst bytes starting at x are known to be non-zero,
31495 even if the string is not zero terminated. Don't try to modify
31496 *si for strnlen. Update strlen_to_stridx only for strlen or if
31497 we can prove strnlen returns the same value as strlen would.
31498
31499 2019-02-26 Martin Liska <mliska@suse.cz>
31500
31501 * alloc-pool.h (struct pool_usage): Remove extra
31502 print_dash_line.
31503 * bitmap.h (struct bitmap_usage): Likewise.
31504 * ggc-common.c (struct ggc_usage): Likewise.
31505 * mem-stats.h (struct mem_usage): Likewise.
31506 (mem_alloc_description::dump): Print dash lines
31507 here and repeat header at the end of a table report.
31508 It's then more readable.
31509 * tree-phinodes.c (phinodes_print_statistics): Make
31510 horizontal alignment.
31511 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31512 * vec.c (struct vec_usage): Remove extra print_dash_line.
31513 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31514
31515 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31516
31517 * doc/extend.texi (__builtin_object_size):
31518 Use @pxref instead of @xref inside parenthesis.
31519 (__builtin_has_attribute): Add missing comma after @xref.
31520 (__builtin_object_size): Ditto.
31521 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31522
31523 2019-02-26 Jeff Law <law@redhat.com>
31524
31525 PR rtl-optimization/87761
31526 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31527 detect obviously dead insns and delete them.
31528
31529 2019-02-26 Richard Biener <rguenther@suse.de>
31530
31531 PR tree-optimization/89505
31532 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31533 to handle restrict pointed-to vars with multiple subvars
31534 correctly.
31535
31536 2019-02-26 Richard Biener <rguenther@suse.de>
31537
31538 PR tree-optimization/89489
31539 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31540
31541 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31542
31543 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31544 and move around comment.
31545 <BIT_AND_EXPR>: Likewise.
31546 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31547
31548 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31549
31550 PR target/89474
31551 * config/i386/i386.c (remove_partial_avx_dependency): Call
31552 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31553 after changing possibly many instructions to use that pseudo. Fix up
31554 insertion of v4sf_const0 setter at the start of bb.
31555
31556 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31557
31558 PR c/80409
31559 * doc/extend.texi (Variadic Pointer Args): New section.
31560
31561 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31562 Martin Sebor <msebor@gmail.com>
31563
31564 * common.opt (Wattribute-alias): Likewise.
31565 * doc/invoke.texi (Option Summary): List general form of
31566 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31567 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31568 Add cross-references.
31569 (-Wattribute-alias): Rewrite and correct default. Mention
31570 considered attributes (same as for -Wmissing-attributes).
31571
31572 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31573
31574 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31575 (_mm_cvtpd_ps): Likewise.
31576 (_mm_cvttpd_epi32): Likewise.
31577
31578 PR target/89338
31579 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31580 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31581
31582 PR target/89339
31583 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31584
31585 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31586
31587 PR target/88530
31588 * common/config/aarch64/aarch64-common.c
31589 (struct aarch64_option_extension): Add is_synthetic.
31590 (all_extensions): Use it.
31591 (TARGET_OPTION_INIT_STRUCT): Define hook.
31592 (struct gcc_targetm_common): Moved to end.
31593 (all_extensions_by_on): New.
31594 (opt_ext_cmp, typedef opt_ext): New.
31595 (aarch64_option_init_struct): New.
31596 (aarch64_contains_opt): New.
31597 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31598 * config/aarch64/aarch64-option-extensions.def
31599 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31600 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31601 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31602 Set is_synthetic to false.
31603 (crypto): Set is_synthetic to true.
31604 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31605 SYNTHETIC.
31606
31607 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31608
31609 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31610 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31611 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31612 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31613 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31614 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31615 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31616 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31617 Rename ...
31618 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31619 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31620 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31621 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31622 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31623 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31624 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31625 vfmlsl_laneq_high_f16): ... To this.
31626 * config/arm/neon.md: Update comments.
31627
31628 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31629
31630 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31631 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31632 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31633 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31634 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31635 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31636 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31637 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31638 Rename ...
31639 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31640 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31641 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31642 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31643 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31644 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31645 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31646 vfmlslq_laneq_high_f16): ... To this.
31647
31648 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31649
31650 PR rtl-optimization/86096
31651 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31652 comparing mw_order values.
31653
31654 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31655
31656 PR target/89434
31657 * config/arm/arm.md (*subsi3_carryin_const): Use
31658 arm_neg_immediate_operand predicate instead of
31659 arm_not_immediate_operand, "L" constraint instead of "K" and
31660 print it using %n2 instead of %B2.
31661 (*subsi3_carryin_const0): New define_insn.
31662 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31663 instead of arm_not_operand and "I" constraint instead of "K" and
31664 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31665 another match_operand and in the condition check that it is negation
31666 of operands[2].
31667 (*subsi3_carryin_compare_const0): New define_ins.
31668 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31669 *subsi3_carryin_const.
31670 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31671 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31672
31673 PR target/89438
31674 * config/arm.vfp.md (*negdf2_vfp): Use
31675 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31676 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31677
31678 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31679
31680 PR rtl-optimization/89445
31681 * simplify-rtx.c (simplify_ternary_operation): Don't use
31682 simplify_merge_mask on operands that may trap.
31683 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31684 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31685 second operand is CONST_VECTOR, check if any element could be zero.
31686 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31687 their operands can trap.
31688
31689 2019-02-23 Martin Sebor <msebor@redhat.com>
31690
31691 * gimple-ssa-sprintf.c (target_strtol): Rename...
31692 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31693 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31694 check for range error.
31695
31696 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31697
31698 PR driver/69471
31699 * opts-common.c (prune_options): Also prune joined switches
31700 with Negative and RejectNegative.
31701 * config/i386/i386.opt (march=): Add Negative(march=).
31702 (mtune=): Add Negative(mtune=).
31703 * doc/options.texi: Document Negative used together with Joined
31704 and RejectNegative.
31705
31706 2019-02-22 Martin Sebor <msebor@redhat.com>
31707
31708 * doc/extend.texi (Other Builtins): Add
31709 __builtin_is_constant_evaluated.
31710
31711 2019-02-22 Richard Biener <rguenther@suse.de>
31712
31713 PR tree-optimization/87609
31714 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31715
31716 2019-02-22 Jeff Law <law@redhat.com>
31717
31718 PR rtl-optimization/87761
31719 * config/mips/mips.md: Add new combiner pattern to recognize
31720 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31721
31722 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31723
31724 PR target/89324
31725 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31726 destination register in peepholes generating patterns for ADDS/SUBS.
31727 (add<mode>3_compare0,
31728 *addsi3_compare0_uxtw, add<mode>3_compareC,
31729 add<mode>3_compareV_imm, add<mode>3_compareV,
31730 *adds_<optab><ALLX:mode>_<GPI:mode>,
31731 *subs_<optab><ALLX:mode>_<GPI:mode>,
31732 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31733 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31734 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31735 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31736 sub<mode>3_compare1): Allow stack pointer for source register.
31737 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31738
31739 2019-02-22 Martin Sebor <msebor@redhat.com>
31740
31741 PR tree-optimization/88993
31742 PR tree-optimization/88853
31743 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31744 New helper.
31745 (sprintf_dom_walker::call_info::is_string_func): New helper.
31746 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31747 for formatted string functions.
31748 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31749
31750 2019-02-22 Martin Sebor <msebor@redhat.com>
31751
31752 PR c/89425
31753 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31754 unreachable subexpressions.
31755
31756 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31757 Hongtao Liu <hongtao.liu@intel.com>
31758 Sunil K Pandey <sunil.k.pandey@intel.com>
31759
31760 PR target/87007
31761 * config/i386/i386-passes.def: Add
31762 pass_remove_partial_avx_dependency.
31763 * config/i386/i386-protos.h
31764 (make_pass_remove_partial_avx_dependency): New.
31765 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31766 New function.
31767 (pass_data_remove_partial_avx_dependency): New.
31768 (pass_remove_partial_avx_dependency): Likewise.
31769 (make_pass_remove_partial_avx_dependency): Likewise.
31770 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31771 (*extendsfdf2): Add avx_partial_xmm_update.
31772 (truncdfsf2): Likewise.
31773 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31774 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31775
31776 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31777
31778 PR middle-end/85598
31779 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31780 analysis for pass.
31781
31782 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31783
31784 PR target/89444
31785 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31786 (PTA_SKYLAKE): Add PTA_AES.
31787 (PTA_GOLDMONT): Likewise.
31788
31789 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31790
31791 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31792 instruction if enabled.
31793 (aarch64_override_options): Remove reference to return address key.
31794
31795 2019-02-22 Richard Biener <rguenther@suse.de>
31796
31797 PR tree-optimization/89440
31798 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31799 not necessary assert.
31800
31801 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31802
31803 PR fortran/72741
31804 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31805 (oacc_replace_fn_attrib_attr): ... this new function.
31806 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31807 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31808
31809 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31810
31811 * config/arm/arm-cpus.in (ares): Rename to...
31812 (neoverse-n1): ... This. Add ares as alias.
31813 * config/arm/arm-tables.opt: Regenerate.
31814 * config/arm/arm-tune.md: Likewise.
31815 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31816
31817 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31818
31819 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31820 * config/aarch64/aarch64-tune.md: Regenerate.
31821 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31822
31823 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31824
31825 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31826 (neoversen1_tunings): ... This.
31827 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31828 (neoverse-n1): New CPU.
31829 * config/aarch64/aarch64-tune.md: Regenerate.
31830 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31831
31832 2019-02-22 Richard Biener <rguenther@suse.de>
31833
31834 PR middle-end/87609
31835 * cfghooks.h (dependence_hash): New typedef.
31836 (struct copy_bb_data): New type.
31837 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31838 (duplicate_block): Likewise.
31839 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31840 (copy_bbs): Create and pass down copy_bb_data.
31841 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31842 (rtl_duplicate_bb): Likewise.
31843 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31844 remap dependence info.
31845
31846 2019-02-22 Richard Biener <rguenther@suse.de>
31847
31848 PR tree-optimization/87609
31849 * tree-core.h (tree_base): Document special clique values.
31850 * tree-inline.c (remap_dependence_clique): Do not use the
31851 special clique value of one.
31852 (maybe_set_dependence_info): Use clique one.
31853 (clear_dependence_clique): New callback.
31854 (compute_dependence_clique): Clear clique one from all refs
31855 before assigning it (again).
31856
31857 2019-02-21 Martin Sebor <msebor@redhat.com>
31858
31859 * doc/extend.texi (__clear_cache): Correct signature.
31860
31861 2019-02-21 Ian Lance Taylor <iant@golang.org>
31862
31863 PR go/89170
31864 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31865 than output_constant_def.
31866 (add_constant_to_table): New static function.
31867 (output_constant_def): Call add_constant_to_table.
31868 (tree_output_constant_def): Likewise.
31869
31870 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31871
31872 PR c++/89285
31873 * builtins.c (fold_builtin_arith_overflow): If first two args are
31874 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31875 to ifn.
31876
31877 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31878
31879 PR target/87412
31880 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31881 error for -mindirect-branch/-mfunction-return with incompatible
31882 -fcf-protection.
31883
31884 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31885
31886 PR bootstrap/88714
31887 * constraints.md (q): Remove.
31888 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31889 instead of q.
31890
31891 2019-02-21 Martin Jambor <mjambor@suse.cz>
31892
31893 PR hsa/89302
31894 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31895 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31896 (omp_adjust_for_condition): ...here. Added necessary parameters.
31897 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31898 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31899 proper values to new parameters of omp_adjust_for_condition.
31900
31901 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31902
31903 PR middle-end/89412
31904 * expr.c (expand_assignment): If result is a MEM, use change_address
31905 instead of simplify_gen_subreg.
31906
31907 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31908 David Malcolm <dmalcolm@redhat.com>
31909
31910 PR middle-end/89091
31911 * fold-const.c (decode_field_reference): Return NULL_TREE if
31912 lang_hooks.types.type_for_size returns NULL. Check it before
31913 overwriting *exp_. Use return NULL_TREE instead of return 0.
31914
31915 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31916
31917 PR middle-end/88074
31918 PR middle-end/89415
31919 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31920 buggy mpc_norm.
31921
31922 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31923
31924 PR target/89397
31925 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31926 TARGET_SSE in addition to TARGET_SSE_MATH.
31927
31928 (ix86_excess_precision): Ditto.
31929 (ix86_float_exceptions_rounding_supported_p): Ditto.
31930 (use_rsqrt_p): Ditto.
31931 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31932
31933 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31934
31935 PR c/89410
31936 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31937 linenum_arith_t when determining if two adjacent line spans are
31938 close enough to merge.
31939 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31940 lines within each line_span.
31941
31942 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31943
31944 PR target/86487
31945 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31946 paradoxical SUBREGS.
31947
31948 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31949
31950 PR target/88100
31951 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31952 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31953 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31954 range checking it.
31955
31956 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31957
31958 * config/gcn/gcn.c (print_operand): Fix typo.
31959
31960 2019-02-19 Richard Biener <rguenther@suse.de>
31961
31962 PR middle-end/88074
31963 * toplev.c (do_compile): Initialize mpfr's exponent range
31964 based on available float modes.
31965
31966 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31967
31968 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31969 as long as the epilogue isn't completed.
31970
31971 2019-02-18 Martin Sebor <msebor@redhat.com>
31972
31973 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31974 __has_cpp_attribute, and __has_include.
31975
31976 2019-02-18 Martin Sebor <msebor@redhat.com>
31977
31978 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31979
31980 2019-02-18 Martin Sebor <msebor@redhat.com>
31981
31982 PR middle-end/89294
31983 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31984 expression.
31985 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31986
31987 2019-02-18 Richard Biener <rguenther@suse.de>
31988
31989 PR tree-optimization/89296
31990 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31991 of no-warning flag to cases that might emit the bogus warning.
31992
31993 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31994
31995 PR bootstrap/88714
31996 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31997 "q" constraint.
31998 * config/arm/vfp.md (*movdi_vfp): Likewise.
31999 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32000 "q" constraint for operands[0].
32001
32002 PR target/89369
32003 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32004 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32005 pattern in a temporary buffer.
32006 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32007 than 64-operands[2].
32008
32009 PR target/89361
32010 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32011 s390_indirect_branch_settings): Define unconditionally.
32012 (s390_set_current_function): Likewise, but guard the whole body except
32013 the s390_indirect_branch_settings call with
32014 #if S390_USE_TARGET_ATTRIBUTE.
32015 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32016
32017 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32018 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32019 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32020 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32021 HOST_WIDE_INT_1U instead of 1ULL.
32022 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32023 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32024 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32025 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32026 instead of 1UL.
32027 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32028 instead of 1ul.
32029
32030 2019-02-18 Martin Jambor <mjambor@suse.cz>
32031
32032 PR tree-optimization/89209
32033 * tree-sra.c (create_access_replacement): New optional parameter
32034 reg_tree. Use it as a type if non-NULL and access type is not of
32035 a register type.
32036 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32037 to create_access_replacement.
32038 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32039 Check lacc is non-NULL before attempting to re-create it on the RHS.
32040
32041 2019-02-18 Martin Liska <mliska@suse.cz>
32042
32043 PR ipa/89306
32044 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32045 by default.
32046 (symbol_table::free_edge): Recycle m_summary_id.
32047 * cgraph.h (get_summary_id): New.
32048 (symbol_table::release_symbol): Set m_summary_id to -1
32049 by default.
32050 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32051 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32052 function_summary to fast_function_summary.
32053 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32054 * ipa-pure-const.c (class funct_state_summary_t):
32055 Switch from function_summary to fast_function_summary.
32056 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32057 (class ipa_ref_opt_summary_t): Switch from function_summary
32058 to fast_function_summary.
32059 * symbol-summary.h (class function_summary_base): New class
32060 that is created from base of former function_summary.
32061 (function_summary_base::unregister_hooks): New.
32062 (class function_summary): Inherit from function_summary_base.
32063 (class call_summary_base): New class
32064 that is created from base of former call_summary.
32065 (class call_summary): Inherit from call_summary_base.
32066 (struct is_same): New.
32067 (class fast_function_summary): New summary class.
32068 (class fast_call_summary): New summary class.
32069 * vec.h (vec_safe_grow_cleared): New function.
32070
32071 2019-02-18 Martin Liska <mliska@suse.cz>
32072
32073 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32074 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32075 * doc/tm.texi: Document new target hook.
32076 * doc/tm.texi.in: Likewise.
32077 * target.def: Add new target macro.
32078 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32079 suffixes.
32080
32081 2019-02-17 Alan Modra <amodra@gmail.com>
32082
32083 PR target/89271
32084 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32085 output reg on add insn.
32086 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32087
32088 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32089
32090 PR target/89372
32091 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32092 (PMULHRSW): Likewise.
32093 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32094 TARGET_AVX2.
32095 (ssse3_pmulhrswv4hi3): New expander.
32096
32097 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32098
32099 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32100 MMX. Add isa attribute.
32101
32102 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32103
32104 PR rtl-optimization/66152
32105 * builtins.h (c_readstr): Declare.
32106 * builtins.c (c_readstr): Remove forward declaration. Add
32107 null_terminated_p argument, if false, read all bytes from the
32108 string instead of stopping after '\0'.
32109 * expr.c (string_cst_read_str): New function.
32110 (store_expr): Use string_cst_read_str instead of
32111 builtin_strncpy_read_str. Try to store by pieces the whole
32112 exp_len first, and only if that fails, split it up into
32113 store by pieces followed by clear_storage. Formatting fix.
32114
32115 * config/i386/i386.md (*movqi_internal): Remove static from
32116 buf variable. Use output_asm_insn (buf, operands); return "";
32117 instead of return buf;.
32118 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32119 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32120 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32121
32122 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32123
32124 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32125 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32126 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32127 (CC1_SPEC): Likewise.
32128 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32129
32130 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32131
32132 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32133 the base address on 64-bit strict-alignment platforms.
32134
32135 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32136
32137 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32138
32139 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32140
32141 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32142
32143 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32144
32145 PR rtl-optimization/88308
32146 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32147 on copied instruction.
32148
32149 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32150
32151 * final.c (insn_current_reference_address): Replace test on JUMP_P
32152 with test on jump_to_label_p.
32153 * config/visium/visium-passes.def: New file.
32154 * config/visium/t-visium (PASSES_EXTRA): Define.
32155 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32156 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32157 (TRAMPOLINE_ALIGNMENT): Define.
32158 * config/visium/visium.c (visium_option_override): Do not register
32159 the machine-specific reorg pass here.
32160 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32161 for the GR6.
32162 (output_branch): Adjust threshold for long branch instruction.
32163 * config/visium/visium.md (cpu): Move around.
32164 (length): Adjust for the GR6.
32165
32166 2019-02-15 Richard Biener <rguenther@suse.de>
32167 Jakub Jelinek <jakub@redhat.com>
32168
32169 PR tree-optimization/89278
32170 * tree-loop-distribution.c: Include tree-eh.h.
32171 (generate_memset_builtin, generate_memcpy_builtin): Call
32172 rewrite_to_non_trapping_overflow on builtin->size before passing it
32173 to force_gimple_operand_gsi.
32174
32175 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32176
32177 PR other/89342
32178 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32179 optimize_debug.
32180 * opth-gen.awk: Likewise.
32181
32182 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32183
32184 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32185 Enable MMX, SSE and SSE2 by default.
32186 * config/i386/i386.c (ix86_option_override_internal): Do not
32187 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32188
32189 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32190
32191 PR rtl-optimization/89354
32192 * combine.c (make_extraction): Punt if extraction_mode is narrower
32193 than len bits.
32194
32195 2019-02-14 Maya Rashish <coypu@sdf.org>
32196
32197 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32198 * config/netbsd-d.c: New file.
32199 * config/t-netbsd: Add netbsd-d.o
32200
32201 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32202
32203 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32204 affects_type_identity to true for aarch64_vector_pcs.
32205 (aarch64_comp_type_attributes): New function.
32206 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32207
32208 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32209
32210 PR target/88850
32211 * config/arm/iterators.md (ANY64): Add V4HF.
32212
32213 2019-02-14 Martin Liska <mliska@suse.cz>
32214
32215 PR rtl-optimization/89242
32216 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32217 process a transformation.
32218
32219 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32220
32221 PR tree-optimization/89314
32222 * fold-const.c (fold_binary_loc): Cast strlen argument to
32223 const char * before dereferencing it. Formatting fixes.
32224
32225 PR middle-end/89284
32226 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32227
32228 2019-02-13 Ian Lance Taylor <iant@golang.org>
32229
32230 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32231 and set current index for other optimizations.
32232
32233 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32234
32235 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32236 nonimmediate_operand as operand 2 predicate.
32237 (vec_set<VF2_512_256:mode>_0): Ditto.
32238 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32239 (*vec_concatv2si): Remove alternative 2.
32240 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32241 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32242 (vec_concatv2di): Split alternatives 4,5,6 to ...
32243 (*vec_concatv2di_0) ... new pattern.
32244
32245 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32246
32247 PR target/89190
32248 * config/arm/arm.c (ldm_stm_operation_p) Set
32249 addr_reg_in_reglist correctly for first register.
32250 (load_multiple_sequence): Remove dead base check.
32251 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32252
32253 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32254
32255 PR target/88847
32256 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32257 Expose as @aarch64_pred_mov.
32258 * config/aarch64/aarch64.c (aarch64_classify_address):
32259 Use expand_insn which legitimizes operands.
32260
32261 2019-02-13 Martin Liska <mliska@suse.cz>
32262
32263 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32264 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32265 and pointer_offset fields.
32266 (initialize_argument_information): Remove usage of dead
32267 fields.
32268 * cgraph.h (struct cgraph_thunk_info): Remove
32269 add_pointer_bounds_args.
32270 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32271 fields.
32272 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32273 fields.
32274 * config/i386/i386.c (ix86_function_arg_advance): Remove
32275 unrelated comment.
32276 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32277 (def_builtin): Remove usage of dead fields.
32278 (ix86_add_new_builtins): Likewise.
32279 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32280 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32281 (sem_function::init): Likewise.
32282 (sem_variable::merge): Likewise.
32283 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32284 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32285 * lto-cgraph.c (lto_output_node): Likewise.
32286 (lto_output_varpool_node): Likewise.
32287 (input_node): Likewise.
32288 (input_varpool_node): Likewise.
32289 * lto-streamer-out.c (lto_output): Likewise.
32290 * tree-inline.c (expand_call_inline): Remove usage of
32291 assign_stmts.
32292 * tree-inline.h (struct copy_body_data): Likewise.
32293 * varpool.c (varpool_node::dump): Likewise.
32294
32295 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32296
32297 PR middle-end/89303
32298 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32299 into pt->vars_contains_escaped_heap instead of setting
32300 pt->vars_contains_escaped_heap to it.
32301
32302 PR middle-end/89281
32303 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32304 INTVAL (size), compare it to GET_MODE_MASK instead of
32305 1 << GET_MODE_BITSIZE.
32306
32307 PR target/89290
32308 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32309 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32310 -mcmodel=large.
32311
32312 2019-02-13 Martin Liska <mliska@suse.cz>
32313
32314 PR lto/88858
32315 * cfgrtl.c (remove_barriers_from_footer): New function.
32316 (try_redirect_by_replacing_jump): Use it.
32317 (cfg_layout_redirect_edge_and_branch): Likewise.
32318
32319 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32320
32321 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32322 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32323 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32324 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32325 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32326 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32327 New BU_CRYPTO_2.
32328 * config/rs6000/rs6000.c (builtin_function_type)
32329 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32330 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32331 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32332 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32333 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32334
32335 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32336
32337 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32338 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32339
32340 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32341
32342 PR target/89229
32343 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32344 268678 and revision 268657.
32345 (*movti_internal): Likewise.
32346
32347 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32348
32349 PR target/89233
32350 * config/s390/s390.c (s390_decompose_address): Update comment.
32351 (s390_check_qrst_address): Reject invalid address forms after
32352 LRA.
32353
32354 2019-02-12 Martin Liska <mliska@suse.cz>
32355
32356 PR lto/88876
32357 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32358 we need default values of funct_state for a function that
32359 is not optimized.
32360
32361 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32362
32363 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32364 the object to pick the size of stores on strict-alignment platforms.
32365
32366 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32367 (*movdi_insn_sp32): Likewise.
32368 (*movdi_insn_sp64): Likewise.
32369
32370 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32371
32372 PR lto/88677
32373 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32374 types that needs constructiong.
32375 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32376
32377 2019-02-12 Richard Biener <rguenther@suse.de>
32378
32379 PR tree-optimization/89253
32380 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32381 duplicate the loop.
32382
32383 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32384
32385 PR lto/88147
32386 * input.c (selftest::test_line_offset_overflow): New selftest.
32387 (selftest::input_c_tests): Call it.
32388
32389 2019-02-11 Martin Sebor <msebor@redhat.com>
32390
32391 PR tree-optimization/88771
32392 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32393 when -Wstringop-overflow is set.
32394 (builtin_memref::builtin_memref): Adjust excessive upper bound
32395 only when lower bound is not excessive.
32396 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32397 -Wstringop-ovefflow.
32398 (maybe_diag_offset_bounds): Rename...
32399 (maybe_diag_access_bounds): ...to this.
32400 (check_bounds_or_overlap): Adjust for name change above.
32401
32402 2019-02-11 Martin Sebor <msebor@redhat.com>
32403
32404 PR c++/87996
32405 * builtins.c (max_object_size): Move from here...
32406 * builtins.h (max_object_size): ...and here...
32407 * tree.c (max_object_size): ...to here...
32408 * tree.h (max_object_size): ...and here.
32409
32410 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32411
32412 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32413 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32414 for correct semantics.
32415
32416 2019-02-11 Alan Modra <amodra@gmail.com>
32417
32418 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32419 -mlongcall and -mpltseq.
32420 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32421 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32422 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32423 * config/rs6000/sysv4.opt (mpltseq): New option.
32424 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32425 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32426 support is lacking. Don't allow -mpltseq with -mbss-plt.
32427 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32428 -mpltseq given for ELFv1.
32429 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32430 Only use UNSPEC_PLTSEQ for inline PLT calls.
32431 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32432 use UNSPEC_PLTSEQ for inline PLT calls.
32433 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32434 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32435 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32436 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32437 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32438 (pltseq_mtctr_<mode>): Likewise.
32439
32440 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32441
32442 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32443 Solaris ld.
32444 * configure: Regenerate.
32445
32446 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32447
32448 PR bootstrap/88714
32449 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32450 instead of r.
32451
32452 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32453
32454 * function.c (assign_parm_setup_block): Use the stored
32455 size, not the passed size, when allocating stack-space,
32456 also for a parameter with alignment larger than
32457 MAX_SUPPORTED_STACK_ALIGNMENT.
32458
32459 2019-02-11 Martin Liska <mliska@suse.cz>
32460
32461 PR ipa/89009
32462 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32463 * ipa-inline.c (inline_small_functions): Likewise.
32464 * ipa-pure-const.c (propagate_pure_const): Likewise.
32465 (propagate_nothrow): Likewise.
32466 * ipa-reference.c (propagate): Likewise.
32467 * ipa-utils.c (struct searchc_env): Remove unused field.
32468 (searchc): Always search across AVAIL_INTERPOSABLE.
32469 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32470 the only called IPA pure const can properly not propagate
32471 across interposable boundary.
32472 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32473
32474 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32475
32476 * config/nds32/nds32.md (call_internal, call_value_internal,
32477 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32478
32479 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32480
32481 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32482 typo.
32483
32484 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32485
32486 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32487 in comments
32488
32489 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32490
32491 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32492
32493 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32494
32495 PR tree-optimization/89268
32496 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32497 if preds is non-NULL.
32498
32499 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32500
32501 PR lto/89272
32502 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32503 polymorphic types.
32504
32505 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32506
32507 * config/nds32/nds32.md (trap): New pattern.
32508
32509 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32510
32511 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32512 dwarf span.
32513
32514 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32515
32516 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32517 to split POST_INC.
32518
32519 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32520
32521 * ipa-visibility.c (localize_node): Also do not localize
32522 LDPR_PREVAILING_DEF_IRONLY_EXP.
32523
32524 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32525
32526 PR lto/87957
32527 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32528 instead of type_with_linkage.
32529
32530 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32531
32532 PR ipa/88755
32533 * params.def (uninlined-function-insns, uninlined-function-time,
32534 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32535 bound so we don't get overflows.
32536
32537 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32538
32539 * config/rs6000/rs6000-string.c (expand_compare_loop,
32540 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32541 memcmp/strncmp.
32542
32543 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32544
32545 PR middle-end/89246
32546 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32547 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32548 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32549
32550 2019-02-09 Alan Modra <amodra@gmail.com>
32551
32552 PR target/88343
32553 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32554 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32555 setup.
32556
32557 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32558
32559 PR middle-end/88560
32560 * lra-constraints.c (process_alt_operands): Don't increase reject
32561 for memory when offset memory is required.
32562
32563 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32564
32565 * config/s390/vector.md: Implement vector copysign.
32566
32567 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32568
32569 * expr.c (expand_constructor): Correct indentations.
32570
32571 2019-02-08 Richard Biener <rguenther@suse.de>
32572
32573 PR tree-optimization/89247
32574 * tree-if-conv.c: Include tree-cfgcleanup.h.
32575 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32576 (tree_if_conversion): Pass through predicate vector.
32577 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32578 inline, see if any if-converted loops we refrece in
32579 LOOP_VECTORIZED calls vanished and fixup.
32580 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32581
32582 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32583
32584 * config/s390/constraints.md (jdd): New constraint.
32585
32586 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32587
32588 PR target/89229
32589 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32590 upper 16 vector registers without TARGET_AVX512VL.
32591 (*movti_internal): Likewise.
32592
32593 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32594
32595 PR rtl-optimization/89234
32596 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32597 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32598 (copy_reg_eh_region_note_backward): Likewise.
32599
32600 2019-02-08 Richard Biener <rguenther@suse.de>
32601
32602 PR middle-end/89223
32603 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32604 doesn't fit in HWI.
32605 (analyze_subscript_affine_affine): Handle failure from
32606 initialize_matrix_A.
32607
32608 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32609
32610 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32611 cfun everywhere.
32612
32613 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32614
32615 PR tree-optimization/86637
32616 PR tree-optimization/89235
32617 * tree-vect-loop.c (optimize_mask_stores): Add an
32618 auto_purge_vect_location sentinel to ensure that vect_location is
32619 purged on exit.
32620 * tree-vectorizer.c
32621 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32622 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32623 to ensure that vect_location is purged on exit.
32624 (pass_slp_vectorize::execute): Likewise, replacing the manual
32625 reset.
32626 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32627
32628 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32629
32630 * config/aarch64/iterators.md (max_opp): New code_attr.
32631 (USMAX): New code iterator.
32632 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32633 (aarch64_smax): Likewise.
32634 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32635 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32636 MINUS (MAX MIN).
32637
32638 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32639
32640 PR target/89229
32641 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32642 for TARGET_AVX512VL.
32643 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32644
32645 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32646
32647 * config/s390/s390-builtin-types.def: Add new types.
32648 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32649 (s390_vec_xlw4): Make the memory operand into a const pointer.
32650 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32651 float.
32652 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32653 a new vector type with the alignment of the scalar memory operand.
32654
32655 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32656 Jakub Jelinek <jakub@redhat.com>
32657
32658 PR bootstrap/88714
32659 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32660 arm_count_ldrdstrd_insns): New declarations.
32661 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32662 MINUS.
32663 (valid_operands_ldrd_strd): New function.
32664 (arm_count_ldrdstrd_insns): New function.
32665 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32666 sets instead of single DImode set and define new insns to match this.
32667
32668 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32669
32670 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32671 Make it a C initializer.
32672
32673 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32674
32675 PR/target 88850
32676 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32677
32678 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32679
32680 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32681 Use neon_dot<q> for type.
32682 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32683
32684 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32685
32686 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32687 Use neon_dot<q> for type.
32688 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32689 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32690
32691 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32692
32693 PR rtl-optimization/89225
32694 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32695 sizes check.
32696
32697 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32698
32699 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32700 after restoring registers saved to allocate the frame on Windows.
32701
32702 2019-02-06 Richard Biener <rguenther@suse.de>
32703
32704 PR tree-optimization/89182
32705 * graphite.h (cached_scalar_evolution_in_region): Declare.
32706 * graphite.c (struct seir_cache_key): New.
32707 (struct sese_scev_hash): Likewise.
32708 (seir_cache): New global.
32709 (cached_scalar_evolution_in_region): New function.
32710 (graphite_transform_loops): Allocate and release seir_cache.
32711 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32712 cached_scalar_evolution_in_region.
32713 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32714 Simplify.
32715 (scop_detection::graphite_can_represent_expr: Use
32716 cached_scalar_evolution_in_region.
32717 (scop_detection::stmt_simple_for_scop_p): Likewise.
32718 (find_params_in_bb): Likewise.
32719 (gather_bbs::before_dom_children): Likewise.
32720 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32721 (add_loop_constraints): Likewise.
32722
32723 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32724
32725 PR middle-end/89210
32726 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32727 operand to new_unary_operation only if both element types are integral
32728 and it isn't a widening conversion. Return NULL_TREE if
32729 new_unary_operation failed.
32730
32731 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32732
32733 PR target/88856
32734 * config/s390/s390.md: Remove load and test FP splitter.
32735
32736 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32737
32738 PR target/89112
32739 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32740 expand_compare_loop, expand_block_compare_gpr,
32741 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32742 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32743 #include "profile-count.h" and "predict.h" for types and functions
32744 needed to work with REG_BR_PROB notes.
32745
32746 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32747
32748 PR target/89112
32749 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32750 for the long branch case.
32751
32752 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32753
32754 PR target/89188
32755 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32756 can throw, non-call exceptions are enabled and we can't delete
32757 dead exceptions or alter cfg. Set must_clean if
32758 delete_insn_and_edges returns true, don't set it blindly for calls.
32759 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32760
32761 PR rtl-optimization/89195
32762 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32763 of the original MEM.
32764
32765 2019-02-05 Martin Liska <mliska@suse.cz>
32766
32767 PR gcov-profile/89000
32768 * gcov.c (function_summary): Remove argument.
32769 (file_summary): New function.
32770 (print_usage): Replace tabs with spaces.
32771 (generate_results): Use new function file_summary.
32772
32773 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32774
32775 PR target/89186
32776 * optabs.c (prepare_cmp_insn): Pass x and y to
32777 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32778
32779 2019-02-05 Richard Biener <rguenther@suse.de>
32780
32781 PR middle-end/89150
32782 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32783 (struct bitmap_element): Drop chain_prev so we properly recurse on
32784 the prev member, supporting tree views.
32785 (struct bitmap_head): GTY skip the obstack member.
32786
32787 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32788
32789 PR c/88698
32790 * doc/extend.texi (Vector Extensions): Add an example of using vector
32791 types together with x86 intrinsics.
32792
32793 2019-02-04 Alan Modra <amodra@gmail.com>
32794
32795 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32796 str[] size to 160, and comment.
32797
32798 2019-02-04 Alan Modra <amodra@gmail.com>
32799
32800 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32801 (rs6000_pltseq_template): Guard output of TLS markers with
32802 TARGET_TLS_MARKERS.
32803 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32804 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32805 to use inline PLT sequences.
32806 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32807 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32808 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32809
32810 2019-02-04 Martin Liska <mliska@suse.cz>
32811
32812 PR ipa/88985
32813 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32814 out when ipa_fn_summaries does not contain entry for callee.
32815
32816 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32817
32818 * config/sparc/sparc.h: Remove superfluous blank lines.
32819 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32820 (got_register_rtx): ...this.
32821 (sparc_got): Adjust to above renaming.
32822 (sparc_tls_got): Likewise.
32823 (sparc_delegitimize_address): Likewise.
32824 (sparc_output_mi_thunk): Likewise.
32825 (sparc_init_pic_reg): Likewise.
32826 (save_local_or_in_reg_p): Fix test on the GOT register.
32827 (USE_HIDDEN_LINKONCE): Move around.
32828 (get_pc_thunk_name): Likewise.
32829 (gen_load_pcrel_sym): Likewise.
32830 (load_got_register): Likewise.
32831
32832 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32833
32834 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32835 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32836
32837 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32838
32839 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32840 into consideration.
32841
32842 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32843
32844 * config.gcc (with_nds32_lib, glibc):
32845 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32846 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32847 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32848
32849 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32850
32851 PR target/89071
32852 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32853 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32854 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32855 (*rcpsf2_sse): Ditto.
32856 (*rsqrtsf2_sse): Ditto.
32857 (sse4_1_round<mode<2): Ditto.
32858
32859 2019-02-03 Richard Biener <rguenther@suse.de>
32860
32861 PR debug/87295
32862 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32863 orig.
32864
32865 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32866
32867 PR middle-end/87887
32868 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32869 Punt with warning on aggregate return or argument types. Ignore
32870 type/mode checking for uniform arguments.
32871
32872 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32873
32874 * combine.c (try_combine): Do not print "Can't combine" messages unless
32875 printing failed combination attempts.
32876
32877 2019-02-01 Martin Jambor <mjambor@suse.cz>
32878
32879 PR hsa/87863
32880 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32881 segment and global segment variables before making them static.
32882
32883 2019-02-01 Martin Jambor <mjambor@suse.cz>
32884
32885 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32886 missed optimization dump with dump_enabled_p.
32887
32888 2019-02-01 Richard Biener <rguenther@suse.de>
32889
32890 PR middle-end/88597
32891 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32892 the instantiate cache.
32893 (instantiate_scev_binary): Elide second operand procesing
32894 if equal to the first.
32895 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32896 (chrec_contains_undetermined): Likewise.
32897 (tree_contains_chrecs): Likewise.
32898
32899 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32900
32901 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32902
32903 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32904
32905 PR tree-optimization/89143
32906 * wide-int-range.h (wide_int_range_absu): Declare.
32907 * wide-int-range.cc (wide_int_range_absu): New function.
32908 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32909
32910 PR tree-optimization/88107
32911 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32912 instead of assertion that eh_region_outermost is non-NULL, if it
32913 is NULL, set *ALL to true and return NULL.
32914 (move_sese_region_to_fn): Adjust caller, if all is set, call
32915 duplicate_eh_regions with NULL region.
32916
32917 2019-02-01 Richard Biener <rguenth@suse.de>
32918
32919 PR rtl-optimization/88593
32920 * mode-switching.c (optimize_mode_switching): Free dominators before
32921 calling cleanup_cfg.
32922
32923 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32924
32925 PR tree-optimization/88932
32926 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32927
32928 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32929
32930 PR middle-end/89137
32931 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32932 bogus clang warning.
32933
32934 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32935
32936 PR target/89071
32937 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32938 alternative to avoid partial SSE register stall for TARGET_AVX.
32939 (truncdfsf2): Ditto.
32940 (sse4_1_round<mode>2): Ditto.
32941
32942 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32943
32944 PR tree-optimization/89008
32945 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32946 process anything of the form X * 0.
32947
32948 2019-01-31 Richard Biener <rguenther@suse.de>
32949
32950 PR tree-optimization/89135
32951 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32952 with abnormal preds.
32953
32954 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32955
32956 PR sanitizer/89124
32957 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32958 always_inline callees into no_sanitize_address callers.
32959
32960 2019-01-31 Richard Biener <rguenther@suse.de>
32961
32962 PR rtl-optimization/89115
32963 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32964
32965 2019-01-30 Martin Sebor <msebor@redhat.com>
32966
32967 PR other/89106
32968 * doc/extend.texi (cast to a union): Correct and expand.
32969
32970 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32971
32972 PR rtl-optimization/87246
32973 * lra-constraints.c (simplify_operand_subreg): Reload memory
32974 in subreg if the address became invalid.
32975
32976 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32977
32978 PR target/87064
32979 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32980 Disable for little-endian.
32981
32982 2019-01-30 Richard Biener <rguenther@suse.de>
32983
32984 PR rtl-optimization/89115
32985 * opts.c (default_options_optimization): Reduce
32986 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32987 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32988 to the default.
32989
32990 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32991
32992 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32993 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32994 type of vector element when vec_extract is implemented by direct
32995 move.
32996
32997 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32998
32999 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33000
33001 2019-01-30 Richard Biener <rguenther@suse.de>
33002
33003 PR tree-optimization/89111
33004 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33005 canonicalization to appropriately sized access types.
33006
33007 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33008
33009 PR c++/89105
33010 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33011 for arguments to functions that are TU-local and shouldn't be
33012 referenced by assembly.
33013
33014 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33015
33016 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33017 after '='.
33018
33019 2019-01-29 Martin Sebor <msebor@redhat.com>
33020
33021 PR c/88956
33022 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33023
33024 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33025
33026 PR c++/66676
33027 PR ipa/89104
33028 * omp-simd-clone.c (simd_clone_clauses_extract)
33029 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33030 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33031
33032 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33033
33034 * config.gcc: Force .init_array for ARC.
33035
33036 2019-01-29 Richard Biener <rguenther@suse.de>
33037
33038 PR debug/87295
33039 * dwarf2out.c (collect_skeleton_dies): New helper.
33040 (copy_decls_for_unworthy_types): Call it.
33041 (build_abbrev_table): Assert we do not try to replace
33042 DW_AT_signature refs with local refs.
33043
33044 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33045
33046 PR middle-end/89002
33047 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33048 for lastprivate/linear IV, push gimplify context around gimplify_assign
33049 and, if it needed any temporaries, pop it into a gimple bind around the
33050 sequence.
33051
33052 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33053
33054 * common.opt (-Wattribute-alias): Remove "no-" from name.
33055 Make -Wattribute-alias command line option and
33056 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33057
33058 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33059
33060 PR target/89073
33061 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33062 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33063 x86 ISA options.
33064 (bmi2): Add missing @opindex.
33065 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33066 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33067 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33068 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33069 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33070 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33071 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33072 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33073 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33074 xsavec, xsaveopt and xsaves options.
33075
33076 2019-01-28 Richard Biener <rguenther@suse.de>
33077
33078 PR debug/89076
33079 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33080 support removal.
33081
33082 2019-01-28 Richard Biener <rguenther@suse.de>
33083
33084 PR tree-optimization/88739
33085 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33086 BIT_FIELD_REFs only are applied to mode-precision operands
33087 when they are integral.
33088 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33089 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33090 BIT_FIELD_REFs of non-mode-precision integral operands.
33091
33092 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33093
33094 PR target/87214
33095 * config/i386/sse.md
33096 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33097 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33098 first constants in pairs are multiples of 2. Formatting fixes.
33099 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33100 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33101 first constants in each quadruple are multiples of 4. Formatting fixes.
33102
33103 2019-01-26 Martin Jambor <mjambor@suse.cz>
33104
33105 PR ipa/88933
33106 * tree-inline.c: Include tree-cfgcleanup.h.
33107 (delete_unreachable_blocks_update_callgraph): Move...
33108 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33109 ...here, make externally visible, make second argument bool, adjust
33110 all callers.
33111 * tree-cfgcleanup.c: Include cgraph.h.
33112 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33113 Declare.
33114 * ipa-prop.c: Include tree-cfgcleanup.h.
33115 (ipcp_transform_function): Call
33116 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33117
33118 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33119
33120 PR rtl-optimization/88846
33121 * ira.c (process_set_for_memref_referenced_p): New.
33122 (memref_referenced_p): Add new param. Use
33123 process_set_for_memref_referenced_p. Add new switch cases.
33124 (memref_used_between_p): Pass new arg to memref_referenced_p.
33125
33126 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33127
33128 PR target/88469
33129 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33130 argument ABI_BREAK. Set to true if the calculated alignment has
33131 changed in gcc-9. Check bit-fields for their base type alignment.
33132 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33133 (aarch64_function_arg_boundary): Likewise.
33134 (aarch64_gimplify_va_arg_expr): Likewise.
33135
33136 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33137
33138 PR middle-end/89037
33139 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33140 instead of accessing TREE_INT_CST_ELT directly.
33141
33142 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33143
33144 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33145 fenv_exceptions description.
33146
33147 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33148
33149 PR rtl-optimization/87763
33150 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33151 Allow SUBREG when matching CC_NZmode compare.
33152
33153 2019-01-25 Richard Biener <rguenther@suse.de>
33154
33155 PR tree-optimization/89049
33156 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33157 Look at the pattern stmt to determine if the stmt is vectorized.
33158
33159 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33160
33161 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33162 (pred_mov<mode>): Handle all-register forms using both a new
33163 alternative and a split.
33164
33165 2019-01-25 Richard Biener <rguenther@suse.de>
33166
33167 PR tree-optimization/86865
33168 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33169 Reject non-do-while loops.
33170
33171 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33172
33173 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33174 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33175 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33176 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33177 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33178 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33179 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33180 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33181 vlogical_operand, gpc_reg_operand, int_reg_operand,
33182 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33183 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33184 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33185 (save_world_operation, restore_world_operation, lmw_operation,
33186 stmw_operation): Use MEM_P and REG_P.
33187 (tie_operand): Use MEM_P.
33188 (vrsave_operation, crsave_operation): Use REG_P.
33189 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33190 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33191 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33192 (call_operand): Use HARD_REGISTER_P.
33193 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33194 Use CONST_INT_P.
33195 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33196 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33197 quad_aligned_load_p, replace_swapped_aligned_store,
33198 recombine_lvx_pattern, replace_swapped_aligned_load,
33199 recombine_stvx_pattern): Use MEM_P.
33200 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33201 Use MEM_P and SYMBOL_REF_P.
33202 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33203 (insn_is_swappable_p): Use REG_P and MEM_P.
33204 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33205 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33206 Use CONST_INT_P.
33207 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33208 Use CONST_DOUBLE_P.
33209 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33210 CONST_WIDE_INT_P.
33211 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33212 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33213 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33214 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33215 reg_or_subregno:
33216 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33217 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33218 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33219 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33220 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33221 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33222 rs6000_split_logical_di): Use CONST_INT_P.
33223 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33224 REG_P and SYMBOL_REF_P.
33225 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33226 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33227 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33228 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33229 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33230 (small_data_operand, print_operand_address): Use CONST_INT_P and
33231 SYMBOL_REF_P.
33232 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33233 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33234 Use HARD_REGISTER_NUM_P.
33235 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33236 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33237 SUBREG_P and SYMBOL_REF_P.
33238 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33239 and HARD_REGISTER_NUM_P.
33240 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33241 reg_or_subregno.
33242 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33243 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33244 MEM_P and REG_P.
33245 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33246 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33247 find_addr_reg): Use REG_P.
33248 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33249 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33250 (offsettable_ok_by_alignment, constant_pool_expr_p,
33251 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33252 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33253 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33254 rs6000_assemble_integer, create_TOC_reference,
33255 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33256 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33257 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33258 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33259 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33260 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33261 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33262 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33263 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33264 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33265 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33266 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33267 and cbranch<mode>4): Use CONST_INT_P.
33268 (multiple define_splits): Use REG_P and SUBREG_P.
33269 (define_expands call, call_value): Use MEM_P.
33270 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33271 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33272 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33273 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33274 and HARD_REGISTER_NUM_P.
33275 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33276
33277 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33278
33279 PR rtl-optimization/88948
33280 * rtl.h (prepare_copy_insn): New prototype.
33281 * gcse.c (prepare_copy_insn): New function, split out from
33282 process_insert_insn.
33283 (process_insert_insn): Use prepare_copy_insn.
33284 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33285 instead of gen_move_insn.
33286
33287 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33288
33289 PR debug/89006
33290 * config/i386/i386.c (ix86_pic_register_p): Return true for
33291 UNSPEC_SET_GOT too.
33292
33293 PR tree-optimization/88964
33294 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33295 punt if HONOR_SNANS (chrec).
33296
33297 PR middle-end/89015
33298 * tree-nested.c (convert_nonlocal_reference_stmt,
33299 convert_local_reference_stmt, convert_tramp_reference_stmt,
33300 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33301 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33302 or GIMPLE_OMP_TASK.
33303
33304 PR tree-optimization/89027
33305 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33306 for "omp simd array" variables.
33307
33308 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33309
33310 PR target/88469
33311 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33312 force the alignment of m_val.
33313
33314 2019-01-24 Richard Biener <rguenther@suse.de>
33315
33316 PR lto/87187
33317 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33318 When in "legacy" debug mode make sure to reset self-origins.
33319
33320 2019-01-24 Martin Liska <mliska@suse.cz>
33321
33322 PR gcov-profile/88994
33323 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33324 result will be always smaller or equal to the original.
33325 * gcov.c (mangle_name): Fix else branch where we should
33326 also copy to PTR and shift the pointer.
33327
33328 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33329
33330 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33331 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33332
33333 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33334
33335 * common/config/i386/i386-common.c
33336 (OPTION_MASK_ISA_ENQCMD_SET,
33337 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33338 (ix86_handle_option): Handle -menqcmd.
33339 * config.gcc (enqcmdintrin.h): New header file.
33340 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33341 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33342 -menqcmd.
33343 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33344 function type.
33345 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33346 __builtin_ia32_enqcmds): New builtins.
33347 * config/i386/i386-c.c (__ENQCMD__): New macro.
33348 * config/i386/i386-option.c (ix86_target_string): Add
33349 -menqcmd.
33350 (ix86_valid_target_attribute_inner_p): Likewise.
33351 * config/i386/i386-expand.c
33352 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33353 IX86_BUILTIN_ENQCMDS.
33354 * config/i386/i386.h (TARGET_ENQCMD): New.
33355 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33356 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33357 (movdir64b_<mode>): Parameterize to enable share expansion code
33358 with ENQCMD in function ix86_expand_builtin.
33359 * config/i386/i386.opt: Add -menqcmd.
33360 * config/i386/immintrin.h: Include enqcmdintrin.h.
33361 * config/i386/enqcmdintrin.h: New intrinsic file.
33362 * doc/invoke.texi: Add -menqcmd.
33363
33364 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33365 Steve Ellcey <sellcey@marvell.com>
33366
33367 PR target/85711
33368 * recog.c (address_operand): Return false on wrong mode for address.
33369 (constrain_operands): Check for mode with 'p' constraint.
33370
33371 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33372
33373 PR target/88998
33374 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33375 Disparage MMX alternative.
33376 (sse2_cvtpd2pi): Ditto.
33377 (sse2_cvttpd2pi): Ditto.
33378
33379 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33380
33381 PR driver/89014
33382 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33383 use-after-free of the result of
33384 aarch64_get_extension_string_for_isa_flags.
33385
33386 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33387
33388 PR c/44715
33389 * doc/extend.texi: Document break and continue behavior in
33390 statement expressions.
33391
33392 2019-01-23 Richard Biener <rguenther@suse.de>
33393
33394 PR tree-optimization/89008
33395 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33396 not leave another stray operand.
33397
33398 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33399
33400 * BASE-VER: Bump to 9.0.1.
33401
33402 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33403
33404 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33405 thunk that returns by reference, use the type of the return object
33406 of the thunk instead of that of the alias to build the dereference.
33407
33408 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33409
33410 * config/arc/atomic.md: Add operand to DMB instruction.
33411
33412 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33413
33414 PR tree-optimization/88964
33415 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33416 build_zero_cst instead of build_int_cst. Return false for loop
33417 invariants which honor signed zeros.
33418
33419 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33420
33421 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33422
33423 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33424
33425 PR target/88965
33426 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33427 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33428 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33429
33430 PR middle-end/88968
33431 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33432 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33433
33434 PR target/87064
33435 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33436 Disable for little endian.
33437
33438 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33439
33440 PR target/88469
33441 * config/arm/arm.c (arm_needs_double_word_align): Check
33442 DECL_BIT_FIELD_TYPE.
33443
33444 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33445 H.J. Lu <hongjiu.lu@intel.com>
33446
33447 PR target/88909
33448 * config/i386/i386-builtin.def: Add mask2 to all builtin
33449 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33450 SPECIAL_ARGS.
33451 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33452 (BDESC_FIRST): Likewise.
33453 (define_builtin): Add an argument for mask2. Updated to handle
33454 both ix86_isa_flags and ix86_isa_flags2.
33455 (define_builtin_const): Likewise.
33456 (define_builtin_pure): Likewise.
33457 (define_builtin2): Deleted.
33458 (define_builtin_const2): Likewise.
33459 (builtin_description): Add a member, mask2.
33460 (bdesc_*): Add mask2 to builtin initializations.
33461 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33462 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33463 support.
33464 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33465
33466 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33467
33468 PR target/88954
33469 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33470 noplt attribute.
33471
33472 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33473
33474 PR target/88469
33475 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33476 alignment is dominated by a bitfield with 64-bit aligned base type.
33477 (arm_function_arg): Emit a warning if the alignment has changed since
33478 earlier GCC releases.
33479 (arm_function_arg_boundary): Likewise.
33480 (arm_setup_incoming_varargs): Likewise.
33481
33482 2019-01-22 Richard Biener <rguenther@suse.de>
33483
33484 PR tree-optimization/88862
33485 * graphite-scop-detection.c
33486 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33487
33488 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33489
33490 * doc/extend.tex (AMD GCN Function Attributes): New section.
33491 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33492 * doc/invoke.texi (AMD GCN Options): New section.
33493 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33494
33495 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33496
33497 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33498 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33499
33500 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33501
33502 PR tree-optimization/88044
33503 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33504 is false in the first iteration, but !every_iteration, return false
33505 instead of true with niter->niter zero.
33506
33507 PR rtl-optimization/88904
33508 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33509 any nonequal registers before processing BB_END (b).
33510
33511 PR target/88905
33512 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33513 GET_MODE (op0).
33514 (expand_binop_directly, expand_doubleword_clz,
33515 expand_doubleword_popcount, expand_ctz, expand_ffs,
33516 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33517
33518 PR rtl-optimization/49429
33519 PR target/49454
33520 PR rtl-optimization/86334
33521 PR target/88906
33522 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33523 addressable from here...
33524 (emit_block_op_via_libcall): ... to here.
33525
33526 2019-01-22 Richard Biener <rguenther@suse.de>
33527
33528 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33529 auto_vec for cost vector to fix memleak.
33530 (vectorize_fold_left_reduction): Properly gather SLP defs.
33531 (vectorizable_comparison): Do not swap operands to properly
33532 gather SLP defs.
33533
33534 2019-01-22 Alan Modra <amodra@gmail.com>
33535
33536 PR target/88614
33537 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33538 stays a reg. Allow a const_int.
33539 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33540 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33541 (IS_NOMARK_TLSGETADDR): Define.
33542 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33543 (rs6000_output_tlsargs): New function.
33544 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33545 __tls_get_addr call takes an arg.
33546 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33547 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33548 delete split..
33549 (call_value_nonlocal_sysv): ..or here, delete split.
33550 (tls_gdld_nomark): Delete.
33551 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33552 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33553 (call_value_nonlocal_sysv): Likewise.
33554 (call_value_nonlocal_sysv_secure): Likewise.
33555 (call_value_nonlocal_aix): Likewise.
33556 (call_value_indirect_aix): Likewise.
33557 (call_value_indirect_elfv2): Likewise.
33558 (call_value_local32, call_value_local64): Disable for no-mark tls.
33559 (call_value_local_aix): Likewise.
33560
33561 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33562
33563 PR target/88938
33564 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33565 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33566
33567 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33568
33569 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33570 string contents as hash_map keys.
33571
33572 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33573
33574 PR c/88928
33575 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33576 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33577 instead of TYPE_ALIGN.
33578 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33579 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33580 pointer from TYPE_STUB_DECL.
33581
33582 2019-01-21 Richard Biener <rguenther@suse.de>
33583
33584 PR tree-optimization/88934
33585 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33586 at the possibly non-constant operand.
33587 (vect_get_constant_vectors): Adjust.
33588
33589 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33590
33591 PR target/71659
33592 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33593 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33594 instead of _X86INTRIN_H_INCLUDED.
33595 * onfig/i386/clwbintrin.h: Likewise.
33596 * config/i386/pkuintrin.h: Likewise.
33597 * config/i386/prfchwintrin.h: Likewise.
33598 * config/i386/rdseedintrin.h: Likewise.
33599 * config/i386/wbnoinvdintrin.h: Likewise.
33600 * config/i386/xsavecintrin.h: Likewise.
33601 * config/i386/xsavesintrin.h: Likewise.
33602 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33603 * config/i386/xsaveintrin.h: Likewise.
33604 * config/i386/xsaveoptintrin.h: Likewise.
33605 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33606 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33607 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33608 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33609 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33610 * config/i386/immintrin.h: Here.
33611
33612 2019-01-20 Martin Jambor <mjambor@suse.cz>
33613
33614 PR ipa/87615
33615 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33616 with aa_walk_budget.
33617 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33618 aa_walk_budget_p parameter.
33619 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33620 walk. Updated all callers.
33621 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33622 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33623 unmodified_parm.
33624 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33625 parameter info. Extract info from fbi. Pass fbi to recursive calls
33626 and to unmodified_parm.
33627 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33628 info, updated call to will_be_nonconstant_expr_predicate.
33629 (param_change_prob): New parameter fbi, limit AA walking.
33630 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33631 calls to various above functions.
33632 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33633 parameter. Use it to limit AA walking.
33634 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33635 fbi, limit AA walk.
33636 (detect_type_change): New parameter fbi, pass it on to
33637 detect_type_change_from_memory_writes.
33638 (detect_type_change_ssa): Likewise.
33639 (aa_overwalked): Removed.
33640 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33641 accordingly, adjust to the neew AA limiting scheme.
33642 (parm_ref_data_preserved_p): Likewise.
33643 (ipa_compute_jump_functions_for_edge): Adjust call to
33644 get_dynamic_type.
33645 (ipa_analyze_call_uses): Likewise.
33646 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33647 (ipa_analyze_node): Initialize aa_walk_budget.
33648 (ipcp_transform_function): Likewise.
33649 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33650 to get_dynamic_type.
33651
33652 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33653
33654 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33655 outside of #if CHECKING_P code.
33656
33657 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33658
33659 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33660 New function, split out from...
33661 (loop_versioning::analyze_stride): ...here.
33662 (loop_versioning::find_per_loop_multiplication): Use gassign.
33663 (loop_versioning::analyze_term_using_scevs): Return a success code.
33664 (loop_versioning::analyze_arbitrary_term): New function.
33665 (loop_versioning::analyze_address_fragment): Use
33666 analyze_arbitrary_term if all else fails.
33667
33668 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33669
33670 PR target/88892
33671 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33672 operands.
33673
33674 2019-01-18 Richard Biener <rguenther@suse.de>
33675
33676 PR tree-optimization/88903
33677 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33678 scalar stmts a SLP shift amount is composed of when detecting
33679 shifts by scalars.
33680
33681 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33682
33683 PR target/88799
33684 * config/arm/arm-cpus.in (mp): New feature.
33685 (sec): New feature.
33686 (fgroup ARMv7ve): Add mp and sec features.
33687 (arch armv7-a): Add options to allow mp and sec extensions.
33688 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33689 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33690 extenstions to the base architecture.
33691 (cpu cortex-a8): Add sec extension to the base architecture.
33692 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33693 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33694 variants down to the base v7-a varaint.
33695 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33696 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33697 of permitted extensions for -march=armv7-a and for
33698 -mcpu=generic-armv7-a.
33699
33700 2019-01-18 Martin Liska <mliska@suse.cz>
33701
33702 * params.def: Fix comment.
33703 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33704 name.
33705 (gimple_gen_ic_func_profiler): Likewise.
33706
33707 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33708
33709 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33710 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33711 and put in error checks for stack protector guard options.
33712 (aarch64_stack_protect_guard): New.
33713 (TARGET_STACK_PROTECT_GUARD): Define.
33714 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33715 (reg_stack_protect_address<mode>): New.
33716 (stack_protect_set): Adjust for SSP_GLOBAL.
33717 (stack_protect_test): Likewise.
33718 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33719 (-mstack-protector-guard): Likewise.
33720 (-mstack-protector-guard-offset): Likewise.
33721
33722 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33723
33724 PR tree-optimization/86214
33725 * tree-inline.h (struct copy_body_data): Add
33726 add_clobbers_to_eh_landing_pads member.
33727 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33728 (copy_edges_for_bb): Call it if EH edge destination is <
33729 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33730 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33731 if flag_stack_reuse != SR_NONE and clear it afterwards.
33732
33733 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33734
33735 PR target/85596
33736 * doc/install.texi (with-multilib-list): Document for aarch64.
33737
33738 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33739
33740 PR target/88734
33741 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33742 (("..."))) with ("...").
33743
33744 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33745
33746 * doc/extend.texi (Built-in Functions for Memory Model Aware
33747 Atomic Operations): Document atomic fetch and nand.
33748
33749 2019-01-18 Martin Liska <mliska@suse.cz>
33750 Richard Biener <rguenther@suse.de>
33751
33752 PR middle-end/88587
33753 * cgraph.h (create_version_clone_with_body): Add new argument
33754 with attributes.
33755 * cgraphclones.c (cgraph_node::create_version_clone): Add
33756 DECL_ATTRIBUTES to a newly created decl. And call
33757 valid_attribute_p so that proper cl_target_optimization_node
33758 is set for the newly created declaration.
33759 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33760 for declaration.
33761 (expand_target_clones): Do not call valid_attribute_p, it must
33762 be already done.
33763 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33764 vector types.
33765
33766 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33767
33768 PR target/88734
33769 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33770 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33771 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33772
33773 2019-01-17 Martin Sebor <msebor@redhat.com>
33774
33775 PR middle-end/88273
33776 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33777 Handle anti-ranges the same as no range at all.
33778
33779 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33780
33781 * config/aarch64/aarch64.c (cgraph.h): New include.
33782 (intl.h): New include.
33783 (supported_simd_type): New function.
33784 (currently_supported_simd_type): Ditto.
33785 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33786 (aarch64_simd_clone_adjust): Ditto.
33787 (aarch64_simd_clone_usable): Ditto.
33788 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33789 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33790 (TARGET_SIMD_CLONE_USABLE): Ditto.
33791 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33792 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33793 call.
33794
33795 2019-01-17 Martin Sebor <msebor@redhat.com>
33796
33797 PR tree-optimization/88800
33798 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33799 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33800 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33801 redundant argument. Add new argument and issue diagnostics under
33802 its control. Detect out-of-bounds access even with warnings
33803 disabled.
33804 (check_bounds_or_overlap): Change return type. Add argument.
33805 (wrestrict_dom_walker::check_call): Adjust.
33806 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33807 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33808 check_bounds_or_overlap's return value.
33809 (handle_builtin_stxncpy): Same.
33810 (handle_builtin_strcat): Same.
33811
33812 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33813 Kwok Cheung Yeung <kcy@codesourcery.com>
33814 Julian Brown <julian@codesourcery.com>
33815 Tom de Vries <tom@codesourcery.com>
33816
33817 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33818
33819 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33820
33821 * doc/sourcebuild.texi: Document dg-require-effective-target
33822 llvm_binutils and offload_gcn.
33823
33824 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33825 Kwok Cheung Yeung <kcy@codesourcery.com>
33826 Julian Brown <julian@codesourcery.com>
33827 Tom de Vries <tom@codesourcery.com>
33828
33829 * doc/sourcebuild.texi: Document dg-required-effective-target
33830 exceptions.
33831
33832 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33833 Kwok Cheung Yeung <kcy@codesourcery.com>
33834 Julian Brown <julian@codesourcery.com>
33835 Tom de Vries <tom@codesourcery.com>
33836 Jan Hubicka <hubicka@ucw.cz>
33837 Martin Jambor <mjambor@suse.cz>
33838
33839 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33840 * configure.ac: Check for dlopen.
33841 * configure: Regenerate.
33842
33843 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33844 Kwok Cheung Yeung <kcy@codesourcery.com>
33845 Julian Brown <julian@codesourcery.com>
33846 Tom de Vries <tom@codesourcery.com>
33847 Jan Hubicka <hubicka@ucw.cz>
33848 Martin Jambor <mjambor@suse.cz>
33849
33850 * common/config/gcn/gcn-common.c: New file.
33851 * config/gcn/driver-gcn.c: New file.
33852 * config/gcn/gcn-builtins.def: New file.
33853 * config/gcn/gcn-hsa.h: New file.
33854 * config/gcn/gcn-modes.def: New file.
33855 * config/gcn/gcn-opts.h: New file.
33856 * config/gcn/gcn-passes.def: New file.
33857 * config/gcn/gcn-protos.h: New file.
33858 * config/gcn/gcn-run.c: New file.
33859 * config/gcn/gcn-tree.c: New file.
33860 * config/gcn/gcn.c: New file.
33861 * config/gcn/gcn.h: New file.
33862 * config/gcn/gcn.opt: New file.
33863 * config/gcn/t-gcn-hsa: New file.
33864
33865 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33866 Kwok Cheung Yeung <kcy@codesourcery.com>
33867 Julian Brown <julian@codesourcery.com>
33868 Tom de Vries <tom@codesourcery.com>
33869 Jan Hubicka <hubicka@ucw.cz>
33870 Martin Jambor <mjambor@suse.cz>
33871
33872 * config/gcn/constraints.md: New file.
33873 * config/gcn/gcn-valu.md: New file.
33874 * config/gcn/gcn.md: New file.
33875 * config/gcn/predicates.md: New file.
33876
33877 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33878
33879 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33880 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33881 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33882 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33883
33884 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33885
33886 PR target/88851
33887 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33888 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33889 it and document registers.
33890
33891 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33892
33893 * config/aarch64/aarch64.c (ares_tunings): Define.
33894 * config/aarch64/aarch64-cores.def (ares): Use the above.
33895
33896 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33897
33898 PR target/88794
33899 Revert:
33900 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33901
33902 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33903 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33904 (_mm512_maskz_fixupimm_round_pd): Ditto.
33905 (_mm512_fixupimm_round_ps): Ditto.
33906 (_mm512_maskz_fixupimm_round_ps): Ditto.
33907 (_mm_fixupimm_round_sd): Ditto.
33908 (_mm_maskz_fixupimm_round_sd): Ditto.
33909 (_mm_fixupimm_round_ss): Ditto.
33910 (_mm_maskz_fixupimm_round_ss): Ditto.
33911 (_mm512_fixupimm_pd): Ditto.
33912 (_mm512_maskz_fixupimm_pd): Ditto.
33913 (_mm512_fixupimm_ps): Ditto.
33914 (_mm512_maskz_fixupimm_ps): Ditto.
33915 (_mm_fixupimm_sd): Ditto.
33916 (_mm_maskz_fixupimm_sd): Ditto.
33917 (_mm_fixupimm_ss): Ditto.
33918 (_mm_maskz_fixupimm_ss): Ditto.
33919 (_mm512_mask_fixupimm_round_pd): Update builtin.
33920 (_mm512_mask_fixupimm_round_ps): Ditto.
33921 (_mm_mask_fixupimm_round_sd): Ditto.
33922 (_mm_mask_fixupimm_round_ss): Ditto.
33923 (_mm512_mask_fixupimm_pd): Ditto.
33924 (_mm512_mask_fixupimm_ps): Ditto.
33925 (_mm_mask_fixupimm_sd): Ditto.
33926 (_mm_mask_fixupimm_ss): Ditto.
33927 * config/i386/avx512vlintrin.h:
33928 (_mm256_fixupimm_pd): Update parameters and builtin.
33929 (_mm256_maskz_fixupimm_pd): Ditto.
33930 (_mm256_fixupimm_ps): Ditto.
33931 (_mm256_maskz_fixupimm_ps): Ditto.
33932 (_mm_fixupimm_pd): Ditto.
33933 (_mm_maskz_fixupimm_pd): Ditto.
33934 (_mm_fixupimm_ps): Ditto.
33935 (_mm_maskz_fixupimm_ps): Ditto.
33936 (_mm256_mask_fixupimm_pd): Update builtin.
33937 (_mm256_mask_fixupimm_ps): Ditto.
33938 (_mm_mask_fixupimm_pd): Ditto.
33939 (_mm_mask_fixupimm_ps): Ditto.
33940 * config/i386/i386-builtin-types.def: Add new types and remove
33941 useless ones.
33942 * config/i386/i386-builtin.def: Update builtin definitions.
33943 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33944 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33945 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33946 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33947 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33948 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33949 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33950 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33951 * config/i386/subst.md:
33952 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33953 (round_saeonly_sd_mask_op4): Ditto.
33954 (round_saeonly_expand_operand5): Ditto.
33955 (round_saeonly_expand): Update.
33956
33957 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33958
33959 PR target/88794
33960 Revert:
33961 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33962
33963 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33964 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33965 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33966 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33967 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33968 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33969 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33970
33971 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33972
33973 PR target/88794
33974 Revert:
33975 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33976
33977 PR target/88489
33978 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33979 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33980 instead of UNSPEC_FIXUPIMM.
33981
33982 2019-01-17 Richard Biener <rguenther@suse.de>
33983
33984 PR lto/86736
33985 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33986 and friends for the LTO part of debug info.
33987
33988 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33989
33990 PR tree-optimization/86214
33991 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33992 if x == y.
33993
33994 PR rtl-optimization/88870
33995 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33996 throw if we can't alter the cfg or delete dead exceptions.
33997 (mark_insn): Don't call find_call_stack_args for such calls.
33998
33999 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34000
34001 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34002 prototypes for vec_st.
34003 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34004 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34005 mainly on signed/unsigned long long and double.
34006
34007 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34008
34009 PR target/88861
34010 * combine.c (delete_noop_moves): Convert to "bool" return,
34011 returning true if any edges are eliminated.
34012 (combine_instructions): Also return true if delete_noop_moves
34013 returns true.
34014
34015 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34016
34017 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34018 correct max nunits for endian swap.
34019 (aarch64_expand_fcmla_builtin): Correct subreg code.
34020 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34021 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34022 lane endianness.
34023
34024 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34025
34026 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34027 Handle split indirect COMPLEX_TYPE arguments.
34028
34029 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34030
34031 PR target/86891
34032 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34033 bit is set by add and compare.
34034 (CC_ADC): New CC_MODE.
34035 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34036 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34037 comparison. Add detection for CC_ADCmode.
34038 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34039 CC_ADCmode.
34040 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34041 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34042 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34043 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34044 to eliminate the need for zero-extending the operands.
34045 (add<mode>3_compareC_imm): Delete. Merge into ...
34046 (add<mode>3_compareC): ... this. Restructure the comparison to
34047 eliminate the need for zero-extending the operands.
34048 (add<mode>3_carryin): Use LTU for the overflow detection.
34049 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34050 Reexpress comparison for overflow.
34051 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34052 (add<mode>3_carryinC): Likewise.
34053 (add<mode>3_carryinV): Use LTU for carry between partials.
34054 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34055 handling of CC_Cmode and add CC_ADCmode.
34056 (aarch64_borrow_operation): Likewise.
34057
34058 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34059
34060 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34061 Remove patternmode.
34062 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34063 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34064 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34065 Remove endianness conversion.
34066
34067 2019-01-16 Martin Liska <mliska@suse.cz>
34068
34069 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34070 for GCC driver.
34071 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34072 a new argument.
34073 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34074 (path_prefix_reset): Move up in the source file.
34075 (find_fortran_preinclude_file): Make complex search for the
34076 fortran header files.
34077
34078 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34079
34080 * godump.c (go_output_typedef): When outputting a typedef, refer
34081 to the underlying type by its name and not its structure.
34082
34083 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34084
34085 PR c++/88795
34086 * tree.c (build_function_type): Assert that arg_types is not
34087 error_mark_node.
34088
34089 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34090
34091 PR inline-asm/52813
34092 * doc/extend.texi: Document that listing the stack pointer in the
34093 clobber list of an asm is a deprecated feature.
34094 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34095 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34096 warning instead of an error for clobbers of the stack pointer.
34097 Add a note explaining why.
34098
34099 2019-01-15 Richard Biener <rguenther@suse.de>
34100
34101 PR debug/88046
34102 * dwarf2out.c (gen_member_die): Do not generate inheritance
34103 DIEs late.
34104
34105 2019-01-15 Richard Biener <rguenther@suse.de>
34106
34107 PR tree-optimization/88855
34108 * tree-if-conv.c (combine_blocks): Collect
34109 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34110
34111 2019-01-15 Tom de Vries <tdevries@suse.de>
34112
34113 PR target/80547
34114 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34115 lhs == NULL_TREE for gang-level reduction.
34116
34117 2019-01-15 Richard Biener <rguenther@suse.de>
34118 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34119
34120 PR ipa/88788
34121 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34122 return true if SSA_NAME is already marked in visited bitmap.
34123 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34124
34125 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34126
34127 PR tree-optimization/88775
34128 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34129 equal == 0 equality pointer comparisons some more if compared in
34130 integral types and either one points to an automatic var and the
34131 other to a global, or we can prove at least one points to the middle
34132 or both point to start or both point to end.
34133
34134 2019-01-14 Andi Kleen <ak@linux.intel.com>
34135
34136 * Makefile.in: Lower autofdo sampling rate by 10x.
34137 * Makefile.tpl: Dito.
34138
34139 2019-01-14 Tom Honermann <tom@honermann.net>
34140
34141 * defaults.h: Define CHAR8_TYPE.
34142
34143 2019-01-14 Martin Sebor <msebor@redhat.com>
34144
34145 PR target/88638
34146 * doc/extend.texi (Darwin Format Checks): Clarify.
34147
34148 2019-01-14 Richard Biener <rguenther@suse.de>
34149
34150 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34151 whether we are in (simplify ...) or (match ...) context.
34152
34153 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34154
34155 PR rtl-optimization/88796
34156 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34157 * cfgexpand.c (stack_protect_prologue): Initialize
34158 crtl->stack_protect_guard_decl.
34159 * function.c (stack_protect_epilogue): Use it instead of calling
34160 targetm.stack_protect_guard again.
34161 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34162 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34163 crtl->stack_protect_guard_decl.
34164 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34165 on the returned MEM_EXPR.
34166
34167 2019-01-12 Tom de Vries <tdevries@suse.de>
34168
34169 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34170 vector length using -fopenacc-dim.
34171
34172 2019-01-12 Tom de Vries <tdevries@suse.de>
34173
34174 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34175 lengths into account.
34176
34177 2019-01-12 Svante Signell <svante.signell@gmail.com>
34178
34179 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34180 (TARGET_CAN_SPLIT_STACK): Define.
34181 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34182
34183 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34184
34185 * params.def (inline-unit-growth): Set to 40.
34186
34187 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34188
34189 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34190
34191 2019-01-12 Tom de Vries <tdevries@suse.de>
34192
34193 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34194 region calling vector-partitionable routine, set default_vector_length
34195 to WARP_SIZE.
34196
34197 2019-01-12 Tom de Vries <tdevries@suse.de>
34198
34199 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34200 variable default_vector_length.
34201
34202 2019-01-12 Tom de Vries <tdevries@suse.de>
34203
34204 PR middle-end/88703
34205 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34206 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34207 dimensions limits.
34208
34209 2019-01-12 Tom de Vries <tdevries@suse.de>
34210
34211 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34212 (nvptx_goacc_validate_dims): Add used parameter.
34213 * doc/tm.texi: Regenerate.
34214 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34215 argument to call to targetm.goacc.validate_dims.
34216 (default_goacc_validate_dims): Add used
34217 parameter.
34218 * target.def (validate_dims): Add used parameter in DEFHOOK.
34219 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34220
34221 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34222
34223 PR middle-end/85956
34224 PR lto/88733
34225 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34226 field.
34227 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34228 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34229 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34230 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34231
34232 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34233
34234 PR rtl-optimization/87305
34235 * lra-assigns.c
34236 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34237 for little endian pseudos used as paradoxical subreg.
34238
34239 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34240
34241 PR tree-optimization/88693
34242 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34243 for STRING_CSTs that don't contain any NUL characters in the first
34244 TREE_STRING_LENGTH bytes.
34245
34246 2019-01-11 Alan Modra <amodra@gmail.com>
34247
34248 PR 88777
34249 PR 88614
34250 * genattrtab.c (min_fn): Don't translate values.
34251 (min_attr_value): Return INT_MAX when the value can't be calculated.
34252 Return minimum among any values that can be calculated.
34253 (max_attr_value): Adjust.
34254
34255 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34256
34257 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34258
34259 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34260
34261 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34262 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34263 (aarch64_return_call_with_max_clobbers): New function.
34264 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34265 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34266 argument.
34267 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34268 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34269 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34270 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34271 * cselib.c (cselib_process_insn): Add argument to
34272 targetm.hard_regno_call_part_clobbered call.
34273 * ira-conflicts.c (ira_build_conflicts): Ditto.
34274 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34275 * lra-constraints.c (inherit_reload_reg): Ditto.
34276 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34277 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34278 argument. Call targetm.return_call_with_max_clobbers.
34279 Add argument to targetm.hard_regno_call_part_clobbered call.
34280 (calls_have_same_clobbers_p): New function.
34281 (process_bb_lives): Add call_insn and last_call_insn variables.
34282 Pass call_insn to check_pseudos_live_through_calls.
34283 Modify if stmt to check targetm.return_call_with_max_clobbers.
34284 Update setting of flush variable.
34285 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34286 to false.
34287 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34288 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34289 targetm.hard_regno_call_part_clobbered call.
34290 * reginfo.c (choose_hard_reg_mode): Ditto.
34291 * regrename.c (check_new_reg_p): Ditto.
34292 * reload.c (find_equiv_reg): Ditto.
34293 * reload1.c (emit_reload_insns): Ditto.
34294 * sched-deps.c (deps_analyze_insn): Ditto.
34295 * sel-sched.c (init_regs_for_mode): Ditto.
34296 (mark_unavailable_hard_regs): Ditto.
34297 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34298 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34299 (return_call_with_max_clobbers): New target function.
34300 * doc/tm.texi: Regenerate.
34301 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34302 * hooks.c (hook_bool_uint_mode_false): Change to
34303 hook_bool_insn_uint_mode_false.
34304 * hooks.h (hook_bool_uint_mode_false): Ditto.
34305
34306 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34307
34308 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34309 (aarch64_remove_extra_call_preserved_regs): New function.
34310 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34311 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34312 * doc/tm.texi: Regenerate.
34313 * final.c (get_call_reg_set_usage): Call new hook.
34314 * target.def (remove_extra_call_preserved_regs): New hook.
34315 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34316 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34317
34318 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34319
34320 PR bootstrap/88714
34321 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34322 inside of pass_combine_1 dump rather than pass_profile_1.
34323
34324 2019-01-11 Tom de Vries <tdevries@suse.de>
34325
34326 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34327 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34328 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34329 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34330 num_workers 16.
34331
34332 2019-01-11 Tom de Vries <tdevries@suse.de>
34333
34334 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34335
34336 2019-01-11 Jan Beulich <jbeulich@suse.com>
34337
34338 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34339 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34340 sse2_cvtsi2sd): Add {l}.
34341 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34342 syntax.
34343
34344 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34345
34346 PR target/88785
34347 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34348 define_expand.
34349 (*float<floatunssuffix>v2div2sf2): New define_insn.
34350 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34351 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34352 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34353 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34354 match_operands with "const0_operand" "C".
34355
34356 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34357
34358 * config/aarch64/aarch64-builtins.c
34359 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34360 (aarch64_init_simd_builtins): ...Here
34361
34362 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34363
34364 PR rtl-optimization/87305
34365 * lra-assigns.c
34366 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34367 allocation for big endian pseudos used as paradoxical subregs and
34368 spill them if it is wrong.
34369 * lra-constraints.c (lra_constraints): Add a comment.
34370
34371 2019-01-10 Richard Biener <rguenther@suse.de>
34372
34373 PR tree-optimization/88792
34374 * tree-ssa-pre.c (get_representative_for): Do not return a
34375 value-number here.
34376
34377 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34378
34379 PR middle-end/84877
34380 PR bootstrap/88450
34381 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34382 (assign_parm_setup_block): Do the argument slot realignment here
34383 instead.
34384
34385 2019-01-10 Stefan Agner <stefan@agner.ch>
34386
34387 PR target/88648
34388 * config/arm/arm.c (arm_option_override_internal): Force
34389 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34390
34391 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34392
34393 PR c/88568
34394 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34395 DECL_EXTERNAL.
34396
34397 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34398
34399 * config/arm/arm-builtins.c
34400 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34401 (MAC_LANE_PAIR_QUALIFIERS): New.
34402 (arm_expand_builtin_args): Use it.
34403 (arm_expand_builtin_1): Likewise.
34404 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34405 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34406 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34407 * config/arm/arm_neon.h:
34408 (vcadd_rot90_f16): New.
34409 (vcaddq_rot90_f16): New.
34410 (vcadd_rot270_f16): New.
34411 (vcaddq_rot270_f16): New.
34412 (vcmla_f16): New.
34413 (vcmlaq_f16): New.
34414 (vcmla_lane_f16): New.
34415 (vcmla_laneq_f16): New.
34416 (vcmlaq_lane_f16): New.
34417 (vcmlaq_laneq_f16): New.
34418 (vcmla_rot90_f16): New.
34419 (vcmlaq_rot90_f16): New.
34420 (vcmla_rot90_lane_f16): New.
34421 (vcmla_rot90_laneq_f16): New.
34422 (vcmlaq_rot90_lane_f16): New.
34423 (vcmlaq_rot90_laneq_f16): New.
34424 (vcmla_rot180_f16): New.
34425 (vcmlaq_rot180_f16): New.
34426 (vcmla_rot180_lane_f16): New.
34427 (vcmla_rot180_laneq_f16): New.
34428 (vcmlaq_rot180_lane_f16): New.
34429 (vcmlaq_rot180_laneq_f16): New.
34430 (vcmla_rot270_f16): New.
34431 (vcmlaq_rot270_f16): New.
34432 (vcmla_rot270_lane_f16): New.
34433 (vcmla_rot270_laneq_f16): New.
34434 (vcmlaq_rot270_lane_f16): New.
34435 (vcmlaq_rot270_laneq_f16): New.
34436 (vcadd_rot90_f32): New.
34437 (vcaddq_rot90_f32): New.
34438 (vcadd_rot270_f32): New.
34439 (vcaddq_rot270_f32): New.
34440 (vcmla_f32): New.
34441 (vcmlaq_f32): New.
34442 (vcmla_lane_f32): New.
34443 (vcmla_laneq_f32): New.
34444 (vcmlaq_lane_f32): New.
34445 (vcmlaq_laneq_f32): New.
34446 (vcmla_rot90_f32): New.
34447 (vcmlaq_rot90_f32): New.
34448 (vcmla_rot90_lane_f32): New.
34449 (vcmla_rot90_laneq_f32): New.
34450 (vcmlaq_rot90_lane_f32): New.
34451 (vcmlaq_rot90_laneq_f32): New.
34452 (vcmla_rot180_f32): New.
34453 (vcmlaq_rot180_f32): New.
34454 (vcmla_rot180_lane_f32): New.
34455 (vcmla_rot180_laneq_f32): New.
34456 (vcmlaq_rot180_lane_f32): New.
34457 (vcmlaq_rot180_laneq_f32): New.
34458 (vcmla_rot270_f32): New.
34459 (vcmlaq_rot270_f32): New.
34460 (vcmla_rot270_lane_f32): New.
34461 (vcmla_rot270_laneq_f32): New.
34462 (vcmlaq_rot270_lane_f32): New.
34463 (vcmlaq_rot270_laneq_f32): New.
34464 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34465 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34466 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34467 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34468 vcmlaq_lane270): New.
34469 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34470 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34471 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34472 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34473 (arm_option_reconfigure_globals): Use them.
34474 * config/arm/iterators.md (VDF, VQ_HSF): New.
34475 (VCADD, VCMLA): New.
34476 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34477 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34478 New.
34479 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34480 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34481
34482 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34483
34484 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34485 Add qualifier_lane_pair_index.
34486 (emit-rtl.h): Include.
34487 (TYPES_QUADOP_LANE_PAIR): New.
34488 (aarch64_simd_expand_args): Use it.
34489 (aarch64_simd_expand_builtin): Likewise.
34490 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34491 New.
34492 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34493 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34494 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34495 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34496 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34497 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34498 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34499 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34500 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34501 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34502 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34503 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34504 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34505 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34506 Add __ARM_FEATURE_COMPLEX.
34507 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34508 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34509 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34510 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34511 fcmlaq_lane270): New.
34512 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34513 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34514 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34515 * config/aarch64/arm_neon.h:
34516 (vcadd_rot90_f16): New.
34517 (vcaddq_rot90_f16): New.
34518 (vcadd_rot270_f16): New.
34519 (vcaddq_rot270_f16): New.
34520 (vcmla_f16): New.
34521 (vcmlaq_f16): New.
34522 (vcmla_lane_f16): New.
34523 (vcmla_laneq_f16): New.
34524 (vcmlaq_lane_f16): New.
34525 (vcmlaq_rot90_lane_f16): New.
34526 (vcmla_rot90_laneq_f16): New.
34527 (vcmla_rot90_lane_f16): New.
34528 (vcmlaq_rot90_f16): New.
34529 (vcmla_rot90_f16): New.
34530 (vcmlaq_laneq_f16): New.
34531 (vcmla_rot180_laneq_f16): New.
34532 (vcmla_rot180_lane_f16): New.
34533 (vcmlaq_rot180_f16): New.
34534 (vcmla_rot180_f16): New.
34535 (vcmlaq_rot90_laneq_f16): New.
34536 (vcmlaq_rot270_laneq_f16): New.
34537 (vcmlaq_rot270_lane_f16): New.
34538 (vcmla_rot270_laneq_f16): New.
34539 (vcmlaq_rot270_f16): New.
34540 (vcmla_rot270_f16): New.
34541 (vcmlaq_rot180_laneq_f16): New.
34542 (vcmlaq_rot180_lane_f16): New.
34543 (vcmla_rot270_lane_f16): New.
34544 (vcadd_rot90_f32): New.
34545 (vcaddq_rot90_f32): New.
34546 (vcaddq_rot90_f64): New.
34547 (vcadd_rot270_f32): New.
34548 (vcaddq_rot270_f32): New.
34549 (vcaddq_rot270_f64): New.
34550 (vcmla_f32): New.
34551 (vcmlaq_f32): New.
34552 (vcmlaq_f64): New.
34553 (vcmla_lane_f32): New.
34554 (vcmla_laneq_f32): New.
34555 (vcmlaq_lane_f32): New.
34556 (vcmlaq_laneq_f32): New.
34557 (vcmla_rot90_f32): New.
34558 (vcmlaq_rot90_f32): New.
34559 (vcmlaq_rot90_f64): New.
34560 (vcmla_rot90_lane_f32): New.
34561 (vcmla_rot90_laneq_f32): New.
34562 (vcmlaq_rot90_lane_f32): New.
34563 (vcmlaq_rot90_laneq_f32): New.
34564 (vcmla_rot180_f32): New.
34565 (vcmlaq_rot180_f32): New.
34566 (vcmlaq_rot180_f64): New.
34567 (vcmla_rot180_lane_f32): New.
34568 (vcmla_rot180_laneq_f32): New.
34569 (vcmlaq_rot180_lane_f32): New.
34570 (vcmlaq_rot180_laneq_f32): New.
34571 (vcmla_rot270_f32): New.
34572 (vcmlaq_rot270_f32): New.
34573 (vcmlaq_rot270_f64): New.
34574 (vcmla_rot270_lane_f32): New.
34575 (vcmla_rot270_laneq_f32): New.
34576 (vcmlaq_rot270_lane_f32): New.
34577 (vcmlaq_rot270_laneq_f32): New.
34578 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34579 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34580 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34581 (FCADD, FCMLA): New.
34582 (rot): New.
34583 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34584
34585 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34586
34587 PR other/16615
34588
34589 * config/pa/pa.c: Change "can not" to "cannot".
34590 * gimple-ssa-evrp-analyze.c: Likewise.
34591 * ipa-icf.c: Likewise.
34592 * ipa-polymorphic-call.c: Likewise.
34593 * ipa-pure-const.c: Likewise.
34594 * lra-constraints.c: Likewise.
34595 * lra-remat.c: Likewise.
34596 * reload1.c: Likewise.
34597 * reorg.c: Likewise.
34598 * tree-ssa-uninit.c: Likewise.
34599
34600 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34601
34602 PR other/16615
34603
34604 * Makefile.in: Mechanically replace "can not" with "cannot".
34605 * alias.c: Likewise.
34606 * builtins.c: Likewise.
34607 * calls.c: Likewise.
34608 * cgraph.c: Likewise.
34609 * cgraph.h: Likewise.
34610 * cgraphclones.c: Likewise.
34611 * cgraphunit.c: Likewise.
34612 * combine-stack-adj.c: Likewise.
34613 * combine.c: Likewise.
34614 * common/config/i386/i386-common.c: Likewise.
34615 * config/aarch64/aarch64.c: Likewise.
34616 * config/alpha/sync.md: Likewise.
34617 * config/arc/arc.c: Likewise.
34618 * config/arc/predicates.md: Likewise.
34619 * config/arm/arm-c.c: Likewise.
34620 * config/arm/arm.c: Likewise.
34621 * config/arm/arm.h: Likewise.
34622 * config/arm/arm.md: Likewise.
34623 * config/arm/cortex-r4f.md: Likewise.
34624 * config/csky/csky.c: Likewise.
34625 * config/csky/csky.h: Likewise.
34626 * config/darwin-f.c: Likewise.
34627 * config/epiphany/epiphany.md: Likewise.
34628 * config/i386/i386.c: Likewise.
34629 * config/i386/sol2.h: Likewise.
34630 * config/m68k/m68k.c: Likewise.
34631 * config/mcore/mcore.h: Likewise.
34632 * config/microblaze/microblaze.md: Likewise.
34633 * config/mips/20kc.md: Likewise.
34634 * config/mips/sb1.md: Likewise.
34635 * config/nds32/nds32.c: Likewise.
34636 * config/nds32/predicates.md: Likewise.
34637 * config/pa/pa.c: Likewise.
34638 * config/rs6000/e300c2c3.md: Likewise.
34639 * config/rs6000/rs6000.c: Likewise.
34640 * config/s390/s390.h: Likewise.
34641 * config/sh/sh.c: Likewise.
34642 * config/sh/sh.md: Likewise.
34643 * config/spu/vmx2spu.h: Likewise.
34644 * cprop.c: Likewise.
34645 * dbxout.c: Likewise.
34646 * df-scan.c: Likewise.
34647 * doc/cfg.texi: Likewise.
34648 * doc/extend.texi: Likewise.
34649 * doc/fragments.texi: Likewise.
34650 * doc/gty.texi: Likewise.
34651 * doc/invoke.texi: Likewise.
34652 * doc/lto.texi: Likewise.
34653 * doc/md.texi: Likewise.
34654 * doc/objc.texi: Likewise.
34655 * doc/rtl.texi: Likewise.
34656 * doc/tm.texi: Likewise.
34657 * dse.c: Likewise.
34658 * emit-rtl.c: Likewise.
34659 * emit-rtl.h: Likewise.
34660 * except.c: Likewise.
34661 * expmed.c: Likewise.
34662 * expr.c: Likewise.
34663 * fold-const.c: Likewise.
34664 * genautomata.c: Likewise.
34665 * gimple-fold.c: Likewise.
34666 * hard-reg-set.h: Likewise.
34667 * ifcvt.c: Likewise.
34668 * ipa-comdats.c: Likewise.
34669 * ipa-cp.c: Likewise.
34670 * ipa-devirt.c: Likewise.
34671 * ipa-fnsummary.c: Likewise.
34672 * ipa-icf.c: Likewise.
34673 * ipa-inline-transform.c: Likewise.
34674 * ipa-inline.c: Likewise.
34675 * ipa-polymorphic-call.c: Likewise.
34676 * ipa-profile.c: Likewise.
34677 * ipa-prop.c: Likewise.
34678 * ipa-pure-const.c: Likewise.
34679 * ipa-reference.c: Likewise.
34680 * ipa-split.c: Likewise.
34681 * ipa-visibility.c: Likewise.
34682 * ipa.c: Likewise.
34683 * ira-build.c: Likewise.
34684 * ira-color.c: Likewise.
34685 * ira-conflicts.c: Likewise.
34686 * ira-costs.c: Likewise.
34687 * ira-int.h: Likewise.
34688 * ira-lives.c: Likewise.
34689 * ira.c: Likewise.
34690 * ira.h: Likewise.
34691 * loop-invariant.c: Likewise.
34692 * loop-unroll.c: Likewise.
34693 * lower-subreg.c: Likewise.
34694 * lra-assigns.c: Likewise.
34695 * lra-constraints.c: Likewise.
34696 * lra-eliminations.c: Likewise.
34697 * lra-lives.c: Likewise.
34698 * lra-remat.c: Likewise.
34699 * lra-spills.c: Likewise.
34700 * lra.c: Likewise.
34701 * lto-cgraph.c: Likewise.
34702 * lto-streamer-out.c: Likewise.
34703 * postreload-gcse.c: Likewise.
34704 * predict.c: Likewise.
34705 * profile-count.h: Likewise.
34706 * profile.c: Likewise.
34707 * recog.c: Likewise.
34708 * ree.c: Likewise.
34709 * reload.c: Likewise.
34710 * reload1.c: Likewise.
34711 * reorg.c: Likewise.
34712 * resource.c: Likewise.
34713 * rtl.def: Likewise.
34714 * rtl.h: Likewise.
34715 * rtlanal.c: Likewise.
34716 * sched-deps.c: Likewise.
34717 * sched-ebb.c: Likewise.
34718 * sched-rgn.c: Likewise.
34719 * sel-sched-ir.c: Likewise.
34720 * sel-sched.c: Likewise.
34721 * shrink-wrap.c: Likewise.
34722 * simplify-rtx.c: Likewise.
34723 * symtab.c: Likewise.
34724 * target.def: Likewise.
34725 * toplev.c: Likewise.
34726 * tree-call-cdce.c: Likewise.
34727 * tree-cfg.c: Likewise.
34728 * tree-complex.c: Likewise.
34729 * tree-core.h: Likewise.
34730 * tree-eh.c: Likewise.
34731 * tree-inline.c: Likewise.
34732 * tree-loop-distribution.c: Likewise.
34733 * tree-nrv.c: Likewise.
34734 * tree-profile.c: Likewise.
34735 * tree-sra.c: Likewise.
34736 * tree-ssa-alias.c: Likewise.
34737 * tree-ssa-dce.c: Likewise.
34738 * tree-ssa-dom.c: Likewise.
34739 * tree-ssa-forwprop.c: Likewise.
34740 * tree-ssa-loop-im.c: Likewise.
34741 * tree-ssa-loop-ivcanon.c: Likewise.
34742 * tree-ssa-loop-ivopts.c: Likewise.
34743 * tree-ssa-loop-niter.c: Likewise.
34744 * tree-ssa-phionlycprop.c: Likewise.
34745 * tree-ssa-phiopt.c: Likewise.
34746 * tree-ssa-propagate.c: Likewise.
34747 * tree-ssa-threadedge.c: Likewise.
34748 * tree-ssa-threadupdate.c: Likewise.
34749 * tree-ssa-uninit.c: Likewise.
34750 * tree-ssanames.c: Likewise.
34751 * tree-streamer-out.c: Likewise.
34752 * tree.c: Likewise.
34753 * tree.h: Likewise.
34754 * vr-values.c: Likewise.
34755
34756 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34757
34758 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34759 (ix86_split_xorsign): Ditto.
34760 * config/i386/i386.c (ix86_expand_xorsign): New function.
34761 (ix86_split_xorsign): Ditto.
34762 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34763 (xorsign<mode>3): New expander.
34764 (xorsign<mode>3_1): New insn_and_split pattern.
34765 * config/i386/sse.md (xorsign<mode>3): New expander.
34766
34767 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34768
34769 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34770 (*tablejump_sp64): Likewise.
34771 (*tablejump<P:mode>): ...this.
34772 (*call_address_sp32): Merge into...
34773 (*call_address_sp64): Likewise.
34774 (*call_address<P:mode>): ...this.
34775 (*call_symbolic_sp32): Merge into...
34776 (*call_symbolic_sp64): Likewise.
34777 (*call_symbolic<P:mode>): ...this.
34778 (call_value): Remove constraint and add predicate.
34779 (*call_value_address_sp32): Merge into...
34780 (*call_value_address_sp64): Likewise.
34781 (*call_value_address<P:mode>): ...this.
34782 (*call_value_symbolic_sp32): Merge into...
34783 (*call_value_symbolic_sp64): Likewise.
34784 (*call_value_symbolic<P:mode>): ...this.
34785 (*sibcall_symbolic_sp32): Merge into...
34786 (*sibcall_symbolic_sp64): Likewise.
34787 (*sibcall_symbolic<P:mode>): ...this.
34788 (sibcall_value): Remove constraint and add predicate.
34789 (*sibcall_value_symbolic_sp32): Merge into...
34790 (*sibcall_value_symbolic_sp64): Likewise.
34791 (*sibcall_value_symbolic<P:mode>): ...this.
34792 (window_save): Minor tweak.
34793 (*branch_sp32): Merge into...
34794 (*branch_sp64): Likewise.
34795 (*branch<P:mode>): ...this.
34796
34797 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34798 James Clarke <jrtc27@jrtc27.com>
34799
34800 PR target/84010
34801 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34802 consistently in TLS address generation and adjust code to the renaming
34803 of patterns. Mark calls to __tls_get_addr as const.
34804 * config/sparc/sparc.md (tgd_hi22): Turn into...
34805 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34806 (tgd_lo10): Turn into...
34807 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34808 (tgd_add32): Merge into...
34809 (tgd_add64): Likewise.
34810 (tgd_add<P:mode>): ...this and use Pmode throughout.
34811 (tldm_hi22): Turn into...
34812 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34813 (tldm_lo10): Turn into...
34814 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34815 (tldm_add32): Merge into...
34816 (tldm_add64): Likewise.
34817 (tldm_add<P:mode>): ...this and use Pmode throughout.
34818 (tldm_call32): Merge into...
34819 (tldm_call64): Likewise.
34820 (tldm_call<P:mode>): ...this and use Pmode throughout.
34821 (tldo_hix22): Turn into...
34822 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34823 (tldo_lox10): Turn into...
34824 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34825 (tldo_add32): Merge into...
34826 (tldo_add64): Likewise.
34827 (tldo_add<P:mode>): ...this and use Pmode throughout.
34828 (tie_hi22): Turn into...
34829 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34830 (tie_lo10): Turn into...
34831 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34832 (tie_ld64): Use DImode throughout.
34833 (tie_add32): Merge into...
34834 (tie_add64): Likewise.
34835 (tie_add<P:mode>): ...this and use Pmode throughout.
34836 (tle_hix22_sp32): Merge into...
34837 (tle_hix22_sp64): Likewise.
34838 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34839 (tle_lox22_sp32): Merge into...
34840 (tle_lox22_sp64): Likewise.
34841 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34842 (*tldo_ldub_sp32): Merge into...
34843 (*tldo_ldub_sp64): Likewise.
34844 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34845 (*tldo_ldub1_sp32): Merge into...
34846 (*tldo_ldub1_sp64): Likewise.
34847 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34848 (*tldo_ldub2_sp32): Merge into...
34849 (*tldo_ldub2_sp64): Likewise.
34850 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34851 (*tldo_ldsb1_sp32): Merge into...
34852 (*tldo_ldsb1_sp64): Likewise.
34853 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34854 (*tldo_ldsb2_sp32): Merge into...
34855 (*tldo_ldsb2_sp64): Likewise.
34856 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34857 (*tldo_ldub3_sp64): Use DImode throughout.
34858 (*tldo_ldsb3_sp64): Likewise.
34859 (*tldo_lduh_sp32): Merge into...
34860 (*tldo_lduh_sp64): Likewise.
34861 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34862 (*tldo_lduh1_sp32): Merge into...
34863 (*tldo_lduh1_sp64): Likewise.
34864 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34865 (*tldo_ldsh1_sp32): Merge into...
34866 (*tldo_ldsh1_sp64): Likewise.
34867 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34868 (*tldo_lduh2_sp64): Use DImode throughout.
34869 (*tldo_ldsh2_sp64): Likewise.
34870 (*tldo_lduw_sp32): Merge into...
34871 (*tldo_lduw_sp64): Likewise.
34872 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34873 (*tldo_lduw1_sp64): Use DImode throughout.
34874 (*tldo_ldsw1_sp64): Likewise.
34875 (*tldo_ldx_sp64): Likewise.
34876 (*tldo_stb_sp32): Merge into...
34877 (*tldo_stb_sp64): Likewise.
34878 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34879 (*tldo_sth_sp32): Merge into...
34880 (*tldo_sth_sp64): Likewise.
34881 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34882 (*tldo_stw_sp32): Merge into...
34883 (*tldo_stw_sp64): Likewise.
34884 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34885 (*tldo_stx_sp64): Use DImode throughout.
34886
34887 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34888
34889 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34890 check configure option to set BTI and Return Address Signing.
34891 * configure.ac: Add --enable-standard-branch-protection and
34892 --disable-standard-branch-protection.
34893 * configure: Regenerated.
34894 * doc/install.texi: Document the same.
34895
34896 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34897 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34898
34899 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34900 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34901 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34902 if bti is enabled.
34903 * config/aarch64/aarch64-bti-insert.c: New file.
34904 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34905 pass.
34906 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34907 new bti pass.
34908 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34909 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34910 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34911 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34912
34913 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34914
34915 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34916 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34917 Disable bti for -mbranch-protection=none.
34918 (aarch64_handle_standard_branch_protection): Enable bti for
34919 -mbranch-protection=standard.
34920 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34921 -mbranch-protection.
34922 (aarch64_bti_enabled): Check if bti is enabled.
34923 * config/aarch64/aarch64.opt: Declare target variable.
34924 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34925
34926 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34927
34928 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34929 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34930 (aarch64_expand_epilogue): Likewise.
34931 (aarch64_output_mi_thunk): Likewise.
34932 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34933 TAILCALL_ADDR_REGS to x16 and x17.
34934 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34935
34936 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34937
34938 * config/aarch64/aarch64-option-extensions.def: Define
34939 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34940 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34941 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34942 (AARCH64_FL_PREDRES): New.
34943 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34944 AARCH64_FL_PREDRES by default.
34945 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34946
34947 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34948
34949 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34950 ARMv8.5-A.
34951 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34952 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34953 * doc/invoke.texi: Document ARMv8.5-A.
34954
34955 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34956
34957 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34958 (xorsign<mode>3): Likewise.
34959
34960 2019-01-09 Jelinek <jakub@redhat.com>
34961
34962 PR middle-end/88758
34963 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34964 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34965
34966 PR rtl-optimization/88331
34967 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34968 not currently_expanding_to_rtl.
34969
34970 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34971
34972 * doc/invoke.texi (-Os): Remove trailing spaces.
34973 (-finline-functions): Remove reference to -O2.
34974
34975 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34976
34977 PR rtl-optimization/79593
34978 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34979
34980 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34981 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34982
34983 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34984
34985 PR bootstrap/88721
34986 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34987 to -1 on entry.
34988
34989 PR debug/88723
34990 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34991 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34992
34993 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34994
34995 PR target/88717
34996 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34997 ix86_avx_u128_mode_entry.
34998
34999 2019-01-08 Martin Liska <mliska@suse.cz>
35000
35001 PR tree-optimization/88753
35002 * tree-switch-conversion.c (switch_conversion::build_one_array):
35003 Come up with local variable constructor. Convert first to
35004 type of constructor values.
35005
35006 2019-01-08 Richard Biener <rguenther@suse.de>
35007
35008 PR tree-optimization/86554
35009 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35010 rpo_avail): Move earlier.
35011 (visit_nary_op): When value-numbering to expressions
35012 with different overflow behavior make sure there's an
35013 available expression on the path.
35014
35015 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35016
35017 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35018 aarch64_parse_branch_protection,
35019 struct aarch64_branch_protect_type,
35020 aarch64_handle_no_branch_protection,
35021 aarch64_handle_standard_branch_protection,
35022 aarch64_validate_mbranch_protection,
35023 aarch64_handle_pac_ret_protection,
35024 aarch64_handle_attr_branch_protection,
35025 accepted_branch_protection_string,
35026 aarch64_pac_ret_subtypes,
35027 aarch64_branch_protect_types,
35028 aarch64_handle_pac_ret_leaf): Define.
35029 (aarch64_override_options_after_change_1, aarch64_override_options):
35030 Add check for accepted_branch_protection_string.
35031 (aarch64_option_save): Save accepted_branch_protection_string.
35032 (aarch64_option_restore): Save accepted_branch_protection_string.
35033 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35034 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35035 msign-return-address.
35036 * doc/invoke.texi: Add mbranch-protection.
35037
35038 2019-01-08 Alan Modra <amodra@gmail.com>
35039
35040 PR target/88614
35041 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35042 Delete "unknownp" parameter. Adjust callers. Handle
35043 CONST_INT, PLUS, MINUS, and MULT.
35044 (attr_value_aligned): Renamed from or_attr_value.
35045 (min_attr_value): Return INT_MIN for unhandled rtl case..
35046 (min_fn): ..and translate to INT_MAX here.
35047 (write_length_unit_log): Modify to cope without "unknown".
35048 (write_attr_value): Handle IF_THEN_ELSE.
35049
35050 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35051
35052 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35053 optimization for masked stores.
35054
35055 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35056
35057 PR middle-end/88567
35058 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35059 output vector directly to duplicate_and_interleave instead of
35060 going through a temporary. Postpone insertion of ctor_seq to
35061 the end of the loop.
35062
35063 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35064
35065 PR target/86891
35066 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35067 unsigned_p. Handle signed and unsigned overflow correction as
35068 required.
35069 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35070 prototype.
35071 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35072 for operand 2.
35073 (add<mode>3_compareV_imm): Make this callable for expanding.
35074 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35075 aarch64_plus_operand for operand 2.
35076 (subv<GPI:mode>_insn): New insn pattern.
35077 (subv<GPI:mode>_imm): Likewise.
35078 (negv<GPI:mode>3): New expand pattern.
35079 (negv<GPI:mode>_insn): New insn pattern.
35080 (negv<GPI:mode>_cmp_only): Likewise.
35081 (cmpv<GPI:mode>_insn): Likewise.
35082 (subvti4): Use register_operand for operand 1. Update call to
35083 aarch64_expand_subvti.
35084 (usubvti4): Likewise.
35085 (negvti3): New expand pattern.
35086 (negdi_carryout): New insn pattern.
35087 (negvdi_carryinV): New insn pattern.
35088 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35089 version the named version.
35090 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35091 operands.
35092 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35093 patterns.
35094 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35095 patterns.
35096 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35097 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35098 (sub<mode>3_carryinCV): Delete.
35099 (sub<GPI:mode>3_carryinV): New expand pattern.
35100 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35101
35102 2019-01-07 Richard Biener <rguenther@suse.de>
35103
35104 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35105 of tree_operand_hash.
35106
35107 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35108
35109 PR tree-optimization/88598
35110 * tree.h (single_nonzero_element): Declare.
35111 * tree.c (single_nonzero_element): New function.
35112 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35113 if I is the only nonzero element of CST.
35114
35115 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35116
35117 PR tree-optimization/88598
35118 * tree.h (initializer_each_zero_or_onep): Declare.
35119 * tree.c (initializer_each_zero_or_onep): New function.
35120 (signed_or_unsigned_type_for): Handle float types too.
35121 (unsigned_type_for, signed_type_for): Update comments accordingly.
35122 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35123 x & { 0 or -1, 0 or -1, ... }.
35124
35125 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35126
35127 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35128 with x86_64-pc-linux-gnu.
35129
35130 2019-01-07 Tom de Vries <tdevries@suse.de>
35131
35132 PR target/85486
35133 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35134 function.
35135 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35136 routines.
35137
35138 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35139
35140 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35141 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35142 TARGET_AVX512F as condition.
35143
35144 PR debug/88723
35145 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35146 const_not_ok_for_debug_p target hook.
35147 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35148 on UNSPEC and subexpressions thereof if all subexpressions of the
35149 UNSPEC are CONSTANT_P.
35150
35151 PR tree-optimization/88676
35152 * tree-ssa-phiopt.c (two_value_replacement): New function.
35153 (tree_ssa_phiopt_worker): Call it.
35154
35155 PR sanitizer/88619
35156 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35157 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35158
35159 PR c++/85052
35160 * tree-vect-generic.c: Include insn-config.h and recog.h.
35161 (expand_vector_piecewise): Add defaulted ret_type argument,
35162 if non-NULL, use that in preference to type for the result type.
35163 (expand_vector_parallel): Formatting fix.
35164 (do_vec_conversion, do_vec_narrowing_conversion,
35165 expand_vector_conversion): New functions.
35166 (expand_vector_operations_1): Call expand_vector_conversion
35167 for VEC_CONVERT ifn calls.
35168 * internal-fn.def (VEC_CONVERT): New internal function.
35169 * internal-fn.c (expand_VEC_CONVERT): New function.
35170 * fold-const-call.c (fold_const_vec_convert): New function.
35171 (fold_const_call): Use it for CFN_VEC_CONVERT.
35172 * doc/extend.texi (__builtin_convertvector): Document.
35173
35174 2019-01-07 Tom de Vries <tdevries@suse.de>
35175
35176 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35177 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35178 vector_red_partition, vector_red_sym): New global variables.
35179 (nvptx_option_override): Initialize vector_red_sym.
35180 (nvptx_declare_function_name): Restore red_partition register.
35181 (nvptx_file_end): Emit code to declare the vector reduction variables.
35182 (nvptx_output_red_partition): New function.
35183 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35184 large vector reductions.
35185 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35186 (nvptx_init_builtins): Add VECTOR_ADDR.
35187 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35188 Handle nvptx_expand_shared_addr.
35189 (nvptx_get_shared_red_addr): Add vector argument and handle large
35190 vectors.
35191 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35192 large vectors.
35193 (nvptx_goacc_reduction_init): Likewise.
35194 (nvptx_goacc_reduction_fini): Likewise.
35195 (nvptx_goacc_reduction_teardown): Likewise.
35196 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35197 init,fini,teardown}.
35198 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35199 (nvptx_set_current_function): Init vector_red_partition.
35200 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35201 (nvptx_red_partition): New insn.
35202 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35203
35204 2019-01-07 Tom de Vries <tdevries@suse.de>
35205
35206 PR target/85381
35207 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35208 empty loops.
35209
35210 2019-01-07 Tom de Vries <tdevries@suse.de>
35211
35212 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35213 (nvptx_option_override): Init oacc_bcast_partition.
35214 (nvptx_init_oacc_workers): New function.
35215 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35216 (nvptx_needs_shared_bcast): New function.
35217 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35218 to propagate state.
35219 (nvptx_shared_propagate): Initialize vector bcast partition and
35220 synchronization state.
35221 (nvptx_single): Generalize to enable vectors to use shared-memory
35222 to propagate state.
35223 (nvptx_process_pars): Likewise.
35224 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35225 * config/nvptx/nvptx.h (struct machine_function): Add
35226 bcast_partition and sync_bar members.
35227
35228 2019-01-07 Tom de Vries <tdevries@suse.de>
35229
35230 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35231 (nvptx_apply_dim_limits): New function.
35232 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35233 PTX_WARP_SIZE.
35234
35235 2019-01-07 Tom de Vries <tdevries@suse.de>
35236
35237 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35238 as late as possible.
35239
35240 2019-01-07 Tom de Vries <tdevries@suse.de>
35241
35242 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35243 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35244 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35245 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35246 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35247
35248 2019-01-07 Tom de Vries <tdevries@suse.de>
35249
35250 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35251
35252 2019-01-07 Tom de Vries <tdevries@suse.de>
35253
35254 * omp-offload.c (oacc_get_min_dim): New function.
35255 * omp-offload.h (oacc_get_min_dim): Declare.
35256
35257 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35258
35259 PR target/88521
35260 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35261 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35262
35263 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35264
35265 PR tree-opt/86020
35266 Revert:
35267 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35268
35269 * ipa-inline.c (edge_badness): Use inlined_time instead of
35270 inline_summaries->get.
35271
35272 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35273
35274 * opts.c (enable_fdo_optimizations): Enable
35275 version-loops-for-strides, loop-interchange, unrol-and-jam
35276 and tree-loop-distribution.
35277 * invoke.texi: Document newly enabled options.
35278
35279 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35280
35281 * doc/invoke.texi (max-inline-insns-small): New parameters.
35282 * ipa-inline.c (want_early_inline_function_p): simplify.
35283 (want_inline_small_function_p): Fix pasto from previous patch;
35284 use max-inline-insns-small bound.
35285 * params.def (max-inline-insns-small): New param.
35286 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35287 variables correctly.
35288
35289 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35290
35291 * doc/invoke.texi: Document max-inline-insns-size,
35292 uninlined-function-insns, uninlined-function-time,
35293 uninlined-thunk-insns and uninlined-thunk-time.
35294 * params.def: Add max-inline-insns-size,
35295 uninlined-function-insns, uninlined-function-time,
35296 uninlined-thunk-insns and uninlined-thunk-time.
35297 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35298 new parameters.
35299 * ipa-inline.c (can_inline_edge_by_limits_p,
35300 want_inline_small_function_p): Use new parameters.
35301
35302 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35303
35304 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35305
35306 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35307
35308 PR middle-end/82564
35309 PR target/88620
35310 * expr.c (expand_assignment): For calls returning VLA structures
35311 if to_rtx is not a MEM, force it into a stack temporary.
35312
35313 PR debug/88635
35314 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35315 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35316 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35317 subexpressions of both operands.
35318 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35319 subrtxes are CONSTANT_P.
35320 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35321 2018-11-09 changes.
35322
35323 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35324
35325 * params.def (hot-bb-count-ws-permille): Set to 990.
35326
35327 2019-01-04 Martin Sebor <msebor@redhat.com>
35328
35329 PR c/88546
35330 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35331 leaf.
35332
35333 2019-01-04 Martin Sebor <msebor@redhat.com>
35334
35335 PR c/88363
35336 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35337
35338 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35339
35340 * gdbinit.in: Turn off pagination for the skip commands, restore
35341 it to previous state afterwards.
35342
35343 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35344
35345 PR target/88594
35346 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35347 of GET_MODE (opN) as modes of the libcall arguments.
35348
35349 2019-01-04 Jan Beulich <jbeulich@suse.com>
35350
35351 * config/i386/sse.md
35352 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35353 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35354 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35355 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35356 avx512f_vmcmp<mode>3<round_saeonly_name>,
35357 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35358 avx512f_maskcmp<mode>3,
35359 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35360 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35361 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35362 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35363 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35364 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35365 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35366 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35367 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35368 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35369 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35370 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35371 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35372 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35373 avx512cd_maskb_vec_dup<mode>,
35374 avx512cd_maskw_vec_dup<mode>,
35375 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35376 avx512dq_vmfpclass<mode>,
35377 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35378 instead of =Yk.
35379
35380 2019-01-03 Martin Sebor <msebor@redhat.com>
35381
35382 PR tree-optimization/88659
35383 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35384
35385 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35386
35387 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35388 unaligned vsx and avoid lxvd2x/stxvd2x.
35389 (gen_lvx_v4si_move): New function.
35390
35391 2019-01-03 Tom de Vries <tdevries@suse.de>
35392
35393 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35394 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35395 function.
35396 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35397
35398 2019-01-03 Tom de Vries <tdevries@suse.de>
35399
35400 * config/nvptx/nvptx.c (struct offload_attrs): New.
35401 (populate_offload_attrs): New function. Factor mask extraction out of
35402 nvptx_reorg. Add extraction of dimensions.
35403 (nvptx_reorg): Use populate_offload_attrs.
35404
35405 2019-01-03 Tom de Vries <tdevries@suse.de>
35406
35407 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35408 cases for oacc_min_dims_p and routine_p. Add asserts for
35409 oacc_default_dims_p and offload_region_p.
35410
35411 2019-01-03 Tom de Vries <tdevries@suse.de>
35412
35413 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35414 factored out of ...
35415 (nvptx_goacc_validate_dims): ... here.
35416
35417 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35418
35419 PR tree-optimization/85574
35420 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35421 structure.
35422 (struct ssa_equip_hash_traits): Declare.
35423 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35424
35425 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35426
35427 PR debug/88644
35428 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35429 change it to qualified_type.
35430
35431 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35432
35433 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35434 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35435
35436 2019-01-02 Martin Sebor <msebor@redhat.com>
35437 Jeff Law <law@redhat.com>
35438
35439 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35440 (get_range_strlen_tree): Update appropriately.
35441 (get_range_strlen)
35442 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35443
35444 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35445 rather than set_range_info.
35446 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35447 maybe_set_strlen_range. Handle potentially boundary crossing
35448 cases more conservatively.
35449 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35450 Call set_strlen_range.
35451 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35452
35453 PR middle-end/88663
35454 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35455 need the flexp argument.
35456 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35457 from calls to get_range_strlen. Update comments. Just update
35458 VAL for an unterminated const char array and let the reset of the
35459 code handle it normally. No longer try to set *flexp. Adjust
35460 return value.
35461 (get_range_strlen): Update for the new get_range_strlen API.
35462 (get_maxval_strlen): Similarly.
35463 (gimple_fold_builtin_strlen): Handle update meaning of return value
35464 from get_range_strlen.
35465 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35466 get_range_strlen API.
35467
35468 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35469
35470 PR lto/88130
35471 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35472 false at WPA time when body was removed.
35473
35474 2019-01-02 Martin Liska <mliska@suse.cz>
35475
35476 PR tree-optimization/88650
35477 * predict.c (set_even_probabilities): Calculate probability
35478 remainer only when really used.
35479
35480 2019-01-02 Richard Biener <rguenther@suse.de>
35481
35482 PR middle-end/88651
35483 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35484 widest_ints when mangling max_stmt_execution results.
35485
35486 2019-01-02 Richard Biener <rguenther@suse.de>
35487
35488 PR tree-optimization/88621
35489 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35490 bitfields when canoncalizing.
35491
35492 2019-01-02 Richard Biener <rguenther@suse.de>
35493
35494 PR target/87545
35495 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35496 cost of cheap SSE instruction.
35497
35498 2019-01-02 Richard Biener <rguenther@suse.de>
35499
35500 PR ipa/85574
35501 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35502 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35503 function.
35504 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35505 set after UIDs before splitting them.
35506
35507 2019-01-01 Martin Sebor <msebor@redhat.com>
35508 Jeff Law <law@redhat.com>
35509
35510 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35511 length is optimistic. If it is, then arrange to compute the
35512 conservative length as well.
35513
35514 * gimple-fold.h (get_range_strlen): Update prototype.
35515 * builtins.c (check_access): Update call to get_range_strlen to use
35516 c_strlen_data pointer. Change various variable accesses to instead
35517 pull data from the c_strlen_data structure.
35518 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35519 * calls.c (maybe_warn_nonstring_arg): Likewise.
35520 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35521 minimum length if maximum lengh is unknown.
35522 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35523 that used c_strlen, it's no longer needed. Restructure slightly.
35524 (format_string): Set unlikely range appropriately.
35525 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35526 formatting issues.
35527 (get_range_strlen): Accept c_strlen_data pointer for external
35528 call sites as well. Pass through to call to internal get_range_strlen.
35529 Adjust minlen, maxlen and maxbound as needed.
35530 (get_maxval_strlen): Update comments.
35531 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35532 to use c_strlen_data pointer. Change variable accesses to instead
35533 use c_strlen_data data members.
35534
35535 * gimple-fold.c (get_range_strlen): Update prototype.
35536 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35537 local variables. Use pdata to return information to caller.
35538 Update calls to get_range_strlen. Update pdata->maxbound.
35539 (get_range_strlen -- static version): Similarly.
35540 (get_range_strlen -- extern version): Update for internal
35541 get_range_strlen API change. Convert to external data format.
35542 (get_maxval_strlen): Similarly.
35543
35544 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35545
35546 * coverage.c (get_coverage_counts): Use current_function_decl.
35547 * profile.c (read_thunk_profile): New function.
35548 (branch_prob): Add THUNK parameter.
35549 * tree-profile.c (tree_profiling): Handle thunks.
35550 * value-prof.c (init_node_map): Handle thunks.
35551 * value-prof.h (branch_prob): Upate prototype.
35552 (read_thunk_profile): Declare.
35553
35554 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35555
35556 Update copyright years.
35557
35558 * gcc.c (process_command): Update copyright notice dates.
35559 * gcov-dump.c (print_version): Ditto.
35560 * gcov.c (print_version): Ditto.
35561 * gcov-tool.c (print_version): Ditto.
35562 * gengtype.c (create_file): Ditto.
35563 * doc/cpp.texi: Bump @copying's copyright year.
35564 * doc/cppinternals.texi: Ditto.
35565 * doc/gcc.texi: Ditto.
35566 * doc/gccint.texi: Ditto.
35567 * doc/gcov.texi: Ditto.
35568 * doc/install.texi: Ditto.
35569 * doc/invoke.texi: Ditto.
35570 \f
35571 Copyright (C) 2019 Free Software Foundation, Inc.
35572
35573 Copying and distribution of this file, with or without modification,
35574 are permitted in any medium without royalty provided the copyright
35575 notice and this notice are preserved.