]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
re PR c/87488 (hyperlink filenames in diagnostics)
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
2 David Malcolm <dmalcolm@redhat.com>
3 Jakub Jelinek <jakub@redhat.com>
4
5 PR c/87488
6 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
7 instead of ST sequence to terminate OSC 8 strings.
8
9 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
10 Vladimir Makarov <vmakarov@redhat.com>
11
12 PR rtl-optimization/92176
13 * lra.c (simplify_subreg_regno): Don't permit unconditional
14 changing mode for LRA too.
15
16 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
17
18 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
19 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
20 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
21 Handle them.
22
23 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
24
25 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
26 in the asm output.
27
28 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
29
30 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
31 (VEC_1REG_ALT): Likewise.
32 (VEC_ALL1REG_MODE): New mode iterator.
33 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
34 (VEC_1REG_INT_ALT): Likewise.
35 (VEC_ALL1REG_INT_MODE): New mode interator.
36 (VEC_ALL1REG_INT_ALT): Likewise.
37 (VEC_REG_MODE): Remove V64QI and V64HI.
38 (VEC_ALLREG_MODE): New mode interator.
39 (vec_merge): Change to VEC_ALLREG_MODE.
40 (vec_merge_with_clobber): Likewise.
41 (vec_merge_with_vcc): Likewise.
42 (mov<mode>): Likewise.
43 (mov<mode>_unspec): Likewise.
44 (*mov<mode>): Change to VEC_ALL1REG_MODE.
45 (mov<mode>_exec): Likewise.
46 (*mov<mode>_exec_match): Likewise.
47 (mov<mode>_sgprbase): Likewise.
48 (reload_in<mode>): Change to VEC_ALLREG_MODE.
49 (reload_out<mode>): Likewise.
50 (scalar address splits): Likewise.
51 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
52 (vec_set<mode>): Change to VEC_ALLREG_MODE.
53 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
54 (vec_duplicate<mode><exec>): Likewise.
55 (vec_extract<mode><scalar_mode>): Likewise.
56 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
57 (gather_load<mode>): Likewise.
58 (gather<mode>_exec): Likewise.
59 (gather<mode>_expr<exec>): Likewise.
60 (gather<mode>_insn_1offset<exec>): Likewise.
61 (gather<mode>_insn_1offset_ds<exec>): Likewise.
62 (gather<mode>_insn_2offsets<exec>): Likewise.
63 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
64 (VEC_INT_MODE): Remove V64QI and V64HI.
65 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
66 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
67 VEC_ALL1REG_MODE.
68 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
69 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
70 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
71 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
72 (maskstore<mode>di): Likewise.
73 (mask_gather_load<mode>): Likewise.
74 (mov_from_lane63_<mode>): Likewise.
75 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
76 and V64HImode vectorization.
77 (gcn_related_vector_mode): New function.
78 (TARGET_VECTORIZE_RELATED_MODE): New define.
79
80 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
81 Kwok Cheung Yeung <kcy@codesourcery.com>
82
83 * omp-low.c (lower_omp_target): For optional arguments, deref once
84 more to obtain the type.
85
86 2019-12-06 Richard Biener <rguenther@suse.de>
87
88 * match.pd (nop_convert): Remove empty match. Use nop_convert?
89 everywhere.
90
91 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
92
93 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
94 for empty vectors. Avoid using ordered_remove and instead
95 shuffle the vector as we go.
96
97 2019-12-06 Richard Biener <rguenther@suse.de>
98
99 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
100 VIEW_CONVERT{0,1,2}.
101 (expr::opt_grp): Add and initialize.
102 (lower_opt_convert): Rename to ...
103 (lower_opt): ... and work on opt_grp, simply switching operations
104 from being optional to being present or not.
105 (has_opt_convert): Rename to ...
106 (has_opt): ... and adjust.
107 (parser::parse_operation): Return the optional opt_grp,
108 remove special-casing of conditional operations and more generally
109 parse [digit]'?'.
110 (parser::parse_expr): Stick on the parsed opt_grp and perform
111 rough verification.
112 (parser::parse_for): Remove now unnecessary code.
113 (main): Likewise.
114 * doc/match-and-simplify.texi: Mention ? now works on all
115 unary operations and also match predicates.
116
117 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
118
119 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
120 functions, not inline clones.
121
122 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
123
124 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
125
126 2019-12-06 Richard Biener <rguenther@suse.de>
127
128 * genmatch.c (c_expr::gen_transform): Emit newlines from line
129 number changes rather than after every semicolon.
130
131 2019-12-06 Richard Biener <rguenther@suse.de>
132
133 PR tree-optimization/92819
134 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
135 into the last lane. For two-element vectors try inserting
136 into the last lane when inserting into the first fails.
137
138 2019-12-06 Jakub Jelinek <jakub@redhat.com>
139
140 * common.opt (fprofile-partial-training): Terminate description with
141 full stop.
142
143 2019-12-05 Martin Sebor <msebor@redhat.com>
144
145 PR middle-end/92622
146 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
147 left uninitialized by get_addr_base_and_unit_offset on failure.
148
149 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
150
151 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
152 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
153 (detect_type_change): Likewise.
154 (detect_type_change_ssa): Likewise.
155 (ipa_analyze_virtual_call_uses): Update.
156
157 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
158
159 * config/nios2/linux.h (LINK_EH_SPEC): Define.
160
161 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
162
163 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
164
165 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
166
167 * cgraphclones.c (localize_profile): New function.
168 (cgraph_node::create_clone): Use it for partial profiles.
169 * common.opt (fprofile-partial-training): New flag.
170 * doc/invoke.texi (-fprofile-partial-training): Document.
171 * ipa-cp.c (update_profiling_info): For partial profiles do not
172 set function profile to zero.
173 * profile.c (compute_branch_probabilities): With partial profile
174 watch if edge count is zero and turn all probabilities to guessed.
175 (compute_branch_probabilities): For partial profiles do not apply
176 profile when entry count is zero.
177 * tree-profile.c (tree_profiling): Only do value_profile_transformations
178 when profile is read.
179
180 2019-12-05 Sudakshina Das <sudi.das@arm.com>
181
182 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
183 check from if condition.
184
185 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
186
187 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
188 and Fortran's optional arguments, unconditionally add the is-present
189 condition before the libgomp call.
190
191 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
192
193 PR middle-end/92768
194 * tree-core.h (OEP_BITWISE): New flag.
195 * fold-const.c (operand_compare::operand_equal_p): Handle it.
196 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
197
198 2019-12-05 Richard Biener <rguenther@suse.de>
199
200 PR middle-end/92818
201 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
202 heuristics on what don't care element to choose.
203 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
204
205 2019-12-05 Martin Liska <mliska@suse.cz>
206
207 PR gcov-profile/92817
208 * coverage.c (build_gcov_exit_decl): Remove superfluous
209 void_type_node.
210
211 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
212
213 * config/msp430/msp430.md (cbranch<mode>4): Use
214 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
215 dest operand of CMP instruction.
216 (cbranchpsi4_real): Likewise.
217 (cbranchqi4_real): Likewise.
218 (cbranchhi4_real): Likewise.
219 (cbranchpsi4_reversed): Likewise.
220 (cbranchqi4_reversed): Likewise.
221 (cbranchhi4_reversed): Likewise.
222
223 2019-12-05 Richard Biener <rguenther@suse.de>
224
225 PR tree-optimization/92803
226 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
227 invariant vector construction.
228
229 2019-12-05 Martin Liska <mliska@suse.cz>
230
231 PR gcov-profile/91971
232 * coverage.c (coverage_init): Mangle full path
233 only when -fprofile-dir is used.
234
235 2019-12-05 Jakub Jelinek <jakub@redhat.com>
236
237 PR target/92791
238 * config/i386/i386.md (movstrict<mode>): Move test for
239 TARGET_PARTIAL_REG_STALL and not optimizing for size from
240 expander's condition to the body - FAIL; in that case.
241
242 2019-12-03 Martin Sebor <msebor@redhat.com>
243
244 PR middle-end/91582
245 * builtins.c (gimple_call_alloc_size): New function.
246 (compute_objsize): Add argument. Call gimple_call_alloc_size.
247 Handle variable offsets and indices.
248 * builtins.h (gimple_call_alloc_size): Declare.
249 (compute_objsize): Add argument.
250 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
251 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
252
253 2019-12-04 Julian Brown <julian@codesourcery.com>
254
255 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
256
257 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
258
259 PR bootstrap/92661
260 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
261 rs6000.h.
262 (altivec_overloaded_builtins): Move to rs6000-call.c.
263 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
264 rs6000-c.c.
265 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
266 (altivec_overloaded_builtins): Moved from rs6000-c.c.
267 (rs6000_common_init_builtins): Do no define builtins that overload
268 builtins that have been disabled.
269
270 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
271
272 * config/arm/arm.c (arm_option_override_internal):
273 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
274
275 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
276
277 * config/aarch64/aarch64.c
278 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
279 (thunderx_tunings): Likewise.
280 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
281 (thunderx2t99_tunings): Likewise.
282 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
283 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
284
285 2019-12-04 Richard Biener <rguenther@suse.de>
286
287 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
288 empty CTOR and memset partial-def registering. Take advantage
289 of fancy offset analysis in memset handling.
290
291 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
292
293 * fold-const.c (native_encode_vector_part): Handle
294 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
295 (native_decode_vector_tree): Delete, moving the bulk of the code to...
296 (native_interpret_vector_part): ...this new function. Use a pointer
297 and length instead of a vec<> and start index.
298 (native_interpret_vector): Use native_interpret_vector_part.
299 (fold_view_convert_vector_encoding): Likewise.
300
301 2019-12-04 Richard Biener <rguenther@suse.de>
302
303 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
304 non-constant defs in the most trivial way.
305 (vn_reference_lookup_3): Also push down SSA partial defs.
306
307 2019-12-04 Martin Liska <mliska@suse.cz>
308
309 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
310 Initialize count of newly created BB.
311
312 2019-12-04 Jakub Jelinek <jakub@redhat.com>
313
314 PR tree-optimization/92734
315 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
316 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
317
318 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
319
320 PR target/92760
321 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
322 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
323
324 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
325
326 * ipa-fnsummary.c: Include tree-into-ssa.h.
327 (compute_fn_summary): Call update_ssa.
328
329 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
330
331 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
332 is set only for symbol in comdat group.
333 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
334
335 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
336
337 * cgraph.c: Include tree-into-ssa.h
338 (cgraph_node::get_body): Call update_ssa.
339 * cgraphunit.c (cgraph_node::expand): Likewise.
340 * lto-streamer-in.c (input_function): Do not call update_ssa.
341
342 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
343
344 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
345 an array element size if array_element_size is already an invariant.
346 Similarly don't gimplify and install a field offset if
347 component_ref_field_offset is already an invariant.
348
349 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
350
351 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
352 with POLY_INT_CST size is made to a fixed-size object, force the
353 object to live in memory.
354
355 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
356
357 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
358 for the data mode.
359
360 2019-12-03 Richard Biener <rguenther@suse.de>
361
362 PR tree-optimization/92758
363 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
364 operation on uniform vectors.
365
366 2019-12-03 Richard Biener <rguenther@suse.de>
367
368 PR tree-optimization/92645
369 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
370 from or to a properly aligned register variable.
371
372 2019-12-03 Matthias Klose <doko@ubuntu.com>
373
374 * Makefile.in (SOURCES): Add doc/lto-dump.1.
375 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
376 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
377
378 2019-12-03 Richard Biener <rguenther@suse.de>
379
380 PR tree-optimization/92751
381 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
382 when a clobber ends up in the partial-def vector.
383 (vn_reference_lookup_3): Let clobbers be handled by the
384 assignment from CTOR handling.
385
386 2019-12-03 Jakub Jelinek <jakub@redhat.com>
387
388 PR tree-optimization/92734
389 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
390 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
391 inner subtraction.
392
393 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
394 Jakub Jelinek <jakub@redhat.com>
395
396 PR target/92744
397 * config/i386/i386.md (peephole2 for *swap<mode>): Use
398 general_reg_operand predicates instead of register_operand.
399
400 2019-12-03 Richard Biener <rguenther@suse.de>
401
402 PR tree-optimization/92645
403 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
404 a full def of a vector via a BIT_INSERT_EXPR.
405
406 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
407
408 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
409 static.
410 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
411 decl.
412
413 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
414
415 PR middle-end/92741
416 * fold-const.c (fold_convertible_p): Check vector types more
417 thoroughly.
418
419 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
420
421 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
422 (aarch64_expand_mov_immediate): Use it when attempting to measure
423 the length of an SVE vector.
424 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
425 SVE is enabled.
426
427 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
428
429 * config/aarch64/aarch64-sve-builtins.h
430 (gimple_folder::force_vector): Declare.
431 * config/aarch64/aarch64-sve-builtins.cc
432 (gimple_folder::force_vector): New function.
433 * config/aarch64/aarch64-sve-builtins-base.cc
434 (svcmp_impl::fold): Likewise.
435 (svdup_impl::fold): Handle svdup_z too.
436
437 2019-12-02 Martin Liska <mliska@suse.cz>
438
439 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
440 function.
441 (debug_tree_odr_name): New.
442 * ipa-utils.h (get_odr_name_for_type): New.
443
444 2019-12-02 Richard Biener <rguenther@suse.de>
445
446 PR tree-optimization/92742
447 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
448 touch the def-type but verify it is consistent with the
449 original stmts.
450
451 2019-12-02 Jakub Jelinek <jakub@redhat.com>
452
453 PR tree-optimization/92712
454 * match.pd ((A * B) +- A -> (B +- 1) * A,
455 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
456 even when we don't know anything about range of A, but do know
457 something about range of B and the simplification won't introduce
458 new UB.
459
460 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
461
462 PR ipa/92133
463 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
464 (ipa-cp-min-recursive-probability): Likewise.
465 * params.opt (ipa-cp-max-recursive-depth): New.
466 (ipa-cp-min-recursive-probability): Likewise.
467 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
468 val_p and unlimited.
469 (self_recursively_generated_p): New function.
470 (get_val_across_arith_op): Likewise.
471 (propagate_vals_across_arith_jfunc): Add constant propagation for
472 self-recursive function.
473 (incorporate_penalties): Do not penalize pure self-recursive function.
474 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
475 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
476 (get_info_about_necessary_edges): Relax hotness check for edge to
477 self-recursive function.
478 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
479
480 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
481
482 PR target/92499
483
484 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
485 objects of flexible types to be small if they have internal linkage
486 or are declared extern.
487 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
488 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
489 instead of the size of the object initializer.
490 * tree.c (flexible_array_type_p): Move from C front end, and
491 generalize to handle fields in non-C structures.
492 * tree.h (flexible_array_type_p): Declare.
493
494 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
495
496 * profile-count.h (profile_count::operator<): Use IPA value for
497 comparsion.
498 (profile_count::operator>): Likewise.
499 (profile_count::operator<=): Likewise.
500 (profile_count::operator>=): Likewise.
501 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
502
503 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
504
505 * ipa-inline.c (compute_max_insns): Return int64_t.
506 (inline_small_functions): Simplify.
507
508 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
509
510 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
511 scaling happen.
512
513 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
514
515 * cgraph.h (symtab_node): Add symver flag.
516 * cgraphunit.c (process_symver_attribute): New.
517 (process_common_attributes): Use process_symver_attribute.
518 * lto-cgraph.c (lto_output_node): Stream symver.
519 (lto_output_varpool_node): Stream symver.
520 (input_overwrite_node): Stream symver.
521 (input_varpool_node): Stream symver.
522 * output.h (do_assemble_symver): Decalre.
523 * symtab.c (symtab_node::dump_base): Dump symver.
524 (symtab_node::verify_base): Verify symver.
525 (symtab_node::resolve_alias): Handle symver.
526 * varasm.c (do_assemble_symver): New function.
527 * varpool.c (varpool_node::assemble_aliases): Use it.
528 * doc/extend.texi: (symver attribute): Document.
529 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
530
531 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
532
533 * target.h (type_context_kind): New enum.
534 (verify_type_context): Declare.
535 * target.def (verify_type_context): New target hook.
536 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
537 * doc/tm.texi: Regenerate.
538 * tree.c (verify_type_context): New function.
539 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
540 Declare.
541 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
542 New function.
543 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
544 (TARGET_VERIFY_TYPE_CONTEXT): Define.
545
546 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
547
548 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
549 * cgraph.h (cgraph_node): Add unit_id and
550 merged_extern_inline.
551 (symbol_table): Add max_unit.
552 (symbol_table::symbol_table): Initialize it.
553 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
554 merged_comdat, merged_extern_inline.
555 (cgraph_node::create_clone): Likewise.
556 (cgraph_node::create_version_clone): Likewise.
557 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
558 calls.
559 * ipa-fnsummary.h (cross_module_call_p): New inline function.
560 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
561 * ipa-inline.c (inline_small_functions): Likewise.
562 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
563 copy merged_comdat and merged_extern_inline.
564 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
565 merged_extern_inline and unit_id.
566 (input_overwrite_node): Stream in these.
567 (input_cgraph_1): Set unit_base.
568 * lto-streamer.h (lto_file_decl_data): Add unit_base.
569 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
570
571 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
572
573 * gcc.c (process_command): Only warn about an ineffective `-x'
574 option if any input files have actually been supplied.
575
576 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
577
578 * doc/install.texi (Options specification): Remove the list of
579 target library subdirectories supporting
580 `--enable-version-specific-runtime-libs'. Document defaults for
581 the option.
582
583 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
584
585 PR rtl-optimization/92283
586 * lra.c (lra): Update reg notes after inheritance sub-pass and
587 before constraint sub-pass.
588
589 2019-11-29 Richard Biener <rguenther@suse.de>
590
591 PR tree-optimization/91003
592 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
593 operand number, avoid handling the non-condition operands of
594 COND_EXPRs as comparisons.
595 (vect_get_constant_vectors): Pass down the operand number.
596 (vect_get_slp_defs): Likewise.
597
598 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
599
600 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
601 generic_expr_could_trap_p to check if the condition of COND_EXPR or
602 VEC_COND_EXPR can trap.
603
604 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
605
606 PR tree-optimization/92677
607 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
608 to zero when dissolving a group of strided accesses.
609
610 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
611
612 PR tree-optimization/92596
613 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
614 operations.
615 (vectorizable_operation): Likewise, instead of relying on
616 vect_get_mask_type_for_stmt to do this.
617 (vect_get_vector_types_for_stmt): Always return a vector type
618 immediately, rather than deferring the choice for boolean results.
619 Use a vector mask type instead of a normal vector if
620 vect_use_mask_type_p.
621 (vect_get_mask_type_for_stmt): Delete.
622 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
623 mask_producers argument and special boolean_type_node handling.
624 (vect_determine_vf_for_stmt): Remove mask_producers argument and
625 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
626 (vect_determine_vectorization_factor): Update call accordingly.
627 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
628 boolean_type_node handling.
629 (vect_slp_analyze_node_operations_1): Likewise.
630
631 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
632
633 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
634 (vect_use_mask_type_p): New function.
635 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
636 mask precision to the pattern statement.
637 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
638 and use it to initialize the new stmt's mask precision.
639 (search_type_for_mask_1): Delete.
640 (search_type_for_mask): Replace with...
641 (integer_type_for_mask): ...this new function. Use the information
642 cached in the stmt_vec_info.
643 (vect_recog_bool_pattern): Update accordingly.
644 (build_mask_conversion): Pass the scalar type associated with the
645 mask type to append_pattern_def_seq.
646 (vect_recog_mask_conversion_pattern): Likewise. Call
647 integer_type_for_mask instead of search_type_for_mask.
648 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
649 of search_type_for_mask.
650 (possible_vector_mask_operation_p): New function.
651 (vect_determine_mask_precision): Likewise.
652 (vect_determine_stmt_precisions): Call it.
653
654 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
655
656 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
657 the slp_tree parameter with a group size parameter.
658 (vect_get_mask_type_for_stmt): Likewise.
659 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
660 (vect_get_mask_type_for_stmt): Likewise.
661 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
662 call accordingly.
663
664 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
665
666 * tree-vect-stmts.c (vectorizable_operation): Punt early
667 on codes that are handled elsewhere.
668
669 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
670
671 * doc/sourcebuild.texi (vect_bool_cmp): Document.
672 * tree-vect-patterns.c (search_type_for_mask_1): If neither
673 operand to a boolean comparison is a natural vector mask,
674 handle both operands like normal integers instead.
675
676 2019-11-29 Richard Biener <rguenther@suse.de>
677
678 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
679 out early for too large objects.
680
681 2019-11-29 Martin Jambor <mjambor@suse.cz>
682
683 PR ipa/92476
684 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
685 the summary only if the summary exists.
686 (find_more_scalar_values_for_callers_subset): Check node_dead in
687 the summary only if the summary exists.
688 (ipcp_store_bits_results): Ignore nodes without lattices.
689 (ipcp_store_vr_results): Likewise.
690 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
691 header files required by them.
692 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
693
694 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
695
696 PR tree-optimization/92710
697 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
698 vector mask arguments.
699
700 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
701
702 * profile-count.c (profile_count::to_cgraph_frequency,
703 profile_count::to_sreal_scale): Check for compaibility of counts.
704 * profile-count.h (compatible_p): Make public; add checking for
705 global0 versus global types.
706 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
707
708 2019-11-29 Richard Biener <rguenther@suse.de>
709
710 PR tree-optimization/92715
711 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
712 out for uniform vectors and source vectors with less elements
713 than the destination.
714
715 2019-11-29 Martin Liska <mliska@suse.cz>
716
717 PR lto/91574
718 * ipa-devirt.c (types_same_for_odr): Check for existence
719 of TYPE_NAMEs first.
720
721 2019-11-29 Richard Biener <rguenther@suse.de>
722
723 PR tree-optimization/92704
724 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
725 in loops performing only loads.
726
727 2019-11-29 Julian Brown <julian@codesourcery.com>
728
729 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
730 BT_DFLOAT128_PTR) Remove.
731 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
732 TI_DFLOAT128_PTR_TYPE): Remove.
733 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
734 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
735 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
736 dfloat128_ptr_type_node): Remove macros.
737
738 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
739
740 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
741 formatting.
742 (*movdi_internal64): Ditto.
743
744 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
745
746 PR target/92602
747 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
748 indexed_or_indirect_operand to be memory_operand.
749 (bswap<mode>2_store for HSI): Ditto.
750 (bswapdi2_load): Ditto.
751 (bswapdi2_store): Ditto.
752
753 2019-11-28 Martin Liska <mliska@suse.cz>
754
755 PR debug/46558
756 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
757 headers for translation.
758
759 2019-11-28 Martin Liska <mliska@suse.cz>
760
761 PR lto/92609
762 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
763 consistently.
764
765 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
766
767 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
768 checks.
769
770 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
771
772 * profile-count.c (profile_count::combine_with_ipa_count): Return
773 uninitialized count if called on ininitialized count.
774
775 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
776
777 * ipa-inline-transform.c (inline_transform): Scale profile before
778 redirecting.
779
780 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
781
782 * profile-count.h (profile_count::max): Work on profiles of different
783 type.
784 (profile_count::apply_scale): Be sure that ret is not local or global0
785 type if num is global.
786
787 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
788
789 * profile-count.h (profile_count::max): Work on profiles of different
790 type.
791 (profile_count::apply_scale): Be sure that ret is not local or global0
792 type if num is global.
793
794 2019-11-28 Martin Jambor <mjambor@suse.cz>
795
796 PR ipa/92697
797 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
798 ifunc_resolvers.
799 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
800 Removed trailig whitespace.
801
802 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
803
804 * profile-count.h (profile_count::combine_with_ipa_count_within):
805 Declare.
806 * profile-count.c (profile_count::combine_with_ipa_count_within):
807 New.
808 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
809 it.
810
811 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
812
813 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
814 of counters are done same way.
815
816 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
817
818 * ipa-cp.c (update_profiling_info): Fix scaling.
819
820 2019-11-28 Richard Biener <rguenther@suse.de>
821
822 PR tree-optimization/92645
823 * tree-inline.c (remap_gimple_stmt): When the return value
824 is not wanted, elide GIMPLE_RETURN.
825
826 2019-11-28 Richard Biener <rguenther@suse.de>
827
828 PR tree-optimization/92645
829 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
830 conversions inside a mode class. Remove restriction on
831 preserving the element size.
832 (simplify_vector_constructor): Deal with the above and for
833 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
834 and VEC_PACK_TRUNC_EXPR.
835
836 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
837
838 Must use push insn to pass varargs arguments of DFmode because
839 otherwise the middle-end generates wrong code.
840
841 PR target/92055
842 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
843
844 2019-11-28 Jakub Jelinek <jakub@redhat.com>
845
846 PR tree-optimization/92691
847 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
848 in function comment.
849 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
850 calls, return !handle_printf_call rather than always returning true.
851 (check_and_optimize_stmt): Describe return value meaning in function
852 comment. Formatting fix.
853
854 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
855
856 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
857 combination of globa0 and global counters..
858
859 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
860
861 PR target/92566
862 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
863 by VECTOR_UNIT_NONE_P instead.
864
865 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
866
867 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
868 Refine VF to VF_AVX512VL.
869
870 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
871
872 * config/rs6000/rs6000.md (movsi_internal): Reformat.
873 (movdi_internal64): Reformat.
874
875 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
876
877 PR bootstrap/92661
878 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
879 builtin if we don't have an actual type.
880 (builtin_function_type): If the builtin function uses a DFP type
881 and decimal float has been disabled, then return NULL_TREE.
882
883 2019-11-27 Jakub Jelinek <jakub@redhat.com>
884
885 PR rtl-optimization/92510
886 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
887 of comparison into a comparison with different mode if both imode and
888 omode are scalar integral modes.
889
890 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
891
892 PR rtl-optimization/90007
893 * recog.c (constrain_operands): Permit hard registers too for
894 memory when LRA is used.
895
896 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
897
898 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
899 between Coldfire and regular m68k.
900 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
901
902 2019-11-27 Richard Biener <rguenther@suse.de>
903
904 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
905 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
906 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
907 * optabs-tree.c (supportable_convert_operation): Do not call
908 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
909 * optabs-tree.h (supportable_convert_operation): Adjust.
910 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
911 * doc/tm.texi: Regenerate.
912 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
913 * tree-vect-generic.c (expand_vector_conversion): Likewise.
914 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
915 unused decl parameter and adjust.
916 (vect_create_vectorized_promotion_stmts): Likewise.
917 (vectorizable_conversion): Adjust.
918
919 2019-11-27 Richard Biener <rguenther@suse.de>
920
921 PR tree-optimization/92690
922 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
923 converting elements not originally converted.
924
925 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
926
927 PR middle-end/92463
928 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
929 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
930 mpfr_rnd_t instead of mp_rnd_t.
931 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
932 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
933 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
934 Use mpfr_exp_t instead of mp_exp_t.
935 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
936 MPFR_RNDx instead of GMP_RNDx.
937 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
938 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
939 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
940 of mp_rnd_t and remove MPFR_RNDx poisoning.
941 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
942
943 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
944
945 PR tree-optimization/91790
946 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
947 DR for vect_setup_realignment when first_stmt_info is different
948 from first_stmt_info_for_drptr.
949
950 2019-11-27 Richard Biener <rguenther@suse.de>
951
952 PR tree-optimization/92645
953 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
954 CTORs with just a subset of the original vectors.
955
956 2019-11-27 Richard Biener <rguenther@suse.de>
957
958 PR middle-end/92674
959 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
960 edges and instead record blocks in bitmap.
961 (gimple_expand_calls_inline): Adjust.
962 (fold_marked_statements): Delay EH cleanup until all folding is
963 done.
964 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
965 inlining finished.
966
967 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
968
969 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
970 LRA is enabled.
971 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
972 disabled.
973
974 2019-11-27 Jakub Jelinek <jakub@redhat.com>
975
976 PR debug/92664
977 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
978
979 2019-11-26 Martin Sebor <msebor@redhat.com>
980
981 PR tree-optimization/92683
982 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
983 inadvertently removed in a previous change. Rename local variable
984 for clarity.
985
986 2019-11-26 Richard Biener <rguenther@suse.de>
987
988 PR middle-end/92669
989 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
990 NULL pre_order.
991
992 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
993
994 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
995
996 2019-11-26 Jakub Jelinek <jakub@redhat.com>
997
998 PR tree-optimization/92644
999 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1000 next to INTEGER_CST checks.
1001
1002 2019-11-26 Richard Biener <rguenther@suse.de>
1003
1004 PR tree-optimization/92645
1005 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1006 do not build the operation from scalars if the operand is.
1007
1008 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1009
1010 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1011 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1012 definitions.
1013
1014 2019-11-25 Martin Liska <mliska@suse.cz>
1015
1016 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1017 up used dump message.
1018
1019 2019-11-25 Martin Liska <mliska@suse.cz>
1020
1021 PR bootstrap/92653
1022 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1023 too strict checking assert.
1024
1025 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1026
1027 PR c/91985
1028 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1029 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1030 error_mark_node if corresponding global tree node is NULL.
1031 * tree.c (build_common_tree_nodes): Do not initialize
1032 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1033 decimal floating-point not supported.
1034
1035 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1036
1037 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1038 types.
1039
1040 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1041
1042 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1043 Replace code for non-CONST_INT constants with gcc_unreachable.
1044 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1045 compare and test.
1046 (CMPMODE): New mode_iterator.
1047 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1048 cbranch<mode>4.
1049 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1050 cstore<mode>4.
1051 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1052 operand.
1053 (bit test insns patterns): Use nonimmediate_operand, not
1054 register_operand, for source operands that allow memory in
1055 their constraints.
1056 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1057 Use register_operand, not nonimmediate_operand, for the
1058 destinations.
1059 (DBCC): New mode_iterator.
1060 (dbcc peepholes): Use it to reduce duplication.
1061 (trap): Use const_true_rtx, not const1_rtx.
1062 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1063 from m68k_subword_comparison_operand and changed to handle
1064 SImode.
1065
1066 PR target/91851
1067 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1068 declaration.
1069 (m68k_init_cc): New declaration.
1070 (m68k_output_compare_di, m68k_output_compare_si)
1071 (m68k_output_compare_hi, m68k_output_compare_qi)
1072 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1073 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1074 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1075 m68k_output_branch_float, m68k_output_branch_float_rev):
1076 Likewise.
1077 (valid_dbcc_comparison_p_2, flags_in_68881)
1078 (output_btst): Remove declaration.
1079 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1080 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1081 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1082 (flags_compare_op0, flags_compare_op1, flags_operand1,
1083 flags_operand2, flags_valid): New static variables.
1084 (m68k_find_flags_value, m68k_init_cc): New functions.
1085 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1086 remember_compare_flags): New static functions.
1087 (output_dbcc_and_branch): New argument CODE. Use it, and add
1088 PLUS and MINUS to the possible codes. All callers changed.
1089 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1090 and INSN arguments, add CODE arg. Return the comparison code
1091 to use. All callers changed. Use CODE instead of
1092 next_insn_tests_no_inequality, and replace cc_status management
1093 with changing the return code.
1094 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1095 RTX_COMPARE or RTX_COMM_COMPARE.
1096 (output_move_simode, output_move_qimode): Call
1097 handle_flags_for_move.
1098 (notice_update_cc): Delete function.
1099 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1100 m68k_output_compare_hi, m68k_output_compare_qi,
1101 m68k_output_compare_fp, m68k_output_branch_integer,
1102 m68k_output_branch_integer_rev, m68k_output_scc,
1103 m68k_output_branch_float, m68k_output_branch_float_rev,
1104 m68k_output_scc_float): New functions.
1105 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1106 once at the start, and set flags_valid and flags_operand1 if the
1107 flags are usable.
1108 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1109 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1110 definitions.
1111 (CC_STATUS_INIT): Define.
1112 * config/m68k/m68k.md (flags_valid): New define_attr.
1113 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1114 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1115 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1116 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1117 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1118 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1119 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1120 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1121 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1122 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1123 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1124 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1125 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1126 ctrapqi4, conditional_trap): Delete patterns.
1127 (cbranchdi4_insn): New pattern.
1128 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1129 test high part only. When testing EQ or NE, generate beq0_di
1130 and bne0_di patterns directly.
1131 (cstoredi4): When testing LT or GE, test high part only.
1132 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1133 patterns.
1134 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1135 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1136 cmp2_cf_predicate): New define_mode_attrs.
1137 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1138 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1139 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1140 New patterns.
1141 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1142 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1143 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1144 New patterns.
1145 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1146 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1147 Likewise.
1148 (BTST): New define_mode_iterator.
1149 (btst_predicate, btst_constraint, btst_range): New
1150 define_mode_attrs.
1151 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1152 patterns.
1153 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1154 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1155 patterns): Set attr "flags_valid".
1156 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1157 management. Set attr "flags_valid".
1158 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1159 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1160 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1161 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1162 manual CC_STATUS management.
1163 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1164 unnamed strict_lowpart subhi and subqi patterns): Set attr
1165 "flags_valid".
1166 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1167 Remove code to operate on address regs and assert the case
1168 does not occur.
1169 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1170 manual CC_STATUS_INIT.
1171 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1172 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1173 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1174 one_cmplqi2, unnamed strict_lowpart patterns
1175 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1176 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1177 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1178 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1179 CC_STATUS_INIT.
1180 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1181 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1182 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1183 unnamed strict_low_part patterns for HI and
1184 QI versions): Set attr "flags_valid".
1185 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1186 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1187 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1188 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1189 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1190 (various unnamed peepholes): Adjust compare/branch sequences
1191 for new cbranch patterns.
1192 (dbcc peepholes): Likewise, and output the comparison here
1193 as well.
1194 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1195 (fp_src_operand): Allow constant zero.
1196 (address_reg_operand): New predicate.
1197
1198 * rtl.h (inequality_comparisons_p): Remove declaration.
1199 * recog.h (next_insn_tests_no_inequality): Likewise.
1200 * rtlanal.c (inequality_comparisons_p): Delete function.
1201 * recog.c (next_insn_tests_no_inequality): Likewise.
1202
1203 2019-11-25 Richard Biener <rguenther@suse.de>
1204
1205 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1206 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1207 properly re-building the visited hash-map for each lane.
1208
1209 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1210
1211 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1212 gcn_md_reorg): Remove unused variables.
1213 (gcn_emutls_var_init): Add missing (but unreachable) return
1214 to silence warning.
1215 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1216 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1217 an uninitialized variable.
1218
1219 2019-11-25 Martin Jambor <mjambor@suse.cz>
1220
1221 PR ipa/92109
1222 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1223 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1224 (cgraph_materialize_clone): Move removel from clone tree to the
1225 the new method and use it instead.
1226 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1227 bodies of clones, also remove it from the clone tree.
1228
1229 2019-11-25 Martin Jambor <mjambor@suse.cz>
1230
1231 PR ipa/91956
1232 * ipa-sra.c (process_isra_node_results): Put the new node to the
1233 same comdat group as the original node.
1234
1235 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1236
1237 Build double32 / long-double32 multilibs if needed.
1238
1239 PR target/92055
1240 * config/avr/t-avr:
1241 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1242 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1243 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1244 tm_defines and pass to genmultilib.awk.
1245 * config/avr/genmultilib.awk: Use these variables to add double32
1246 and / or long-double32 multilib(s) as needed.
1247 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1248
1249 2019-11-25 Richard Biener <rguenther@suse.de>
1250
1251 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1252 loop body, defaulted to NULL.
1253 (single_likely_exit): Add exit vector argument
1254 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1255 (number_of_iterations_exit): Likewise.
1256 (number_of_iterations_exit_assumptions): Likewise.
1257 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1258 if not NULL.
1259 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1260 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1261 Compute exit vector around call to single_likely_exit.
1262 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1263 loop body to loop_only_exit_p.
1264 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1265 caller.
1266 (number_of_iterations_exit_assumptions): Get loop body from caller
1267 if not NULL.
1268 (number_of_iterations_exit): Pass through new loop body arg.
1269 (infer_loop_bounds_from_undefined): Get loop body from caller.
1270 (estimate_numbers_of_iterations): Compute loop body once.
1271
1272 2019-11-25 Richard Biener <rguenther@suse.de>
1273
1274 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1275 auto_bb_flag instead of an sbitmap for visited handling.
1276
1277 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1278
1279 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1280 iterator.
1281 (vector_fp_comparison_complex): Likewise.
1282 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1283 define_and_split.
1284 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1285 Likewise.
1286 (vector_lt<mode> for VEC_F): Refactor with
1287 vector_fp_comparison_simple.
1288 (vector_le<mode> for VEC_F): Likewise.
1289 (vector_unge<mode> for VEC_F): Likewise.
1290 (vector_unle<mode> for VEC_F): Likewise.
1291 (vector_ne<mode> for VEC_F): Likewise.
1292 (vector_ungt<mode> for VEC_F): Likewise.
1293 (vector_unlt<mode> for VEC_F): Likewise.
1294 (vector_ltgt<mode> for VEC_F): Refactor with
1295 vector_fp_comparison_complex.
1296 (vector_ordered<mode> for VEC_F): Likewise.
1297 (vector_uneq<mode> for VEC_F): Likewise.
1298 (vector_unordered<mode> for VEC_F): Likewise.
1299
1300 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1301
1302 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1303 COMPARE, representing an overflow detection.
1304
1305 * combine.c (combine_instructions): Record costs for jumps.
1306
1307 * combine.c (can_combine_p): Allow autoinc in jumps.
1308
1309 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1310
1311 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1312 * doc/invoke.texi (max-inline-insns-single-O2,
1313 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1314 early-inlining-insns-O2): Remove documentation.
1315 * ipa-fnsummary.c (analyze_function_body,
1316 compute_fn_summary): Use opt_for_fn when accessing parameters.
1317 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1318 inline_insns_auto, can_inline_edge_by_limits_p,
1319 want_early_inline_function_p, big_speedup_p,
1320 want_inline_small_function_p, want_inline_self_recursive_call_p,
1321 recursive_inlining, compute_max_insns, inline_small_functions):
1322 Likewise.
1323 * opts.c (default_options): Add -O3 defaults for
1324 OPT__param_early_inlining_insns_,
1325 OPT__param_inline_heuristics_hint_percent_,
1326 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1327 * params.opt (-param=early-inlining-insns-O2=,
1328 -param=inline-heuristics-hint-percent-O2=,
1329 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1330 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1331 -param=inline-min-speedup=, -param=inline-unit-growth=,
1332 -param=large-function-growth=, -param=large-stack-frame=,
1333 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1334 -param=max-inline-insns-recursive=,
1335 -param=max-inline-insns-recursive-auto=,
1336 -param=max-inline-insns-single=,
1337 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1338 -param=max-inline-recursive-depth=,
1339 -param=max-inline-recursive-depth-auto=,
1340 -param=min-inline-recursive-probability=,
1341 -param=partial-inlining-entry-probability=,
1342 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1343 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1344 Optimization.
1345
1346 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1347
1348 * ipa-fnsummary.c: Fix comment typos.
1349 * ipa-ref.h: Likewise.
1350 * ipa-predicate.h: Likewise.
1351 * ipa-split.c: Likewise.
1352 * ipa-inline-analysis.c: Likewise.
1353 * ipa-predicate.c: Likewise.
1354 * ipa-devirt.c: Likewise.
1355 * ipa-icf.h: Likewise.
1356 * profile-count.c: Likewise.
1357 * ipa-icf.c: Likewise.
1358 (sem_function::equals_wpa): Fix typos in dump messages.
1359 * ipa-icf-gimple.h: Fix comment typos.
1360 * ipa-inline-transform.c: Likewise.
1361 * ipa-polymorphic-call.c: Likewise.
1362 * ipa-fnsummary.h: Likewise.
1363 * ipa-inline.c: Likewise.
1364 (dump_inline_stats): Fix typo in debug dump message.
1365 * profile-count.h: Fix comment typos.
1366
1367 PR target/92615
1368 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1369 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1370 register_operand, force x into register before storing it into dest.
1371 Formatting fix.
1372
1373 PR middle-end/83859
1374 * doc/extend.texi (attribute access): Fix a typo.
1375
1376 PR rtl-optimization/92610
1377 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1378 cse_cfg_altered is set, even when tem is 0.
1379 (rest_of_handle_cse_after_global_opts): Likewise.
1380
1381 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1382
1383 PR c++/92458
1384 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1385 tree_hash): Move to ...
1386 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1387 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1388 types.
1389 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1390
1391 PR tree-optimization/92618
1392 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1393 containing the auto_vec and a tree.
1394 (undistribute_bitref_for_vector): Handle the case when element type
1395 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1396 fixes.
1397
1398 2019-11-22 Martin Sebor <msebor@redhat.com>
1399
1400 PR middle-end/83859
1401 * attribs.h (struct attr_access): New.
1402 * attribs.c (decl_attributes): Add an informational note.
1403 * builtins.c (check_access): Make extern. Consistently set no-warning
1404 after issuing a warning. Handle calls through function pointers. Set
1405 no-warning.
1406 * builtins.h (check_access): Declare.
1407 * calls.c (rdwr_access_hash): New type.
1408 (rdwr_map): Same.
1409 (init_attr_rdwr_indices): New function.
1410 (maybe_warn_rdwr_sizes): Same.
1411 (initialize_argument_information): Call init_attr_rdwr_indices.
1412 Call maybe_warn_rdwr_sizes.
1413 (get_size_range): Avoid null argument.
1414 * doc/extend.texi (attribute access): Document new attribute.
1415
1416 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1417
1418 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1419 (ACC_LDS_SIZE): Define.
1420 (OTHER_LDS_SIZE): Define.
1421 (LDS_SIZE): Redefine using above.
1422 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1423
1424 2019-11-22 Martin Sebor <msebor@redhat.com>
1425
1426 PR middle-end/88226
1427 * builtins.c (check_nul_terminated_array): New function.
1428 (fold_builtin_0): Remove declaration.
1429 (fold_builtin_1): Same.
1430 (fold_builtin_2): Same.
1431 (fold_builtin_3): Same.
1432 (fold_builtin_strpbrk): Add argument.
1433 (fold_builtin_strspn): Same.
1434 (fold_builtin_strcspn): Same.
1435 (expand_builtin_strcat): Call it. Remove unused argument.
1436 (expand_builtin_stpncpy): Same.
1437 (expand_builtin_strncat): Same.
1438 (expand_builtin_strncpy): Same. Adjust indentation.
1439 (expand_builtin_strcmp): Same.
1440 (expand_builtin_strncmp): Same.
1441 (expand_builtin_fork_or_exec): Same.
1442 (expand_builtin): Handle more built-ins.
1443 (fold_builtin_2): Add argument.
1444 (fold_builtin_n): Make static. Add argument.
1445 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1446 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1447 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1448 (fold_call_stmt): Pass new argument to fold_builtin_n.
1449 * builtins.h: Correct a comment.
1450 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1451 check_nul_terminated_array.
1452 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1453 check_nul_terminated_array.
1454 (handle_builtin_strchr): Same.
1455 (handle_builtin_string_cmp): Same.
1456
1457 2019-11-22 Martin Sebor <msebor@redhat.com>
1458
1459 PR tree-optimization/92501
1460 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1461 handle unterminated arrays. Rename local variables for clarity.
1462
1463 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1464
1465 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1466 granulated_sgprs according to architecture.
1467
1468 2019-11-22 Jan Hubicka <jh@suse.cz>
1469
1470 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1471 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1472 (memory_block_pool::reduce_free_list): ... this one.
1473 (memory_block_pool::trim): New static function.
1474 * memory-block.h (memory_block_pool::freelist_size): New constant
1475 (memory_block_pool::clear_free_list): Rename to ...
1476 (memory_block_pool::reduce_free_list): ... this one.
1477 (memory_block_pool::trim): Declare.
1478
1479 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1480
1481 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1482 vect_cost_for_stmt.
1483 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1484 here rather than...
1485 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1486
1487 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1488
1489 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1490 (bic_cmp0_noout): New pattern.
1491 (bic_cmp0): Likewise.
1492 (neg_scc_insn): Remove pattern.
1493 (not_scc_insn): Likewise.
1494
1495 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1496
1497 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1498
1499 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1500
1501 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1502 pedwarn instead of warning_at for fallthrough not preceding a case
1503 or default label.
1504
1505 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1506
1507 PR tree-optimization/92608
1508 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1509 of dyn_cast.
1510
1511 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1512
1513 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1514 New predicate.
1515 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1516 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1517 special for FP comparisons that need a cror instruction eventually.
1518 (rs6000_emit_fp_cror): New function.
1519 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1520 instruction, for normal FP modes, with HONOR_NANS.
1521 (rs6000_emit_cbranch): Reformat.
1522 * config/rs6000/rs6000.md (fp_rev): New iterator.
1523 (fp_two): New iterator.
1524 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1525 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1526 *cbranch_2insn: New define_insn_and_split.
1527
1528 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1529
1530 PR tree-optimization/92526
1531 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1532 versioning for alignment if the accesses do not have a consistent
1533 mask, rather than asserting that the masks are consistent.
1534
1535 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1536
1537 PR tree-optimization/92595
1538 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1539 check.
1540 (vectorizable_store, vectorizable_load): Likewise.
1541
1542 2019-11-21 Jan Hubicka <jh@suse.cz>
1543
1544 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1545 (resolve_noninline_speculation, inline_small_functions): Avoid
1546 redundant updates.
1547
1548 2019-11-21 Richard Biener <rguenther@suse.de>
1549
1550 * lra.c (lra_insn_recog_data_pool): New.
1551 (free_insn_recog_data): Adjust.
1552 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1553 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1554
1555 2019-11-21 Richard Biener <rguenther@suse.de>
1556
1557 PR tree-optimization/92596
1558 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1559
1560 2019-11-21 Jan Hubicka <jh@suse.cz>
1561
1562 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1563 ready for some vectors to not be allocated.
1564 (evaluate_properties_for_edge): Document better; make
1565 known_vals and known_aggs caller allocated; avoid determining
1566 values of parameters which are not used.
1567 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1568 known_aggs.
1569 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1570 (do_estimate_edge_size): Likewise.
1571 (do_estimate_edge_hints): Likewise.
1572 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1573 values are not known.
1574 (ipa_release_agg_values): Add option to not release vector itself.
1575 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1576
1577 2019-11-21 Richard Biener <rguenther@suse.de>
1578
1579 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1580 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1581 (loop_iterator::loop_iterator): Adjust.
1582 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1583 (compute_dominance_frontiers): ... this. Hoist invariant
1584 get_immediate_dominator call.
1585 (compute_idf): Use a work-set instead of a work-list for more
1586 optimal iteration order and duplicate avoidance.
1587 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1588 the vector all the time, instead pre-allocate the vector only
1589 once.
1590 (delete_update_ssa): Simplify.
1591 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1592
1593 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1594
1595 PR tree-optimization/91355
1596 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1597 for early_bb scaled count with best_bb count comparison.
1598
1599 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1600 preffer -> prefer.
1601 * ipa-inline.c (edge_badness): Likewise.
1602 * lto-streamer.h (class lto_location_cache): Likewise.
1603 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1604 gratutious -> gratuitous.
1605
1606 2019-11-21 Richard Biener <rguenther@suse.de>
1607
1608 Revert
1609 2019-09-17 Richard Biener <rguenther@suse.de>
1610
1611 PR tree-optimization/91790
1612 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1613 use the correct DR for setting up realignment.
1614
1615 2019-11-21 Richard Biener <rguenther@suse.de>
1616
1617 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1618 (equiv_class_obstack): New.
1619 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1620 (perform_var_substitution): Initialize equiv_class_obstack.
1621 (free_var_substitution_info): Free equiv_class_obstack.
1622
1623 2019-11-20 Jan Hubicka <jh@suse.cz>
1624
1625 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1626 edge growth when callee function is very large.
1627 * ipa-inline.h (estimate_min_edge_growth): New.
1628
1629 2019-11-20 Jan Hubicka <jh@suse.cz>
1630
1631 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1632 negative time in calls summary; correct roundoff errors
1633 leading to negative times.
1634 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1635 if present.
1636 (ipa_update_overall_fn_summary): Add RESET parameter.
1637 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1638 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1639
1640 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1641
1642 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1643 def types for two-operation SLP.
1644
1645 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1646
1647 PR testsuite/92366
1648 * doc/sourcebuild.texi (vect_char_add): Document.
1649
1650 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1651
1652 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1653 * function.c (record_final_call): Record even calls that might
1654 have been in the cgraph.
1655 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1656 callees.
1657
1658 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1659
1660 * configure.ac: Use https for gcc.gnu.org
1661 * configure: Regenerated.
1662 * doc/install.texi: Use https for gcc.gnu.org.
1663 * doc/sourcebuild.texi: Likewise.
1664
1665 2019-11-20 Julian Brown <julian@codesourcery.com>
1666
1667 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1668
1669 2019-11-20 Jan Hubicka <jh@suse.cz>
1670
1671 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1672 parameter and update call_size_time_table.
1673 (ipa_fn_summary::max_size_time_table_size): New constant.
1674 (estimate_calls_size_and_time_1): Break out from ...
1675 (estimate_calls_size_and_time): ... here; implement summary production.
1676 (summarize_calls_size_and_time): New function.
1677 (ipa_call_context::estimate_size_and_time): Bypass
1678 estimate_calls_size_and_time for leaf functions.
1679 (ipa_update_overall_fn_summary): Likewise.
1680 * ipa-fnsummary.h (call_size_time_table): New.
1681 (ipa_fn_summary::account_size_time): Update prototype.
1682
1683 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1684
1685 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1686
1687 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1688
1689 PR85678
1690 * common.opt (fcommon): Change init to 1.
1691 * doc/invoke.texi (-fcommon): Update documentation.
1692
1693 2019-11-20 Jan Hubicka <jh@suse.cz>
1694
1695 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1696 to ordinary array.
1697
1698 2019-11-20 Jan Hubicka <jh@suse.cz>
1699
1700 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1701 Add allocator parameter.
1702 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1703 (fibonacci_heap<K,V>::m_allocator): New.
1704 (fibonacci_heap<K,V>::m_own_allocator): New.
1705 (fibonacci_heap<K,V>::insert): Use allocator.
1706 (fibonacci_heap<K,V>::extract_min): Likewise.
1707 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1708 allocator.
1709 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1710 on stack.
1711 * fibonacci_heap.c: Include alloc-pool
1712 (test_empty_heap): Initialize allocator.
1713 (test_union): Likewise.
1714 * bb-reorder.c: Include alloc-pool.h.
1715 * tracer.c: Inlclude alloc-pool.h.
1716
1717 2019-11-20 Jan Hubicka <jh@suse.cz>
1718
1719 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1720 Preallocate for 32 entries.
1721 (DFS::worklist): Likewise.
1722 (DFS::DFS): Do not initialize sccstack and worklist.
1723 (DFS::~DFS): Do not release sccstack.
1724
1725 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1726
1727 PR target/92573
1728 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1729 Handle UNORDERED if !HONOR_NANS.
1730
1731 2019-11-20 Jan Hubicka <jh@suse.cz>
1732
1733 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1734 (edge_badness): ... here.
1735 (inline_small_functions): Use monotonicity of badness calculation
1736 to avoid redundant updates.
1737
1738 2019-11-20 Richard Biener <rguenther@suse.de>
1739
1740 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1741 constructors we are actually analyzing.
1742 (vect_slp_check_for_constructors): Do not vectorize uniform
1743 constuctors, do not dump here.
1744
1745 2019-11-20 Richard Biener <rguenther@suse.de>
1746
1747 PR tree-optimization/92537
1748 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1749 vectorization validity check...
1750 (vect_slp_analyze_operations): ... here.
1751
1752 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1753
1754 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1755 (make_pass_arc_predicate_delay_insns): Likewise.
1756 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1757 method, remove clone.
1758 (class pass_arc_predicate_delay_insns): Likewise.
1759 (arc_init): Remove registering of ARC specific passes.
1760 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1761 * config/arc/arc-passes.def: New file.
1762
1763 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1764
1765 PR middle-end/90840
1766 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1767 and has a mode that doesn't have corresponding integral type.
1768
1769 PR target/90867
1770 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1771 clear opts->x_ix86_isa_flags{,2} here...
1772 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1773 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1774
1775 PR c/90898
1776 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1777 assertion.
1778 (insert_clobbers_for_var): Fix a typo in function comment.
1779
1780 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1781 Jakub Jelinek <jakub@redhat.com>
1782
1783 PR middle-end/91195
1784 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1785 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1786 load.
1787
1788 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1789
1790 Make 0-series device specs work with older versions of avr-gcc.
1791
1792 PR target/92545
1793 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1794 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1795 <*link_pm_base_address>: Don't write spec.
1796 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1797
1798 2019-11-20 Richard Biener <rguenther@suse.de>
1799
1800 PR c/92088
1801 * builtins.c (compute_objsize): Deal with VLAs.
1802
1803 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1804
1805 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1806 from common code.
1807 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1808 call new function.
1809 (power9_sched_reorder2): Call new function.
1810 (rs6000_sched_reorder2): Likewise.
1811
1812 2019-11-18 Jan Hubicka <jh@suse.cz>
1813
1814 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1815 (estimate_calls_size_and_time): Update.
1816
1817 2019-11-18 Jan Hubicka <jh@suse.cz>
1818
1819 * ipa-inline.c (inlining_speedup): New function.
1820 (edge_badness): Use it.
1821
1822 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1823 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1824
1825 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1826 Mark as not having "likely" version.
1827 * config/mips/mips.md (insn_count): The simd_div instruction with
1828 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1829 (can_delay): Exclude simd_branch.
1830 (defile_delay *): Add simd_branch instructions.
1831 They have one regular delay slot.
1832
1833 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1834
1835 Revert:
1836 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1837
1838 * cse.c (cse_insn): Delete no-op register moves too.
1839 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1840 Take a second comparison to control the value for NE.
1841 (mask_to_comparison): Handle unsigned comparisons.
1842 (simplify_logical_relational_operation): Likewise. Update call
1843 to comparison_to_mask. Handle AND if !HONOR_NANs.
1844 (simplify_binary_operation_1): Call the above for AND too.
1845
1846 2019-11-19 Martin Liska <mliska@suse.cz>
1847
1848 * toplev.c (general_init): Move the call...
1849 (toplev::main): ... here as we need init_options_struct
1850 being called.
1851
1852 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1853
1854 PR target/79262
1855 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1856 vec_to_scalar_cost.
1857
1858 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1859
1860 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1861 (armv7-a): Likewise.
1862 (armv7ve): Likewise.
1863
1864 2019-11-19 Richard Biener <rguenther@suse.de>
1865
1866 PR tree-optimization/92581
1867 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1868 condition reduction chains gather all conditions involved
1869 for computing the index reduction vector.
1870
1871 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1872
1873 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1874 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1875 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1876 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1877 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1878 (aarch64_init_memtag_builtins): New.
1879 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1880 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1881 (aarch64_expand_builtin_memtag): New.
1882 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1883 (AARCH64_BUILTIN_SUBCODE): New macro.
1884 (aarch64_resolve_overloaded_memtag): New.
1885 (aarch64_resolve_overloaded_builtin_general): New. Call
1886 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1887 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1888 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1889 (aarch64_resolve_overloaded_builtin): Call
1890 aarch64_resolve_overloaded_builtin_general.
1891 * config/aarch64/aarch64-protos.h
1892 (aarch64_resolve_overloaded_builtin_general): New declaration.
1893 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1894 (TARGET_MEMTAG): Likewise.
1895 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1896 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1897 (irg, gmi, subp, addg, ldg, stg): New instructions.
1898 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1899 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1900 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1901 (__arm_mte_get_tag): Likewise.
1902 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1903 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1904 * config/arm/types.md (memtag): New.
1905 * doc/invoke.texi (-memtag): Update description.
1906
1907 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1908
1909 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1910 to define __GCC_ASM_FLAG_OUTPUTS__.
1911 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1912 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1913 depending on TARGET_THUMB1.
1914 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1915
1916 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1917
1918 PR target/92549
1919 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1920
1921 PR middle-end/91450
1922 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1923 operand is negative and one non-negative, compare the non-negative
1924 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1925 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1926 and s2 == 0, unless one of them is known to be negative. Remove
1927 tem2 variable, use tem where tem2 has been used before.
1928
1929 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1930
1931 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1932
1933 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1934
1935 PR tree-optimization/92557
1936 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1937 vmode rather than asserting it always is.
1938
1939 2019-11-19 Richard Biener <rguenther@suse.de>
1940
1941 PR tree-optimization/92554
1942 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1943 for the actual condition stmt and deal with sign-changes.
1944
1945 2019-11-19 Richard Biener <rguenther@suse.de>
1946
1947 PR tree-optimization/92555
1948 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1949 for non-SLP stmts.
1950
1951 2019-11-19 Martin Liska <mliska@suse.cz>
1952
1953 PR bootstrap/92540
1954 * config/riscv/riscv.c (riscv_address_insns): Initialize
1955 addr in order to remove boostrap -Wmaybe-uninitialized
1956 error.
1957
1958 2019-11-18 Martin Sebor <msebor@redhat.com>
1959
1960 PR tree-optimization/92493
1961 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1962 assignment.
1963
1964 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1965
1966 * cfgloop.c (get_loop_body_in_custom_order): New.
1967 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1968 * tree-loop-distribution.c (class loop_distribution): New.
1969 (bb_top_order_cmp): Remove.
1970 (bb_top_order_cmp_r): New.
1971 (create_rdg_vertices): Move into class loop_distribution.
1972 (stmts_from_loop): Same as above.
1973 (update_for_merge): Same as above.
1974 (partition_merge_into): Same as above.
1975 (get_data_dependence): Same as above.
1976 (data_dep_in_cycle_p): Same as above.
1977 (update_type_for_merge): Same as above.
1978 (build_rdg_partition_for-vertex): Same as above.
1979 (classify_builtin_ldst): Same as above.
1980 (classify_partition): Same as above.
1981 (share_memory_accesses): Same as above.
1982 (rdg_build_partitions): Same as above.
1983 (pg_add_dependence_edges): Same as above.
1984 (build_partition_graph): Same as above.
1985 (merge_dep_scc_partitions): Same as above.
1986 (break_alias_scc_partitions): Same as above.
1987 (finalize_partitions): Same as above.
1988 (distribute_loop): Same as above.
1989 (bb_top_order_init): New method
1990 (bb_top_order_destroy): New method.
1991 (get_bb_top_order_index_size): New method.
1992 (get_bb_top_order_index_index): New method.
1993 (get_bb_top_order_index_index): New method.
1994 (loop_distribution::execute): New method.
1995 (pass_loop_distribution::execute): Instantiate loop_distribution.
1996
1997 2019-11-18 Jan Hubicka <jh@suse.cz>
1998
1999 PR ipa/92508
2000 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2001 caches.
2002 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2003
2004 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2005
2006 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2007 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2008 * doc/md.texi: Document them.
2009 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2010 internal functions.
2011 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2012 * internal-fn.c (check_ptrs_direct): New macro.
2013 (expand_check_ptrs_optab_fn): Likewise.
2014 (direct_check_ptrs_optab_supported_p): Likewise.
2015 (internal_check_ptrs_fn_supported_p): New fuction.
2016 * tree-data-ref.c: Include internal-fn.h.
2017 (create_ifn_alias_checks): New function.
2018 (create_intersect_range_checks): Use it.
2019 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2020 (optab, cmp_op): Handle it.
2021 (raw_war, unspec): New int attributes.
2022 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2023 constants.
2024 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2025 New predicate.
2026 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2027 expander.
2028 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2029 pattern.
2030
2031 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2032
2033 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2034 empty constructors.
2035
2036 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2037
2038 * cse.c (cse_insn): Delete no-op register moves too.
2039 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2040 Take a second comparison to control the value for NE.
2041 (mask_to_comparison): Handle unsigned comparisons.
2042 (simplify_logical_relational_operation): Likewise. Update call
2043 to comparison_to_mask. Handle AND if !HONOR_NANs.
2044 (simplify_binary_operation_1): Call the above for AND too.
2045
2046 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2047
2048 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2049 splitting the main code out into...
2050 (native_encode_vector_part): ...this new function.
2051 (native_decode_vector_tree): New function.
2052 (fold_view_convert_vector_encoding): Likewise.
2053 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2054 to VECTOR_TYPEs.
2055
2056 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2057
2058 * tree-data-ref.c (create_intersect_range_checks_index): If the
2059 alias pair describes simple WAW and WAR dependencies, just check
2060 whether the first B access overlaps later A accesses.
2061 (create_waw_or_war_checks): New function that performs the same
2062 optimization on addresses.
2063 (create_intersect_range_checks): Call it.
2064
2065 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2066
2067 * lra-constraints.c (valid_address_p): Take the operand and a
2068 constraint as argument. If the operand is a MEM and the constraint
2069 is a memory constraint, check whether the eliminated form of the
2070 MEM already satisfies the constraint.
2071 (process_address_1): Update calls accordingly.
2072
2073 2019-11-18 Tom Tromey <tromey@adacore.com>
2074
2075 * doc/tm.texi: Rebuild.
2076 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2077 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2078
2079 2019-11-18 Richard Biener <rguenther@suse.de>
2080
2081 PR tree-optimization/92516
2082 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2083 argument, hoist bst_map creation/destruction to ...
2084 (vect_analyze_slp): ... here, forming a true graph with
2085 SLP instances being the entries.
2086 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2087 (vect_detect_hybrid_slp): Use one visited set for all
2088 graph entries.
2089 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2090 to hash-sets of slp_tree.
2091 (vect_slp_analyze_operations): Likewise.
2092 (vect_bb_slp_scalar_cost): Remove wrapper.
2093 (vect_bb_vectorization_profitable_p): Use one visited set for
2094 all graph entries.
2095 (vect_schedule_slp_instance): Elide bst_map use.
2096 (vect_schedule_slp): Likewise.
2097
2098 2019-11-18 Richard Biener <rguenther@suse.de>
2099
2100 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2101 was vectorized with just external refs fail.
2102
2103 2019-11-18 Martin Liska <mliska@suse.cz>
2104
2105 PR ipa/92525
2106 * ipa-icf.c (sem_function::init): Unset m_checker
2107 at the end of the function.
2108
2109 2019-11-18 Richard Biener <rguenther@suse.de>
2110
2111 PR tree-optimization/92558
2112 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2113 reducting the width of a reduction vector def update new_phis.
2114
2115 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2116
2117 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2118 and s390*-*-linux-musl* targets.
2119 * configure: Regenerate.
2120
2121 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2122
2123 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2124 (MUSL_DYNAMIC_LINKER64): Define.
2125
2126 2019-11-18 Martin Liska <mliska@suse.cz>
2127
2128 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2129 message for an unknown counter.
2130 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2131 (dbg_cnt_process_opt): Remove unreachable code.
2132
2133 2019-11-18 Martin Liska <mliska@suse.cz>
2134
2135 PR ipa/92529
2136 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2137 Compare LHS types of NOP_EXPR.
2138
2139 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2140
2141 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2142 "initial_pass_name" argument -- by running "*clean_state" pass.
2143 Also free the "initial_pass_name" when done.
2144
2145 2019-11-18 Richard Biener <rguenther@suse.de>
2146
2147 PR rtl-optimization/92462
2148 * alias.c (find_base_term): Restrict the look through ANDs.
2149 (find_base_value): Likewise.
2150
2151 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2152
2153 Add support for AVR devices from the 0-series.
2154
2155 PR target/92545
2156 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2157 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2158 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2159 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2160 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2161 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2162 for spec definitions.
2163 * doc/avr-mmcu.texi: Regenerate.
2164
2165 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2166
2167 PR target/92448
2168 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2169 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2170 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2171 (ix86_reassociation_width): Ditto.
2172 * config/i386/i386-options.c (ix86_option_override_internal):
2173 Replace TARGET_AVX128_OPTIAML with
2174 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2175 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2176 (TARGET_AVX128_OPTIMAL): Deleted.
2177 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2178 DEF_TUNE.
2179
2180 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2181
2182 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2183 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2184 just SI.
2185 (cceq_rev_compare): Rename to...
2186 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2187 just SI.
2188 (define_split for <bd>tf_<mode>): Add SImode first argument to
2189 gen_cceq_ior_compare.
2190
2191 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2192
2193 * common/config/powerpcspe: Delete.
2194
2195 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2196
2197 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2198 output in UNSPEC_WRFFR.
2199
2200 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2201
2202 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2203 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2204
2205 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2206
2207 * tree-data-ref.c (create_intersect_range_checks_index)
2208 (create_intersect_range_checks): Print dump messages.
2209
2210 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2211
2212 * tree-data-ref.c (dump_alias_pair): New function.
2213 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2214
2215 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2216
2217 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2218 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2219 merging data references with different steps.
2220 (create_intersect_range_checks_index): Take a
2221 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2222 Bail out if DR_ALIAS_MIXED_STEPS is set.
2223 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2224 instead of two dr_with_seg_lens. Update call to
2225 create_intersect_range_checks_index.
2226 (create_runtime_alias_checks): Update call accordingly.
2227
2228 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2229
2230 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2231 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2232 (dr_with_seg_len_pair_t::sequencing): New enum.
2233 (dr_with_seg_len_pair_t::flags): New member variable.
2234 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2235 parameter and initialize the flags member variable.
2236 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2237 call accordingly.
2238 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2239 Ensure the two data references in an alias pair are in statement
2240 order, if there is a defined order.
2241 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2242 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2243 swapped the references in a dr_with_seg_len_pair_t. OR together
2244 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2245 try to restore the original dr_with_seg_len order, updating the
2246 flags if that fails.
2247
2248 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2249
2250 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2251 swapping the dr_as based on init values until we've decided
2252 whether to merge them.
2253
2254 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2255
2256 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2257 two accesses in each dr_with_seg_len_pair_t before trying to
2258 combine separate dr_with_seg_len_pair_ts.
2259 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2260 that here.
2261 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2262
2263 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2264
2265 * config/aarch64/aarch64-sve.md
2266 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2267 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2268 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2269 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2270 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2271 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2272 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2273 pattern.
2274 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2275 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2276 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2277 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2278
2279 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2280
2281 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2282 (SVE_4HSI): New mode iterators.
2283 (ANY_EXTEND2): New code iterator.
2284 * config/aarch64/aarch64-sve.md
2285 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2286 Extend to...
2287 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2288 ...this, handling extension to partial modes as well as full modes.
2289 Describe the extension as a predicated rather than unpredicated
2290 extension.
2291 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2292 Likewise extend to...
2293 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2294 ...this, making the same adjustments.
2295 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2296 Likewise extend to...
2297 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2298 ...this, making the same adjustments.
2299 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2300 Likewise extend to...
2301 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2302 ...this, making the same adjustments.
2303 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2304 New pattern.
2305 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2306 extension predicate.
2307 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2308 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2309 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2310 Describe the extension as a predicated rather than unpredicated
2311 extension.
2312 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2313 Likewise. Canonicalize to a constant extension predicate.
2314 * config/aarch64/aarch64-sve-builtins-base.cc
2315 (svld1_gather_extend_impl::expand): Add an extra predicate for
2316 the extension.
2317 (svldff1_gather_extend_impl::expand): Likewise.
2318
2319 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2320
2321 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2322 iterators.
2323 * config/aarch64/aarch64-sve.md
2324 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2325 (gather_load<SVE_24:mode><v_int_container>): ...this.
2326 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2327 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2328 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2329 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2330 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2331 New pattern.
2332 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2333 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2334 Allow the nominal extension predicate to be different from the
2335 load predicate.
2336 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2337 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2338
2339 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2340
2341 * config/aarch64/aarch64-sve.md
2342 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2343 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2344 function.
2345 (aarch64_sve_adjust_stmt_cost): Call it.
2346
2347 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2348
2349 * config/aarch64/aarch64-sve.md
2350 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2351 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2352 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2353 Combine into...
2354 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2355 ...this new pattern, handling extension to partial modes as well
2356 as full modes. Describe the extension as a predicated rather than
2357 unpredicated extension.
2358 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2359 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2360 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2361 Combine into...
2362 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2363 ...this new pattern, handling extension to partial modes as well
2364 as full modes. Describe the extension as a predicated rather than
2365 unpredicated extension.
2366 * config/aarch64/aarch64-sve-builtins.cc
2367 (function_expander::use_contiguous_load_insn): Add an extra
2368 predicate for extending loads.
2369 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2370 (aarch64_sve_adjust_stmt_cost): Likewise.
2371 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2372 the cost of SVE vector stmts.
2373
2374 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2375
2376 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2377 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2378 * config/aarch64/aarch64-sve.md
2379 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2380 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2381 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2382 comment. Avoid new narrower_mask ambiguity.
2383 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2384 (*cond_uxt<mode>_2): Update comment.
2385 (*cond_uxt<mode>_any): Likewise.
2386
2387 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2388
2389 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2390 float modes.
2391 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2392 function.
2393 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2394 new vector float modes.
2395 (aarch64_sve_container_bits): New function.
2396 (aarch64_sve_pred_mode): Likewise.
2397 (aarch64_get_mask_mode): Use it.
2398 (aarch64_sve_element_int_mode): Handle structure modes and partial
2399 modes.
2400 (aarch64_sve_container_int_mode): New function.
2401 (aarch64_vectorize_related_mode): Return SVE modes when given
2402 SVE modes. Handle partial modes, taking the preferred number
2403 of units from the size of the given mode.
2404 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2405 in registers.
2406 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2407 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2408 (aarch64_split_sve_subreg_move): Use the mode form of
2409 aarch64_sve_pred_mode.
2410 (aarch64_secondary_reload): Handle partial modes in the same way
2411 as full big-endian vectors.
2412 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2413 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2414 merging with the Advanced SIMD modes. If two modes have the
2415 same size, try the Advanced SIMD mode first.
2416 (aarch64_simd_valid_immediate): Use the container rather than
2417 the element mode for INDEX constants.
2418 (aarch64_simd_vector_alignment): Make the alignment of partial
2419 SVE vector modes the same as their minimum size.
2420 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2421 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2422 (mov<SVE_ALL:mode>): ...this.
2423 (movmisalign<SVE_FULL:mode>): Extend to...
2424 (movmisalign<SVE_ALL:mode>): ...this.
2425 (*aarch64_sve_mov<mode>_le): Rename to...
2426 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2427 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2428 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2429 partial modes regardless of endianness.
2430 (aarch64_sve_reload_be): Rename to...
2431 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2432 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2433 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2434 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2435 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2436 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2437 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2438 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2439 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2440 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2441 (maskload<SVE_FULL:mode><vpred>): Extend to...
2442 (maskload<SVE_ALL:mode><vpred>): ...this.
2443 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2444 (maskstore<SVE_ALL:mode><vpred>): ...this.
2445 (vec_duplicate<SVE_FULL:mode>): Extend to...
2446 (vec_duplicate<SVE_ALL:mode>): ...this.
2447 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2448 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2449 (sve_ld1r<SVE_FULL:mode>): Extend to...
2450 (sve_ld1r<SVE_ALL:mode>): ...this.
2451 (vec_series<SVE_FULL_I:mode>): Extend to...
2452 (vec_series<SVE_I:mode>): ...this.
2453 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2454 (*vec_series<SVE_I:mode>_plus): ...this.
2455 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2456 new VPRED ambiguity.
2457 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2458 (add<SVE_FULL_I:mode>3): Extend to...
2459 (add<SVE_I:mode>3): ...this.
2460 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2461 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2462 (VPRED, vpred): Likewise.
2463 (Vctype): New iterator.
2464 (vw): Remove SVE modes.
2465
2466 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2467
2468 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2469 (SVE_PARTIAL_I): ...this.
2470 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2471
2472 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2473
2474 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2475 (SVE_FULL): ...this.
2476 (SVE_I): Rename to...
2477 (SVE_FULL_I): ...this.
2478 (SVE_F): Rename to...
2479 (SVE_FULL_F): ...this.
2480 (SVE_BHSI): Rename to...
2481 (SVE_FULL_BHSI): ...this.
2482 (SVE_HSD): Rename to...
2483 (SVE_FULL_HSD): ...this.
2484 (SVE_HSDI): Rename to...
2485 (SVE_FULL_HSDI): ...this.
2486 (SVE_HSF): Rename to...
2487 (SVE_FULL_HSF): ...this.
2488 (SVE_SD): Rename to...
2489 (SVE_FULL_SD): ...this.
2490 (SVE_SDI): Rename to...
2491 (SVE_FULL_SDI): ...this.
2492 (SVE_SDF): Rename to...
2493 (SVE_FULL_SDF): ...this.
2494 (SVE_S): Rename to...
2495 (SVE_FULL_S): ...this.
2496 (SVE_D): Rename to...
2497 (SVE_FULL_D): ...this.
2498 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2499 * config/aarch64/aarch64-sve2.md: Likewise.
2500
2501 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2502
2503 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2504 New option.
2505 * doc/invoke.texi: Document it.
2506 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2507 By default, return VECT_COMPARE_COSTS for SVE.
2508
2509 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2510
2511 * target.h (VECT_COMPARE_COSTS): New constant.
2512 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2513 * doc/tm.texi: Regenerate.
2514 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2515 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2516 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2517 Likewise.
2518 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2519 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2520 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2521 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2522 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2523 (_loop_vec_info::vec_inside_cost): New member variables.
2524 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2525 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2526 (vect_analyze_loop): When autovectorize_vector_modes returns
2527 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2528 vector mode and picking the one with the lowest cost.
2529 (vect_estimate_min_profitable_iters): Record the computed costs
2530 in the loop_vec_info.
2531
2532 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2533
2534 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2535 element type rather than an element mode.
2536 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2537 Use get_vectype_for_scalar_type to query the natural types
2538 for a given element type rather than basing everything on
2539 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2540 query to MAX_FIXED_MODE_SIZE.
2541 (duplicate_and_interleave): Update call accordingly.
2542 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2543
2544 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2545
2546 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2547 optional maximum nunits.
2548 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2549 takes an slp_tree.
2550 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2551 (vect_get_mask_type_for_stmt): Likewise.
2552 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2553 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2554 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2555 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2556 to get an assumed vector type for data references.
2557 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2558 (vect_update_all_shared_vectypes): Likewise.
2559 (vect_build_slp_tree_1): Pass the group size to
2560 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2561 for BB vectorization.
2562 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2563 before building the vectof from scalars.
2564 (vect_analyze_slp_instance): Pass the group size to
2565 get_vectype_for_scalar_type.
2566 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2567 types for BB vectorization here; just handle the case in which
2568 we deferred the choice for booleans.
2569 (vect_get_constant_vectors): Pass the slp_tree to
2570 get_vectype_for_scalar_type.
2571 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2572 (vectorizable_call): Likewise.
2573 (vectorizable_simd_clone_call): Likewise.
2574 (vectorizable_conversion): Likewise.
2575 (vectorizable_shift): Likewise.
2576 (vectorizable_operation): Likewise.
2577 (vectorizable_comparison): Likewise.
2578 (vect_is_simple_cond): Take the slp_tree as argument and
2579 pass it to get_vectype_for_scalar_type.
2580 (vectorizable_condition): Update call accordingly.
2581 (get_vectype_for_scalar_type): Take a group_size argument.
2582 For BB vectorization, limit the the vector to that number
2583 of elements. Also define an overload that takes an slp_tree.
2584 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2585 pass it to get_vectype_for_scalar_type.
2586 (vect_get_vector_types_for_stmt): Add a group_size argument
2587 and pass it to get_vectype_for_scalar_type. Don't use the
2588 cached vector type for BB vectorization if a group size is given.
2589 Handle data references in that case.
2590 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2591 pass it to get_mask_type_for_scalar_type.
2592
2593 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2594
2595 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2596 parameter.
2597 (estimate_edge_time): Use it.
2598 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2599 ret_nonspec_time parameter.
2600
2601 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2602
2603 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2604
2605 2019-11-15 Nick Clifton <nickc@redhat.com>
2606 Szabolcs Nagy <szabolcs.nagy@arm.com>
2607
2608 PR target/65649
2609 * config/microblaze/microblaze.c (print_operand): Print value as long.
2610
2611 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2612
2613 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2614 accidental commit.
2615
2616 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2617
2618 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2619 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2620
2621 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2622
2623 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2624 (gcn_conditional_register_usage): Use constants in place of hard-coded
2625 values.
2626 (gcn_hsa_declare_function_name): Set lower bound for number of
2627 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2628 MAX_NORMAL_VGPR_COUNT.
2629
2630 2019-11-15 Martin Jambor <mjambor@suse.cz>
2631
2632 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2633 declaration.
2634
2635 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2636
2637 * config/gcn/gcn.c (default_requested_args): New.
2638 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2639 set with default_requested_args.
2640 (gcn_conditional_register_usage): Limit register usage of non-kernel
2641 functions. Reassign fixed registers if a non-standard set of args is
2642 requested.
2643 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2644
2645 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2646
2647 PR ipa/92528
2648 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2649 aggregate jump function when inlined-to caller has no edge summary.
2650
2651 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2652
2653 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2654
2655 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2656
2657 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2658 prologue use of v0.
2659 (print_operand_address): Use v1 for zero vector offset.
2660
2661 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2662
2663 PR tree-optimization/92515
2664 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2665 types when converting a vector/scalar shift into a vector/vector one,
2666 using tree_nop_conversion_p instead of useless_type_conversion_p.
2667 Move the conversion code to the transform block.
2668
2669 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2670
2671 * read-rtl-function.c
2672 (function_reader::add_fixup_source_location): Take additional
2673 parameter of a column.
2674 (function_reader::maybe_read_location): Optionally parse column
2675 information and pass to add_fixup_source_location.
2676
2677 2019-11-15 Richard Biener <rguenther@suse.de>
2678
2679 PR tree-optimization/92512
2680 * tree-vect-loop.c (check_reduction_path): Fix operand index
2681 computability check. Add check for second use in COND_EXPRs.
2682
2683 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2684
2685 PR target/92515
2686 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2687 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2688
2689 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2690
2691 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2692 register class for VCC_LO and VCC_HI.
2693 (gcn_spill_class): Use SGPR_REGS to spill registers in
2694 VCC_CONDITIONAL_REG.
2695
2696 2019-11-15 Richard Biener <rguenther@suse.de>
2697
2698 PR tree-optimization/92324
2699 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2700 singedness of SLP reduction epilouge operations. Also reduce
2701 the vector width for SLP reductions before doing elementwise
2702 operations if possible.
2703
2704 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2705
2706 * passes.c (skip_pass): Set epilogue_completed if skipping the
2707 pro_and_epilogue pass.
2708
2709 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2710
2711 * passes.c (should_skip_pass_p): Always run "dfinish".
2712
2713 2019-11-15 Richard Biener <rguenther@suse.de>
2714
2715 * ipa-inline.c (inline_small_functions): Move assignment
2716 to next before call destroying edge.
2717
2718 2019-11-15 Richard Biener <rguenther@suse.de>
2719
2720 PR tree-optimization/92039
2721 PR tree-optimization/91975
2722 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2723 previous change, treat invariants consistently as non-constant.
2724 (tree_estimate_loop_size): Ternary ops with just the first op
2725 constant are not optimized away.
2726
2727 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2728
2729 * gimplify.c (gimplify_call_expr): Don't call
2730 omp_resolve_declare_variant after gimplification.
2731 * omp-general.c (omp_context_selector_matches): For isa that might
2732 match in some other function, defer if in declare simd function.
2733 (omp_context_compute_score): Don't look for " score" in construct
2734 trait set. Set *score to -1 if it can't ever match.
2735 (omp_resolve_declare_variant): If any variants need to be deferred,
2736 don't punt immediately, but compute scores of all variants and if
2737 ther eis a score winner that doesn't need to be deferred, return that.
2738
2739 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2740
2741 * ipa-comdats.c: Fix comments typo.
2742 * ipa-profile.c: Fix comments typo.
2743 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2744 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2745 (gimple_gen_ic_func_profiler): Likewise.
2746 (pass_ipa_tree_profile::gate): Fix comments typo.
2747
2748 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2749
2750 * ipa-inline.c (inline_small_functions): Update iterator of next.
2751
2752 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2753
2754 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2755 register is suitable for the mode.
2756
2757 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2758
2759 * range-op.h (range_operator::fold_range): Return a bool.
2760 * range-op.cc (range_operator::wi_fold): Assert supported type.
2761 (range_operator::fold_range): Assert supported type and return true.
2762 (operator_equal::fold_range): Return true.
2763 (operator_not_equal::fold_range): Same.
2764 (operator_lt::fold_range): Same.
2765 (operator_le::fold_range): Same.
2766 (operator_gt::fold_range): Same.
2767 (operator_ge::fold_range): Same.
2768 (operator_plus::op1_range): Adjust call to fold_range.
2769 (operator_plus::op2_range): Same.
2770 (operator_minus::op1_range): Same.
2771 (operator_minus::op2_range): Same.
2772 (operator_exact_divide::op1_range): Same.
2773 (operator_lshift::fold_range): Return true and adjust fold_range call.
2774 (operator_rshift::fold_range): Same.
2775 (operator_cast::fold_range): Return true.
2776 (operator_logical_and::fold_range): Same.
2777 (operator_logical_or::fold_range): Same.
2778 (operator_logical_not::fold_range): Same.
2779 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2780 (operator_bitwise_not::op1_range): Same.
2781 (operator_cst::fold_range): Return true.
2782 (operator_identity::fold_range): Return true.
2783 (operator_negate::fold_range): Return true and adjust fold_range call.
2784 (operator_addr_expr::fold_range): Return true.
2785 (operator_addr_expr::op1_range): Adjust call to fold_range.
2786 (range_cast): Same.
2787 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2788 (range_fold_unary_symbolics_p): Same.
2789
2790 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2791
2792 PR tree-optimization/92506
2793 * range-op.cc (range_operator::fold_range): Start with range undefined.
2794 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2795 overflow is varying.
2796
2797 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2798
2799 * range-op.cc (*operator*::*range): Remove calls to
2800 range_intersect, range_invert, and range_union in favor of calling
2801 the in-place API methods.
2802 (range_tests): Same.
2803 * range.cc (range_intersect): Remove.
2804 (range_union): Remove.
2805 (range_invert): Remove.
2806 * range.h (range_intersect): Remove.
2807 (range_union): Remove.
2808 (range_intersect): Remove.
2809
2810 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2811
2812 PR rtl-optimization/92430
2813 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2814 (pass_jump_after_combine::execute): Perform jump threading
2815 unconditionally.
2816
2817 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2818 Doug Rupp <rupp@adacore.com>
2819 Olivier Hainque <hainque@adacore.com>
2820
2821 * config.gcc: Collapse the arm-vxworks entries into
2822 a single arm-wrs-vxworks7* one, bpabi based. Update
2823 the default cpu from arm8 to armv7-a
2824 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2825 we always use ARM_UNWIND_INFO.
2826 (DWARF2_UNWIND_INFO): Remove redefinition.
2827 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2828 (VXWORKS_PERSONALITY): Define, to "llvm".
2829 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2830
2831 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2832
2833 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2834 _VX_CPU instead of CPU and handle arm_arch8.
2835
2836 2019-11-14 Doug Rupp <rupp@adacore.com>
2837 Olivier Hainque <hainque@adacore.com>
2838 Jerome Lambourg <lambourg@adacore.com>
2839
2840 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2841 * config/aarch64/aarch64-vxworks.h: New file.
2842 * config/aarch64/t-aarch64-vxworks: New file.
2843
2844 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2845 Olivier Hainque <hainque@adacore.com>
2846
2847 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2848 definition, pointless with a VxWorks specific version
2849 of crtstuff.
2850 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2851 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2852 New local macros, controlling the addition of vxworks specific
2853 crtstuff objects depending on the EH mechanism and kind of
2854 module being linked.
2855 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2856
2857 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2858 Jerome Lambourg <lambourg@adacore.com>
2859 Olivier Hainque <hainque@adacore.com>
2860
2861 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2862 common macro definitions, conveying VXWORKS7 or 64bit general
2863 variations. Add a block to set gcc_cv_initfini_array
2864 unconditionally to "yes" for VxWorks7.
2865 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2866 by default. Update some comments.
2867 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2868 default, to be added the end of VXWORKS_LIBS_RTP.
2869 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2870 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2871 redefine.
2872 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2873 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2874 to account for the now available TLS abilities.
2875 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2876 (VXWORKS_HAVE_TLS): Likewise.
2877
2878 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2879
2880 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2881 (vect_slp_convert_to_external): Likewise.
2882 (vect_slp_analyze_node_operations): If analysis fails, try building
2883 the node from scalars instead.
2884
2885 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2886
2887 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2888 between vector types.
2889 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2890 non-widening and non-narrowing path to handle standard
2891 conversion codes, if the target supports them.
2892 * expr.c (convert_move): Try using the extend and truncate optabs
2893 for vectors.
2894 * optabs-tree.c (supportable_convert_operation): Likewise.
2895 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2896 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2897 (trunc<mode><Vnarrowq>2): New patterns.
2898
2899 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2900
2901 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2902 require vectype and nunits_vectype to have the same size;
2903 instead assert that nunits_vectype has at least as many
2904 elements as vectype. Don't compute a separate nunits_vectype
2905 if the scalar type is obviously the same as vectype's.
2906 Tweak dump messages.
2907
2908 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2909
2910 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2911 function.
2912 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2913 (TARGET_VECTORIZE_RELATED_MODE): Define.
2914
2915 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2916
2917 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2918 (vec_info::used_vector_mode): New member variable.
2919 (vect_chooses_same_modes_p): Declare.
2920 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2921 chosen vector mode in vec_info::used_vector_mode.
2922 (vect_chooses_same_modes_p): New function.
2923 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2924 the same vector statements multiple times.
2925 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2926
2927 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2928
2929 * machmode.h (opt_machine_mode::operator==): New function.
2930 (opt_machine_mode::operator!=): Likewise.
2931 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2932 (get_related_vectype_for_scalar_type): Delete.
2933 (get_vectype_for_scalar_type_and_size): Declare.
2934 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2935 whether analysis passed or failed, and with what vector modes.
2936 Use related_vector_mode to check whether trying a particular
2937 vector mode would be redundant with the autodetected mode,
2938 and print a dump message if we decide to skip it.
2939 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2940 (vect_create_epilog_for_reduction): Use
2941 get_related_vectype_for_scalar_type instead of
2942 get_vectype_for_scalar_type_and_size.
2943 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2944 with...
2945 (get_related_vectype_for_scalar_type): ...this new function.
2946 Take a starting/"prevailing" vector mode rather than a vector size.
2947 Take an optional nunits argument, with the same meaning as for
2948 related_vector_mode. Use related_vector_mode when not
2949 auto-detecting a mode, falling back to mode_for_vector if no
2950 target mode exists.
2951 (get_vectype_for_scalar_type): Update accordingly.
2952 (get_same_sized_vectype): Likewise.
2953 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2954
2955 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2956
2957 * tree-vect-stmts.c (vectorizable_call): Require the types
2958 to have the same size.
2959
2960 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2961
2962 * tree-vect-stmts.c (vectorizable_call): If an operand is
2963 constant or external, use get_vectype_for_scalar_type
2964 rather than get_same_sized_vectype to get its vector type.
2965 (vectorizable_conversion, vectorizable_shift): Likewise.
2966 (vectorizable_operation): Likewise.
2967
2968 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2969
2970 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2971 (vec_info::vector_mode): ...this new field.
2972 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2973 (vect_analyze_loop, vect_transform_loop): Likewise.
2974 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2975 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2976 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2977 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2978 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2979
2980 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2981
2982 * target.h (vector_sizes, auto_vector_sizes): Delete.
2983 (vector_modes, auto_vector_modes): New typedefs.
2984 * target.def (autovectorize_vector_sizes): Replace with...
2985 (autovectorize_vector_modes): ...this new hook.
2986 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2987 Replace with...
2988 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2989 * doc/tm.texi: Regenerate.
2990 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2991 (default_autovectorize_vector_modes): New function.
2992 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2993 (default_autovectorize_vector_modes): New function.
2994 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2995 of autovectorize_vector_sizes. Use the number of units in the mode
2996 to calculate the maximum VF.
2997 * omp-low.c (omp_clause_aligned_alignment): Use
2998 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2999 Use a loop based on related_mode to iterate through all supported
3000 vector modes for a given scalar mode.
3001 * optabs-query.c (can_vec_mask_load_store_p): Use
3002 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3003 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3004 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3005 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3006 Replace with...
3007 (aarch64_autovectorize_vector_modes): ...this new function.
3008 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3009 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3010 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3011 (arc_autovectorize_vector_modes): ...this new function.
3012 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3013 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3014 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3015 (arm_autovectorize_vector_modes): ...this new function.
3016 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3017 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3018 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3019 (ix86_autovectorize_vector_modes): ...this new function.
3020 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3021 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3022 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3023 (mips_autovectorize_vector_modes): ...this new function.
3024 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3025 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3026
3027 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3028
3029 * tree-vect-stmts.c (vectorizable_shift): Check the number
3030 of vector elements as well as the type mode when deciding
3031 whether an op1_vectype is compatible. Reuse the result of
3032 this check when generating vector statements.
3033
3034 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3035
3036 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3037 targetm.vectorize.preferred_simd_mode returns an integer mode,
3038 use mode_for_vector to decide what the vector type's mode
3039 should actually be. Use build_vector_type_for_mode instead
3040 of build_vector_type.
3041
3042 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3043
3044 * target.def (get_mask_mode): Take a vector mode itself as argument,
3045 instead of properties about the vector mode.
3046 * doc/tm.texi: Regenerate.
3047 * targhooks.h (default_get_mask_mode): Update to reflect new
3048 get_mode_mask interface.
3049 * targhooks.c (default_get_mask_mode): Likewise. Use
3050 related_int_vector_mode.
3051 * optabs-query.c (can_vec_mask_load_store_p): Update call
3052 to get_mask_mode.
3053 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3054 first that the original mode really is a vector.
3055 * tree.c (build_truth_vector_type_for): Likewise.
3056 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3057 get_mode_mask interface.
3058 (aarch64_expand_sve_vcond): Update call accordingly.
3059 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3060 get_mode_mask interface.
3061 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3062
3063 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3064
3065 * tree.h (build_truth_vector_type): Delete.
3066 (build_same_sized_truth_vector_type): Likewise.
3067 * tree.c (build_truth_vector_type): Rename to...
3068 (build_truth_vector_type_for): ...this. Make static and take
3069 a vector type as argument.
3070 (truth_type_for): Update accordingly.
3071 (build_same_sized_truth_vector_type): Delete.
3072 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3073 instead of build_same_sized_truth_vector_type.
3074 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3075 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3076 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3077 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3078 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3079 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3080 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3081 (vectorizable_store, vectorizable_condition): Likewise.
3082 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3083 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3084 build_truth_vector_type.
3085 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3086 Use truth_type_for instead of build_same_sized_truth_vector_type.
3087 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3088
3089 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3090
3091 * tree.h (build_truth_vector_type_for_mode): Declare.
3092 * tree.c (build_truth_vector_type_for_mode): New function,
3093 split out from...
3094 (build_truth_vector_type): ...here.
3095 (build_opaque_vector_type): Fix head comment.
3096 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3097 vec_info parameter.
3098 (vect_halve_mask_nunits): Replace vec_info parameter with the
3099 mode of the new vector.
3100 (vect_double_mask_nunits): Likewise.
3101 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3102 (vect_double_mask_nunits): Likewise.
3103 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3104 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3105 to vect_halve_mask_nunits, getting the required mode from the unpack
3106 patterns.
3107 (vect_set_loop_condition_masked): Update call accordingly.
3108 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3109 parameter and update call to vect_double_mask_nunits.
3110 (vectorizable_conversion): Update call accordingly.
3111 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3112 (vectorizable_call): Update call accordingly.
3113 (supportable_widening_operation): Update call to
3114 vect_halve_mask_nunits.
3115 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3116 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3117
3118 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3119
3120 * machmode.h (mode_for_int_vector): Delete.
3121 (related_int_vector_mode): Declare.
3122 * stor-layout.c (mode_for_int_vector): Delete.
3123 (related_int_vector_mode): New function.
3124 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3125 instead of mode_for_int_vector.
3126 (expand_vec_perm_const): Likewise.
3127 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3128 (aarch64_evpc_sve_tbl): Likewise.
3129 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3130 (s390_expand_vcond): Likewise.
3131
3132 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3133
3134 * target.def (related_mode): New hook.
3135 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3136 * doc/tm.texi: Regenerate.
3137 * targhooks.h (default_vectorize_related_mode): Declare.
3138 * targhooks.c (default_vectorize_related_mode): New function.
3139 * machmode.h (related_vector_mode): Declare.
3140 * stor-layout.c (related_vector_mode): New function.
3141 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3142 * optabs-query.c (qimode_for_vec_perm): Likewise.
3143 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3144 (vectorizable_store, vectorizable_load): Likewise
3145
3146 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3147
3148 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3149 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3150 * config/arm/arm-c.c (arm_cpu_builtins): Define
3151 __GCC_ASM_FLAG_OUTPUTS__.
3152 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3153 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3154 Define __GCC_ASM_FLAG_OUTPUTS__.
3155 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3156 * doc/extend.texi (FlagOutputOperands): Add documentation
3157 for ARM and AArch64.
3158
3159 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3160 * config/arm/predicates.md (nz_comparison_operator): Rename
3161 from noov_comparison_operator.
3162 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3163 (arm_gen_dicompare_reg): Likewise.
3164 (maybe_get_arm_condition_code): Likewise.
3165 (thumb1_final_prescan_insn): Likewise.
3166 (arm_emit_coreregs_64bit_shift): Likewise.
3167 * config/arm/arm.md (addsi3_compare0): Likewise.
3168 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3169 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3170 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3171 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3172 (*mulsi3addsi_compare0_scratch): Likewise.
3173 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3174 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3175 (*zeroextractsi_compare0_scratch): Likewise.
3176 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3177 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3178 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3179 (andsi_not_shiftsi_si_scc): Likewise.
3180 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3181 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3182 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3183 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3184 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3185 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3186 (return_addr_mask, *check_arch2): Likewise.
3187 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3188 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3189 (compare_scc splitters): Likewise.
3190 (movcond_addsi): Likewise.
3191 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3192 (*thumb2_addsi3_compare0_scratch): Likewise.
3193 (*thumb2_mulsi_short_compare0): Likewise.
3194 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3195 (compare peephole2s): Likewise.
3196 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3197 nz_comparison_operator names.
3198 (cbranchsi4_insn): Likewise.
3199
3200 * config/arm/constraints.md (c): Use cc_register predicate.
3201
3202 * config/aarch64/constraints.md (c): New constraint.
3203
3204 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3205
3206 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3207 ipa_merge_fn_summary_after_inlining): Micro optimize.
3208
3209 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3210
3211 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3212
3213 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3214
3215 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3216 (ipa_value_range_from_jfunc): New function.
3217 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3218 known_value_ranges parameter; use it to evalulate conditions.
3219 (evaluate_properties_for_edge): Compute known value ranges.
3220 (ipa_fn_summary_t::duplicate): Update use of
3221 evaluate_conditions_for_known_args.
3222 (estimate_ipcp_clone_size_and_time): Likewise.
3223 (ipa_merge_fn_summary_after_inlining): Likewise.
3224 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3225
3226 2019-11-14 Martin Liska <mliska@suse.cz>
3227
3228 * ipa-inline.c (want_inline_small_function_p): Use
3229 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3230 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3231
3232 2019-11-14 Martin Liska <mliska@suse.cz>
3233
3234 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3235 of a callee to get value of the param.
3236 * ipa-inline.c (inline_insns_auto): Use proper
3237 opt_for_fn.
3238 * opts.c (maybe_default_option): Do not overwrite param
3239 value if optimization level does not match. Note that
3240 params usually have default value set via Init() keyword.
3241 * params.opt: Remove -param=max-inline-insns-auto-O2.
3242 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3243 * doc/invoke.texi: Remove documentation of
3244 max-inline-insns-auto-O2.
3245
3246 2019-11-14 Martin Liska <mliska@suse.cz>
3247
3248 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3249 Do not initialize m_other_count.
3250 (switch_conversion::collect): Do not count m_default_count and
3251 m_other_count as we use frequencies for edges.
3252 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3253
3254 2019-11-14 Martin Liska <mliska@suse.cz>
3255
3256 PR other/92329
3257 * doc/invoke.texi: Document -fallocation-dce.
3258
3259 2019-11-14 Martin Liska <mliska@suse.cz>
3260
3261 PR target/92389
3262 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3263 PTA_ICELAKE_CLIENT which is later interited by
3264 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3265
3266 2019-11-14 Martin Liska <mliska@suse.cz>
3267
3268 * ipa-icf.c (sem_item_optimizer::execute): Save
3269 loaded_symbols.
3270 (sem_item_optimizer::parse_nonsingleton_classes):
3271 Return number of loaded symbols.
3272 (sem_item_optimizer::merge_classes): Print
3273 statistics about totally needed symbols.
3274 * ipa-icf.h (parse_nonsingleton_classes): Change return
3275 type.
3276 (merge_classes): Add one argument.
3277
3278 2019-11-14 Martin Liska <mliska@suse.cz>
3279
3280 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3281 func_checker::hash_operand by handling of FIELD_DECLs.
3282
3283 2019-11-14 Martin Liska <mliska@suse.cz>
3284
3285 * ipa-icf-gimple.h (func_checker::func_checker): Add
3286 default constructor.
3287 * ipa-icf.c (sem_function::init): Make operand_equal_p
3288 and hash_operand public.
3289 (sem_item::add_expr): Remove.
3290 (sem_item::add_type): Remove.
3291 (sem_function::hash_stmt): Use m_checker for hashing
3292 of GIMPLE statements.
3293 (sem_function::parse): Init with checker.
3294 (sem_variable::parse): Pass NULL as checker.
3295 (sem_item_optimizer::parse_funcs_and_vars):
3296 Pass checker to ::parse function.
3297 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3298 (sem_variable::parse): New function.
3299 (sem_variable::get_hash): Only return computed hash value.
3300 (sem_variable::init): Initialize hash of a variable.
3301 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3302 to couple of functions as a new argument.
3303
3304 2019-11-14 Martin Liska <mliska@suse.cz>
3305
3306 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3307 bail out reason.
3308 (func_checker::compare_gimple_assign): Likewise.
3309
3310 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3311
3312 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3313 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3314 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3315
3316 * omp-general.c (omp_context_name_list_prop): New function.
3317 (omp_context_selector_matches): Use it. Return 0 if it returns
3318 NULL.
3319 (omp_context_selector_props_compare): Allow equivalency of an
3320 identifier and a string literal containing no embedded zeros.
3321
3322 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3323
3324 * range-op.cc (RANGE3): Remove.
3325 (range_tests): Remove all selftest that check for multi-ranges.
3326 Put tests in namespace selftest.
3327 * selftest.h: Move range_tests into namespace selftest.
3328 * value-range.h (class value_range): Unfriend range_tests.
3329
3330 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3331
3332 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3333 normalize_symbolics and normalize_addresses working in place.
3334 (range_fold_unary_symbolics_p): Same.
3335 (range_fold_unary_symbolics_p): Same.
3336 * value-range.cc (num_pairs): Same.
3337 (lower_bound): Same.
3338 (upper_bound): Same.
3339 (contains_p): Same.
3340 (normalize_addresses): Same.
3341 (normalize_symbolics): Same.
3342 * value-range.h (normalize_symbolics): Same.
3343 (normalize_addresses): Same.
3344
3345 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3346
3347 PR ipa/91682
3348 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3349 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3350 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3351 (ipa_agg_jump_function): Remove member function equal_to.
3352 (ipa_agg_jump_function_p): Remove typedef.
3353 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3354 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3355 information for aggregate jump function.
3356 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3357 record last definition statement.
3358 (load_from_unmodified_param_or_agg): New function.
3359 (ipa_known_agg_contents_list): Add new field type and value, remove
3360 field constant.
3361 (build_agg_jump_func_from_list): Rename parameter const_count to
3362 value_count, build aggregate jump function from ipa_load_agg_data.
3363 (analyze_agg_content_value): New function.
3364 (extract_mem_content): Analyze memory store assignment to prepare
3365 information for aggregate jump function generation.
3366 (determine_known_aggregate_parts): Add new parameter fbi, remove
3367 parameter aa_walk_budeget_p.
3368 (update_jump_functions_after_inlining): Update aggregate jump function.
3369 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3370 (try_make_edge_direct_simple_call): Add new parameter new_root.
3371 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3372 new_root_info.
3373 (update_indirect_edges_after_inlining): Pass new argument to
3374 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3375 (ipa_write_jump_function): Write aggregate jump function to file.
3376 (ipa_read_jump_function): Read aggregate jump function from file.
3377 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3378 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3379 (ipa_agg_value_from_node): Likewise.
3380 (ipa_agg_value_set_from_jfunc): Likewise.
3381 (propagate_vals_across_arith_jfunc): Likewise.
3382 (propagate_aggregate_lattice): Likewise.
3383 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3384 (propagate_vals_across_pass_through): Call
3385 propagate_vals_across_arith_jfunc.
3386 (get_clone_agg_value): Move forward.
3387 (propagate_aggs_across_jump_function): Handle value propagation for
3388 aggregate jump function.
3389 (agg_jmp_p_vec_for_t_vec): Remove.
3390 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3391 with vec<ipa_agg_value>.
3392 (copy_plats_to_inter, intersect_with_plats): Likewise.
3393 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3394 (intersect_aggregate_with_edge): Likewise.
3395 (find_aggregate_values_for_callers_subset): Likewise.
3396 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3397 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3398 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3399 (gather_context_independent_values): Likewise.
3400 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3401 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3402 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3403 (evaluate_properties_for_edge): Likewise.
3404 (estimate_edge_devirt_benefit): Likewise.
3405 (estimate_edge_size_and_time): Likewise.
3406 (estimate_calls_size_and_time): Likewise.
3407 (ipa_call_context::ipa_call_context): Likewise.
3408 (estimate_ipcp_clone_size_and_time): Likewise.
3409 * ipa-fnsummary.h (ipa_call_context): Replace
3410 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3411 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3412 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3413 (do_estimate_edge_size): Likewise.
3414 (do_estimate_edge_hints): Likewise.
3415
3416 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3417
3418 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3419 binary operations.
3420
3421 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3422
3423 * ipa-profile.c (check_argument_count): Check properly that e_info
3424 is non-NULL; do not check descriptors.
3425
3426 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3427
3428 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3429 check for ipa profiles.
3430
3431 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3432
3433 PR c++/92421
3434 * ipa-prop.c (update_indirect_edges_after_inlining):
3435 Mark parameter as used.
3436 * ipa-inline.c (recursive_inlining): Reset node cache
3437 after inlining.
3438 (inline_small_functions): Remove checking ifdef.
3439 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3440 cache consistency.
3441
3442 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3443
3444 PR ipa/92498
3445 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3446 is NULL.
3447 (ipa_profile): Fix reversed test.
3448
3449 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3450
3451 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3452 (propagate_constants_topo): Fix typo.
3453
3454 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3455
3456 * Makefile.in (OBJS): Add value-range.o.
3457 (GTFILES): Add value-range.h.
3458 * gengtype.c (open_base_files): Add value-range.h to list of
3459 header files.
3460 * tree-vrp.c: Move the following value_range related functions:
3461 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3462 constant_p, set_undefined, set_varying, may_contain_p,
3463 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3464 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3465 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3466 value_inside_range, ranges_from_anti_range, union_ranges,
3467 intersect_ranges, intersect_helper, union_helper, union_,
3468 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3469 upper_bound, contains_p, invert, intersect...
3470 * value-range.cc: ...to here.
3471 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3472 associated inline methods from here...
3473 * value-range.h: ...to here.
3474
3475 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3476
3477 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3478 instead of asserting its value.
3479
3480 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3481
3482 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3483 constructors and set methods so value_range_kind is the last
3484 argument and defaults to VR_RANGE.
3485 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3486 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3487 * ipa-prop.c (ipa_get_value_range): Same.
3488 (ipa_compute_jump_functions_for_edge): Same.
3489 * range-op.cc (value_range_from_overflowed_bounds): Same.
3490 (operator_cast::op1_range): Same.
3491 (range_tests): Same.
3492 * range.cc (range_nonzero): Same.
3493 * tree-ssanames.c (get_range_info): Same.
3494 * tree-vrp.c (value_range_equiv::set): Same.
3495 (value_range::value_range): Same.
3496 (value_range_equiv::value_range_equiv): Same.
3497 (value_range_equiv::update): Same.
3498 (value_range_equiv::deep_copy): Same.
3499 (value_range_equiv::move): Same.
3500 (value_range_equiv::set_undefined): Same.
3501 (value_range::set): Same.
3502 (value_range::set_nonzero): Same.
3503 (ranges_from_anti_range): Same.
3504 (extract_range_from_plus_minus_expr): Same.
3505 (value_range::intersect_helper): Same.
3506 (value_range_equiv::intersect): Same.
3507 (value_range::union_helper): Same.
3508 (value_range_equiv::union_): Same.
3509 (value_range::normalize_symbolics): Same.
3510 (value_range::invert): Same.
3511 (determine_value_range_1): Same.
3512 * tree-vrp.h (class value_range): Same.
3513 (class value_range_equiv): Same.
3514 * vr-values.c (set_value_range_to_nonnegative): Same.
3515 (set_value_range_to_truthvalue): Same.
3516 (vr_values::update_value_range): Same.
3517 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3518 (vr_values::extract_range_from_binary_expr): Same.
3519 (vr_values::extract_range_from_comparison): Same.
3520 (vr_values::extract_range_basic): Same.
3521 (vr_values::adjust_range_with_scev): Same.
3522 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3523 (vr_values::extract_range_from_phi_node): Same.
3524
3525 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3526
3527 * tree-dump.c (dequeue_and_dump): Print first tree operand
3528 for VIEW_CONVERT_EXPR.
3529
3530 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3531
3532 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3533 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3534 * real.c (get_max_float): Add norm_max argument.
3535 * real.h (get_max_float): Update prototype.
3536 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3537 get_max_float.
3538
3539 2019-11-13 Martin Liska <mliska@suse.cz>
3540
3541 * dbgcnt.c (test_sorted_dbg_counters): New.
3542 (dbgcnt_c_tests): Likewise.
3543 * selftest-run-tests.c (selftest::run_tests): Likewise.
3544 * selftest.h (dbgcnt_c_tests): Likewise.
3545
3546 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3547 Martin Jambor <mjambor@suse.cz>
3548
3549 PR ipa/92454
3550 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3551 (identify_dead_nodes): Likewise.
3552
3553 2019-11-13 Martin Liska <mliska@suse.cz>
3554
3555 * ipa-icf.c (sem_function::equals_private): Do not overuse
3556 push/pop_cfun functions.
3557
3558 2019-11-13 Martin Liska <mliska@suse.cz>
3559
3560 * common.opt: Document change of -fdbg-cnt option.
3561 * dbgcnt.c (DEBUG_COUNTER): Remove.
3562 (dbg_cnt_is_enabled): Remove.
3563 (dbg_cnt): Work with new intervals.
3564 (dbg_cnt_set_limit_by_index): Set to new
3565 list of intervals.
3566 (dbg_cnt_set_limit_by_name): Likewise.
3567 (dbg_cnt_process_single_pair): Process new format.
3568 (dbg_cnt_process_opt): Likewise.
3569 (dbg_cnt_list_all_counters): Likewise.
3570 * doc/invoke.texi: Document change of -fdbg-cnt option.
3571 (cmp_tuples): New.
3572
3573 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3574
3575 * ipa-inline.c (ipa_inline): Check that function is defined before
3576 flattening.
3577
3578 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3579 Julian Brown <julian@codesourcery.com>
3580
3581 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3582 flag_worker_partitioning is not set.
3583 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3584 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3585
3586 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3587
3588 * config/gcn/gcn-run.c (heap_region): New global variable.
3589 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3590 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3591 (get_kernarg_region): Move contents to ....
3592 (get_memory_region): .... here.
3593 (get_heap_region): New function.
3594 (init_device): Initialize the heap_region.
3595 (device_malloc): Add region parameter.
3596 (struct kernargs): Move heap ....
3597 (heap): ... to global scope.
3598 (main): Allocate heap separate to kernargs.
3599
3600 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3601
3602 * ipa-prop.c (ipa_print_node_jump_functions,
3603 ipa_print_node_params): Print info about missing summaries.
3604
3605 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3606
3607 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3608 the cost of generating loop masks.
3609
3610 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3611
3612 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3613 New function.
3614 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3615 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3616 (vect_transform_loop): Likewise.
3617 (vect_analyze_loop_costing): Don't take the cost of versioning
3618 into account for the static profitability threshold if it turns
3619 out that no versioning is needed.
3620
3621 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3622
3623 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3624 and target_option_default_node to get -fprofile-generate ctors working
3625 right with LTO.
3626
3627 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3628
3629 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3630 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3631 (vectorizable_assignment): Don't add a cost for nop conversions.
3632 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3633 Likewise.
3634 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3635
3636 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3637
3638 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3639 number of ncopies as an additional argument.
3640 (vectorizable_conversion): Update call accordingly. Use "modifier"
3641 to check whether a conversion is between vectors with the same
3642 numbers of units.
3643
3644 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3645
3646 * config/aarch64/aarch64-sve-builtins-functions.h
3647 (unary_count::expand): Use aarch64_sve_int_mode instead of
3648 mode_for_int_vector.
3649
3650 2019-11-13 Martin Liska <mliska@suse.cz>
3651
3652 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3653
3654 2019-11-13 Martin Liska <mliska@suse.cz>
3655
3656 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3657 Remove call to finalize_options_struct.
3658
3659 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3660
3661 PR target/92055
3662 * config/avr/t-avr (avr-mcus): Do not depend on
3663 $(srcdir)/config/avr/t-multilib.
3664
3665 2019-11-13 Richard Biener <rguenther@suse.de>
3666
3667 PR tree-optimization/92473
3668 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3669 direct optab reduction in the correct type.
3670
3671 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3672
3673 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3674 hexadecimal literal.
3675
3676 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3677
3678 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3679 UNORDERED if !HONOR_NANS (DFmode).
3680 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3681 if !HONOR_NANS (<MODE>mode).
3682
3683 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3684
3685 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3686 (ipcp_verify_propagated_values): Likewise.
3687 (propagate_constants_across_call): Likewise.
3688 (propagate_constants_topo): Likewise.
3689 (ipcp_propagate_stage): Likewise.
3690
3691 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3692
3693 PR ipa/92471
3694 * ipa-profile.c (check_argument_count): Break out from ...;
3695 watch for missing summaries.
3696 (ipa_profile): Here.
3697
3698 2019-11-12 Martin Sebor <msebor@redhat.com>
3699
3700 PR tree-optimization/92412
3701 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3702 extern variables.
3703
3704 2019-11-12 Martin Sebor <msebor@redhat.com>
3705
3706 PR middle-end/83688
3707 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3708 (directive::argno): New member.
3709 (format_result::aliases, format_result::alias_count): New data members.
3710 (format_result::append_alias): New member function.
3711 (fmtresult::dst_offset): New data member.
3712 (pass_sprintf_length::call_info::dst_origin): New data member.
3713 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3714 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3715 (get_origin_and_offset): Same.
3716 (format_string): Call it.
3717 (format_directive): Call append_alias and set directive argument
3718 number.
3719 (maybe_warn_overlap): New function.
3720 (pass_sprintf_length::compute_format_length): Call it.
3721 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3722 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3723
3724 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3725
3726 PR rtl-optimization/92430
3727 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3728 dominance info at the beginning.
3729
3730 2019-11-12 Richard Biener <rguenther@suse.de>
3731
3732 PR tree-optimization/92460
3733 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3734 expression before gimplifying.
3735
3736 2019-11-12 Richard Biener <rguenther@suse.de>
3737
3738 PR tree-optimization/92461
3739 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3740 stmt after propagation.
3741
3742 2019-11-12 Martin Liska <mliska@suse.cz>
3743
3744 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3745 Use SET_OPTION_IF_UNSET.
3746 (ix86_option_override_internal): Likewise.
3747 * opts.c (default_options_optimization): Likewise.
3748 (finish_options): Likewise.
3749 (enable_fdo_optimizations): Likewise.
3750 (common_handle_option): Likewise.
3751
3752 2019-11-12 Martin Liska <mliska@suse.cz>
3753
3754 * common/common-target.def: Remove option_validate_param and
3755 option_default_params.
3756 * common/common-targhooks.c (default_option_validate_param):
3757 Remove.
3758 * common/common-targhooks.h (default_option_validate_param):
3759 Remove.
3760 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3761 Remove usage of this.
3762 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3763 (aarch64_option_validate_param): Likewise.
3764 (aarch64_option_default_params): Likewise
3765 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3766 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3767 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3768 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3769 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3770 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3771 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3772 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3773 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3774 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3775 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3776 guard_size here.
3777 * doc/tm.texi: Remove option_default_params and option_validate_param.
3778 * doc/tm.texi.in: Likewise.
3779
3780 2019-11-12 Martin Liska <mliska@suse.cz>
3781
3782 * common/common-target.def:
3783 Do not mention set_default_param_value
3784 and set_param_value.
3785 * doc/tm.texi: Likewise.
3786
3787 2019-11-12 Martin Liska <mliska@suse.cz>
3788
3789 * common.opt: Remove param_values.
3790 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3791 Remove finalize_options_struct.
3792 * gcc.c (driver::decode_argv): Do not call global_init_params
3793 and finish_params.
3794 (driver::finalize): Do not call params_c_finalize
3795 and finalize_options_struct.
3796 * opt-suggestions.c (option_proposer::get_completions): Remove
3797 special casing of params.
3798 (option_proposer::find_param_completions): Remove.
3799 (test_completion_partial_match): Update expected output.
3800 * opt-suggestions.h: Remove find_param_completions.
3801 * opts-common.c (add_misspelling_candidates): Add
3802 --param with a space.
3803 * opts.c (handle_param): Remove.
3804 (init_options_struct):. Remove init_options_struct and
3805 similar calls.
3806 (finalize_options_struct): Remove.
3807 (common_handle_option): Use SET_OPTION_IF_UNSET.
3808 * opts.h (finalize_options_struct): Remove.
3809 * toplev.c (general_init): Do not call global_init_params.
3810 (toplev::finalize): Do not call params_c_finalize and
3811 finalize_options_struct.
3812
3813 2019-11-12 Martin Liska <mliska@suse.cz>
3814
3815 * Makefile.in: Remove PARAMS_H and params.list
3816 and params.options.
3817 * params-enum.h: Remove.
3818 * params-list.h: Remove.
3819 * params-options.h: Remove.
3820 * params.c: Remove.
3821 * params.def: Remove.
3822 * params.h: Remove.
3823 * asan.c: Do not include params.h.
3824 * auto-profile.c: Likewise.
3825 * bb-reorder.c: Likewise.
3826 * builtins.c: Likewise.
3827 * cfgcleanup.c: Likewise.
3828 * cfgexpand.c: Likewise.
3829 * cfgloopanal.c: Likewise.
3830 * cgraph.c: Likewise.
3831 * combine.c: Likewise.
3832 * common/config/aarch64/aarch64-common.c: Likewise.
3833 * common/config/gcn/gcn-common.c: Likewise.
3834 * common/config/ia64/ia64-common.c: Likewise.
3835 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3836 * common/config/rs6000/rs6000-common.c: Likewise.
3837 * common/config/sh/sh-common.c: Likewise.
3838 * config/aarch64/aarch64.c: Likewise.
3839 * config/alpha/alpha.c: Likewise.
3840 * config/arm/arm.c: Likewise.
3841 * config/avr/avr.c: Likewise.
3842 * config/csky/csky.c: Likewise.
3843 * config/i386/i386-builtins.c: Likewise.
3844 * config/i386/i386-expand.c: Likewise.
3845 * config/i386/i386-features.c: Likewise.
3846 * config/i386/i386-options.c: Likewise.
3847 * config/i386/i386.c: Likewise.
3848 * config/ia64/ia64.c: Likewise.
3849 * config/rs6000/rs6000-logue.c: Likewise.
3850 * config/rs6000/rs6000.c: Likewise.
3851 * config/s390/s390.c: Likewise.
3852 * config/sparc/sparc.c: Likewise.
3853 * config/visium/visium.c: Likewise.
3854 * coverage.c: Likewise.
3855 * cprop.c: Likewise.
3856 * cse.c: Likewise.
3857 * cselib.c: Likewise.
3858 * dse.c: Likewise.
3859 * emit-rtl.c: Likewise.
3860 * explow.c: Likewise.
3861 * final.c: Likewise.
3862 * fold-const.c: Likewise.
3863 * gcc.c: Likewise.
3864 * gcse.c: Likewise.
3865 * ggc-common.c: Likewise.
3866 * ggc-page.c: Likewise.
3867 * gimple-loop-interchange.cc: Likewise.
3868 * gimple-loop-jam.c: Likewise.
3869 * gimple-loop-versioning.cc: Likewise.
3870 * gimple-ssa-split-paths.c: Likewise.
3871 * gimple-ssa-sprintf.c: Likewise.
3872 * gimple-ssa-store-merging.c: Likewise.
3873 * gimple-ssa-strength-reduction.c: Likewise.
3874 * gimple-ssa-warn-alloca.c: Likewise.
3875 * gimple-ssa-warn-restrict.c: Likewise.
3876 * graphite-isl-ast-to-gimple.c: Likewise.
3877 * graphite-optimize-isl.c: Likewise.
3878 * graphite-scop-detection.c: Likewise.
3879 * graphite-sese-to-poly.c: Likewise.
3880 * graphite.c: Likewise.
3881 * haifa-sched.c: Likewise.
3882 * hsa-gen.c: Likewise.
3883 * ifcvt.c: Likewise.
3884 * ipa-cp.c: Likewise.
3885 * ipa-fnsummary.c: Likewise.
3886 * ipa-inline-analysis.c: Likewise.
3887 * ipa-inline.c: Likewise.
3888 * ipa-polymorphic-call.c: Likewise.
3889 * ipa-profile.c: Likewise.
3890 * ipa-prop.c: Likewise.
3891 * ipa-split.c: Likewise.
3892 * ipa-sra.c: Likewise.
3893 * ira-build.c: Likewise.
3894 * ira-conflicts.c: Likewise.
3895 * loop-doloop.c: Likewise.
3896 * loop-invariant.c: Likewise.
3897 * loop-unroll.c: Likewise.
3898 * lra-assigns.c: Likewise.
3899 * lra-constraints.c: Likewise.
3900 * modulo-sched.c: Likewise.
3901 * opt-suggestions.c: Likewise.
3902 * opts.c: Likewise.
3903 * postreload-gcse.c: Likewise.
3904 * predict.c: Likewise.
3905 * reload.c: Likewise.
3906 * reorg.c: Likewise.
3907 * resource.c: Likewise.
3908 * sanopt.c: Likewise.
3909 * sched-deps.c: Likewise.
3910 * sched-ebb.c: Likewise.
3911 * sched-rgn.c: Likewise.
3912 * sel-sched-ir.c: Likewise.
3913 * sel-sched.c: Likewise.
3914 * shrink-wrap.c: Likewise.
3915 * stmt.c: Likewise.
3916 * targhooks.c: Likewise.
3917 * toplev.c: Likewise.
3918 * tracer.c: Likewise.
3919 * trans-mem.c: Likewise.
3920 * tree-chrec.c: Likewise.
3921 * tree-data-ref.c: Likewise.
3922 * tree-if-conv.c: Likewise.
3923 * tree-inline.c: Likewise.
3924 * tree-loop-distribution.c: Likewise.
3925 * tree-parloops.c: Likewise.
3926 * tree-predcom.c: Likewise.
3927 * tree-profile.c: Likewise.
3928 * tree-scalar-evolution.c: Likewise.
3929 * tree-sra.c: Likewise.
3930 * tree-ssa-ccp.c: Likewise.
3931 * tree-ssa-dom.c: Likewise.
3932 * tree-ssa-dse.c: Likewise.
3933 * tree-ssa-ifcombine.c: Likewise.
3934 * tree-ssa-loop-ch.c: Likewise.
3935 * tree-ssa-loop-im.c: Likewise.
3936 * tree-ssa-loop-ivcanon.c: Likewise.
3937 * tree-ssa-loop-ivopts.c: Likewise.
3938 * tree-ssa-loop-manip.c: Likewise.
3939 * tree-ssa-loop-niter.c: Likewise.
3940 * tree-ssa-loop-prefetch.c: Likewise.
3941 * tree-ssa-loop-unswitch.c: Likewise.
3942 * tree-ssa-math-opts.c: Likewise.
3943 * tree-ssa-phiopt.c: Likewise.
3944 * tree-ssa-pre.c: Likewise.
3945 * tree-ssa-reassoc.c: Likewise.
3946 * tree-ssa-sccvn.c: Likewise.
3947 * tree-ssa-scopedtables.c: Likewise.
3948 * tree-ssa-sink.c: Likewise.
3949 * tree-ssa-strlen.c: Likewise.
3950 * tree-ssa-structalias.c: Likewise.
3951 * tree-ssa-tail-merge.c: Likewise.
3952 * tree-ssa-threadbackward.c: Likewise.
3953 * tree-ssa-threadedge.c: Likewise.
3954 * tree-ssa-uninit.c: Likewise.
3955 * tree-switch-conversion.c: Likewise.
3956 * tree-vect-data-refs.c: Likewise.
3957 * tree-vect-loop.c: Likewise.
3958 * tree-vect-slp.c: Likewise.
3959 * tree-vrp.c: Likewise.
3960 * tree.c: Likewise.
3961 * value-prof.c: Likewise.
3962 * var-tracking.c: Likewise.
3963
3964 2019-11-12 Martin Liska <mliska@suse.cz>
3965
3966 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3967 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3968 macro.
3969 (asan_sanitize_allocas_p): Likewise.
3970 (asan_emit_stack_protection): Likewise.
3971 (asan_protect_global): Likewise.
3972 (instrument_derefs): Likewise.
3973 (instrument_builtin_call): Likewise.
3974 (asan_expand_mark_ifn): Likewise.
3975 * auto-profile.c (auto_profile): Likewise.
3976 * bb-reorder.c (copy_bb_p): Likewise.
3977 (duplicate_computed_gotos): Likewise.
3978 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3979 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3980 (try_crossjump_bb): Likewise.
3981 * cfgexpand.c (defer_stack_allocation): Likewise.
3982 (stack_protect_classify_type): Likewise.
3983 (pass_expand::execute): Likewise.
3984 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3985 (estimate_reg_pressure_cost): Likewise.
3986 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3987 * combine.c (combine_instructions): Likewise.
3988 (record_value_for_reg): Likewise.
3989 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3990 (aarch64_option_default_params): Likewise.
3991 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3992 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3993 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3994 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3995 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3996 (aarch64_allocate_and_probe_stack_space): Likewise.
3997 (aarch64_expand_epilogue): Likewise.
3998 (aarch64_override_options_internal): Likewise.
3999 * config/alpha/alpha.c (alpha_option_override): Likewise.
4000 * config/arm/arm.c (arm_option_override): Likewise.
4001 (arm_valid_target_attribute_p): Likewise.
4002 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4003 * config/i386/i386.c (get_probe_interval): Likewise.
4004 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4005 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4006 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4007 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4008 (get_stack_clash_protection_guard_size): Likewise.
4009 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4010 * config/s390/s390.c (allocate_stack_space): Likewise.
4011 (s390_emit_prologue): Likewise.
4012 (s390_option_override_internal): Likewise.
4013 * config/sparc/sparc.c (sparc_option_override): Likewise.
4014 * config/visium/visium.c (visium_option_override): Likewise.
4015 * coverage.c (get_coverage_counts): Likewise.
4016 (coverage_compute_profile_id): Likewise.
4017 (coverage_begin_function): Likewise.
4018 (coverage_end_function): Likewise.
4019 * cse.c (cse_find_path): Likewise.
4020 (cse_extended_basic_block): Likewise.
4021 (cse_main): Likewise.
4022 * cselib.c (cselib_invalidate_mem): Likewise.
4023 * dse.c (dse_step1): Likewise.
4024 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4025 (get_max_insn_count): Likewise.
4026 (make_debug_insn_raw): Likewise.
4027 (init_emit): Likewise.
4028 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4029 * final.c (compute_alignments): Likewise.
4030 * fold-const.c (fold_range_test): Likewise.
4031 (fold_truth_andor): Likewise.
4032 (tree_single_nonnegative_warnv_p): Likewise.
4033 (integer_valued_real_single_p): Likewise.
4034 * gcse.c (want_to_gcse_p): Likewise.
4035 (prune_insertions_deletions): Likewise.
4036 (hoist_code): Likewise.
4037 (gcse_or_cprop_is_too_expensive): Likewise.
4038 * ggc-common.c: Likewise.
4039 * ggc-page.c (ggc_collect): Likewise.
4040 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4041 (MAX_DATAREFS): Likewise.
4042 (OUTER_STRIDE_RATIO): Likewise.
4043 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4044 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4045 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4046 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4047 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4048 (imm_store_chain_info::output_merged_store): Likewise.
4049 (pass_store_merging::process_store): Likewise.
4050 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4051 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4052 (scop_to_isl_ast): Likewise.
4053 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4054 (optimize_isl): Likewise.
4055 * graphite-scop-detection.c (build_scops): Likewise.
4056 * haifa-sched.c (set_modulo_params): Likewise.
4057 (rank_for_schedule): Likewise.
4058 (model_add_to_worklist): Likewise.
4059 (model_promote_insn): Likewise.
4060 (model_choose_insn): Likewise.
4061 (queue_to_ready): Likewise.
4062 (autopref_multipass_dfa_lookahead_guard): Likewise.
4063 (schedule_block): Likewise.
4064 (sched_init): Likewise.
4065 * hsa-gen.c (init_prologue): Likewise.
4066 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4067 (cond_move_process_if_block): Likewise.
4068 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4069 (merge_agg_lats_step): Likewise.
4070 (devirtualization_time_bonus): Likewise.
4071 (hint_time_bonus): Likewise.
4072 (incorporate_penalties): Likewise.
4073 (good_cloning_opportunity_p): Likewise.
4074 (ipcp_propagate_stage): Likewise.
4075 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4076 (set_switch_stmt_execution_predicate): Likewise.
4077 (analyze_function_body): Likewise.
4078 (compute_fn_summary): Likewise.
4079 * ipa-inline-analysis.c (estimate_growth): Likewise.
4080 * ipa-inline.c (caller_growth_limits): Likewise.
4081 (inline_insns_single): Likewise.
4082 (inline_insns_auto): Likewise.
4083 (can_inline_edge_by_limits_p): Likewise.
4084 (want_early_inline_function_p): Likewise.
4085 (big_speedup_p): Likewise.
4086 (want_inline_small_function_p): Likewise.
4087 (want_inline_self_recursive_call_p): Likewise.
4088 (edge_badness): Likewise.
4089 (recursive_inlining): Likewise.
4090 (compute_max_insns): Likewise.
4091 (early_inliner): Likewise.
4092 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4093 * ipa-profile.c (ipa_profile): Likewise.
4094 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4095 (ipa_analyze_node): Likewise.
4096 (ipcp_transform_function): Likewise.
4097 * ipa-split.c (consider_split): Likewise.
4098 * ipa-sra.c (allocate_access): Likewise.
4099 (process_scan_results): Likewise.
4100 (ipa_sra_summarize_function): Likewise.
4101 (pull_accesses_from_callee): Likewise.
4102 * ira-build.c (loop_compare_func): Likewise.
4103 (mark_loops_for_removal): Likewise.
4104 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4105 * loop-doloop.c (doloop_optimize): Likewise.
4106 * loop-invariant.c (gain_for_invariant): Likewise.
4107 (move_loop_invariants): Likewise.
4108 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4109 (decide_unroll_runtime_iterations): Likewise.
4110 (decide_unroll_stupid): Likewise.
4111 (expand_var_during_unrolling): Likewise.
4112 * lra-assigns.c (spill_for): Likewise.
4113 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4114 * modulo-sched.c (sms_schedule): Likewise.
4115 (DFA_HISTORY): Likewise.
4116 * opts.c (default_options_optimization): Likewise.
4117 (finish_options): Likewise.
4118 (common_handle_option): Likewise.
4119 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4120 (if): Likewise.
4121 * predict.c (get_hot_bb_threshold): Likewise.
4122 (maybe_hot_count_p): Likewise.
4123 (probably_never_executed): Likewise.
4124 (predictable_edge_p): Likewise.
4125 (predict_loops): Likewise.
4126 (expr_expected_value_1): Likewise.
4127 (tree_predict_by_opcode): Likewise.
4128 (handle_missing_profiles): Likewise.
4129 * reload.c (find_equiv_reg): Likewise.
4130 * reorg.c (redundant_insn): Likewise.
4131 * resource.c (mark_target_live_regs): Likewise.
4132 (incr_ticks_for_insn): Likewise.
4133 * sanopt.c (pass_sanopt::execute): Likewise.
4134 * sched-deps.c (sched_analyze_1): Likewise.
4135 (sched_analyze_2): Likewise.
4136 (sched_analyze_insn): Likewise.
4137 (deps_analyze_insn): Likewise.
4138 * sched-ebb.c (schedule_ebbs): Likewise.
4139 * sched-rgn.c (find_single_block_region): Likewise.
4140 (too_large): Likewise.
4141 (haifa_find_rgns): Likewise.
4142 (extend_rgns): Likewise.
4143 (new_ready): Likewise.
4144 (schedule_region): Likewise.
4145 (sched_rgn_init): Likewise.
4146 * sel-sched-ir.c (make_region_from_loop): Likewise.
4147 * sel-sched-ir.h (MAX_WS): Likewise.
4148 * sel-sched.c (process_pipelined_exprs): Likewise.
4149 (sel_setup_region_sched_flags): Likewise.
4150 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4151 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4152 * toplev.c (print_version): Likewise.
4153 (process_options): Likewise.
4154 * tracer.c (tail_duplicate): Likewise.
4155 * trans-mem.c (tm_log_add): Likewise.
4156 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4157 * tree-data-ref.c (split_constant_offset): Likewise.
4158 (compute_all_dependences): Likewise.
4159 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4160 * tree-inline.c (remap_gimple_stmt): Likewise.
4161 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4162 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4163 (create_parallel_loop): Likewise.
4164 * tree-predcom.c (determine_unroll_factor): Likewise.
4165 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4166 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4167 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4168 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4169 (dse_optimize_redundant_stores): Likewise.
4170 (dse_classify_store): Likewise.
4171 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4172 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4173 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4174 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4175 (try_peel_loop): Likewise.
4176 (tree_unroll_loops_completely): Likewise.
4177 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4178 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4179 (MAX_CONSIDERED_GROUPS): Likewise.
4180 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4181 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4182 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4183 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4184 (L1_CACHE_SIZE_BYTES): Likewise.
4185 (L2_CACHE_SIZE_BYTES): Likewise.
4186 (should_issue_prefetch_p): Likewise.
4187 (schedule_prefetches): Likewise.
4188 (determine_unroll_factor): Likewise.
4189 (volume_of_references): Likewise.
4190 (add_subscript_strides): Likewise.
4191 (self_reuse_distance): Likewise.
4192 (mem_ref_count_reasonable_p): Likewise.
4193 (insn_to_prefetch_ratio_too_small_p): Likewise.
4194 (loop_prefetch_arrays): Likewise.
4195 (tree_ssa_prefetch_arrays): Likewise.
4196 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4197 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4198 (convert_mult_to_fma): Likewise.
4199 (math_opts_dom_walker::after_dom_children): Likewise.
4200 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4201 (hoist_adjacent_loads): Likewise.
4202 (gate_hoist_loads): Likewise.
4203 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4204 (compute_partial_antic_aux): Likewise.
4205 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4206 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4207 (vn_reference_lookup): Likewise.
4208 (do_rpo_vn): Likewise.
4209 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4210 * tree-ssa-sink.c (select_best_block): Likewise.
4211 * tree-ssa-strlen.c (new_stridx): Likewise.
4212 (new_addr_stridx): Likewise.
4213 (get_range_strlen_dynamic): Likewise.
4214 (class ssa_name_limit_t): Likewise.
4215 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4216 (create_variable_info_for_1): Likewise.
4217 (init_alias_vars): Likewise.
4218 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4219 (tail_merge_optimize): Likewise.
4220 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4221 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4222 (thread_jumps::find_jump_threads_backwards): Likewise.
4223 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4224 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4225 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4226 (jump_table_cluster::can_be_handled): Likewise.
4227 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4228 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4229 (param_switch_conversion_branch_ratio): Likewise.
4230 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4231 (vect_enhance_data_refs_alignment): Likewise.
4232 (vect_prune_runtime_alias_test_list): Likewise.
4233 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4234 (vect_get_datarefs_in_loop): Likewise.
4235 (vect_analyze_loop): Likewise.
4236 * tree-vect-slp.c (vect_slp_bb): Likewise.
4237 * tree-vectorizer.h: Likewise.
4238 * tree-vrp.c (find_switch_asserts): Likewise.
4239 (vrp_prop::check_mem_ref): Likewise.
4240 * tree.c (wide_int_to_tree_1): Likewise.
4241 (cache_integer_cst): Likewise.
4242 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4243 (reverse_op): Likewise.
4244 (vt_find_locations): Likewise.
4245
4246 2019-11-12 Martin Liska <mliska@suse.cz>
4247
4248 * Makefile.in: Include params.opt.
4249 * flag-types.h (enum parloops_schedule_type): Add
4250 parloops_schedule_type used in params.opt.
4251 * params.opt: New file.
4252
4253 2019-11-12 Martin Liska <mliska@suse.cz>
4254
4255 * common.opt: Remove --param and --param= options.
4256 * opt-functions.awk: Mark CL_PARAMS for options
4257 that have Param keyword.
4258 * opts-common.c (decode_cmdline_options_to_array):
4259 Replace --param key=value with --param=key=value.
4260 * opts.c (print_filtered_help): Remove special
4261 printing of params.
4262 (print_specific_help): Update title for params.
4263 (common_handle_option): Do not handle OPT__param.
4264 opts.h (SET_OPTION_IF_UNSET): New macro.
4265 * doc/options.texi: Document Param keyword.
4266
4267 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4268 Frederik Harwath <frederik@codesourcery.com>
4269 Thomas Schwinge <thomas@codesourcery.com>
4270
4271 gcc/
4272 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4273 enumeration constant.
4274 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4275 (is_gimple_omp_offloaded): Likewise.
4276 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4277 constant. Adjust the value of ORT_NONE accordingly.
4278 (is_gimple_stmt): Handle OACC_SERIAL.
4279 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4280 (gomp_needs_data_present): Likewise.
4281 (gimplify_adjust_omp_clauses): Likewise.
4282 (gimplify_omp_workshare): Handle OACC_SERIAL.
4283 (gimplify_expr): Likewise.
4284 * omp-expand.c (expand_omp_target):
4285 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4286 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4287 * omp-low.c (is_oacc_parallel): Rename function to...
4288 (is_oacc_parallel_or_serial): ... this.
4289 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4290 (scan_sharing_clauses): Adjust accordingly.
4291 (scan_omp_for): Likewise.
4292 (lower_oacc_head_mark): Likewise.
4293 (convert_from_firstprivate_int): Likewise.
4294 (lower_omp_target): Likewise.
4295 (check_omp_nesting_restrictions): Handle
4296 GF_OMP_TARGET_KIND_OACC_SERIAL.
4297 (lower_oacc_reductions): Likewise.
4298 (lower_omp_target): Likewise.
4299 * tree.def (OACC_SERIAL): New tree code.
4300 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4301
4302 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4303
4304 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4305
4306 PR target/92449
4307 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4308 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4309
4310 PR tree-optimization/92452
4311 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4312 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4313 MINUS_EXPR on it.
4314
4315 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4316
4317 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4318 safelen with 0.
4319
4320 2019-11-12 Alan Modra <amodra@gmail.com>
4321
4322 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4323 element of unspec vec.
4324 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4325 PC-relative TLS.
4326 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4327 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4328 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4329 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4330
4331 2019-11-12 Alan Modra <amodra@gmail.com>
4332
4333 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4334 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4335 (IS_NOMARK_TLSGETADDR): Likewise.
4336 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4337 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4338 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4339 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4340 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4341 (rs6000_indirect_call_template_1): Likewise.
4342 (rs6000_pltseq_template): Likewise.
4343 (rs6000_opt_vars): Remove "tls-markers" entry.
4344 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4345 with TARGET_ELF.
4346 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4347 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4348 (pltseq_plt_pcrel<mode>): Likewise.
4349 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4350 (call_value_local64): Likewise.
4351 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4352 output and length attribute sub-expression.
4353 (call_value_nonlocal_sysv<mode>),
4354 (call_value_nonlocal_sysv_secure<mode>),
4355 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4356 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4357 (call_value_indirect_pcrel<mode>): Likewise.
4358 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4359 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4360 * configure: Regenerate.
4361 * config.in: Regenerate.
4362
4363 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4364
4365 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4366 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4367 address being a prefixed load/store.
4368 (stack_protect_testdi): Deal with either address being a prefixed
4369 load.
4370
4371 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4372
4373 PR bootstrap/92433
4374 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4375 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4376 std::swap.
4377
4378 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4379
4380 PR tree-optimization/92420
4381 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4382 up file.
4383 (get_group_load_store_type): Use it for reversed SLP accesses.
4384
4385 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4386
4387 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4388 summary.
4389 (ipcp_transformation_t::duplicate): Break out from ...
4390 (ipa_node_params_t::duplicate): ... here; add copying of agg
4391 replacements.
4392 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4393 (ipcp_transformation_t): Add duplicate.
4394
4395 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4396
4397 PR fortran/91828
4398 * doc/install.texi: Document that the minimum MPFR version is
4399 3.1.0.
4400
4401 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4402
4403 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4404 use new register constraint letters.
4405
4406 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4407
4408 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4409 as well, if interesting recover the symbol and re-legitimize the
4410 pic address.
4411
4412 2019-11-11 Martin Liska <mliska@suse.cz>
4413
4414 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4415 alphabetically.
4416
4417 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4418
4419 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4420 account when checking if there are enough iterations to vectorize
4421 epilogue.
4422
4423 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4424 Kwok Cheung Yeung <kcy@codesourcery.com>
4425
4426 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4427 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4428 (LANG_HOOKS_DECLS): Rename also here.
4429 * langhooks.h (lang_hooks_for_decls): Rename
4430 omp_is_optional_argument to omp_check_optional_argument; take
4431 additional bool argument.
4432 * omp-general.h (omp_check_optional_argument): Likewise.
4433 * omp-general.h (omp_check_optional_argument): Likewise.
4434 * omp-low.c (lower_omp_target): Update calls; handle absent
4435 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4436
4437 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4438
4439 PR target/87833
4440 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4441 -fPIC and -shared the last to create offload image.
4442
4443 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4444
4445 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4446 of 'offset'.
4447
4448 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4449 (config.status): Use/depend on it.
4450 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4451 * configure: Regenerate.
4452
4453 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4454
4455 PR tree-optimization/88760
4456 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4457 * gcc/common/config/rs6000/rs6000-common.c
4458 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4459 Turn on -funroll-loops and -munroll-only-small-loops.
4460 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4461 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4462 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4463 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4464 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4465 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4466
4467 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4468
4469 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4470 Make scalar_load, vector_load, unaligned_load and
4471 vector_gather_load cost more to conform hardware latency and
4472 insn cost settings.
4473
4474 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4475
4476 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4477 (MACHO_SYMBOL_LINKER_VIS_P): New.
4478
4479 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4480
4481 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4482 registers in eliminable_regset.
4483
4484 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4485
4486 * ipa-inline.c (compute_uninlined_call_time,
4487 compute_inlined_call_time): Take edge frequency as
4488 parameter rather than computing it by itself.
4489 (big_speedup_p, edge_badness): Manually CSE sreal
4490 frequency calculations.
4491
4492 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4493
4494 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4495 case where profiles are same.
4496
4497 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4498
4499 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4500
4501 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4502
4503 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4504 args summaries of inlined edge unless it holds info about
4505 described reference.
4506
4507 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4508
4509 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4510 (*movcc_internal1): Rename to...
4511 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4512
4513 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4514
4515 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4516 (cgraph_node::create_virtual_clone): Copy it.
4517 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4518 summaries.
4519 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4520 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4521 is disabled.
4522 (propagate_constants_across_call): If callee is not analyzed, give up.
4523 (propagate_constants_topo): Lower to bottom latties of all callees of
4524 functions with ipa-cp disabled.
4525 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4526 (cgraph_edge_brings_value_p): Check for availability first.
4527 (create_specialized_node): Set ipcp_clone.
4528 (ipcp_store_bits_results): Check that info is present.
4529 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4530 thunks.
4531 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4532 conservative when callee summary is missing.
4533 (remap_edge_summaries): Lookup call summary only when needed.
4534 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4535 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4536 Use get_create.
4537 (ipa_analyze_node): Use get_create.
4538 (propagate_controlled_uses): Do not propagate when function is not
4539 analyzed.
4540 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4541 (ipa_read_node_info): Use get_create.
4542 * ipa-prop.h (IPA_NODE_REF): Use get.
4543 (IPA_NODE_REF_GET_CREATE): New.
4544
4545 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4546
4547 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4548 on function symbol.
4549
4550 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4551
4552 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4553 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4554 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4555 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4556
4557 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4558
4559 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4560 capping the growth cumulated.
4561 (offline_size): Break out from ...
4562 (estimate_growth): ... here.
4563 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4564 parameters.
4565 (growth_likely_positive): Turn to ...
4566 (growth_positive_p): Re-implement.
4567 * ipa-inline.h (growth_likely_positive): Remove.
4568 (growth_positive_p): Declare.
4569 * ipa-inline.c (want_inline_small_function_p): Use
4570 growth_positive_p.
4571 (want_inline_function_to_all_callers_p): Likewise.
4572
4573 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4574
4575 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4576 calculation of min_size.
4577 (ipa_update_overall_fn_summary): Likewise.
4578
4579 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4580
4581 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4582 estimate_edge_devirt_benefit when not computing hints;
4583 do not compute time when not asked for.
4584 (estimate_calls_size_and_time): Pass NULL hints and time when
4585 these are not computed; do not evaluate hint predicates when these are
4586 not computed.
4587 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4588 frequency.
4589
4590 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4591
4592 PR tree-optimization/92401
4593 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4594 if res_op->code is an expression with code length 1.
4595 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4596 if res_op->code is an expression with code length 2.
4597 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4598 if res_op->code is an expression with code length 3.
4599
4600 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4601
4602 * config/darwin.c (machopic_mcount_stub_name): Validate the
4603 symbol stub name when it is created.
4604 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4605 stub validation.
4606
4607 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4608
4609 * symtab.c: Fix comment typos.
4610 * cgraphunit.c: Likewise.
4611 * cgraph.h: Likewise.
4612 * cgraphclones.c: Likewise.
4613 * cgraph.c: Likewise.
4614 * varpool.c: Likewise.
4615 * tree-ssa-strlen.c: Likewise.
4616 * ipa-sra.c: Likewise.
4617 (scan_expr_access, check_all_callers_for_issues): Fix typo
4618 in a dump message.
4619
4620 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4621
4622 * config/darwin-protos.h: Add include quard.
4623
4624 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4625
4626 * range-op.h (range_operator::fold_range): Return result in a
4627 reference parameter instead of by value.
4628 (range_operator::wi_fold): Same.
4629 * range-op.cc (range_operator::wi_fold): Return result in a reference
4630 parameter instead of by value.
4631 (range_operator::fold_range): Same.
4632 (value_range_from_overflowed_bounds): Same.
4633 (value_range_with_overflow): Same
4634 (create_possibly_reversed_range): Same.
4635 (operator_equal::fold_range): Same.
4636 (operator_not_equal::fold_range): Same.
4637 (operator_lt::fold_range): Same.
4638 (operator_le::fold_range): Same.
4639 (operator_gt::fold_range): Same.
4640 (operator_ge::fold_range): Same.
4641 (operator_plus::wi_fold): Same.
4642 (operator_plus::op1_range): Change call to fold_range.
4643 (operator_plus::op2_range): Change call to fold_range.
4644 (operator_minus::wi_fold): Return result via reference parameter.
4645 (operator_minus::op1_range): Change call to fold_range.
4646 (operator_minus::op2_range): Change call to fold_range.
4647 (operator_min::wi_fold): Return result via reference parameter.
4648 (operator_max::wi_fold): Same.
4649 (cross_product_operator::wi_cross_product): Same.
4650 (operator_mult::wi_fold): Same.
4651 (operator_div::wi_fold): Same.
4652 (operator_div op_floor_div): Fix whitespace.
4653 (operator_exact_divide::op1_range): Change call to fold_range.
4654 (operator_lshift::fold_range): Return result via reference parameter.
4655 (operator_lshift::wi_fold): Same.
4656 (operator_rshift::fold_range): Same.
4657 (operator_rshift::wi_fold): Same.
4658 (operator_cast::fold_range): Same.
4659 (operator_cast::op1_range): Change calls to fold_range.
4660 (operator_logical_and::fold_range): Return result via reference.
4661 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4662 (operator_bitwise_and::wi_fold): Return result via reference.
4663 (operator_logical_or::fold_range): Same.
4664 (operator_bitwise_or::wi_fold): Same.
4665 (operator_bitwise_xor::wi_fold): Same.
4666 (operator_trunc_mod::wi_fold): Same.
4667 (operator_logical_not::fold_range): Same.
4668 (operator_bitwise_not::fold_range): Same.
4669 (operator_bitwise_not::op1_range): Change call to fold_range.
4670 (operator_cst::fold_range): Return result via reference.
4671 (operator_identity::fold_range): Same.
4672 (operator_abs::wi_fold): Same.
4673 (operator_absu::wi_fold): Same.
4674 (operator_negate::fold_range): Same.
4675 (operator_negate::op1_range): Change call to fold_range.
4676 (operator_addr_expr::fold_range): Return result via reference.
4677 (operator_addr_expr::op1_range): Change call to fold_range.
4678 (operator_pointer_plus::wi_fold): Return result via reference.
4679 (operator_pointer_min_max::wi_fold): Same.
4680 (operator_pointer_and::wi_fold): Same.
4681 (operator_pointer_or::wi_fold): Same.
4682 (range_op_handler): Change call to fold_range.
4683 (range_cast): Same.
4684 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4685 fold_range.
4686 (range_fold_unary_symbolics_p): Same.
4687 (range_fold_binary_expr): Same.
4688 (range_fold_unary_expr): Same.
4689
4690 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4691
4692 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4693 vector type as an argument rather than reading it from the
4694 stmt_vec_info.
4695 (vect_create_epilog_for_reduction): Update accordingly.
4696 (vectorizable_reduction): Likewise.
4697 (vect_transform_cycle_phi): Likewise.
4698
4699 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4700
4701 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4702 the comparison codes that make sense for the mode used, and only the
4703 codes that can be done with a single branch instruction.
4704
4705 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4706
4707 PR tree-optimization/92351
4708 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4709 peeling the main loop for alignment, make sure to set the misalignment
4710 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4711
4712 2019-11-08 Richard Biener <rguenther@suse.de>
4713
4714 * dbgcnt.def (ivopts_loop): Add.
4715 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4716 ivopts_loop before optimizing a loop.
4717
4718 2019-11-08 Richard Biener <rguenther@suse.de>
4719
4720 PR ipa/92409
4721 * tree-inline.c (declare_return_variable): Properly handle
4722 type mismatches for the return slot.
4723
4724 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4725
4726 PR target/92095
4727 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4728 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4729 change.
4730 (got_helper_needed): New static variable.
4731 (output_load_pcrel_sym): New function.
4732 (get_pc_thunk_name): Remove after inlining...
4733 (load_got_register): ...here. Rework the initialization of the GOT
4734 register and of the GOT helper.
4735 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4736 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4737 helper must be emitted. Use output_asm_insn instead of fprintf.
4738 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4739 if optimization is enabled.
4740 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4741 by calling output_load_pcrel_sym.
4742
4743 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4744
4745 * tree-sra.c (create_access): Delay disqualifying the base
4746 for poly_int values until we know we have a base.
4747
4748 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4749
4750 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4751 for loops with SIMDUID set. Enable epilogue vectorization for loops
4752 with SIMDLEN set after finding a main loop with a VF that matches it.
4753
4754 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4755
4756 PR target/92038
4757 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4758 value only, return non-NULL if there is a single non-clobber
4759 constituent store even if there are constituent clobbers and return
4760 one of clobber constituent stores if all constituent stores are
4761 clobbers.
4762 (split_group): Handle clobbers.
4763 (imm_store_chain_info::output_merged_store): When computing
4764 bzero_first, look after all clobbers at the start. Don't count
4765 clobber stmts in orig_num_stmts, except if the first orig store is
4766 a clobber covering the whole area and split_stores cover the whole
4767 area, consider equal number of stmts ok. Punt if split_stores
4768 contains only ->orig stores and their number plus number of original
4769 clobbers is equal to original number of stmts. For ->orig, look past
4770 clobbers in the constituent stores.
4771 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4772 stmts.
4773 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4774 rhs.
4775 (store_valid_for_store_merging_p): Allow clobber stmts.
4776 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4777
4778 PR c++/92384
4779 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4780 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4781 slot.
4782 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4783 force creation of a unique data.stack_parm slot.
4784
4785 2019-11-08 Richard Biener <rguenther@suse.de>
4786
4787 * genmatch.c (expr::gen_transform): Use the resimplify
4788 member function instead of hard-coding the gimple_resimplifyN variant.
4789 (dt_simplify::gen_1): Likewise.
4790
4791 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4792
4793 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4794 POLY_INT_CST.
4795
4796 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4797
4798 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4799 instead of INTEGER_CST.
4800
4801 2019-11-08 Richard Biener <rguenther@suse.de>
4802
4803 PR tree-optimization/92324
4804 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4805 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4806 sign-conversions as necessary.
4807 (vectorizable_reduction): Reject conversions in the chain
4808 that are not sign-conversions, base analysis on a non-converting
4809 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4810 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4811 for debug stmts.
4812 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4813 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4814
4815 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4816
4817 PR target/92055
4818 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4819 Fix a missing '-' when displaying these options in the
4820 help screen.
4821
4822 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4823
4824 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4825
4826 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4827
4828 * config/aarch64/aarch64-builtins.c
4829 (aarch64_builtin_vectorized_function): Remove bswap handling.
4830
4831 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4832
4833 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4834 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4835 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4836 Treat the vector types as indivisible.
4837
4838 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4839
4840 * optabs.def (gather_load_optab, mask_gather_load_optab)
4841 (scatter_store_optab, mask_scatter_store_optab): Turn into
4842 conversion optabs, with the offset mode given explicitly.
4843 * doc/md.texi: Update accordingly.
4844 * config/aarch64/aarch64-sve-builtins-base.cc
4845 (svld1_gather_impl::expand): Likewise.
4846 (svst1_scatter_impl::expand): Likewise.
4847 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4848 (expand_scatter_store_optab_fn): Likewise.
4849 (direct_gather_load_optab_supported_p): Likewise.
4850 (direct_scatter_store_optab_supported_p): Likewise.
4851 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4852 to be argument 4.
4853 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4854 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4855 argument with the offset vector type. Require the two vector
4856 types to have the same number of elements but allow their element
4857 sizes to be different. Treat the optabs as conversion optabs.
4858 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4859 prototype accordingly.
4860 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4861 (supports_vec_convert_optab_p): ...this new function.
4862 (supports_vec_gather_load_p): Update accordingly.
4863 (supports_vec_scatter_store_p): Likewise.
4864 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4865 Replace the offset sign and bits parameters with a scalar type tree.
4866 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4867 Pass back the offset vector type instead of the scalar element type.
4868 Allow the offset to be wider than the memory elements. Search for
4869 an offset type that the target supports, stopping once we've
4870 reached the maximum of the element size and pointer size.
4871 Update call to internal_gather_scatter_fn_supported_p.
4872 (vect_check_gather_scatter): Update calls accordingly.
4873 When testing a new scale before knowing the final offset type,
4874 check whether the scale is supported for any signed or unsigned
4875 offset type. Check whether the target supports the source and
4876 target types of a conversion before deciding whether to look
4877 through the conversion. Record the chosen offset_vectype.
4878 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4879 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4880 directly from the gs_info's offset_vectype instead. Pass a zero
4881 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4882 * tree-vect-stmts.c (check_load_store_masking): Update call to
4883 internal_gather_scatter_fn_supported_p, passing the offset vector
4884 type recorded in the gs_info.
4885 (vect_truncate_gather_scatter_offset): Update call to
4886 vect_check_gather_scatter, leaving it to search for a valid
4887 offset vector type.
4888 (vect_use_strided_gather_scatters_p): Convert the offset to the
4889 element type of the gs_info's offset_vectype.
4890 (vect_get_gather_scatter_ops): Get the offset vector type directly
4891 from the gs_info.
4892 (vect_get_strided_load_store_ops): Likewise.
4893 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4894 and IFN_MASK_GATHER_LOAD.
4895 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4896 (gather_load<mode><v_int_equiv>): ...this.
4897 (mask_gather_load<mode>): Rename to...
4898 (mask_gather_load<mode><v_int_equiv>): ...this.
4899 (scatter_store<mode>): Rename to...
4900 (scatter_store<mode><v_int_equiv>): ...this.
4901 (mask_scatter_store<mode>): Rename to...
4902 (mask_scatter_store<mode><v_int_equiv>): ...this.
4903
4904 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4905
4906 PR target/92132
4907 * config/rs6000/predicates.md
4908 (signed_or_equality_comparison_operator): New predicate.
4909 (unsigned_or_equality_comparison_operator): Likewise.
4910 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4911 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4912 * config/rs6000/vector.md
4913 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4914 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4915 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4916 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4917 vector modes and same-size integer vector modes.
4918 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4919 (vector_lt<mode> for VEC_F): New expand.
4920 (vector_le<mode> for VEC_F): Likewise.
4921 (vector_ne<mode> for VEC_F): Likewise.
4922 (vector_unge<mode> for VEC_F): Likewise.
4923 (vector_ungt<mode> for VEC_F): Likewise.
4924 (vector_unle<mode> for VEC_F): Likewise.
4925 (vector_unlt<mode> for VEC_F): Likewise.
4926 (vector_uneq<mode>): Expose name.
4927 (vector_ltgt<mode>): Likewise.
4928 (vector_unordered<mode>): Likewise.
4929 (vector_ordered<mode>): Likewise.
4930
4931 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4932
4933 PR target/92295
4934 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4935 Enhance ix86_expand_vector_init_concat.
4936
4937 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4938
4939 * doc/invoke.texi (-Wold-style-definition): Document () not being
4940 considered an old-style definition for C2x.
4941
4942 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4943
4944 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4945 Enhance comment.
4946 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4947 insn patterns using ldcw instruction.
4948 (memory_barrier): Remove insn pattern using sync instruction.
4949 * config/pa/pa.opt (coherent-ldcw): New option.
4950 (ordered): New option.
4951
4952 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4953
4954 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4955 valid conditions.
4956
4957 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4958
4959 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4960 typo - mistmatch -> mismatch.
4961 * ipa-profile.c (ipa_profile): Likewise.
4962 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4963 - mistmatch -> mismatch.
4964
4965 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4966
4967 * simplify-rtx.c (comparison_to_mask): New function.
4968 (mask_to_comparison): New function.
4969 (simplify_logical_relational_operation): New function.
4970 (simplify_binary_operation_1): Call
4971 simplify_logical_relational_operation.
4972
4973 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4974
4975 PR other/92090
4976 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4977 modes for integer constants.
4978
4979 2019-11-07 Jan Hubicka <jh@suse.cz>
4980
4981 PR ipa/92406
4982 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4983 summary.
4984
4985 2019-11-07 Jan Hubicka <jh@suse.cz>
4986
4987 * optc-save-gen.awk: Generate cl_target_option_free
4988 and cl_optimization_option_free.
4989 * opth-en.awk: Declare cl_target_option_free
4990 and cl_optimization_option_free.
4991 * tree.c (free_node): Use it.
4992
4993 2019-11-06 Jan Hubicka <jh@suse.cz>
4994
4995 * lto-streamer-in.c: Include alloc-pool.h.
4996 (freeing_string_slot_hasher): Remove.
4997 (string_slot_allocator): New object allocator.
4998 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4999 (file_name_obstack): New obstack.
5000 (canon_file_name): Allocate in obstack and allocator.
5001 (lto_reader_init): Initialize obstack and allocator.
5002 (lto_free_file_name_hash): New function.
5003 * lto-streamer.h (lto_free_file_name_hash): New.
5004
5005 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5006
5007 PR tree-optimization/89134
5008 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5009 * params.def: Add min-loop-cond-split-prob.
5010 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5011 outside checks on loop into the function.
5012 (split_info): New class.
5013 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5014 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5015 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5016 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5017 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5018 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5019 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5020 (split_loop_on_cond): Likewise.
5021 (tree_ssa_split_loops): Add loop split on conditional statement.
5022
5023 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5024
5025 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5026 pattern.
5027
5028 2019-11-07 Richard Biener <rguenther@suse.de>
5029
5030 PR tree-optimization/92405
5031 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5032 restrict lane-reducing ops to single stmt chains.
5033
5034 2019-11-07 Martin Jambor <mjambor@suse.cz>
5035
5036 PR lto/70929
5037 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5038 * cgraph.h (gimple_check_call_matching_types): Remove
5039 * cgraph.c (gimple_check_call_args): Likewise.
5040 (gimple_check_call_matching_types): Likewise.
5041 (symbol_table::create_edge): Do not call
5042 gimple_check_call_matching_types.
5043 (cgraph_edge::make_direct): Likewise.
5044 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5045 * value-prof.h (check_ic_target): Remove.
5046 * value-prof.c (check_ic_target): Remove.
5047 (gimple_ic_transform): Do nat call check_ic_target.
5048 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5049 (afdo_indirect_call): Likewise.
5050 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5051 gimple_check_call_matching_types.
5052 * ipa-inline.c (early_inliner): Likewise.
5053
5054 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5055
5056 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5057 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5058 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5059 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5060 * config/arm/iterators.md (USSAT16): New int_iterator.
5061 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5062 (sup): Likewise.
5063 * config/arm/predicates.md (ssat16_imm): New predicate.
5064 (usat16_imm): Likewise.
5065 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5066
5067 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5068
5069 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5070 New define_insns.
5071 (arm_<simd32_op>): New define_expands.
5072 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5073 __smuad, __smuadx): Define.
5074 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5075 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5076 (SIMD32_BINOP_Q): Likewise.
5077 (simd32_op): Handle the above.
5078 * config/arm/unspecs.md: Define unspecs for the above.
5079
5080 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5081
5082 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5083 * config/arm/arm.md (APSRGE_REGNUM): Define.
5084 (arm_<simd32_op>): New define_insn.
5085 (arm_sel): Likewise.
5086 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5087 (CALL_USED_REGISTERS): Likewise.
5088 (REG_ALLOC_ORDER): Likewise.
5089 (FIRST_PSEUDO_REGISTER): Update value.
5090 (ARM_GE_BITS_READ): Define.
5091 * config/arm/arm.c (arm_conditional_register_usage): Clear
5092 APSRGE_REGNUM from operand_reg_set.
5093 (arm_ge_bits_access): Define.
5094 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5095 ARM_BUIILTIN_sel.
5096 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5097 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5098 FAIL if ARM_GE_BITS_READ.
5099 (*arm_add<mode>3): New define_insn.
5100 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5101 (*arm_sub<mode>3): New define_insn.
5102 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5103 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5104 __usub16): Define.
5105 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5106 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5107 (simd32_op): Handle the above.
5108 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5109 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5110 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5111 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5112
5113 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5114
5115 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5116 (arm_smlabb): New define_expand.
5117 (*maddhisi4tb): Rename to...
5118 (maddhisi4tb): ... This.
5119 (*maddhisi4tt): Rename to...
5120 (maddhisi4tt): ... This.
5121 (arm_smlatb_setq): New define_insn.
5122 (arm_smlatb): New define_expand.
5123 (arm_smlatt_setq): New define_insn.
5124 (arm_smlatt): New define_expand.
5125 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5126 (arm_<smlaw_op>): New define_expand.
5127 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5128 __smlawb, __smlawt): Define.
5129 * config/arm_acle_builtins.def: Define builtins for the above.
5130 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5131 (slaw_op): New int_attribute.
5132 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5133
5134 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5135
5136 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5137 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5138 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5139 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5140 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5141 (ss_op): New code_attr.
5142
5143 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5144
5145 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5146 * config/arm/arm.md (APSRQ_REGNUM): Define.
5147 (add_setq): New define_subst.
5148 (add_clobber_q_name): New define_subst_attr.
5149 (add_clobber_q_pred): Likewise.
5150 (maddhisi4): Change to define_expand. Split into mult and add if
5151 ARM_Q_BIT_READ.
5152 (arm_maddhisi4): New define_insn.
5153 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5154 (*maddhisi4tt): Likewise.
5155 (arm_ssat): New define_expand.
5156 (arm_usat): Likewise.
5157 (arm_get_apsr): New define_insn.
5158 (arm_set_apsr): Likewise.
5159 (arm_saturation_occurred): New define_expand.
5160 (arm_set_saturation): Likewise.
5161 (*satsi_<SAT:code>): Rename to...
5162 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5163 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5164 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5165 (CALL_USED_REGISTERS): Mark apsrq.
5166 (FIRST_PSEUDO_REGISTER): Update value.
5167 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5168 (machine_function): Add q_bit_access.
5169 (ARM_Q_BIT_READ): Define.
5170 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5171 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5172 operand_reg_set.
5173 (arm_q_bit_access): Define.
5174 * config/arm/arm-builtins.c: Include stringpool.h.
5175 (arm_sat_binop_imm_qualifiers,
5176 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5177 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5178 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5179 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5180 SET_SAT_QUALIFIERS): Likewise.
5181 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5182 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5183 Handle 0 argument expander.
5184 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5185 (arm_check_builtin_call): Define.
5186 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5187 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5188 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5189 (arm_q_bit_access): Likewise.
5190 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5191 __saturation_occurred, __set_saturation_occurred): Define.
5192 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5193 saturation_occurred, set_saturation_occurred.
5194 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5195 (UNSPEC_APSR_READ): Likewise.
5196 (VUNSPEC_APSR_WRITE): Likewise.
5197 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5198 (*arm_ssadd<mode>3): New define_insn.
5199 (sssub<mode>3): Convert to define_expand.
5200 (*arm_sssub<mode>3): New define_insn.
5201 (ssmulsa3): Convert to define_expand.
5202 (*arm_ssmulsa3): New define_insn.
5203 (usmulusa3): Convert to define_expand.
5204 (*arm_usmulusa3): New define_insn.
5205 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5206 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5207 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5208
5209 2019-11-07 Martin Liska <mliska@suse.cz>
5210
5211 PR c++/92354
5212 * cgraph.c (delete_function_version): Clear global
5213 variable version_info_node if equal to deleted
5214 function.
5215
5216 2019-11-07 Martin Liska <mliska@suse.cz>
5217
5218 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5219 of CONSTRUCTOR_NO_CLEARING.
5220 (operand_compare::hash_operand): Likewise.
5221
5222 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5223
5224 Support 64-bit double and 64-bit long double configurations.
5225
5226 PR target/92055
5227 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5228 --with-long-double=.
5229 * config/avr/t-multilib: Remove.
5230 * config/avr/t-avr: Output of genmultilib.awk is now fully
5231 dynamically generated and no more part of the repo.
5232 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5233 Pass them down to...
5234 * config/avr/genmultilib.awk: ...here and handle them.
5235 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5236 (-mlong-double=, avr_long_double). New option and var.
5237 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5238 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5239 Set default as requested by --with-double=
5240 (TARGET_HANDLE_OPTION): Define to this...
5241 (avr_handle_option): ...new hook worker.
5242 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5243 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5244 (avr_double_lib): New proto for spec function.
5245 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5246 (DRIVER_SELF_SPECS): Call %:double-lib.
5247 * config/avr/avr.c (avr_option_override): Assert
5248 sizeof(long double) >= sizeof(double) for the target.
5249 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5250 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5251 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5252 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5253 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5254 New built-in define depending on --with-double=, --with-long-double=.
5255 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5256 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5257 * doc/install.texi (Cross-Compiler-Specific Options)
5258 <--with-double=, --with-long-double=>: Doc.
5259
5260 2019-11-07 Richard Biener <rguenther@suse.de>
5261
5262 * dbgcnt.def (gimple_unroll): New.
5263 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5264 gimple_unroll debug counter before applying transform.
5265 (try_peel_loop): Likewise.
5266
5267 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5268
5269 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5270 frame pointer in multiple registers.
5271 (ira_setup_eliminable_regset): Setup eliminable_regset,
5272 ira_no_alloc_regs and regs_ever_live for frame pointer in
5273 multiple registers.
5274
5275 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5276
5277 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5278 V2DI modes.
5279
5280 2019-11-06 Jan Hubicka <jh@suse.cz>
5281
5282 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5283 allocations.
5284 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5285 Do not silently ignore summary corruptions.
5286
5287 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5288
5289 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5290 the epilogue if there are peeled iterations for it to handle.
5291
5292 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5293
5294 * config/arc/arc.c (arc_split_ior): Add asserts.
5295 (arc_split_mov_const): Likewise.
5296 (arc_check_ior_const): Do not match known short immediate values.
5297 * config/arc/arc.md (movsi): Don't split predicated instructions
5298 (iorsi): Likewise.
5299
5300 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5301
5302 * config/arc/arc.opt (mea): Update help string.
5303 * doc/invoke.texi(ARC): Update mea option info.
5304
5305 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5306
5307 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5308 (zero_extendqisi2_ac): Likewise.
5309 (zero_extendhisi2_i): Likewise.
5310 (extendqihi2_i): Likewise.
5311 (extendqisi2_ac): Likewise.
5312 (extendhisi2_i): Likewise.
5313
5314 2019-11-06 Richard Biener <rguenther@suse.de>
5315
5316 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5317 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5318 Simplify single_defuse_cycle condition.
5319
5320 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5321
5322 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5323 epilogue loop, make sure that the VF is small enough or that
5324 the epilogue loop can be fully-masked.
5325
5326 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5327
5328 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5329 loop when we've finished, rather than returning directly from
5330 the loop. Use a local variable to track whether we're still
5331 searching for the preferred simdlen. Make vect_epilogues
5332 record whether the next iteration should try to treat the
5333 loop as an epilogue.
5334
5335 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5336
5337 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5338 __arc_hard_float__, __ARC_HARD_FLOAT__,
5339 __arc_soft_float__, __ARC_SOFT_FLOAT__
5340
5341 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5342
5343 PR tree-optimization/92317
5344 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5345 update phi's with constant phi arguments.
5346
5347 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5348 Alexandre Oliva <oliva@adacore.com>
5349
5350 * common.opt (-fcallgraph-info[=]): New option.
5351 * doc/invoke.texi (Developer options): Document it.
5352 * opts.c (common_handle_option): Handle it.
5353 * builtins.c (expand_builtin_alloca): Record allocation if
5354 -fcallgraph-info=da.
5355 * calls.c (expand_call): If -fcallgraph-info, record the call.
5356 (emit_library_call_value_1): Likewise.
5357 * flag-types.h (enum callgraph_info_type): New type.
5358 * explow.c: Include stringpool.h.
5359 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5360 * function.c (allocate_stack_usage_info): New.
5361 (allocate_struct_function): Call it for -fcallgraph-info.
5362 (prepare_function_start): Call it otherwise.
5363 (record_final_call, record_dynamic_alloc): New.
5364 * function.h (struct callinfo_callee): New.
5365 (CALLEE_FROM_CGRAPH_P): New.
5366 (struct callinfo_dalloc): New.
5367 (struct stack_usage): Add callees and dallocs.
5368 (record_final_call, record_dynamic_alloc): Declare.
5369 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5370 object if -fcallgraph-info=da.
5371 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5372 * print-tree.h (print_decl_identifier): Declare.
5373 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5374 * print-tree.c: Include print-tree.h.
5375 (print_decl_identifier): New function.
5376 * toplev.c: Include print-tree.h.
5377 (callgraph_info_file): New global variable.
5378 (callgraph_info_external_printed): Likewise.
5379 (output_stack_usage): Rename to...
5380 (output_stack_usage_1): ... this. Make it static, add cf
5381 parameter. If -fcallgraph-info=su, print stack usage to cf.
5382 If -fstack-usage, use print_decl_identifier for
5383 pretty-printing.
5384 (INDIRECT_CALL_NAME): New.
5385 (dump_final_node_vcg_start): New.
5386 (dump_final_callee_vcg, dump_final_node_vcg): New.
5387 (output_stack_usage): New.
5388 (lang_dependent_init): Open and start file if
5389 -fcallgraph-info. Allocated callgraph_info_external_printed.
5390 (finalize): If callgraph_info_file is not null, finish it,
5391 close it, and release callgraph_info_external_printed.
5392
5393 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5394 Frederik Harwath <frederik@codesourcery.com>
5395 Thomas Schwinge <thomas@codesourcery.com>
5396
5397 * omp-low.c (struct omp_context): New fields
5398 local_reduction_clauses, outer_reduction_clauses.
5399 (new_omp_context): Initialize these.
5400 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5401 (scan_omp_for): Check reduction clauses for incorrect nesting.
5402
5403 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5404
5405 PR inline-asm/92352
5406 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5407 operands with non-memory constraints.
5408
5409 2019-11-05 Martin Sebor <msebor@redhat.com>
5410
5411 PR tree-optimization/92373
5412 * tree.c (component_ref_size): Only consider initializers of objects
5413 of matching struct types.
5414 Return null for instances of interior zero-length arrays.
5415
5416 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5417
5418 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5419
5420 2019-11-05 Jason Merrill <jason@redhat.com>
5421
5422 PR tree-optimization/91825
5423 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5424
5425 2019-11-05 Jim Wilson <jimw@sifive.com>
5426
5427 PR middle-end/92263
5428 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5429 optimize_insn_for_speed_p is true.
5430
5431 2019-11-05 Martin Sebor <msebor@redhat.com>
5432
5433 PR middle-end/92333
5434 PR middle-end/82608
5435 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5436 size.
5437 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5438 name and location for a temporary variable.
5439
5440 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5441
5442 * tree-vrp.c (value_range::value_range): Fix whitespace.
5443 (defined_ranges_p): Same.
5444 (range_fold_binary_symbolics_p): Same.
5445 (value_range::intersect_helper): Same.
5446 (value_range::union_helper): Same.
5447 * tree-vrp.h (range_fold_binary_expr): Same.
5448
5449 2019-11-04 Martin Sebor <msebor@redhat.com>
5450
5451 PR middle-end/92341
5452 PR middle-end/82612
5453 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5454 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5455 of message printed in a warning for empty arrays.
5456 (vrp_prop::check_mem_ref): Also handle function parameters and
5457 empty arrays.
5458
5459 2019-11-05 Richard Biener <rguenther@suse.de>
5460
5461 PR tree-optimization/92371
5462 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5463 on the original stmt of live stmts in the chain.
5464 (vectorizable_live_operation): Look at the original stmt when
5465 checking STMT_VINFO_REDUC_DEF.
5466
5467 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5468
5469 * gimple-fold.c, gimple-loop-versioning.cc,
5470 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5471 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5472 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5473 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5474 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5475 value_range_equiv, and value_range_base to value_range.
5476
5477 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5478
5479 * expr.c (build_personality_function): Fix generated type to
5480 match actual personality functions.
5481
5482 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5483
5484 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5485 enough bytes for the NULL character.
5486
5487 2019-11-05 Richard Biener <rguenther@suse.de>
5488
5489 PR tree-optimization/92280
5490 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5491 had a single use do not create a new CTOR.
5492 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5493 BIT_FIELD_REF of a CTOR via GENERIC.
5494
5495 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5496
5497 * config/s390/s390.c (s390_vector_alignment): Check if the value
5498 fits into uhwi before using it.
5499
5500 2019-11-05 Martin Liska <mliska@suse.cz>
5501
5502 * symbol-summary.h: Use ggc_delete.
5503
5504 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5505
5506 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5507 Change vec_perm field to 10.
5508
5509 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5510
5511 * doc/install.texi: Further fix syntax for html generation.
5512
5513 2019-11-05 Martin Liska <mliska@suse.cz>
5514
5515 * symbol-summary.h: Rename allocator to m_allocator and
5516 add comment.
5517
5518 2019-11-05 Richard Biener <rguenther@suse.de>
5519
5520 PR tree-optimization/92324
5521 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5522 all signed or unsigned operations.
5523
5524 2019-11-05 Jan Hubicka <jh@suse.cz>
5525
5526 * hsa-brig.c: Include alloc-pool.h
5527 * hsa-dump.c: Likewise.
5528 * hsa-gen.c: Likewise.
5529 * hse-regalloc.c: Likewise.
5530 * ipa-hsa.c: Likewise.
5531 * ipa-predicate.c: Likewise.
5532 * ipa-reference.c: Likewise.
5533 * ipa-sra.c: Likewise.
5534 * omp-expand.c: Likewise.
5535 * omp-general.c: Likewise.
5536 * omp-low.c: Likewise.
5537 * sumbol-summary.h (function_summary_base): Add allocator.
5538 (function_summary<T *>::function_summary): Update construction.
5539 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5540 (call_summary_base): Add allcator.
5541 (call_summary<T *>::call_summary): Update construction.
5542 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5543
5544 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5545
5546 PR tree-optimization/91945
5547 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5548 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5549 Formatting fix.
5550
5551 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5552
5553 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5554 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5555 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5556 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5557 (vrp_set_zero_nonzero_bits): Move to...
5558 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5559 (vr_values::simplify_bit_ops_using_ranges): Rename
5560 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5561
5562 2019-11-05 Martin Liska <mliska@suse.cz>
5563
5564 PR c++/92339
5565 * fold-const.c (operand_compare::hash_operand): Remove
5566 FIELD_DECL handling.
5567
5568 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5569
5570 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5571 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5572 static.
5573
5574 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5575
5576 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5577 properly handle symbolics.
5578 (range_compatible_p): Remove.
5579
5580 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5581
5582 * common.opt (-fabi-version): Document =14.
5583 * doc/invoke.texi (C++ Dialect Options): Likewise.
5584
5585 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5586
5587 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5588
5589 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5590
5591 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5592 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5593 gcn_omp_device_kind_arch_isa.
5594 * config/gcn/t-omp-device: New file.
5595 * configure.ac: Support gcn for omp_device_property.
5596 * configure: Regenerate.
5597
5598 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5599
5600 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5601 (vrp_val_max): Same.
5602 (vrp_val_is_min): Same.
5603 (vrp_val_is_max): Same.
5604 (value_range_base::nonzero_p): Remove last argument to
5605 vrp_val_is_max.
5606 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5607 (vrp_val_max): Same.
5608 (vrp_val_is_min): Same.
5609 (vrp_val_is_max): Same.
5610 (value_range_base::set_varying): Remove last argument to vrp_val*.
5611 (value_range_base::dump): Same.
5612 (value_range_base::set): Same.
5613 (value_range_base::normalize_symbolics): Same.
5614 (value_range_base::num_pairs): Same.
5615 (value_range_base::lower_bound): Same.
5616 (value_range_base::upper_bound): Same.
5617 (ranges_from_anti_range): Remove handle_pointers argument.
5618 (value_range_base::singleton_p): Remove last argument to
5619 ranges_from_anti_range.
5620
5621 2019-11-04 Jan Hubicka <jh@suse.cz>
5622
5623 * ipa-reference.c (init_function_info): Initialize
5624 info->global.statics_read.
5625
5626 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5627
5628 * tree-vrp.c (value_range_base::invert): Use constructors to build
5629 range.
5630
5631 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5632
5633 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5634 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5635
5636 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5637
5638 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5639 VR_UNDEFINED.
5640
5641 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5642
5643 * tree-vrp.c (dump_assert_info): New.
5644 (dump_asserts_info): New.
5645
5646 2019-11-04 Jan Hubicka <jh@suse.cz>
5647
5648 * ipa-inline-transform.c: Include ipa-utils.h
5649 (inline_call): Set thunk_expansion flag.
5650 * ipa-utils.h (thunk_expansion): Declare.
5651 * ipa-devirt.c (thunk_expansion): New global var.
5652 (devirt_node_removal_hook): Do not invalidate cache while
5653 doing thunk expansion.
5654
5655 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5656
5657 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5658
5659 2019-11-04 Martin Sebor <msebor@redhat.com>
5660
5661 PR tree-optimization/92349
5662 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5663 memebers have constant sizes.
5664
5665 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5666
5667 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5668 parameter.
5669 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5670 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5671 vect_analyze_loop.
5672
5673 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5674
5675 * expr.c (store_constructor): Modify to handle single element vectors.
5676 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5677 constructors.
5678 (vect_slp_check_for_constructors): New function.
5679 (vect_slp_analyze_bb_1): Call new function to check for vector
5680 constructors.
5681 (vectorize_slp_instance_root_stmt): New function.
5682 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5683 constructors.
5684 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5685
5686 2019-11-04 Richard Biener <rguenther@suse.de>
5687
5688 PR tree-optimization/92345
5689 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5690 we produced a reduction chain.
5691 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5692 LOOP_VINFO_REDUCTIONS.
5693
5694 2019-11-04 Jan Hubicka <jh@suse.cz>
5695
5696 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5697 duplicate summaries.
5698 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5699 first.
5700 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5701 access call summaries.
5702 (dump_ipa_call_summary): Be ready for missing edge summaries.
5703 (analyze_function_body): Use get instead of get_create to access
5704 edge summary.
5705 (estimate_calls_size_and_time): Do not access summaries of
5706 inlined edges; sanity check they are missing.
5707 (ipa_call_context::estimate_size_and_time): Use get instead
5708 of get_create to access node summary.
5709 (inline_update_callee_summaries): Do not update depth of
5710 inlined edge.
5711 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5712 growth caches.
5713 (ipa_merge_fn_summary_after_inlining): Use get instead
5714 of get_create.
5715 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5716 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5717 fast summary.
5718 (initialize_growth_caches): Update.
5719 (do_estimate_edge_time): Remove redundant copy of context.
5720 (ipa_remove_from_growth_caches): New function.
5721 * ipa-inline.c (flatten_function): Update overall summary
5722 only when optimizing.
5723 (inline_to_all_callers): Update overall summary of function
5724 inlined to.
5725 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5726 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5727 to false.
5728
5729 2019-11-04 Richard Biener <rguenther@suse.de>
5730
5731 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5732 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5733
5734 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5735
5736 * ggc-common.c: Include system.h before malloc.h.
5737
5738 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5739
5740 * configure.ac: Pass --enable-obsolete=* and
5741 --enable-option-checking=* down to build configure, and fail
5742 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5743 * configure: Rebuild.
5744 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5745 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5746
5747 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5748
5749 * config.in: Regenerate.
5750 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5751 -mtiny-printf is used without GCC being configured with
5752 --enable-newlib-nano-formatted-io.
5753 * config/msp430/msp430.h (LINK_SPEC): Pass
5754 "--wrap puts --wrap printf" when -mtiny-printf is used.
5755 * config/msp430/msp430.opt: Document -mtiny-printf.
5756 * configure: Regenerate.
5757 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5758 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5759 --enable-newlib-nano-formatted-io is passed.
5760 * doc/invoke.texi: Document -mtiny-printf.
5761
5762 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5763
5764 * configure: Regenerate.
5765
5766 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5767
5768 * config/msp430/driver-msp430.c
5769 (msp430_get_linker_devices_include_path): New spec function.
5770 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5771 (extract_devices_dir_from_exec_prefix): New function.
5772 (extract_devices_dir_from_collect_gcc): New function.
5773 (msp430_check_env_var_for_devices): New function.
5774 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5775 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5776 devices.csv was not found using other methods.
5777 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5778 New prototype.
5779 (msp430_dirname): Likewise.
5780 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5781 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5782 msp430_get_linker_devices_include_path.
5783 (TARGET_EXTRA_PRE_INCLUDES): Define.
5784 * doc/invoke.texi: Document new ways of searching for support files.
5785
5786 2019-11-04 Richard Biener <rguenther@suse.de>
5787
5788 PR tree-optimization/92301
5789 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5790 as required by epilogue generation
5791
5792 2019-11-04 Martin Liska <mliska@suse.cz>
5793
5794 PR ipa/92304
5795 * fold-const.c (operand_compare::hash_operand): Fix field
5796 hashing of CONSTRUCTOR.
5797
5798 2019-11-04 Martin Liska <mliska@suse.cz>
5799
5800 * ggc.h (ggc_delete): New function.
5801 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5802 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5803 (ipa_free_all_node_params): Likewise.
5804 * ipa-sra.c (ipa_sra_analysis): Likewise.
5805
5806 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5807
5808 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5809 set_switch_stmt_execution_predicate, compute_bb_predicates,
5810 will_be_nonconstant_expr_predicate,
5811 phi_result_unknown_predicate,
5812 analyze_function_body): Pass arround params summary.
5813 (ipa_call_context::duplicate_from): New comment;
5814 only duplicate useful values.
5815 (ipa_call_context::equal_to): Only compare useful values.
5816 (remap_edge_summaries): Pass params_summary.
5817 (remap_hint_predicate): Likewise.
5818 (ipa_merge_fn_summary_after_inlining): Likewise.
5819 (inline_read_section): Initialize params summary used flags.
5820 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5821 around param_summary.
5822 (add_condition): Initialized used params summary flags.
5823 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5824 (inline_param_summary::useless_p): New predicate.
5825 (remap_after_inlining, add_condition): Update prototype
5826 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5827 move_cost.
5828 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5829 summaries.
5830 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5831 (ipa_analyze_virtual_call_uses): Likewise.
5832 (update_indirect_edges_after_inlining): Update param summaries.
5833 (ipa_print_node_params): Print used flags.
5834 (ipa_read_indirect_edge_info): Update param summareis.
5835 * ipa-prop.h (ipa_param_descriptor): Add
5836 used_by_ipa_predicates, used_by_indirect_call
5837 and used_by_polymorphic_call.
5838 (ipa_set_param_used_by_ipa_predicates,
5839 ipa_set_param_used_by_indirect_call,
5840 ipa_set_param_used_by_polymorphic_call,
5841 ipa_is_param_used_by_ipa_predicates,
5842 ipa_is_param_used_by_indirect_call,
5843 ipa_is_param_used_by_polymorphic_call): New inline functions.
5844
5845 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5846
5847 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5848 member function.
5849 (ipa_call_context::release): Add ALL parameter.
5850 (ipa_call_context::equal_to): New member function.
5851 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5852 duplicate_form, release, equal_to and exists_p member functoins.
5853 * ipa-inline-analysis.c (node_context_cache_entry): New
5854 class.
5855 (node_context_summary): Likewise.
5856 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5857 node_context_clear): New static vars.
5858 (initialize_growth_caches): New function.
5859 (free_growth_caches): Also delete node_context_cache; output stats.
5860 (do_estimate_edge_time): Cache contexts.
5861 (reset_node_cache): New function.
5862 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5863 (inline_small_functions): Initialize growth caches.
5864 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5865 Declare.
5866 * ipa-predicate.h (inline_param_summary::equal_to): New.
5867 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5868 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5869 (ipa_agg_jump_function): Implement equal_to member function.
5870
5871 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5872
5873 * ipa-fnsummary.c (inline_read_section): Set vector size
5874 ahead of time.
5875
5876 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5877
5878 * ipa-fnsummary.c (ipa_call_context): New constructor.
5879 (estimate_node_size_and_time): Turn to ...
5880 (ipa_call_context::estimate_size_and_time): ... this one.
5881 (ipa_call_context::release): New.
5882 * ipa-fnsummary.h (ipa_call_context): New class.
5883 (estimate_node_size_and_time): Remove.
5884 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5885 do_estimate_edge_hints): Update.
5886
5887 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5888
5889 * config.in: Regenerate.
5890 * configure: Regenerate.
5891 * configure.ac: Check for mallinfo.
5892 * ggc-common.c: Include malloc.h if available;
5893 include options.h
5894 (report_heap_memory_use): New functoin.
5895 * ggc-page.c (ggc_grow): Do not print "start".
5896 * ggc.h (report_heap_memory_use): Declare.
5897 * pases.c (execute_one_pass): Report memory after IPA passes.
5898 (ipa_read_summaries_1): Likewise.
5899 (ipa_read_optimization_summaries_1): Likewise.
5900
5901 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5902
5903 * gimplify.h (omp_construct_selector_matches): Change return
5904 type to int, add a new SCORES argument.
5905 * gimplify.c (omp_construct_selector_matches): Likewise. If
5906 SCORES is non-NULL, compute scores of each construct.
5907 * omp-general.h (omp_get_context_selector): Declare.
5908 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5909 Adjust omp_construct_selector_matches callers.
5910 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5911 (omp_context_compute_score): New function.
5912 (omp_resolve_declare_variant): Compute scores and decide based on
5913 that.
5914
5915 PR bootstrap/92314
5916 * configure.ac: Don't look for omp-device-properties files from
5917 installed offloading compilers. Instead add tmake_file snippets
5918 for configured offloading targets and use files they generate.
5919 * Makefile.in (install): Don't depend on
5920 install-omp-device-properties.
5921 (install-omp-device-properties): Remove goal.
5922 * config/i386/t-omp-device: New file.
5923 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5924 * config/nvptx/t-omp-device: New file.
5925 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5926 * configure: Regenerated.
5927
5928 * omp-general.h (omp_context_selector_set_compare): Declare.
5929 * omp-general.c (omp_construct_simd_compare,
5930 omp_context_selector_props_compare, omp_context_selector_set_compare,
5931 omp_context_selector_compare): New functions.
5932 (omp_resolve_declare_variant): Prune variants that are strict subset
5933 of another variant.
5934
5935 2019-11-01 Martin Sebor <msebor@redhat.com>
5936
5937 PR middle-end/91679
5938 PR middle-end/91647
5939 PR middle-end/91463
5940 PR middle-end/92312
5941 * doc/invoke.texi (-Wzero-length-bounds): Document.
5942 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5943 instead of a hand-rolled loop to avoid PR 92323.
5944 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5945 with initializers.
5946 (vrp_prop::check_mem_ref): Handle declared struct objects.
5947 * tree.c (last_field): New function.
5948 (array_at_struct_end_p): Handle MEM_REF.
5949 (get_initializer_for): New helper.
5950 (component_ref_size): Add argument. Rename locals. Call
5951 get_initializer_for instead of fold_ctor_reference. Correct handling
5952 of flexible array members.
5953 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5954
5955 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5956
5957 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5958 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5959 UNSPEC_VSX_CVSPUXDS): Remove.
5960 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5961 (vsx_xvcvspdp_be): ... this. New. And...
5962 (vsx_xvcvspdp_le): ... this. New.
5963 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5964 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5965 (vsx_xvcv<su>xwdp_le): ... this. New.
5966 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5967 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5968 (vsx_xvcvsp<su>xds_le): ... this. New.
5969
5970 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5971
5972 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5973 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5974 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5975 UNSPEC_VSX_XVCVSPSXWS): Remove.
5976 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5977 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5978
5979 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5980
5981 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5982 (UNSPEC_VSX_XVCDPSP): Remove.
5983 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5984 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5985
5986 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5987
5988 * hooks.c (hook_tree_tree_bool_null): New.
5989 * hooks.h (hook_tree_tree_bool_null): Declare.
5990 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5991 (LANG_HOOKS_DECLS): Add it.
5992 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5993 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5994 (lower_omp_target): Handle Fortran array with descriptor in
5995 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5996
5997 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5998
5999 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6000 Assert that the type we store in abi_vector_types is its own
6001 main variant.
6002 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6003
6004 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6005
6006 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6007 from a CONST_INT address when TARGET_THUMB2.
6008
6009 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6010
6011 * config/arm/arm.md (add_not_cin): New insn.
6012 (add_not_shift_cin): Likewise.
6013
6014 2019-10-31 Martin Liska <mliska@suse.cz>
6015
6016 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6017 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6018 and compare_memory_operand.
6019
6020 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6021
6022 * configure.ac: Compute and substitute omp_device_properties and
6023 omp_device_property_deps.
6024 * Makefile.in (generated_files): Add omp-device-properties.h.
6025 (omp-general.o): Depend on omp-device-properties.h.
6026 (omp_device_properties): New make variable.
6027 (omp-device-properties.h, s-omp-device-properties-h,
6028 install-omp-device-properties): New goals.
6029 (install): Depend on install-omp-device-properties for accelerators.
6030 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6031 * target.h (enum omp_device_kind_arch_isa): New enum.
6032 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6033 documentation.
6034 * omp-general.c: Include omp-device-properties.h.
6035 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6036 colon instead of comma.
6037 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6038 functions.
6039 (omp_context_selector_matches): Implement device set arch/isa
6040 selectors, improve device set kind selector handling.
6041 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6042 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6043 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6044 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6045 ix86_omp_device_kind_arch_isa.
6046 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6047 definition from ix86_target_string to file scope.
6048 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6049 to file scope.
6050 (ix86_omp_device_kind_arch_isa): New function.
6051 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6052 isa_opts definitions to file scope.
6053 * config/i386/t-intelmic (omp-device-properties): New goal.
6054 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6055 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6056 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6057 nvptx_omp_device_kind_arch_isa.
6058 * configure: Regenerate.
6059 * doc/tm.texi: Regenerate.
6060
6061 PR middle-end/92231
6062 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6063 DECL_BUILT_IN in comment. Remove redundant ()s around return
6064 argument.
6065 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6066 before calling fndecl_built_in_p.
6067 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6068 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6069 fndecl_built_in_p on it.
6070
6071 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6072
6073 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6074
6075 2019-10-31 Martin Liska <mliska@suse.cz>
6076
6077 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6078 of cgraph_local_info and use local_info_node instead.
6079 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6080 (bfin_function_ok_for_sibcall): Likewise.
6081 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6082 (must_reload_pic_reg_p): Likewise.
6083
6084 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6085
6086 PR c++/90947
6087 * tree.h (type_initializer_zero_p): Remove.
6088 * tree.c (type_initializer_zero_p): Remove.
6089
6090 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6091
6092 * doc/invoke.texi (-Wshadow, -Wshadow=global
6093 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6094
6095 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6096
6097 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6098 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6099 and 'target exit data'.
6100
6101 2019-10-30 Martin Jambor <mjambor@suse.cz>
6102
6103 ipa/92278
6104 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6105 availability comparison.
6106
6107 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6108
6109 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6110 calls to __mspabi_mpy* functions.
6111 * config/msp430/msp430.md (mulhisi3): New define_expand.
6112 (umulhisi3): New define_expand.
6113 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6114 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6115
6116 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6117
6118 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6119 (msp430_check_plus_not_high_mem): New.
6120 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6121 might be in low memory.
6122 Indicate that a 16-bit absolute address is in lower memory.
6123
6124 2019-10-30 Martin Jambor <mjambor@suse.cz>
6125
6126 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6127 ultimate_alias_target.
6128
6129 2019-10-30 Richard Biener <rguenther@suse.de>
6130
6131 PR tree-optimization/92275
6132 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6133 Copy all loop-closed PHIs.
6134
6135 2019-10-30 Martin Liska <mliska@suse.cz>
6136
6137 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6138 const_tree as function argument.
6139 (func_checker::compare_decl): Likewise.
6140 (func_checker::operand_equal_p): Likewise.
6141 (func_checker::compare_variable_decl): Likewise.
6142 (func_checker::parse_labels): Likewise.
6143 * ipa-icf-gimple.h: Likewise.
6144
6145 2019-10-30 Martin Liska <mliska@suse.cz>
6146
6147 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6148 Do not compare alias sets. It's handled by operand_equal_p.
6149
6150 2019-10-30 Martin Liska <mliska@suse.cz>
6151
6152 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6153 initialize m_compare_polymorphic.
6154 (func_checker::compare_decl): Do not compare polymorphic types.
6155 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6156 * ipa-icf.c (sem_function::equals_private): Do not call
6157 compare_polymorphic_p.
6158
6159 2019-10-30 Martin Liska <mliska@suse.cz>
6160
6161 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6162 compare_operand.
6163 (func_checker::compare_memory_operand): Remove.
6164 (func_checker::compare_cst_or_decl): Remove.
6165 (func_checker::operand_equal_valueize): Do not handle
6166 FIELD_DECL.
6167 (func_checker::compare_gimple_call): Call compare_operand.
6168 (func_checker::compare_gimple_assign): Likewise.
6169 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6170 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6171 * ipa-icf.h (icf_handled_component_p): Remove.
6172
6173 2019-10-30 Martin Liska <mliska@suse.cz>
6174
6175 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6176 (func_checker::compare_cst_or_decl): Remove handling
6177 of FIELD_DECL.
6178 (func_checker::compare_operand): Transform to ...
6179 (func_checker::operand_equal_p): ... this.
6180 * ipa-icf-gimple.h (class func_checker): Add
6181 operand_equal_p and hash_operand.
6182 * ipa-icf.c (sem_function::equals_private): Fix
6183 pushing and popping of cfun.
6184
6185 2019-10-30 Martin Liska <mliska@suse.cz>
6186
6187 * fold-const.c (operand_equal_p): Move to ...
6188 (operand_compare::operand_equal_p): ... here.
6189 (operand_compare::verify_hash_value): New.
6190 (add_expr): Move to ...
6191 (operand_compare::hash_operand): ... here.
6192 * fold-const.h (operand_equal_p): Move to the class.
6193 (class operand_compare): New.
6194 * tree.c (add_expr): Remove.
6195
6196 2019-10-30 Martin Liska <mliska@suse.cz>
6197
6198 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6199 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6200
6201 2019-10-30 Martin Liska <mliska@suse.cz>
6202
6203 PR lto/91393
6204 PR lto/88220
6205 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6206 from a first_clone in order to get proper LTO section
6207 in LTO stream.
6208 (cgraph_node::get_untransformed_body):
6209 Use lto_get_section_data where symtab_node::order
6210 must be provided.
6211 * cgraphclones.c (cgraph_node::find_replacement):
6212 Update also symbol order.
6213 * ipa-fnsummary.c (ipa_fn_summary_read):
6214 Use new function lto_get_summary_section_data.
6215 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6216 * ipa-icf.c (sem_item_optimizer::read_summary):
6217 Likewise.
6218 * ipa-prop.c (ipa_prop_read_jump_functions):
6219 Likewise.
6220 (ipcp_read_transformation_summaries): Likewise.
6221 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6222 * lto-cgraph.c (input_node): Add also order_base.
6223 (input_varpool_node): Likewise.
6224 (input_cgraph_1): Assign the order_base.
6225 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6226 * lto-opts.c (lto_write_options): Pass new argument.
6227 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6228 (lto_get_summary_section_data): New.
6229 (lto_get_raw_section_data): Add order argument.
6230 (lto_create_simple_input_block): Likewise.
6231 * lto-section-out.c (lto_destroy_simple_output_block):
6232 Likewise.
6233 * lto-streamer-in.c (lto_input_toplevel_asms):
6234 Use lto_get_summary_section_data.
6235 (lto_input_mode_table): Likewise.
6236 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6237 (lto_output_toplevel_asms): Pass new argument.
6238 (copy_function_or_variable): Likewise.
6239 (produce_lto_section):Likewise.
6240 (produce_symtab): Likewise.
6241 (lto_write_mode_table): Likewise.
6242 (produce_asm_for_decls): Likewise.
6243 * lto-streamer.c (lto_get_section_name): Concat symbol name
6244 and symbol order.
6245 * lto-streamer.h (lto_get_section_data): Add order argument.
6246 (lto_get_summary_section_data): New.
6247 (lto_get_raw_section_data): Add order argument.
6248 (lto_get_section_name): Likewise.
6249 * varpool.c (varpool_node::get_constructor): Pass order argument.
6250
6251 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6252
6253 PR tree-optimization/92262
6254 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6255 ubase or cbase here.
6256 (remove_unused_ivs): Unshare comp before using it.
6257
6258 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6259
6260 * ipa-prop.c (update_jump_functions_after_inlining):
6261 Watch for missing summaries.
6262
6263 2019-10-30 Richard Biener <rguenther@suse.de>
6264
6265 PR tree-optimization/65930
6266 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6267 chains also allow a leading and trailing conversion.
6268 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6269 intermediate reduction chains.
6270 (vect_analyze_slp_instance): Likewise. Build a SLP
6271 node for a trailing conversion manually.
6272
6273 2019-10-30 Martin Liska <mliska@suse.cz>
6274
6275 * cgraph.c (cgraph_node::local_info): Transform to ...
6276 (cgraph_node::local_info_node): ... this.
6277 (cgraph_node::dump): Remove cgraph_local_info and
6278 put its fields directly into cgraph_node.
6279 (cgraph_node::get_availability): Likewise.
6280 (cgraph_node::make_local): Likewise.
6281 (cgraph_node::verify_node): Likewise.
6282 * cgraph.h (struct GTY): Likewise.
6283 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6284 (duplicate_thunk_for_node): Likewise.
6285 (cgraph_node::create_clone): Likewise.
6286 (cgraph_node::create_virtual_clone): Likewise.
6287 (cgraph_node::create_version_clone): Likewise.
6288 * cgraphunit.c (cgraph_node::reset): Likewise.
6289 (cgraph_node::finalize_function): Likewise.
6290 (cgraph_node::add_new_function): Likewise.
6291 (analyze_functions): Likewise.
6292 * combine.c (setup_incoming_promotions): Likewise.
6293 * config/i386/i386.c (ix86_function_regparm): Likewise.
6294 (ix86_function_sseregparm): Likewise.
6295 (init_cumulative_args): Likewise.
6296 * ipa-cp.c (determine_versionability): Likewise.
6297 (count_callers): Likewise.
6298 (set_single_call_flag): Likewise.
6299 (initialize_node_lattices): Likewise.
6300 (estimate_local_effects): Likewise.
6301 (create_specialized_node): Likewise.
6302 (identify_dead_nodes): Likewise.
6303 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6304 (ipa_fn_summary_generate): Likewise.
6305 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6306 (process_hsa_functions): Likewise.
6307 * ipa-icf.c (set_local): Likewise.
6308 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6309 * ipa-inline.c (speculation_useful_p): Likewise.
6310 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6311 (ipa_profile): Likewise.
6312 * ipa-split.c (split_function): Likewise.
6313 (execute_split_functions): Likewise.
6314 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6315 (ipa_sra_ipa_function_checks): Likewise.
6316 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6317 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6318 * lto-cgraph.c (lto_output_node): Likewise.
6319 (input_overwrite_node): Likewise.
6320 * multiple_target.c (expand_target_clones): Likewise.
6321 * omp-simd-clone.c (simd_clone_create): Likewise.
6322 * trans-mem.c (expand_call_tm): Likewise.
6323 (ipa_tm_mayenterirr_function): Likewise.
6324 (ipa_tm_diagnose_tm_safe): Likewise.
6325 (ipa_tm_diagnose_transaction): Likewise.
6326 (ipa_tm_create_version): Likewise.
6327 (ipa_tm_transform_calls_redirect): Likewise.
6328 (ipa_tm_execute): Likewise.
6329 * tree-inline.c (expand_call_inline): Likewise.
6330
6331 2019-10-29 Martin Liska <mliska@suse.cz>
6332
6333 * symbol-summary.h (function_summary): Pass memory location
6334 to underlaying hash_map (or vec).
6335 (V>::fast_function_summary): Likewise.
6336
6337 2019-10-29 Martin Liska <mliska@suse.cz>
6338
6339 * ggc.h (ggc_alloc_no_dtor): New function.
6340 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6341 destructor and ggc_free.
6342 (ipa_free_size_summary): Call delete instead
6343 of release.
6344 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6345 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6346 (ipa_free_all_edge_args): Call destructor and ggc_free.
6347 (ipa_free_all_node_params): Likewise.
6348 (ipcp_free_transformation_sum): Likewise.
6349 * ipa-prop.h (ipa_check_create_node_params):
6350 Call new ggc_alloc_no_dtor.
6351 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6352 (ipa_sra_analysis): Call destructor and ggc_free.
6353 Replace release with delete operator.
6354 * symbol-summary.h (release): Remove ..
6355 (V>::~fast_function_summary): and move logic here.
6356 Likewise for other classes.
6357
6358 2019-10-29 Richard Biener <rguenther@suse.de>
6359
6360 PR tree-optimization/92260
6361 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6362 lane-reducing ops.
6363
6364 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6365
6366 PR tree-optimization/88915
6367 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6368 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6369 and make the valueize function pointer also take a void pointer.
6370 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6371 around vn_valueize, to call it without a context.
6372 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6373 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6374 (~_loop_vec_info): Release epilogue_vinfos.
6375 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6376 number of iterations of epilogue.
6377 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6378 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6379 versioning threshold needed for main loop.
6380 (vect_analyze_loop): Likewise.
6381 (find_in_mapping): New helper function.
6382 (update_epilogue_loop_vinfo): New function.
6383 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6384 on main loop and call update_epilogue_loop_vinfo to update it.
6385 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6386 stmts on loop preheader edge.
6387 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6388 we decided to vectorize epilogues. Update epilogues NITERS and
6389 construct ADVANCE to update epilogues data references where needed.
6390 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6391 (vect_do_peeling, vect_update_inits_of_drs,
6392 determine_peel_for_niter, vect_analyze_loop): Add or update
6393 declarations.
6394 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6395 created loop_vec_info's for epilogues when available. Otherwise analyse
6396 epilogue separately.
6397
6398 2019-10-29 Richard Biener <rguenther@suse.de>
6399
6400 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6401 example.
6402
6403 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6404
6405 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6406 index for the COND_EXPR from stmt_info rather than reduc_info.
6407
6408 2019-10-29 Richard Biener <rguenther@suse.de>
6409
6410 PR tree-optimization/65930
6411 * tree-vect-loop.c (check_reduction_path): Relax single-use
6412 check allowing out-of-loop uses.
6413 (vect_is_simple_reduction): SLP reduction chains cannot have
6414 intermediate stmts used outside of the loop.
6415 (vect_create_epilog_for_reduction): The adjustment might need
6416 to be converted.
6417 (vectorizable_reduction): Annotate live stmts of the reduction
6418 chain with STMT_VINFO_REDUC_DEF.
6419 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6420
6421 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6422
6423 * calls.c (pass_by_reference): Leave the target to decide whether
6424 POLY_INT_CST-sized arguments should be passed by value or reference,
6425 rather than forcing them to be passed by reference.
6426 (must_pass_in_stack_var_size): Likewise.
6427 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6428 V31_REGNUM to P15_REGNUM.
6429 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6430 Take an extra "silent_p" parameter, defaulting to false.
6431 (aarch64_sve::svbool_type_p): Declare.
6432 (aarch64_sve::nvectors_if_data_type): Likewise.
6433 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6434 (aarch64_frame::reg_offset): Turn into poly_int64s.
6435 (aarch64_frame::save_regs_size): Likewise.
6436 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6437 (aarch64_frame::sve_callee_adjust): Likewise.
6438 (aarch64_frame::spare_reg_reg): Likewise.
6439 (ARM_PCS_SVE): New arm_pcs value.
6440 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6441 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6442 (CUMULATIVE_ARGS::silent_p): Likewise.
6443 (BITS_PER_SVE_PRED): New macro.
6444 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6445 function. Reject aarch64_vector_pcs attributes on SVE functions.
6446 (aarch64_attribute_table): Use the above handler.
6447 (aarch64_sve_abi): New function.
6448 (aarch64_sve_argument_p): Likewise.
6449 (aarch64_returns_value_in_sve_regs_p): Likewise.
6450 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6451 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6452 descriptor for them.
6453 (aarch64_simd_decl_p): Delete.
6454 (aarch64_emit_cfi_for_reg_p): New function.
6455 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6456 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6457 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6458 as partly clobbered for the SVE PCS.
6459 (aarch64_function_ok_for_sibcall): Check whether the two functions
6460 use the same ABI, rather than checking specifically for whether
6461 they're aarch64_vector_pcs functions.
6462 (aarch64_pass_by_reference): Raise an error for attempts to pass
6463 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6464 if there are not enough free registers left, or if the argument is
6465 variadic.
6466 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6467 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6468 tuples in memory.
6469 (aarch64_layout_arg): Take a function_arg_info rather than
6470 individual properties. Handle SVE predicates, vectors and tuples.
6471 Raise an error if they are passed to unprototyped functions.
6472 (aarch64_function_arg): If the silent_p flag is set, suppress the
6473 usual error about using float registers without TARGET_FLOAT.
6474 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6475 it in the cumulative_args structure. Initialize aapcs_nprn and
6476 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6477 error about using float registers without TARGET_FLOAT.
6478 If the silent_p flag is not set, also raise an error about
6479 using SVE functions when SVE is disabled.
6480 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6481 and call it for SVE functions too. Update aapcs_nprn similarly
6482 to the other register counts.
6483 (aarch64_layout_frame): If a big-endian function needs to save
6484 and restore Z8-Z15, search for a spare predicate that it can use.
6485 Store SVE predicates at the bottom of the register save area,
6486 followed by SVE vectors, then followed by the normal slots.
6487 Keep pointing the hard frame pointer at the base of the normal slots,
6488 above the SVE vectors. Update the various frame creation and
6489 tear-down strategies for the new layout, initializing the new
6490 sve_callee_adjust field. Add an additional layout for frames
6491 whose saved registers are all SVE registers.
6492 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6493 (aarch64_return_address_signing_enabled): Likewise.
6494 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6495 aarch64_reg_save_mode.
6496 (aarch64_adjust_sve_callee_save_base): New function.
6497 (aarch64_add_cfa_expression): Move earlier in file. Take the
6498 saved register as an rtx rather than a register number and use
6499 its mode for the MEM slot.
6500 (aarch64_save_callee_saves): Remove the mode argument and instead
6501 use aarch64_reg_save_mode to get the mode of each save slot.
6502 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6503 offsets. Allow GP offsets to be saved at a VL-based offset from
6504 the stack, handling this case using the frame pointer if available
6505 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6506 big-endian SVE functions; use normal moves for other SVE saves.
6507 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6508 returns true. Add explicit CFA notes when not storing via the
6509 stack pointer. Do not try to pair SVE saves.
6510 (aarch64_restore_callee_saves): Cope with poly_int64 register
6511 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6512 use normal moves for other SVE restores. Only add CFA restore notes
6513 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6514 SVE restores.
6515 (aarch64_get_separate_components): Always keep the first SVE save
6516 in the prologue if we need to use it as a stack probe. Don't allow
6517 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6518 Likewise the spare predicate register that they need. Update the
6519 offset calculation to account for the SVE save area. Use the
6520 appropriate range check for SVE LDR and STR instructions.
6521 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6522 (aarch64_process_components): Likewise. Update the offset
6523 calculation to account for the SVE save area. Only mark the
6524 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6525 Do not try to pair SVE saves.
6526 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6527 reg_offsets. When handling the final allocation, expect the
6528 first SVE register save to be part of the initial allocation
6529 and for it to act as a probe at SP. Account for the SVE callee
6530 save area in the dump information.
6531 (aarch64_expand_prologue): Update the frame diagram. Fold the
6532 SVE callee allocation into the initial allocation if stack clash
6533 protection is enabled. Use new variables to track the offset
6534 of the frame chain (and hard frame pointer) from the current
6535 stack pointer, and likewise the offset of the bottom of the
6536 register save area. Update calls to aarch64_save_callee_saves
6537 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6538 saving the FP&SIMD registers. Save the predicate registers.
6539 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6540 into account when setting the stack pointer from the frame pointer,
6541 and when deciding whether we can inherit the initial adjustment
6542 amount from the prologue. Restore the predicate registers after
6543 the vector registers, then apply sve_callee_adjust, then restore
6544 the general registers.
6545 (aarch64_secondary_reload): Don't use secondary SVE reloads
6546 for VNx16BImode.
6547 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6548 (aarch64_short_vector_p): Return false for SVE types.
6549 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6550 at the start of the function. Return false for SVE types.
6551 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6552 functions too.
6553 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6554 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6555 to big-endian targets for bytewise moves.
6556 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6557
6558 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6559 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6560 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6561
6562 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6563 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6564 aarch64-sve-builtins-base.o to extra_objs. Add
6565 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6566 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6567 (aarch64-sve-builtins-shapes.o): Likewise.
6568 (aarch64-sve-builtins-base.o): New rules.
6569 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6570 (aarch64_resolve_overloaded_builtin): Likewise.
6571 (aarch64_check_builtin_call): Likewise.
6572 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6573 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6574 pragma.
6575 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6576 (aarch64_svprfop): New enum.
6577 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6578 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6579 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6580 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6581 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6582 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6583 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6584 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6585 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6586 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6587 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6588 (aarch64_sve::mangle_builtin_type): Likewise.
6589 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6590 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6591 (aarch64_sve::expand_builtin): Likewise.
6592 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6593 (aarch64_sve_int_mode): Likewise.
6594 (aarch64_ptrue_all_mode): New function.
6595 (aarch64_convert_sve_data_to_pred): Make public.
6596 (svprfop_token): New function.
6597 (aarch64_output_sve_prefetch): Likewise.
6598 (aarch64_fold_sve_cnt_pat): Likewise.
6599 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6600 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6601 instead of gen_while_ult.
6602 (aarch64_replace_reg_mode): Make public.
6603 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6604 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6605 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6606 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6607 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6608 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6609 (aarch64_sve_ptrue_svpattern_p): Likewise.
6610 (aarch64_sve_pred_valid_immediate): Check
6611 aarch64_sve_ptrue_svpattern_p.
6612 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6613 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6614 functions.
6615 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6616 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6617 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6618 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6619 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6620 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6621 New unspecs.
6622 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6623 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6624 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6625 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6626 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6627 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6628 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6629 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6630 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6631 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6632 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6633 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6634 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6635 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6636 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6637 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6638 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6639 (Vesize): Handle partial vector modes.
6640 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6641 mode attributes.
6642 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6643 iterators.
6644 (s, paired_extend, inc_dec): New code attributes.
6645 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6646 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6647 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6648 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6649 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6650 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6651 UNSPEC_COND_FMULX.
6652 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6653 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6654 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6655 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6656 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6657 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6658 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6659 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6660 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6661 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6662 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6663 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6664 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6665 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6666 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6667 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6668 UNSPEC_COND_FSCALE.
6669 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6670 (binqops_op, binqops_op_rev, last_op): New int attributes.
6671 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6672 (fn, ab): New int attributes.
6673 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6674 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6675 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6676 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6677 UNSPEC_RBIT.
6678 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6679 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6680 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6681 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6682 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6683 UNSPEC_COND_FMULX.
6684 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6685 (brk_reg_con, brk_reg_opno): New int attributes.
6686 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6687 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6688 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6689 UNSPEC_COND_FMIN.
6690 (max_elem_bits): New int attribute.
6691 (min_elem_bits): Handle UNSPEC_RBIT.
6692 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6693 TRUNCATE as well as SUBREG.
6694 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6695 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6696 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6697 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6698 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6699 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6700 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6701 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6702 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6703 (aarch64_gather_scale_operand_h): New predicates.
6704 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6705 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6706 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6707 (*aarch64_sve_reinterpret<mode>): Allow any source register
6708 instead of requiring an exact match.
6709 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6710 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6711 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6712 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6713 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6714 (aarch64_update_ffrt): New patterns.
6715 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6716 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6717 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6718 (@aarch64_ld<fn>f1<mode>): New patterns.
6719 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6720 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6721 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6722 (@aarch64_ldnt1<mode>): New patterns.
6723 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6724 the scalar part of the address.
6725 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6726 scalar part of the addresse and add an alternative for handling
6727 nonzero offsets.
6728 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6729 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6730 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6731 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6732 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6733 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6734 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6735 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6736 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6737 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6738 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6739 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6740 (@aarch64_sve_prefetch<mode>): New patterns.
6741 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6742 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6743 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6744 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6745 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6746 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6747 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6748 (@aarch64_stnt1<mode>): New patterns.
6749 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6750 the scalar part of the address.
6751 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6752 the scalar part of the addresse and add an alternative for handling
6753 nonzero offsets.
6754 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6755 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6756 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6757 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6758 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6759 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6760 New patterns.
6761 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6762 (extract_last_<mode>): Generalize to...
6763 (@extract_<LAST:last_op>_<mode>): ...this.
6764 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6765 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6766 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6767 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6768 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6769 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6770 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6771 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6772 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6773 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6774 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6775 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6776 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6777 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6778 (*aarch64_adr_uxtw_unspec): Likewise.
6779 (*aarch64_adr_uxtw): Rename to...
6780 (*aarch64_adr_uxtw_and): ...this.
6781 (@aarch64_adr<mode>_shift): New expander.
6782 (*aarch64_adr_shift_sxtw): New pattern.
6783 (aarch64_<su>abd<mode>_3): Rename to...
6784 (@aarch64_pred_<su>abd<mode>): ...this.
6785 (<su>abd<mode>_3): Update accordingly.
6786 (@aarch64_cond_<su>abd<mode>): New expander.
6787 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6788 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6789 (*<su>mul<mode>3_highpart): Rename to...
6790 (@aarch64_pred_<optab><mode>): ...this.
6791 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6792 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6793 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6794 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6795 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6796 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6797 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6798 (*v<ASHIFT:optab><mode>3): Rename to...
6799 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6800 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6801 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6802 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6803 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6804 (@cond_asrd<mode>): New expander.
6805 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6806 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6807 (*sdiv_pow2<mode>3): Delete.
6808 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6809 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6810 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6811 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6812 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6813 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6814 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6815 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6816 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6817 (*add<SVE_F:mode>3): Rename to...
6818 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6819 for SVE_STRICT_GP.
6820 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6821 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6822 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6823 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6824 (*sub<SVE_F:mode>3): Rename to...
6825 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6826 for SVE_STRICT_GP.
6827 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6828 (*fabd<SVE_F:mode>3): Rename to...
6829 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6830 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6831 (*mul<SVE_F:mode>3): Rename to...
6832 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6833 for SVE_STRICT_GP.
6834 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6835 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6836 to...
6837 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6838 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6839 (*<nlogical><PRED_ALL:mode>3): Rename to...
6840 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6841 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6842 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6843 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6844 (aarch64_pred_<logical_nn><mode>_z): ...this.
6845 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6846 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6847 (*fma<SVE_I:mode>4): Rename to...
6848 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6849 (*fnma<SVE_I:mode>4): Rename to...
6850 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6851 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6852 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6853 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6854 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6855 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6856 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6857 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6858 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6859 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6860 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6861 (@aarch64_sve_tmad<mode>): Likewise.
6862 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6863 (*aarch64_sel_dup<mode>): Rename to...
6864 (@aarch64_sel_dup<mode>): ...this.
6865 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6866 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6867 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6868 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6869 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6870 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6871 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6872 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6873 (*fcm<cmp_op><mode>): Rename to...
6874 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6875 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6876 (*fcmuo<mode>): Rename to...
6877 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6878 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6879 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6880 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6881 (fold_extract_last_<mode>): Generalize to...
6882 (@fold_extract_<last_op>_<mode>): ...this.
6883 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6884 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6885 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6886 DImode result explicit.
6887 (reduc_plus_scal_<mode>): Update accordingly.
6888 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6889 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6890 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6891 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6892 (*aarch64_sve_tbl<mode>): Rename to...
6893 (@aarch64_sve_tbl<mode>): ...this.
6894 (@aarch64_sve_compact<mode>): New pattern.
6895 (*aarch64_sve_dup_lane<mode>): Rename to...
6896 (@aarch64_sve_dup_lane<mode>): ...this.
6897 (@aarch64_sve_dupq_lane<mode>): New pattern.
6898 (@aarch64_sve_splice<mode>): Likewise.
6899 (aarch64_sve_<perm_insn><mode>): Rename to...
6900 (@aarch64_sve_<perm_insn><mode>): ...this.
6901 (*aarch64_sve_ext<mode>): Rename to...
6902 (@aarch64_sve_ext<mode>): ...this.
6903 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6904 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6905 to...
6906 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6907 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6908 Rename to...
6909 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6910 ...this.
6911 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6912 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6913 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6914 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6915 to...
6916 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6917 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6918 a "@" marker.
6919 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6920 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6921 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6922 pattern.
6923 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6924 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6925 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6926 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6927 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6928 "@" marker.
6929 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6930 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6931 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6932 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6933 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6934 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6935 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6936 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6937 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6938 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6939 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6940 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6941 (aarch64_sve_cnt_pat): Likewise.
6942 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6943 (*aarch64_sve_incsi_pat): Likewise.
6944 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6945 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6946 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6947 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6948 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6949 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6950 (*aarch64_sve_decsi_pat): Likewise.
6951 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6952 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6953 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6954 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6955 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6956 (@aarch64_pred_cntp<mode>): Likewise.
6957 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6958 New expander.
6959 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6960 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6961 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6962 New expander.
6963 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6964 New pattern.
6965 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6966 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6967 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6968 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6969 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6970 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6971 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6972 New expander.
6973 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6974 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6975 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6976 New expander.
6977 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6978 New pattern.
6979 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6980 expander.
6981 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6982 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6983 expander.
6984 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6985 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6986 expander.
6987 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6988 * config/aarch64/arm_sve.h: New file.
6989 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6990 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6991 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6992 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6993 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6994 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6995 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6996 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6997 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6998
6999 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7000
7001 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7002 New pattern.
7003 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7004 SVE modes.
7005
7006 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7007
7008 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7009 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7010 FFRT_REGNUM + 1.
7011 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7012 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7013 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7014 (aarch64_hard_regno_nregs): Handle the new register classes.
7015 (aarch64_hard_regno_mode_ok): Likewise.
7016 (aarch64_regno_regclass): Likewise.
7017 (aarch64_class_max_nregs): Likewise.
7018 (aarch64_register_move_cost): Likewise.
7019 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7020 as general register_operands.
7021
7022 2019-10-29 Martin Liska <mliska@suse.cz>
7023
7024 * ggc-common.c: One can't subtract unsigned types
7025 in compare function.
7026
7027 2019-10-29 Martin Liska <mliska@suse.cz>
7028
7029 * cgraphunit.c (symbol_table::compile): Pass
7030 title as dump_memory_report argument.
7031 * toplev.c (dump_memory_report): New argument.
7032 (finalize): Pass new argument.
7033 * toplev.h (dump_memory_report): Add argument.
7034
7035 2019-10-29 Martin Liska <mliska@suse.cz>
7036
7037 * ggc-common.c: Move Leak to the first column.
7038
7039 2019-10-29 Martin Liska <mliska@suse.cz>
7040
7041 * cgraphunit.c (symbol_table::compile): Remove argument
7042 for dump_memory_report.
7043 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7044 (compare_final): Remove in order to make report
7045 better readable.
7046 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7047 * mem-stats.h (mem_alloc_description::get_list):
7048 Do not pass cmp.
7049 (mem_alloc_description::dump): Likewise here.
7050 * toplev.c (dump_memory_report): Remove final
7051 argument.
7052 (finalize): Likewise.
7053 * toplev.h (dump_memory_report): Remove argument.
7054
7055 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7056
7057 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7058 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7059 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7060 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7061 accept "const".
7062
7063 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7064
7065 * coretypes.h (string_int_pair): New typedef.
7066 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7067 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7068 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7069
7070 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7071
7072 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7073 (simulate_builtin_function_decl): Declare.
7074 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7075 (LANG_HOOKS_INITIALIZER): Include it.
7076 * langhooks.c (add_builtin_function_common): Rename to...
7077 (build_builtin_function): ...this. Add a location parameter and use
7078 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7079 the decl instead.
7080 (add_builtin_function): Update accordingly, passing the returned
7081 decl to the lang hook.
7082 (add_builtin_function_ext_scope): Likewise
7083 (simulate_builtin_function_decl): New function.
7084
7085 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7086
7087 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7088 example, use actual names of supported offload targets.
7089
7090 PR target/92258
7091 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7092
7093 2019-10-28 Martin Sebor <msebor@redhat.com>
7094
7095 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7096 (handle_store): Pass argument to get_addr_stridx.
7097
7098 2019-10-28 Martin Sebor <msebor@redhat.com>
7099
7100 PR tree-optimization/92226
7101 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7102 the offset is in the open range outlined by SI's length.
7103
7104 2019-10-28 Martin Sebor <msebor@redhat.com>
7105
7106 PR c/66970
7107 * doc/cpp.texi (__has_builtin): Document.
7108 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7109
7110 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7111
7112 PR target/82981
7113 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7114 doubleword and low doubleword result of multiplication on
7115 MIPS64R6.
7116
7117 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7118 pure qualifier to the built-in.
7119 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7120 built-ins.
7121 (struct mips_builtin_description): Add is_pure flag.
7122 (mips_init_builtins): Mark built-in as pure if the flag in the
7123 corresponding mips_builtin_description struct is set.
7124
7125 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7126 alternative which covers the floating-point input value. Also
7127 forbid the split of insert.d pattern for floating-point values.
7128
7129 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7130
7131 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7132 * config/riscv/riscv-sr.c: New file.
7133 * config/riscv/riscv.c (riscv_reorg): New function.
7134 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7135 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7136 (riscv_remove_unneeded_save_restore_calls): Declare.
7137 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7138
7139 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7140
7141 PR tree-optimization/92163
7142 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7143 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7144 before calling bitmap_set_bit.
7145 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7146 delete_dead_or_redundant_assignment.
7147 (dse_dom_walker::dse_optimize_stmt): Likewise.
7148 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7149
7150 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7151
7152 PR middle-end/91272
7153 * tree-vect-stmts.c (vectorizable_condition): Support
7154 EXTRACT_LAST_REDUCTION with fully-masked loops.
7155
7156 2019-10-28 Richard Biener <rguenther@suse.de>
7157
7158 PR tree-optimization/92252
7159 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7160 STMT_VINFO_REDUC_IDX when swapping operands.
7161
7162 2019-10-28 Richard Biener <rguenther@suse.de>
7163
7164 PR tree-optimization/92241
7165 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7166 we failed to update the reduction index do not use the pattern
7167 stmts for the reduction chain.
7168 (vectorizable_reduction): When the reduction chain is corrupt,
7169 fail.
7170 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7171 fail to update the reduction chain.
7172
7173 2019-10-28 Richard Biener <rguenther@suse.de>
7174
7175 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7176 STMT_VINFO_REDUC_IDX from the actual stmt.
7177 (vect_transform_reduction): Likewise.
7178 (vectorizable_reduction): Compute the reduction chain length,
7179 do not recompute the reduction operand index. Remove no longer
7180 necessary restriction for condition reduction chains.
7181
7182 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7183
7184 PR target/92225
7185 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7186 condition for V2DImode.
7187
7188 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7189
7190 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7191 Remove %k operand modifier.
7192 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7193
7194 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7195
7196 PR rtl-optimization/92007
7197 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7198 call it after reload if hot/cold partitioning has been done.
7199 (class pass_postreload_jump): Rename to
7200 pass_jump_after_combine.
7201 (make_pass_postreload_jump): Rename to
7202 make_pass_jump_after_combine.
7203 * passes.def(pass_postreload_jump): Move before reload, rename
7204 to pass_jump_after_combine.
7205 * tree-pass.h (make_pass_postreload_jump): Rename to
7206 make_pass_jump_after_combine.
7207
7208 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7209
7210 PR ipa/92242
7211 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7212 for missing EDGE_REF
7213 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7214
7215 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7216
7217 PR tree-optimization/88760
7218 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7219 Enable -funroll-loops for -O2 and above.
7220 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7221 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7222 do not turn on web and rngreg implicitly, if the unroller is not
7223 explicitly enabled.
7224
7225 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7226
7227 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7228 jump functions.
7229
7230 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7231
7232 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7233 * cgraph.h (cgraph_node::rtl_info): Likewise.
7234
7235 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7236
7237 * ipa-cp.c (propagate_constants_across_call): If args are not available
7238 just drop everything to varying.
7239 (find_aggregate_values_for_callers_subset): Watch for missing
7240 edge summary.
7241 (find_more_scalar_values_for_callers_subs): Likewise.
7242 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7243 update_jump_functions_after_inlining, propagate_controlled_uses):
7244 Watch for missing summaries.
7245 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7246 is finished.
7247 (ipa_write_node_info): Watch for missing summaries.
7248 (ipa_read_edge_info): Create new ref.
7249 (ipa_edge_args_sum_t): Add remove.
7250 (IPA_EDGE_REF_GET_CREATE): New macro.
7251 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7252 edge summary.
7253 (remap_edge_change_prob): Likewise.
7254
7255 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7256
7257 * ipa-inline-transform.c (inline_call): update function summaries
7258 after expanidng thunk.
7259
7260 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7261
7262 * ipa-icf.c (sem_function::merge): Update function summaries.
7263 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7264
7265 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7266
7267 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7268 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7269 operand already has scalar mode.
7270 (iptr): Remove SF/DF.
7271
7272 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7273
7274 PR target/91289
7275 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7276 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7277 this.
7278
7279 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7280
7281 * config/i386/sse.md
7282 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7283 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7284 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7285 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7286 <sse>_vmmaskcmp<mode>3):
7287 Change predicates from vector_operand to nonimmediate_operand,
7288 constraints xBm to xm, since scalar operations don't need
7289 memory address alignment.
7290 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7291 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7292 round_saeonly_nimm_predicate with
7293 round_saeonly_nimm_scalar_predicate.
7294 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7295 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7296 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7297 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7298 avx512f_vmfmadd_<mode>_mask3<round_name>,
7299 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7300 *avx512f_vmfmsub_<mode>_mask<round_name>,
7301 avx512f_vmfmsub_<mode>_mask3<round_name>,
7302 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7303 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7304 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7305 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7306 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7307 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7308 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7309 cvtusi2<ssescalarmodesuffix>32<round_name>,
7310 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7311 round_nimm_predicate with round_nimm_scalr_predicate.
7312 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7313 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7314 avx512er_vmrcp28<mode><round_saeonly_name>,
7315 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7316 ): Replace round_saeonly_nimm_predicate with
7317 round_saeonly_nimm_scalar_predicate.
7318 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7319 vector_operand with nonimmediate_operand.
7320 * config/i386/subst.md (round_scalar_nimm_predicate,
7321 round_saeonly_scalar_nimm_predicate): Replace
7322 vector_operand with nonimmediate_operand.
7323
7324 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7325
7326 PR target/89071
7327 * config/i386/i386.md (*rcpsf2_sse): Add
7328 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7329 (*rsqrtsf2_sse): Ditto.
7330 (*sqrt<mode>2_sse): Ditto.
7331 (sse4_1_round<mode>2): separate constraint vm, add
7332 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7333 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7334 by pass rpad.
7335 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7336 Ditto.
7337 (*sse_vmrsqrtv4sf2): Ditto.
7338 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7339 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7340 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7341 <iptr> pointer size modifier since vround support memory operand.
7342
7343 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7344
7345 PR target/85969
7346 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7347 static function.
7348
7349 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7350 Tobias Burnus <tobias@codesourcery.com>
7351
7352 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7353 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7354 common block decls.
7355
7356 2019-10-25 Richard Biener <rguenther@suse.de>
7357
7358 PR tree-optimization/92222
7359 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7360 (_slp_oprnd_info::second_pattern): Likewise.
7361 (_slp_oprnd_info::any_pattern): New.
7362 (vect_create_oprnd_info): Adjust.
7363 (vect_get_and_check_slp_defs): Compute whether any stmt is
7364 in a pattern.
7365 (vect_build_slp_tree_2): Avoid building up a node from scalars
7366 if any of the operand defs, not just the first, is in a pattern.
7367
7368 2019-10-25 Richard Biener <rguenther@suse.de>
7369
7370 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7371 swapping if we actually have to modify the IL on a shared stmt.
7372 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7373 because we no longer modify the IL.
7374
7375 2019-10-25 Martin Liska <mliska@suse.cz>
7376
7377 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7378
7379 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7380
7381 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7382 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7383 handled by vect_transform_reduction. Allow fully-masked loops
7384 to be used with reduction chains.
7385 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7386 operations in fully-masked loops.
7387 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7388 operations in fully-masked loops.
7389
7390 2019-10-25 Richard Biener <rguenther@suse.de>
7391
7392 * tree-vect-loop.c (vectorizable_reduction): Verify
7393 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7394 correctly.
7395 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7396 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7397 stmts.
7398
7399 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7400
7401 * gimplify.h (omp_construct_selector_matches): Declare.
7402 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7403 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7404 called function if needed for flag_openmp.
7405 (gimplify_scan_omp_clauses): Set ctx->code.
7406 (omp_construct_selector_matches): New function.
7407 * omp-general.h (omp_constructor_traits_to_codes,
7408 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7409 * omp-general.c (omp_constructor_traits_to_codes,
7410 omp_context_selector_matches, omp_resolve_declare_variant): New
7411 functions.
7412
7413 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7414 literal.
7415 * config/rx/rx.c (rx_print_operand): Likewise.
7416 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7417 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7418 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7419 Likewise.
7420 * genemit.c (emit_c_code): Likewise.
7421 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7422
7423 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7424
7425 * symbols-summary.h (fast_function_summary<T *, V>::release,
7426 fast_call_summary<T *, V>::release): Free m_vector.
7427
7428 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7429
7430 * cgraphunit.c (symbol_table::process_new_functions): Call
7431 ipa_free_size_summary.
7432 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7433 (devirtualization_time_bonus): Update.
7434 (ipcp_propagate_stage): Update.
7435 * ipa-fnsummary.c (ipa_size_summaries): New.
7436 (ipa_fn_summary_alloc): Alloc size summary.
7437 (dump_ipa_call_summary): Update.
7438 (ipa_dump_fn_summary): Update.
7439 (analyze_function_body): Update.
7440 (compute_fn_summary): Likewise.
7441 (ipa_get_stack_frame_offset): New function.
7442 (inline_update_callee_summaries): Do not update frame offsets.
7443 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7444 remove call and function summary.
7445 (ipa_update_overall_fn_summary): Update.
7446 (inline_read_section): Update.
7447 (ipa_fn_summary_write): Update.
7448 (ipa_free_fn_summary): Do not remove summaries.
7449 (ipa_free_size_summary): New.
7450 (release summary pass): Also run at WPA.
7451 * ipa-fnsummary.h (ipa_size_summary): Declare.
7452 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7453 estimated_self_stack_size.
7454 (ipa_size_summary_t): New type.
7455 (ipa_size_summaries): Declare.
7456 (ipa_free_size_summary): Declare.
7457 (ipa_get_stack_frame_offset): Declare.
7458 * ipa-icf.c (sem_function::merge): Update.
7459 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7460 (estimate_growth): Update.
7461 (growth_likely_positive): Update.
7462 (clone_inlined_nodes): Update.
7463 (inline_call): Update.
7464 * ipa-inline.c (caller_growth_limits): Update.
7465 (edge_badness): Update.
7466 (recursive_inlining): Update.
7467 (inline_small_functions): Update.
7468 (inline_to_all_callers_1): Update.
7469 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7470
7471 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7472
7473 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7474 (uavg<mode>3_ceil): ... This.
7475 (altivec_vavgs<VI_char>): Rename to...
7476 (avg<mode>3_ceil): ... This.
7477 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7478 VAVGUW, VAVGSW): Adjust.
7479
7480 2019-10-24 Nathan Sidwell <nathan@acm.org>
7481
7482 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7483
7484 2019-10-24 Martin Liska <mliska@suse.cz>
7485
7486 * symbol-summary.h (gt_pch_nx): Mark all functions
7487 with gcc_unreachable as we do not expect to be called.
7488
7489 2019-10-24 Richard Biener <rguenther@suse.de>
7490
7491 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7492 chains try harder with operand swapping and instead of
7493 putting a shifted chain into the reduction operands put
7494 a repetition of the final reduction op there as if we'd
7495 reassociate the expression.
7496
7497 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7498
7499 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7500 statics_not_read and statics_not_written to statics_read and
7501 statics_written respectively.
7502 (no_module_statics): New static var.
7503 (ipa_reference_get_not_read_global): Rename to ...
7504 (ipa_reference_get_read_global): ... this.
7505 (ipa_reference_get_not_written_global): Rename to ...
7506 (ipa_reference_get_written_global): ... this.
7507 (dump_static_vars_set_to_file): Dump no_module_statics.
7508 (copy_static_var_set): Add for propagation parameter.
7509 (ipa_init): Initialize no_module_statics.
7510 (ipa_ref_opt_summary_t::duplicate): Update.
7511 (ipa_ref_opt_summary_t::remove): Update.
7512 (propagate): Update.
7513 (write_node_summary_p): Look correctly for bitmap differences.
7514 (ipa_reference_write_optimization_summary): Update.
7515 (ipa_reference_read_optimization_summary): Update.
7516 * ipa-reference.h
7517 (ipa_reference_get_not_read_global): Rename to ...
7518 (ipa_reference_get_read_global): ... this.
7519 (ipa_reference_get_not_written_global): Rename to ...
7520 (ipa_reference_get_written_global): ... this.
7521 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7522 (call_may_clobber_ref_p_1): Update.
7523
7524 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7525
7526 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7527 and add comment.
7528 (msp430_hard_regno_nregs_with_padding): Remove.
7529
7530 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7531
7532 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7533 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7534 shift amount is between 1 and 4.
7535 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7536 is between 1 and 4.
7537
7538 2019-10-24 Richard Biener <rguenther@suse.de>
7539
7540 PR tree-optimization/92205
7541 * tree-vect-loop.c (vectorizable_reduction): Restrict
7542 search for alternate vectype_in to lane-reducing patterns
7543 we support.
7544
7545 2019-10-24 Richard Biener <rguenther@suse.de>
7546
7547 PR tree-optimization/92203
7548 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7549 Skip eliminating conversion stmts inserted by insertion.
7550
7551 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7552
7553 * config/s390/s390.c (s390_get_thread_pointer): Use
7554 gen_get_thread_pointer.
7555 (s390_expand_split_stack_prologue): Likewise.
7556 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7557 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7558 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7559 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7560 parameterized name.
7561
7562 2019-10-24 Richard Biener <rguenther@suse.de>
7563
7564 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7565 SLP discovery fails try to handle the reduction as part
7566 of SLP reduction discovery.
7567
7568 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7569
7570 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7571 declaration.
7572 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7573 attribute if it exists, rather than the insn size. If we use the
7574 insn size, adjust the size to remove the extra size that prefixed
7575 instructions take.
7576 (rs6000_adjust_insn_length): New function.
7577 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7578 update the instruction sized if prefixed instructions are used.
7579 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7580 (non_prefixed_length attribute): Delete.
7581 (num_insns attribute): New insn attribute to return the number of
7582 instructions.
7583 (max_prefixed_insns attribute): New insn attribute to return the
7584 maximum number of prefixed instructions in an insn.
7585 (length attribute): Do not adjust for prefix instructions here,
7586 punt to ADJUST_INSN_LENGTH.
7587 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7588 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7589 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7590 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7591 max_prefixed_insns and num_insns.
7592
7593 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7594 (movtd_64bit_nodm): Reformat.
7595 (mov<mode>_32bit): Reformat.
7596 (mov<mode>_softfloat): Reformat.
7597 (FMOVE128_GPR splitter): Reformat.
7598 (DIFD splitter): Reformat.
7599 (TI2 splitter): Reformat.
7600 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7601 bits of the offset for the memory address are non-zero, use PLWA
7602 if prefixed instructions are available.
7603
7604 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7605
7606 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7607
7608 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7609
7610 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7611 previous patch.
7612
7613 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7614
7615 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7616 (cmp_symbol_files): New.
7617 (lto_output): Copy sections in file order.
7618 * lto-streamer.h (lto_file_decl_data): Add field order.
7619
7620 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7621
7622 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7623 * ipa-reference.c (reference_vars_map_t): new type.
7624 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7625 (ipa_reference_var_uid): Implement.
7626 (varpool_node_hooks): New static var.
7627 (varpool_removal_hook): New function.
7628 (is_improper): Do not check bitmap for id==-1
7629 (get_static_name): Update.
7630 (ipa_init): Initialize new datastructures.
7631 (analyze_function): Do not recompute ids.
7632 (propagate): Free reference_vars_to_consider.
7633 (stream_out_bitmap): Update.
7634 (ipa_reference_read_optimization_summary): Update.
7635
7636 2019-10-23 qing zhao <qing.zhao@oracle.com>
7637
7638 PR gcov-profile/91971
7639 * coverage.c (coverage_init): Mangle the full path of filename when
7640 filename is a absolute path.
7641
7642 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7643
7644 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7645 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7646 (msp430_has_hwmult): New.
7647 (msp430_output_labelref):
7648 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7649 * config/msp430/msp430.md (mulhisi3): Likewise.
7650 (umulhisi3): Likewise.
7651 (mulsidi3): Likewise.
7652 (umulsidi3): Likewise.
7653
7654 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7655
7656 PR ipa/92074
7657 * params.def (inline-heuristics-hint-percent): Set to 600.
7658
7659 2019-10-23 Richard Biener <rguenther@suse.de>
7660
7661 PR tree-optimization/65930
7662 * tree-vect-loop.c (check_reduction_path): Allow conversions
7663 that only change the sign.
7664 (vectorizable_reduction): Relax latch def stmts we handle further.
7665
7666 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7667
7668 PR debug/90231
7669 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7670 (remove_unused_ivs): Use it instead of get_computation_at. When
7671 choosing best candidate, only consider candidates where
7672 get_debug_computation_at actually returns non-NULL.
7673
7674 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7675
7676 PR tree-optimization/92131
7677 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7678 range would be symbolic, drop to varying for any explicit overflow
7679 in the constant part or if neither range is a singleton.
7680
7681 2019-10-23 Martin Liska <mliska@suse.cz>
7682
7683 PR middle-end/81669
7684 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7685 Initialize m_data.
7686
7687 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7688
7689 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7690 int_mode_for_mode rather than mode_for_int_vector for scalars.
7691
7692 2019-10-23 Richard Biener <rguenther@suse.de>
7693
7694 PR tree-optimization/92179
7695 * tree-vect-stmts.c (vectorizable_shift): For shift args
7696 that are all the same remove type restriction in the SLP case.
7697 Adjust SLP code to handle converting of the shift arg to
7698 only apply in case the modes are different.
7699
7700 2019-10-23 Martin Liska <mliska@suse.cz>
7701
7702 PR ipa/91969
7703 * ipa-inline.c (recursive_inlining): Do not print
7704 when curr->count is not initialized.
7705
7706 2019-10-23 Richard Biener <rguenther@suse.de>
7707
7708 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7709 op from scalars in case there's a constant operand in its
7710 definition.
7711
7712 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7713
7714 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7715 against out of range max skip or log values.
7716
7717 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7718
7719 * cgraph.c (dump_graphviz): Change name to dump_name
7720
7721 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7722
7723 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7724 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7725 subtraction from a carry operation.
7726
7727 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7728
7729 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7730
7731 2019-10-22 Richard Biener <rguenther@suse.de>
7732
7733 PR tree-optimization/92173
7734 * tree-vect-loop.c (vectorizable_reduction): If
7735 vect_transform_reduction cannot handle code-generation try without
7736 the single-def-use-cycle optimization. Pass optab_vector to
7737 optab_for_tree_code to get vector shifts as that's what we'd
7738 generate.
7739
7740 2019-10-22 Michael Matz <matz@suse.de>
7741
7742 PR middle-end/90796
7743 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7744 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7745 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7746
7747 2019-10-22 Richard Biener <rguenther@suse.de>
7748
7749 PR tree-optimization/92173
7750 * tree-vect-loop.c (vectorizable_reduction): If
7751 vect_transform_reduction cannot handle code-generation try without
7752 the single-def-use-cycle optimization. Pass optab_vector to
7753 optab_for_tree_code to get vector shifts as that's what we'd
7754 generate.
7755
7756 2019-10-22 Martin Liska <mliska@suse.cz>
7757
7758 * diagnostic-format-json.cc (json_from_expanded_location):
7759 Use json::integer_number.
7760 * gcov.c (output_intermediate_json_line): Use new
7761 json::integer_number.
7762 (output_json_intermediate_file): Likewise.
7763 * json.cc (number::print): Move to ...
7764 (float_number::print): ... this.
7765 (integer_number::print): New.
7766 (test_writing_numbers): Move to ...
7767 (test_writing_float_numbers): ... this.
7768 (test_writing_integer_numbers): New.
7769 (json_cc_tests): Register test_writing_integer_numbers.
7770 * json.h (class value): Add forward declaration
7771 for float_number and integer_number.
7772 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7773 (class number): Move to ...
7774 (class float_number): ... this.
7775 (class integer_number): New.
7776 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7777 Use json::integer_number.
7778 (optrecord_json_writer::location_to_json): Likewise.
7779 (optrecord_json_writer::profile_count_to_json): Likewise.
7780 (optrecord_json_writer::pass_to_json): Likewise.
7781
7782 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7783
7784 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7785 autodetected_vector_size rather than vector_size is zero.
7786 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7787 Set autodetected_vector_size immediately after calling
7788 vect_analyze_loop_2. Check for a fatal error before advancing
7789 next_size.
7790
7791 2019-10-21 Jason Merrill <jason@redhat.com>
7792
7793 * lock-and-run.sh: Check for process existence rather than timeout.
7794
7795 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7796
7797 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7798 widening multiplication.
7799
7800 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7801
7802 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7803 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7804 type attribute.
7805 (subsi3_carryin_shift): Separate into register and constant controlled
7806 alternatives. Use shift_amount_operand for operand 4. Set shift
7807 attribute and simplify type attribute.
7808 (subsi3_carryin_shift_alt): Likewise.
7809 (rsbsi3_carryin_shift): Likewise.
7810 (rsbsi3_carryin_shift_alt): Likewise.
7811 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7812 and register controlled shifts into distinct alternatives.
7813 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7814 (andsi_not_shiftsi_si_scc): Likewise.
7815 (arm_cmpsi_negshiftsi_si): Likewise.
7816 (not_shiftsi): Remove redundant M constraint from alternative 1.
7817 (not_shiftsi_compare0): Likewise.
7818 (arm_cmpsi_insn): Remove redundant alternative 2.
7819 (cmpsi_shift_swp): Likewise.
7820 (sub_shiftsi): Likewise.
7821 (sub_shiftsi_compare0_scratch): Likewise.
7822 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7823 (thumb2_cmpsi_neg_shiftsi): Likewise.
7824
7825 2019-10-21 Richard Biener <rguenther@suse.de>
7826
7827 PR tree-optimization/92162
7828 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7829 STMT_VINFO_REDUC_IDX in reduc_info.
7830 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7831
7832 2019-10-21 Richard Biener <rguenther@suse.de>
7833
7834 * tree-vectorizer.h (_slp_tree::ops): New member.
7835 (SLP_TREE_SCALAR_OPS): New.
7836 (vect_get_slp_defs): Adjust prototype.
7837 * tree-vect-slp.c (vect_free_slp_tree): Release
7838 SLP_TREE_SCALAR_OPS.
7839 (vect_create_new_slp_node): Initialize it. New overload for
7840 initializing by an operands array.
7841 (_slp_oprnd_info::ops): New member.
7842 (vect_create_oprnd_info): Initialize it.
7843 (vect_free_oprnd_info): Release it.
7844 (vect_get_and_check_slp_defs): Populate the operands array.
7845 Do not swap operands in the IL when not necessary.
7846 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7847 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7848 swap operands in the operands array. Do not swap operands in
7849 the IL.
7850 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7851 (vect_gather_slp_loads): Fix.
7852 (vect_detect_hybrid_slp_stmts): Likewise.
7853 (vect_slp_analyze_node_operations_1): Search for a internal
7854 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7855 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7856 the def-type push/pop dance.
7857 (vect_get_constant_vectors): Compute number_of_vectors here.
7858 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7859 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7860 (vect_get_slp_defs): Simplify greatly.
7861 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7862 (vect_transform_reduction): Likewise.
7863 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7864 (vectorizable_call): Likewise.
7865 (vectorizable_operation): Likewise.
7866 (vectorizable_load): Likewise.
7867 (vectorizable_condition): Likewise.
7868 (vectorizable_comparison): Likewise.
7869
7870 2019-10-21 Richard Biener <rguenther@suse.de>
7871
7872 PR tree-optimization/92161
7873 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7874 for reductions.
7875
7876 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7877
7878 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7879 (aarch64_rndr): New define_insn.
7880 (aarch64_rndrrs): Likewise.
7881 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7882 (TARGET_RNG): Likewise.
7883 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7884 argument.
7885 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7886 Add fourth argument in prototype.
7887 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7888 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7889 (aarch64_init_rng_builtins): Define.
7890 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7891 (aarch64_expand_rng_builtin): Define.
7892 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7893 RNG builtins.
7894 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7895 __ARM_FEATURE_RNG when TARGET_RNG.
7896 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7897
7898 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7899
7900 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7901 alignment is more restrictive.
7902
7903 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7904
7905 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7906 (vect_update_max_nunits): Update comment.
7907 (current_vector_size): Delete.
7908 * tree-vect-stmts.c (current_vector_size): Likewise.
7909 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7910 of current_vector_size.
7911 (get_mask_type_for_scalar_type): Likewise.
7912 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7913 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7914 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7915 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7916 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7917 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7918
7919 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7920
7921 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7922 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7923 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7924 accordingly.
7925
7926 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7927
7928 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7929 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7930 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7931 call accordingly.
7932 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7933
7934 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7935
7936 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7937 a loop_vec_info.
7938 (vect_set_loop_condition_masked): Update call accordingly.
7939
7940 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7941
7942 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7943 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7944 (simple_integer_narrowing): Update call accordingly.
7945 (vectorizable_conversion): Likewise.
7946
7947 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7948
7949 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7950 (vectorizable_call): Update call accordingly.
7951
7952 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7953
7954 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7955 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7956 (duplicate_and_interleave): Update call accordingly.
7957 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7958
7959 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7960
7961 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7962 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7963 (vect_get_constant_vectors): Update call accordingly.
7964 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7965
7966 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7967
7968 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7969 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7970 (vect_prologue_cost_for_slp_op): Update call accordingly.
7971 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7972 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7973 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7974 (get_mask_type_for_scalar_type): Likewise.
7975 (vect_get_vector_types_for_stmt): Likewise.
7976 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7977 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7978 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7979 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7980 (vect_split_statement, vect_convert_input): Likewise.
7981 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7982 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7983 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7984 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7985 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7986 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7987 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7988 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7989 (vect_recog_mask_conversion_pattern): Likewise.
7990 (vect_add_conversion_to_pattern): Likewise.
7991 (vect_recog_gather_scatter_pattern): Likewise.
7992 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7993 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7994
7995 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7996
7997 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7998 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7999 (vect_check_load_store_mask): Update call accordingly.
8000 (vect_get_mask_type_for_stmt): Likewise.
8001 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8002 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8003 (vect_convert_mask_for_vectype): Likewise.
8004
8005 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8006
8007 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8008 a vec_info.
8009 (vect_recog_dot_prod_pattern): Update call accordingly.
8010 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8011 (vect_recog_widen_sum_pattern): Likewise.
8012
8013 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8014
8015 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8016 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8017 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8018 accordingly.
8019
8020 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8021
8022 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8023 get_vectype_for_scalar_type_and_size instead of
8024 get_vectype_for_scalar_type.
8025
8026 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8027
8028 * common.opt (-fcommon): Fix description.
8029
8030 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8031
8032 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8033 * config/i386/i386.c (ix86_pre_reload_split): New function.
8034 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8035 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8036 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8037 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8038 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8039 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8040 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8041 *<shift_insn><dwi>3_doubleword_mask,
8042 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8043 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8044 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8045 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8046 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8047 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8048 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8049 *avx2_<code>v8qiv8si2<mask_name>_2,
8050 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8051 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8052 *avx512f_<code>v8qiv8di2<mask_name>_2,
8053 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8054 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8055 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8056 sse4_2_pcmpistr): Likewise.
8057
8058 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8059
8060 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8061 now defaults to https.
8062
8063 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8064
8065 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8066 skip non-zero array accesses.
8067
8068 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8069
8070 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8071 and return a boolean success value. Move the allocation and
8072 initialization of the bb_vec_info to...
8073 (vect_slp_bb_region): ...here. Update call accordingly.
8074 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8075 than in vect_slp_analyze_bb_1.
8076
8077 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8078
8079 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8080 when processing the given datarefs for the first time and
8081 check_datarefs subsequently.
8082 (vect_slp_bb_region): New function, split out of...
8083 (vect_slp_bb): ...here. Don't recompute the region bounds and
8084 dataref sets when retrying with a different vector size.
8085
8086 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8087 Uroš Bizjak <ubizjak@gmail.com>
8088
8089 PR target/92140
8090 * config/i386/predicates.md (int_nonimmediate_operand): New special
8091 predicate.
8092 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8093 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8094 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8095 define_insn_and_split patterns.
8096
8097 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8098
8099 * config/rs6000/rs6000.md: Delete out--of-date comment about
8100 special-casing integer loads.
8101
8102 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8103
8104 * escaped_string.h (escaped_string): New header.
8105 * tree.c (escaped_string): Remove escaped_string class.
8106
8107 2019-10-18 Martin Sebor <msebor@redhat.com>
8108
8109 PR tree-optimization/92157
8110 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8111 compute_string_length to return a negative result.
8112
8113 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8114
8115 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8116 (negvsi3, negvdi3): Delete.
8117 (negdi2_compare): Delete.
8118
8119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8120
8121 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8122 operations.
8123 (subdi3_compare1): Delete pattern.
8124 (subvsi3_borrow): New insn pattern.
8125 (subvsi3_borrow_imm): Likewise.
8126
8127 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8128
8129 * config/arm/arm.md (subv<mode>4): Delete.
8130 (subvdi4): New expander pattern.
8131 (subvsi4): Likewise. Handle some immediate values.
8132 (subvsi3_intmin): New insn pattern.
8133 (subvsi3): Likewise.
8134 (subvsi3_imm1): Likewise.
8135 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8136 idioms.
8137
8138 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8139
8140 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8141 incoming operands. Early split the calculation into SImode
8142 operations.
8143 (usubvsi3_borrow): New insn pattern.
8144 (usubvsi3_borrow_imm): Likewise.
8145
8146 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8147
8148 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8149 (usubvsi4): New pattern. Allow some immediate values for inputs.
8150 (usubvdi4): New pattern.
8151
8152 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8153
8154 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8155 or second operand of the PLUS inside a DImode equality test to be
8156 sign-extend when selecting CC_Vmode.
8157 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8158 instructions.
8159 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8160 expand patterns.
8161 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8162 (addsi3_cin_vout_0): Likewise.
8163 (adddi3_compareV): Delete.
8164
8165 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8166
8167 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8168 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8169 to transform this back into the summation version when that leads
8170 to smaller code.
8171
8172 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8173
8174 * config/arm/arm.md (addv<mode>4): Delete.
8175 (addvsi4): New pattern. Handle immediate values that the architecture
8176 supports.
8177 (addvdi4): New pattern.
8178 (addsi3_compareV): Rename to ...
8179 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8180 and use COMPARE rather than NE.
8181 (addsi3_compareV_imm): New pattern.
8182 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8183 a signed-overflow check.
8184
8185 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8186
8187 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8188 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8189 CC_ADCmode.
8190 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8191 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8192 with overflow.
8193 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8194 expand patterns.
8195 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8196 (addsi3_cin_cout_imm_insn): Likewise.
8197 (adddi3_compareC): Delete insn.
8198 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8199
8200 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8201
8202 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8203 * (uaddv<mode>4): Delete expansion pattern.
8204 (uaddvsi4): New pattern.
8205 (uaddvdi4): Likewise.
8206 (addsi3_compareC): Delete pattern, change callers to use
8207 addsi3_compare_op1.
8208 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8209 reduce the number of alternatives and re-work type attribute handling.
8210 (addsi3_compare_op2): Clean up constraints to reduce the number of
8211 alternatives and re-work type attribute handling.
8212 (compare_addsi2_op0): Likewise.
8213 (compare_addsi2_op1): Likewise.
8214
8215 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8216
8217 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8218 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8219 for DImode operands.
8220 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8221 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8222 CC_NCVmode.
8223 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8224 (arm_cmpdi_unsigned): Delete.
8225
8226 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8227
8228 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8229 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8230 unchanged only if that will be cheaper.
8231 (arm_select_cc_mode): Recognize a swapped comparison that will
8232 be regenerated using RSBS or RSCS. Relax restriction on selecting
8233 CC_RSBmode.
8234 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8235 a constant.
8236 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8237 is CC_RSBmode.
8238 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8239 as CCmode.
8240 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8241 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8242
8243 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8244
8245 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8246 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8247 need these modes.
8248 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8249 of EQ, NE, LT, GE, LTU and GEU.
8250 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8251 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8252 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8253 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8254 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8255
8256 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8257
8258 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8259 operand 2.
8260 (cstoredi4): Similarly, but for operand 3.
8261 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8262 canonicalization of unsigned compares with a constant on Arm.
8263 Prefer using const+1 and adjusting the comparison over swapping the
8264 operands whenever the original constant was not valid.
8265 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8266 register here.
8267 (arm_validize_comparison): Do not force invalid DImode operands to
8268 registers here.
8269
8270 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8271
8272 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8273 return CC_Zmode if comparing against a constant where one word is
8274 zero.
8275 (arm_gen_compare_reg): Split DImode handling to ...
8276 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8277 against simple constants.
8278 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8279
8280 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8281
8282 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8283 (rsbsi3_carryin_shift_alt): Likewise.
8284
8285 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8286
8287 * config/arm/arm.md (negscc_borrow): New pattern.
8288 (mov_negscc): Don't split if the insn would match negscc_borrow.
8289 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8290 (thumb2_mov_negscc_strict_it): Likewise.
8291
8292 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8293
8294 * config/arm/arm.c (arm_insn_cost): New function.
8295 (TARGET_INSN_COST): Override default definition.
8296
8297 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8298
8299 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8300 borrow operations.
8301
8302 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8303
8304 * config/arm/arm.c (strip_carry_operation): New function.
8305 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8306 for SImode.
8307
8308 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8309
8310 * config/arm/predicates.md (arm_carry_operation): New special
8311 predicate.
8312 * config/arm/iterators.md (LTUGEU): Delete iterator.
8313 (cnb): Delete code attribute.
8314 (optab): Delete ltu and geu elements.
8315 * config/arm/arm.md (addsi3_carryin): Renamed from
8316 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8317 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8318 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8319 (addsi3_carryin_clobercc): Similarly.
8320 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8321 Thumb2 state.
8322
8323 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8324
8325 * config/arm/arm.md (arm_subdi3): Delete insn.
8326 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8327
8328 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8329
8330 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8331 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8332 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8333 return CC_RSBmode.
8334 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8335 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8336 expand.
8337 (subdi3): Rewrite to early-expand the sub-operations.
8338 (rsb_im_compare): New pattern.
8339 (negdi2): Delete.
8340 (negdi2_insn): Delete.
8341 (arm_negsi2): Correct type attribute to alu_imm.
8342 (negsi2_0compare): New insn pattern.
8343 (negsi2_carryin): New insn pattern.
8344
8345 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8346
8347 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8348 operand 2.
8349
8350 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8351
8352 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8353 to match canonical form.
8354
8355 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8356
8357 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8358 (extend<mode>di2): Likewise.
8359
8360 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8361
8362 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8363 * config/arm/arm.c (arm_decompose_di_binop): New function.
8364 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8365 If not generating Thumb-1 code, decompose the operation into 32-bit
8366 pieces.
8367 * add0si_carryin_<optab>: New pattern.
8368
8369 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8370
8371 * arm.md (adddi3): Only accept register operands.
8372 (arm_adddi3): Convert to simple insn with no split. Do not accept
8373 constants.
8374 (adddi_sesidi_di): Delete patern.
8375 (adddi_zesidi_di): Likewise.
8376 (uaddv<mode>4): Use LTU as condition for branch.
8377 (adddi3_compareV): Convert to simple insn with no split.
8378 (addsi3_compareV_upper): Delete pattern.
8379 (adddi3_compareC): Convert to simple insn with no split. Correct
8380 flags setting expression.
8381 (addsi3_compareC_upper): Delete pattern.
8382 (addsi3_compareC): Correct flags setting expression.
8383 (subdi3_compare1): Convert to simple insn with no split.
8384 (subsi3_carryin_compare): Delete pattern.
8385 (arm_subdi3): Convert to simple insn with no split.
8386 (subdi_zesidi): Delete pattern.
8387 (subdi_di_sesidi): Delete pattern.
8388 (subdi_zesidi_di): Delete pattern.
8389 (subdi_sesidi_di): Delete pattern.
8390 (subdi_zesidi_zesidi): Delete pattern.
8391 (negvdi3): Use s_register_operand.
8392 (negdi2_compare): Convert to simple insn with no split.
8393 (negdi2_insn): Likewise.
8394 (negsi2_carryin_compare): Delete pattern.
8395 (negdi_zero_extendsidi): Delete pattern.
8396 (arm_cmpdi_insn): Convert to simple insn with no split.
8397 (negdi2): Don't call gen_negdi2_neon.
8398 * config/arm/neon.md (adddi3_neon): Delete pattern.
8399 (subdi3_neon): Delete pattern.
8400 (negdi2_neon): Delete pattern.
8401 (splits for negdi2_neon): Delete splits.
8402
8403 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8404
8405 PR middle-end/92153
8406 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8407 than after it.
8408
8409 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8410
8411 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8412 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8413 new multilib variants and new mappings.
8414
8415 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8416
8417 PR target/86040
8418 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8419
8420 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8421 Richard Sandiford <richard.sandiford@arm.com>
8422
8423 PR target/86753
8424 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8425 and define hashmap traits for it.
8426 (loop_vec_info::scalar_cond_masked_set): New member.
8427 (vect_record_loop_mask): Adjust prototype.
8428 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8429 Implement method.
8430 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8431 vect_record_loop_mask.
8432 (vectorizable_live_operation): Likewise.
8433 (vect_record_loop_mask): New param scalar_mask. Add entry
8434 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8435 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8436 Pass it as last arg to vect_record_loop_mask.
8437 (vectorizable_call): Pass scalar_mask as last arg to
8438 vect_record_loop_mask.
8439 (vectorizable_store): Likewise.
8440 (vectorizable_load): Likewise.
8441 (vectorizable_condition): Check if another part of vectorized code
8442 applies loop_mask to condition or to it's inverse, and if yes,
8443 apply loop_mask to result of vector comparison.
8444
8445 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8446
8447 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8448
8449 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8450
8451 PR tree-optimization/92056
8452 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8453 before calling compute_builtin_object_size.
8454
8455 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8456
8457 PR target/65342
8458 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8459 (movdi_low_st): Delete.
8460 * config/rs6000/rs6000.c
8461 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8462 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8463 * config/rs6000/rs6000.md (movsi_low): Delete.
8464
8465 2019-10-17 Jason Merrill <jason@redhat.com>
8466
8467 * gimplify.h (get_initialized_tmp_var): Add default argument to
8468 post_p.
8469 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8470 NULL post_p argument.
8471 * targhooks (std_gimplify_va_arg_expr): Likewise.
8472
8473 2019-10-17 Richard Biener <rguenther@suse.de>
8474
8475 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8476 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8477 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8478 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8479 * tree-vect-loop.c (vect_is_simple_reduction): Set
8480 STMT_VINFO_REDUC_CODE.
8481 (vectorizable_reduction): Remove dead and redundant code, use
8482 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8483
8484 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8485
8486 Fix breakage introduced by r276985.
8487
8488 * config/avr/avr.c (avr_option_override): Remove set of
8489 PARAM_ALLOW_STORE_DATA_RACES.
8490 * common/config/avr/avr-common.c (avr_option_optimization_table)
8491 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8492
8493 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8494
8495 * config/i386/i386.h (processor_costs): Add clear_ratio.
8496 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8497 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8498 of 6 and move_ratio in all cost models.
8499
8500 2019-10-17 Richard Biener <rguenther@suse.de>
8501
8502 * tree-vect-loop.c (check_reduction_path): Compute reduction
8503 operation here.
8504 (vect_is_simple_reduction): Remove special-case of single-stmt
8505 reduction path detection.
8506
8507 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8508
8509 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8510
8511 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8512
8513 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8514 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8515 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8516 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8517 New combine patterns.
8518 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8519 above.
8520 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8521
8522 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8523
8524 * tree-vrp.c (value_range_base::dump): Display +INF for both
8525 pointers and integers when appropriate.
8526
8527 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8528
8529 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8530 when to use versioning threshold.
8531
8532 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8533
8534 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8535 outlined code from ...
8536 (vect_analyze_loop_2): ... here.
8537
8538 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8539
8540 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8541 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8542 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8543
8544 2019-10-17 Richard Biener <rguenther@suse.de>
8545
8546 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8547 (vect_is_simple_reduction): Move all validity checks ...
8548 (vectorizable_reduction): ... here. Compute whether we
8549 need a fold-left reduction here.
8550 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8551 both overloads, check needs_fold_left_reduction_p directly.
8552 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8553
8554 2019-10-17 Richard Biener <rguenther@suse.de>
8555
8556 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8557 TARGET_MEM_REF creation.
8558
8559 2019-10-17 Richard Biener <rguenther@suse.de>
8560
8561 PR tree-optimization/92129
8562 * tree-vect-loop.c (vectorizable_reduction): Also fail
8563 on GIMPLE_SINGLE_RHS.
8564
8565 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8566
8567 PR tree-optimization/92056
8568 * tree-object-size.c (cond_expr_object_size): Return early if then_
8569 processing resulted in unknown size.
8570
8571 PR tree-optimization/92115
8572 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8573 temporary if it could trap.
8574
8575 2019-10-17 Richard Biener <rguenther@suse.de>
8576
8577 PR debug/91887
8578 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8579 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8580
8581 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8582
8583 * tree-ssa-strlen.c (maybe_invalidate): Use
8584 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8585
8586 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8587 Jim Wilson <jimw@sifive.com>
8588
8589 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8590 regs to SIBCALL_REGS.
8591 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8592 passing regs to SIBCALL_REGS.
8593
8594 2019-10-16 Martin Sebor <msebor@redhat.com>
8595
8596 PR tree-optimization/83821
8597 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8598 the length of a string when available.
8599 (handle_builtin_memset) Add argument.
8600 (handle_store, strlen_check_and_optimize_call): Same.
8601 (check_and_optimize_stmt): Same. Pass it to callees.
8602
8603 2019-10-16 Martin Sebor <msebor@redhat.com>
8604
8605 PR tree-optimization/91996
8606 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8607 information.
8608 (compare_nonzero_chars): Add an overload.
8609 (count_nonzero_bytes): Add an argument. Call overload above.
8610 Handle non-constant lengths in some range.
8611 (handle_store): Add an argument.
8612 (check_and_optimize_stmt): Pass an argument to handle_store.
8613
8614 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8615
8616 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8617
8618 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8619
8620 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8621 operands which correspond to the same input-output register to
8622 have the same pseudo assigned to them.
8623
8624 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8625
8626 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8627
8628 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8629
8630 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8631 Apply reasonable limit to symbol offsets.
8632
8633 2019-10-16 Richard Biener <rguenther@suse.de>
8634
8635 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8636 (vect_is_simple_reduction): Delay checking to
8637 vectorizable_reduction and relax the checking.
8638 (vectorizable_reduction): Check we have a simple use. Check
8639 for bogus condition reductions.
8640 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8641 are looking at the last stmt in a pattern sequence when
8642 filling in backedge PHI values.
8643
8644 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8645 Jiufu Guo <guojiufu@linux.ibm.com>
8646
8647 PR target/70010
8648 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8649 the callee explicitly disables some isa_flags the caller is using.
8650
8651 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8652
8653 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8654
8655 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8656
8657 * genmodes.c (mode_data::order): New field.
8658 (blank_mode): Update accordingly.
8659 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8660 (make_vector_modes): Likewise.
8661 (VECTOR_MODES): Update use accordingly.
8662 (cmp_modes): Sort by the new order field ahead of sorting by size.
8663 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8664 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8665 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8666 (aarch64_classify_vector_mode): Handle the new partial modes.
8667 (aarch64_vl_bytes): New function.
8668 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8669 when counting the number of registers in an SVE mode.
8670 (aarch64_class_max_nregs): Likewise.
8671 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8672 in registers yet.
8673 (aarch64_classify_address): Treat partial vectors analogously
8674 to full vectors.
8675 (aarch64_print_address_internal): Consolidate the printing of
8676 MUL VL addresses, using aarch64_vl_bytes as the number of
8677 bytes represented by "VL".
8678 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8679
8680 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8681
8682 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8683 rather than known_lt when choosing frame layouts.
8684
8685 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8686
8687 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8688 that all the adjustments add up to the full frame size.
8689 Use crtl->outgoing_args_size directly as the final adjustment
8690 where appropriate.
8691
8692 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8693
8694 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8695 "frame" reference instead of always referring directly to
8696 "cfun->machine->frame".
8697
8698 2019-10-16 Richard Biener <rguenther@suse.de>
8699
8700 PR tree-optimization/92119
8701 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8702 against missing bswap lhs.
8703
8704 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8705
8706 PR middle-end/92033
8707 * poly-int.h (constant_lower_bound_with_limit): New function.
8708 (constant_upper_bound_with_limit): Likewise.
8709 * doc/poly-int.texi: Document them.
8710 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8711 into the worst-case INTEGER_CST bounds.
8712
8713 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8714
8715 PR ipa/91088
8716 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8717 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8718 * ipa-predicat.h (struct expr_eval_op): New struct.
8719 (expr_eval_ops): New typedef.
8720 (struct condition): Add type and param_ops fields, remove size field.
8721 (add_condition): Replace size parameter with type parameter, add
8722 param_ops parameter.
8723 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8724 (predicate::add_clause): Add comparisons on type and param_ops.
8725 (dump_condition): Add debug dump for param_ops.
8726 (remap_after_inlining): Adjust call arguments to add_condition.
8727 (add_condition): Replace size parameter with type parameter, add
8728 param_ops parameter. Unshare constant value used in conditions.
8729 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8730 parameter expressions using param_ops.
8731 (decompose_param_expr): New function.
8732 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8733 to replace call to unmodified_parm_or_parm_agg_item.
8734 (set_switch_stmt_execution_predicate): Likewise.
8735 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8736 with type.
8737 (inline_read_section): Read param_ops from summary stream.
8738 (ipa_fn_summary_write): Write param_ops to summary stream.
8739
8740 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8741
8742 PR rtl-optimization/92107
8743 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8744 expression written.
8745
8746 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8747
8748 * config/darwin.c: Update description of fix and continue.
8749
8750 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8751
8752 * config/darwin.c (darwin_binds_local_p): Update to call
8753 default_binds_local_p_3 () directly. amend comments.
8754
8755 2019-10-15 Richard Biener <rguenther@suse.de>
8756
8757 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8758 (tree_is_indexable): Use it.
8759 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8760 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8761 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8762
8763 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8764
8765 * config/msp430/msp430.md (zero_extendqipsi2): New.
8766 (zero_extendqisi2): Optimize case where src register and base dst
8767 register are the same.
8768 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8769 (zero_extendpsisi2): Optimize r->m case.
8770 Add unnamed insn patterns to catch insns combine searches for when
8771 optimizing pointer manipulation.
8772
8773 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8774
8775 * config/msp430/msp430.md: Group zero_extend* insns together.
8776
8777 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8778
8779 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8780 constraint.
8781 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8782 POST_INC.
8783 (msp430_subreg): Likewise.
8784 (msp430_split_addsi): Likewise.
8785 (msp430_print_operand_addr): Likewise.
8786 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8787 (USE_STORE_POST_INCREMENT): Define.
8788 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8789 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8790 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8791 (msp430_general_dst_operand): New.
8792 (msp430_general_dst_nonv_operand): New.
8793 (msp430_nonsubreg_operand): Remove.
8794 (msp430_nonsubreg_dst_operand): New.
8795 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8796 of defunct msp430_nonsubreg_operand.
8797 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8798
8799 2019-10-15 Richard Biener <rguenther@suse.de>
8800
8801 PR tree-optimization/91929
8802 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8803 (get_or_alloc_expr_for_name): Initialize it.
8804 (get_or_alloc_expr_for_constant): Likewise.
8805 (phi_translate_1): Copy it.
8806 (create_expression_by_pieces): Use the original location
8807 of the expression for the inserted stmt.
8808 (compute_avail): Record the location of the stmt for the
8809 expressions created.
8810
8811 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8812
8813 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8814 before using tree_to_uhwi.
8815
8816 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8817
8818 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8819
8820 2019-10-15 Richard Biener <rguenther@suse.de>
8821
8822 PR tree-optimization/92094
8823 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8824 do not adjust the reduction definition def type.
8825 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8826 defines the latch argument of the PHI.
8827
8828 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8829
8830 PR target/92035
8831 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8832 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8833 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8834 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8835 _mm_maskz_roundscale_round_sd): New intrinsics.
8836 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8837 __builtin_ia32_rndscales?_mask_round builtins instead of
8838 __builtin_ia32_rndscales?_round.
8839 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8840 __builtin_ia32_rndscalesd_round): Remove.
8841 (__builtin_ia32_rndscaless_mask_round,
8842 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8843 * config/i386/sse.md
8844 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8845 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8846 ... this, adjust and add subst atrributes to make it maskable.
8847
8848 2019-10-15 Richard Biener <rguenther@suse.de>
8849
8850 PR middle-end/92046
8851 * common.opt (fallow-store-data-races): New.
8852 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8853 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8854 * doc/invoke.texi (fallow-store-data-races): Document.
8855 (--param allow-store-data-races): Remove docs.
8856 * opts.c (default_options_table): Enable -fallow-store-data-races
8857 at -Ofast.
8858 (default_options_optimization): Do not enable --param
8859 allow-store-data-races at -Ofast.
8860 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8861 instead of PARAM_ALLOW_STORE_DATA_RACES.
8862 * tree-ssa-loop-im.c (execute_sm): Likewise.
8863
8864 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8865
8866 PR tree-optimization/92085
8867 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8868 instead of calling it unconditionally after
8869 delete_dead_or_redundant_assignment and fix indentation.
8870
8871 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8872
8873 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8874 TARGET_VFP_DOUBLE.
8875 (*fmsub<SDF:mode>4): Likewise.
8876 *fnmsub<SDF:mode>4): Likewise.
8877 (*fnmadd<SDF:mode>4): Likewise.
8878
8879 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8880
8881 * doc/tree-ssa.texi: Update renamed macro name.
8882
8883 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8884
8885 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8886 vector constants.
8887
8888 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8889
8890 * config/darwin.c: Use unsigned ints for the picbase label
8891 counters, initialise the vars explicitly.
8892 (update_pic_label_number_if_needed): Move a variable declaration
8893 to where it's needed.
8894 (machopic_output_function_base_name): Use a more strict checking
8895 assert, and and unsigned int for the picbase label counter.
8896 (machopic_get_function_picbase): Likewise.
8897
8898 2019-10-14 Richard Biener <rguenther@suse.de>
8899
8900 PR middle-end/92046
8901 * dse.c (scan_insn): Use param max_active_local_stores.
8902 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8903 based on optimization level.
8904 * loop-invariant.c (move_loop_invariants): Adjust
8905 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8906 * opts.c (default_options_optimization): Do not adjust
8907 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8908 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8909
8910 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8911
8912 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8913
8914 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8915
8916 * config/arm/arm.c (arm_option_override): Don't override sched
8917 pressure algorithm.
8918
8919 2019-10-14 Richard Biener <rguenther@suse.de>
8920
8921 PR tree-optimization/92069
8922 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8923 cycles do not set vect_nested_cycle on the latch definition.
8924
8925 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8926
8927 * function-abi.h (expr_callee_abi): Declare.
8928 * function-abi.cc (expr_callee_abi): New function.
8929
8930 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8931
8932 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8933 into [1,MAX].
8934 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8935 non-zero being represented as [1,MAX].
8936
8937 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8938
8939 * tree-sra.c (dump_access): Add missing braces.
8940
8941 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8942
8943 * config/darwin.c (machopic_indirection_name): Rework the
8944 function to emit linker-visible symbols only for indirections
8945 in the data section. Clean up the code and update comments.
8946
8947 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8948
8949 * config/darwin.c (machopic_indirect_data_reference): Remove
8950 redundant code.
8951
8952 2019-10-13 Nathan Sidwell <nathan@acm.org>
8953
8954 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8955
8956 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8957
8958 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8959 c99_runtime.
8960
8961 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8962
8963 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8964 so non-virutal are before virutals.
8965 (output_function): Avoid body modifications.
8966
8967 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8968
8969 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8970 %r22. Load function address before global pointer.
8971 (pa_attr_length_indirect_call): Adjust length of inline versions of
8972 $$dyncall.
8973 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8974 before normal cases. Update inline $$dyncall sequences to preserve
8975 function descriptor address in register %r22.
8976 (TRAMPOLINE_CODE_SIZE): Adjust.
8977 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8978 register %r22 contains trampoline address.
8979 (pa_trampoline_init): Adjust offsets.
8980 (pa_trampoline_adjust_address): Likewise.
8981 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8982
8983 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8984
8985 PR target/67183
8986 * config/darwin.c (machopic_indirection): New field to flag
8987 non-lazy-symbol-pointers in the data section.
8988 (machopic_indirection_name): Compute if an indirection should
8989 appear in the data section.
8990 (machopic_output_data_section_indirection): New callback split
8991 from machopic_output_indirection.
8992 (machopic_output_stub_indirection): Likewise.
8993 (machopic_output_indirection): Retain the code for non-lazy
8994 symbol pointers in their regular section.
8995 (machopic_finish): Use the new callbacks to order the indirection
8996 output.
8997
8998 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8999
9000 * config/darwin-protos.h (machopic_finish): Delete.
9001 * config/darwin.c (machopic_finish): Make static.
9002
9003 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9004
9005 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9006 sections when building kernel extension code.
9007
9008 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9009
9010 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9011 later standard."
9012
9013 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9014
9015 * config/pa/pa.c (pa_option_override): Remove trailing comma
9016 from warning.
9017
9018 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9019
9020 PR middle-end/92063
9021 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9022 <case VEC_COND_EXPR>: Return false with *handled = false.
9023 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9024 recursing on the first operand.
9025 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9026 instead of tree_could_trap_p.
9027 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9028
9029 2019-10-11 Jim Wilson <jimw@sifive.com>
9030
9031 PR rtl-optimization/91860
9032 * combine.c (subst): If new_rtx is a constant, also check for
9033 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9034
9035 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9036
9037 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9038 INTVAL when calling store_bit_field.
9039
9040 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9041
9042 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9043 size.
9044
9045 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9046
9047 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9048 vectorizable_live_operation.
9049 (vectorizable_live_operation): Adjust parameters.
9050 * tree-vect-stmts.c (vect_init_vector,
9051 vect_gen_widened_results_half): Fix typo in function comment.
9052 (can_vectorize_live_stmts): Adjust function comment.
9053 Adjust parameters. Adjust call to vectorizable_live_operation.
9054 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9055 (vect_transform_stmt): Adjust function comment. Adjust call to
9056 can_vectorize_live_stmts.
9057 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9058
9059 2019-10-11 Richard Biener <rguenther@suse.de>
9060
9061 PR tree-optimization/90883
9062 PR tree-optimization/91091
9063 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9064 alias-sets both for recording VN table entries and continuing
9065 walking after translating through copies. Handle same-sized
9066 reads from SSA names by returning the plain SSA name.
9067 (eliminate_dom_walker::eliminate_stmt): Properly handle
9068 non-size precision stores in redundant store elimination.
9069
9070 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9071
9072 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9073 (ggc_collect): Dump later to not interfere with release_page dump.
9074 (ggc_trim): New function.
9075 * ggc-none.c (ggc_trim): New.
9076 * ggc.h (ggc_trim): Declare.
9077
9078 2019-10-11 Richard Biener <rguenther@suse.de>
9079
9080 PR tree-optimization/92066
9081 PR tree-optimization/92046
9082 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9083 Fix bogus cost model check.
9084
9085 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9086
9087 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9088 (LANG_HOOKS_DECLS): Add it.
9089 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9090 update comment for omp_is_optional_argument.
9091 * omp-general.c (omp_is_allocatable_or_ptr): New.
9092 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9093 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9094 Fortran's optional arguments and allocatable/pointer scalars
9095 with use_device_addr.
9096
9097 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9098
9099 PR target/77918
9100 * config/s390/2827.md: Add new opcodes.
9101 * config/s390/2964.md: Likewise.
9102 * config/s390/3906.md: Likewise.
9103 * config/s390/8561.md: Likewise.
9104 * config/s390/s390-builtins.def (s390_vfchesb): Use
9105 the new vec_cmpgev4sf_quiet_nocc.
9106 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9107 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9108 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9109 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9110 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9111 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9112 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9113 * config/s390/s390-modes.def (CCSFPS): New mode.
9114 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9115 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9116 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9117 (s390_expand_vec_compare): Use non-signaling patterns where
9118 necessary.
9119 (s390_reverse_condition): Support CCSFPS.
9120 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9121 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9122 (asm_fcmp_op): Likewise.
9123 (*smaxv2df3_vx): Use pattern for quiet comparison.
9124 (*sminv2df3_vx): Likewise.
9125 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9126 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9127 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9128 (vec_cmplt<mode>_quiet_nocc): New expander.
9129 (vec_cmpge<mode>_quiet_nocc): New pattern.
9130 (vec_cmple<mode>_quiet_nocc): New expander.
9131 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9132 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9133 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9134 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9135 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9136 (vec_cmpungt<mode>): New expander.
9137 (vec_cmpunge<mode>): Likewise.
9138 (vec_cmpuneq<mode>): Use quiet patterns.
9139 (vec_cmpltgt<mode>): Allow only on z14+.
9140 (vec_cmpordered<mode>): Use quiet patterns.
9141 (vec_cmpunordered<mode>): Likewise.
9142 (VEC_CMP_EXPAND): Add ungt and unge.
9143
9144 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9145
9146 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9147 parameter.
9148 * lto-streamer-out.c: Include tree-dfa.h.
9149 (output_cfg): Do not use cfun.
9150 (lto_prepare_function_for_streaming): New.
9151 (output_function): Do not push cfun; do not initialize loop optimizer.
9152 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9153 * passes.c (ipa_write_summaries): Use it.
9154 (ipa_write_optimization_summaries): Do not modify bodies.
9155 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9156 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9157 * tree-ssa-dse.c (pass_dse::execute): Update use of
9158 renumber_gimple_stmt_uids.
9159 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9160
9161 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9162
9163 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9164 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9165
9166 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9167
9168 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9169 macros.
9170 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9171 Also define DFP macros for these conditions.
9172 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9173 DEC128_SUBNORMAL_MIN): Do not define.
9174 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9175 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9176
9177 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9178 Sandra Loosemore <sandra@codesourcery.com>
9179
9180 PR middle-end/26241
9181 * doc/lto.texi (IPA): Reference to the IPA passes.
9182 * doc/passes.texi (Pass manager): Add node IPA passes and
9183 description for each IPA pass.
9184
9185 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9186
9187 * ipa-reference.c: Do not include splay-tree.h
9188 (reference_vars_to_consider): Turn to hash map.
9189 (get_static_name, ipa_init, analyze_function, propagate,
9190 stream_out_bitmap, ipa_reference_write_optimization_summary,
9191 ipa_reference_write_optimization_summary): Update.
9192
9193 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9194
9195 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9196
9197 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9198
9199 * config/darwin.c: Lookup Objective C metadata and force indirection
9200 for IVAR refs.
9201
9202 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9203
9204 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9205 addresses.
9206 (mem_operand_gpr): Add check for prefixed addresses.
9207 (mem_operand_ds_form): Add check for prefixed addresses.
9208 (rs6000_legitimate_offset_address_p): If we support prefixed
9209 addresses, check for a 34-bit offset instead of 16-bit.
9210 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9211 Do not allow load/store with update if the address is prefixed.
9212 (rs6000_mode_dependent_address): If we support prefixed
9213 addresses, check for a 34-bit offset instead of 16-bit.
9214
9215 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9216
9217 PR target/77918
9218 * config/s390/vector.md (vcond_comparison_operator): New
9219 predicate.
9220 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9221
9222 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9223
9224 PR 87488
9225 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9226 -D.
9227 * configure.ac (--with-documentation-root-url): New option.
9228 * configure: Regenerate.
9229 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9230 option URL, add it as a new string field of the diagnostic option.
9231 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9232 (print_option_information): If get_option_url is non-NULL, call
9233 it, and if the result is non-NULL, potentially emit an escape
9234 sequence to markup the option text with the resulting URL.
9235 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9236 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9237 example of JSON output.
9238 * opts-diagnostic.h (get_option_url): New decl.
9239 * opts.c (get_option_url): New function.
9240 * toplev.c (general_init): Initialize the get_option_url callback.
9241
9242 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9243
9244 PR 87488
9245 * common.opt (fdiagnostics-urls=): New option.
9246 (diagnostic-url.h): Add SourceInclude.
9247 (diagnostic_url_rule): New enum.
9248 * diagnostic-color.c: Include "diagnostic-url.h".
9249 (diagnostic_urls_enabled_p): New function.
9250 * diagnostic-url.h: New file.
9251 * diagnostic.c: Include "diagnostic-url.h".
9252 (diagnostic_urls_init): New function.
9253 * diagnostic.h (diagnostic_urls_init): New decl.
9254 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9255 -fdiagnostics-urls to the list.
9256 (-fdiagnostics-urls): New option.
9257 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9258 (driver::global_initializations): Call diagnostic_urls_init.
9259 * opts-global.c (init_options_once): Likewise.
9260 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9261 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9262 show_urls.
9263 (pp_begin_url): New function.
9264 (pp_end_url): New function.
9265 (selftest::test_urls): New selftest.
9266 (selftest::pretty_print_c_tests): Call it.
9267 * pretty-print.h (pretty_printer::show_urls): New field.
9268 (pp_begin_url): New decl.
9269 (pp_end_url): New decl.
9270
9271 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9272
9273 PR target/92022
9274 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9275
9276 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9277
9278 PR target/88630
9279 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9280 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9281 also for TARGET_FPU_SH4_300.
9282 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9283 TARGET_SH4_300.
9284 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9285 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9286 (*negsf2_i): Split into ...
9287 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9288 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9289 (**abssf2_i): Split into ...
9290 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9291 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9292 (*negdf2_i): Split into ...
9293 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9294 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9295 (**abssf2_i): Split into ...
9296 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9297
9298 2019-10-10 Richard Biener <rguenther@suse.de>
9299
9300 PR middle-end/92046
9301 * opts.c (finish_options): Do not influence global --params
9302 from options that are adjustable per function.
9303 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9304 Apply --param adjustment based on active cost-model.
9305 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9306 further store-sinking when vectorization or if-conversion
9307 are not enabled.
9308
9309 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9310
9311 PR middle-end/92037
9312 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9313 rather than ggc_alloc_cleared to alloc symbol table.
9314 * toplev.c (general_init): Likewise.
9315 * cgraph.h (symbol_table): Explicitly construct every field.
9316
9317 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9318
9319 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9320 (PF_Z15): ... this.
9321 * config.gcc: Add z15 as option for --with-arch and --with-tune
9322 configure switches.
9323 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9324 error reporting for unsupported builtins.
9325 * config/s390/s390-opts.h (enum processor_type): Rename
9326 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9327 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9328 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9329 Likewise.
9330 * config/s390/s390-builtins.def: Likewise.
9331 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9332 (s390_expand_builtin): Add missing check for unsupported builtins.
9333 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9334 (s390_rtx_costs): Likewise.
9335 (s390_get_sched_attrmask): Rename arch13 to z15.
9336 (s390_get_unit_mask): Likewise.
9337 (s390_is_fpd): Likewise.
9338 (s390_is_fxd): Likewise.
9339 * config/s390/s390.h (enum processor_flags): Likewise.
9340 * config/s390/s390.md: Likewise.
9341 * config/s390/vector.md: Likewise.
9342 * config/s390/vx-builtins.md: Likewise.
9343 * config/s390/s390.opt: Add z15 to processor_type value.
9344
9345 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9346
9347 PR target/91035
9348 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9349 prototype.
9350 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9351 ("split_stack_data", "split_stack_call")
9352 ("split_stack_call_<mode>", "split_stack_cond_call")
9353 ("split_stack_cond_call_<mode>"): Remove.
9354 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9355 insn definition.
9356 * config/s390/s390.c (s390_output_split_stack_data): New function.
9357 (s390_expand_split_stack_prologue): Use the merged expander.
9358
9359 2019-10-09 Martin Sebor <msebor@redhat.com>
9360
9361 PR tree-optimization/90879
9362 * builtins.c (check_access): Avoid using maxbound when null.
9363 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9364 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9365 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9366 conditional.
9367 (get_range_strlen): Overwrite initial maxbound when non-null.
9368 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9369 changes.
9370 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9371 (used_only_for_zero_equality): New function.
9372 (handle_builtin_memcmp): Call it.
9373 (determine_min_objsize): Return an integer instead of tree.
9374 (get_len_or_size, strxcmp_eqz_result): New functions.
9375 (maybe_warn_pointless_strcmp): New function.
9376 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9377 between a longer string and a smaller array.
9378 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9379
9380 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9381
9382 * config/darwin.c (darwin_override_options): Make the check for
9383 Objective-C ABI version more specific for 64bit code.
9384
9385 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9386
9387 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9388 indicate that the new symbol is an indirection.
9389 (machopic_indirect_call_target): Likewise.
9390 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9391 (MACHO_SYMBOL_INDIRECTION_P): New.
9392 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9393
9394 2019-10-08 Jason Merrill <jason@redhat.com>
9395
9396 * doc/invoke.texi: Document -fconcepts-ts.
9397
9398 2019-10-09 Richard Biener <rguenther@suse.de>
9399
9400 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9401 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9402
9403 2019-10-08 Richard Biener <rguenther@suse.de>
9404
9405 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9406 (_stmt_vec_info::force_single_cycle): Likewise.
9407 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9408 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9409 * tree-vect-loop.c (vectorizable_reduction): Set
9410 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9411 (vect_transform_reduction): Use them to remove redundant code.
9412 (vect_transform_cycle_phi): Likewise.
9413
9414 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9415
9416 PR tree-optimization/90836
9417 * match.pd (popcount): New pattern.
9418
9419 2019-10-08 Martin Sebor <msebor@redhat.com>
9420
9421 PR middle-end/92026
9422 PR middle-end/92014
9423 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9424 again once nbytes has been set. Set the access size when not yet set.
9425
9426 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9427
9428 * config/darwin.c (machopic_select_section): Remove dead code for
9429 old Objective-C section selection method, replace with unreachable.
9430
9431 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9432
9433 * config/darwin.c (machopic_indirect_data_reference): Check for
9434 required indirections before making direct access to defined
9435 values.
9436 (machopic_output_indirection): Place the indirected pointes for
9437 required indirections into the non-lazy symbol pointers section.
9438 (darwin_encode_section_info):
9439 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9440 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9441
9442 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9443
9444 PR target/91994
9445 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9446 instead of ALL_SSE_REG to check if function call preserves some
9447 256-bit SSE registers.
9448
9449 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9450
9451 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9452 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9453 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9454
9455 2019-10-08 Richard Biener <rguenther@suse.de>
9456
9457 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9458 (_stmt_vec_info::is_reduc_info): Add.
9459 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9460 (vectorizable_condition): Remove.
9461 (vectorizable_shift): Likewise.
9462 (vectorizable_reduction): Adjust.
9463 (info_for_reduction): New.
9464 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9465 (vect_analyze_scalar_cycles_1): ... here.
9466 (vect_analyze_loop_operations): Adjust.
9467 (needs_fold_left_reduction_p): Simplify for single caller.
9468 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9469 for nested cycles not part of double reductions.
9470 (vect_model_reduction_cost): Pass in the reduction type.
9471 (info_for_reduction): New function.
9472 (vect_create_epilog_for_reduction): Use it, access reduction
9473 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9474 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9475 (vectorize_fold_left_reduction): Remove pointless assert.
9476 (vectorizable_reduction): Analyze the full reduction when
9477 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9478 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9479 stmt code-generation to vectorizable_* in most cases. Verify
9480 code-generation only for cases handled by
9481 vect_transform_reductuon.
9482 (vect_transform_reduction): Use info_for_reduction to get at
9483 reduction meta. Simplify.
9484 (vect_transform_cycle_phi): Likewise.
9485 (vectorizable_live_operation): Likewise.
9486 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9487 at the PHI node for STMT_VINFO_REDUC_TYPE.
9488 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9489 longer necessary code.
9490 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9491 (vectorizable_condition): Likewise. Get at reduction related
9492 info via info_for_reduction.
9493 (vect_analyze_stmt): Adjust.
9494 (vect_transform_stmt): Likewise.
9495 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9496 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9497
9498 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9499
9500 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9501 -fno-fp-int-builtin-inexact default for C2X.
9502
9503 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9504 Richard Biener <rguenther@suse.de>
9505
9506 PR tree-optimization/91532
9507 * tree-if-conv.c: Include tree-ssa-dse.h.
9508 (ifcvt_local_dce): Change param from bb to loop,
9509 and call dse_classify_store.
9510 (tree_if_conversion): Pass loop instead of loop->header as arg
9511 to ifcvt_local_dce.
9512 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9513 (delete_dead_or_redundant_assignment): Remove static qualifier from
9514 declaration, and add prototype in tree-ssa-dse.h.
9515 (dse_store_status): Move to tree-ssa-dse.h.
9516 (dse_classify_store): Remove static qualifier and add new tree param
9517 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9518 * tree-ssa-dse.h: New header.
9519
9520 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9521
9522 * config/darwin.c (machopic_output_indirection): Don't put
9523 hidden symbol indirections into the .data section, use the
9524 non-lazy symbol pointers section as normal.
9525 (darwin_encode_section_info): Record if a symbol is hidden.
9526 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9527 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9528
9529 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9530
9531 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9532 predicates instead of accessing bits directly.
9533 (machopic_indirect_call_target): Likewise.
9534 (machopic_output_indirection): Likewise.
9535 (darwin_encode_section_info): Improve description. Use renamed
9536 symbol flags. Use predicate macros for variables and functions.
9537 * config/darwin.h:
9538 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9539 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9540 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9541 (MACHO_SYMBOL_VARIABLE_P): New.
9542 (MACHO_SYMBOL_DEFINED_P):New.
9543 (MACHO_SYMBOL_STATIC_P): New.
9544 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9545 (SYMBOL_FLAG_SUBT_DEP): New.
9546 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9547
9548 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9549
9550 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9551 (msp430_expand_epilogue): Likewise.
9552 * config/msp430/predicates.md: Likewise.
9553 * config/msp430/msp430.md: Likewise.
9554 Replace blocks of 8 spaces with tabs.
9555
9556 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9557
9558 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9559 * config/msp430/msp430.c (msp430_split_addsi): New.
9560 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9561 a block of C code for splitting addsi.
9562
9563 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9564
9565 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9566 ix86_expand_rounddf_32): Reorder functions.
9567 * config/i386/i386-protos.h: Update.
9568
9569 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9570
9571 * config.in: Regenerate.
9572 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9573 Add new "Yx" constraint.
9574 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9575 function.
9576 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9577 prototype.
9578 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9579 code/data region to be selected in the small memory model.
9580 (msp430_section_attr): Don't warn if the "section" and "lower"
9581 attributes are used together.
9582 (msp430_handle_generic_attribute): Likewise.
9583 (msp430_var_in_low_mem): New function.
9584 (TARGET_ENCODE_SECTION_INFO): Define.
9585 (msp430_encode_section_info): New function.
9586 (gen_prefix): Return early in the small memory model.
9587 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9588 ".lower" prefix if -m{code,data}-region=lower have been passed.
9589 (msp430_output_aligned_decl_common): Emit common symbols when
9590 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9591 set.
9592 (TARGET_ASM_FILE_END): Define.
9593 (msp430_file_end): New function.
9594 (msp430_do_not_relax_short_jumps): Allow relaxation when
9595 function will be in the lower region.
9596 (msp430_op_not_in_high_mem): New function.
9597 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9598 the 'X' operand selector.
9599 Clarify comment for 'x' operand selector.
9600 * config/msp430/msp430.h (LINK_SPEC): Propagate
9601 -m{code,data}-region to the linker via spec function
9602 msp430_propagate_region_opt.
9603 (msp430_propagate_region_opt): New prototype.
9604 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9605 (SYMBOL_FLAG_LOW_MEM): Define.
9606 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9607 selector.
9608 (zero_extendqihi2): Fix operand number used by "%X" selector.
9609 (zero_extendqisi2): Likewise.
9610 (zero_extendhisi2): Likewise.
9611 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9612 (movhi): Likewise.
9613 (addqi3): Likewise.
9614 (addhi3): Likewise.
9615 (addsi3): Likewise.
9616 (addhi3_cy): Likewise.
9617 (addchi4_cy): Likewise.
9618 (subqi3): Likewise.
9619 (subhi3): Likewise.
9620 (subsi3): Likewise.
9621 (bic<mode>3): Likewise.
9622 (and<mode>3): Likewise.
9623 (ior<mode>3): Likewise.
9624 (xor<mode>3): Likewise.
9625 (slli_1): Add missing "%X" operand selector.
9626 (slll_1): Likewise.
9627 (slll_2): Likewise.
9628 (srai_1): Likewise.
9629 (sral_1): Likewise.
9630 (sral_2): Likewise.
9631 (srli_1): Likewise.
9632 (srll_1): Likewise.
9633 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9634 selector.
9635 (cbranchhi4_real): Likewise.
9636 (cbranchqi4_reversed): Likewise.
9637 (cbranchhi4_reversed): Likewise.
9638 (*bitbranch<mode>4): Likewise.
9639 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9640 * config/msp430/msp430.opt (mcode-region=): Set default to
9641 MSP430_REGION_LOWER. Improve docstring.
9642 (mdata-region=): Likewise.
9643 (muse-lower-region-prefix): New option.
9644 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9645 mdata-region=none multilib.
9646 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9647 mdata-region=none multilib.
9648 MULTILIB_EXCEPTIONS: Remove.
9649 MULTILIB_REQUIRED: Define.
9650 * configure: Regenerate.
9651 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9652 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9653 * doc/extend.texi: Clarify comment for {upper,lower,either}
9654 function attributes.
9655 Add separate description for "lower" variable attribute.
9656
9657 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9658
9659 PR target/77918
9660 * optabs-tree.c (vcond_icode_p): New function.
9661 (vcond_eq_icode_p): Likewise.
9662 (expand_vec_cond_expr_p): Use vcond_icode_p and
9663 vcond_eq_icode_p.
9664 * optabs.c (can_vcond_compare_p): New function.
9665 * optabs.h (can_vcond_compare_p): Likewise.
9666
9667 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9668
9669 PR target/77918
9670 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9671 caller passes a non-trapping condition.
9672 (is_gimple_condexpr): Allow trapping conditions.
9673 (is_gimple_condexpr_1): New helper function.
9674 (is_gimple_condexpr_for_cond): New function, acts like old
9675 is_gimple_condexpr.
9676 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9677 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9678 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9679 * gimplify.c (gimplify_cond_expr): Use
9680 is_gimple_condexpr_for_cond.
9681 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9682 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9683 VEC_COND_EXPR.
9684 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9685 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9686 is_gimple_condexpr_for_cond, remove pointless tmp check
9687 (forward_propagate_into_cond): Remove pointless tmp check.
9688
9689 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9690
9691 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9692 match that of other gsi_next_* functions. Adjust the comment.
9693 (gsi_start_nonvirtual_phis): New function.
9694 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9695 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9696
9697 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9698
9699 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9700 setjmp situation here. Fix a verb's ending: "the exact variables or
9701 elements for which there are warnings depends" -> "... depend".
9702
9703 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9704
9705 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9706
9707 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9708
9709 * ipa-prop.c (ipa_vr::nonzero_p): New.
9710 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9711 non-zero range.
9712 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9713 * tree-vrp.c (range_has_numeric_bounds_p): New.
9714 (range_int_cst_p): Use range_has_numeric_bounds_p.
9715 (get_range_op_handler): New.
9716 (supported_types_p): New.
9717 (defined_ranges_p): New.
9718 (drop_undefines_to_varying): New.
9719 (range_fold_binary_symbolics_p): New.
9720 (range_fold_unary_symbolics_p): New.
9721 (range_fold_unary_expr): Extract out into above functions.
9722 (range_fold_binary_expr): Same.
9723 (value_range_base::normalize_addresses): New.
9724 (value_range_base::normalize_symbolics): Normalize addresses.
9725 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9726
9727 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9728
9729 * tree-vrp.c (value_range_base::singleton_p): Use
9730 value_range_base::num_pairs instead of vrp_val_is* to check
9731 if a range has one sub-range.
9732
9733 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9734
9735 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9736 DEF is not a true earlyclobber but is tied to a specific input
9737 operand, and so is effectively earlyclobber wrt inputs that have
9738 different values.
9739 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9740
9741 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9742
9743 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9744 (pod_mode): Mark operators likewise.
9745 (scalar_int_mode): Mark non-default constructors and
9746 operators with CONSTEXPR.
9747 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9748 (fixed_size_mode): Likewise.
9749
9750 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9751
9752 PR target/91994
9753 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9754 and wrap the unspec_volatile in a parallel.
9755 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9756 the unspec_volatile.
9757 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9758 unspec_volatile to be wrapped in a parallel.
9759 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9760 (ix86_add_reg_usage_to_vzerouppers): New functions.
9761 (rest_of_handle_insert_vzeroupper): Use them to add register
9762 usage information to the vzeroupper instructions.
9763
9764 2019-10-07 Richard Biener <rguenther@suse.de>
9765
9766 PR tree-optimization/91975
9767 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9768 handle invariants.
9769
9770 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9771
9772 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9773 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9774
9775 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9776
9777 * config/darwin.c (darwin_override_options): Adjust objective-c
9778 ABI version error messages to avoid punctuation and contracted
9779 negations.
9780
9781 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9782
9783 * ipa-inline.c: Fix type; compute size rather than self_size
9784 for size of caller function.
9785
9786 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9787
9788 PR target/59888
9789 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9790 choose const_data section for constants with relocations.
9791 (machopic_select_section): Pass relocation flag to
9792 darwin_rodata_section ().
9793
9794 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9795
9796 PR tree-optimization/91734
9797 * generic-match-head.c: Include fold-const-call.h.
9798 * match.pd (sqrt(x) cmp c): Check the boundary value and
9799 in case inexact computation of c*c affects comparison of the boundary,
9800 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9801 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9802 for -frounding-math. For c2, try the next smaller or larger floating
9803 point constant depending on comparison code and if it has the same
9804 sqrt as c2, use it instead of c2.
9805
9806 2019-10-04 Martin Sebor <msebor@redhat.com>
9807
9808 PR middle-end/91977
9809 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9810 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9811 uninitialized objects.
9812
9813 2019-10-04 Martin Sebor <msebor@redhat.com>
9814
9815 * builtins.c (compute_objsize): Add an argument.
9816 * tree-object-size.c (addr_object_size): Same.
9817 (compute_builtin_object_size): Same.
9818 * tree-object-size.h (compute_builtin_object): Same.
9819
9820 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9821
9822 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9823
9824 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9825
9826 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9827
9828 2019-10-04 Martin Jambor <mjambor@suse.cz>
9829
9830 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9831 fntype when switching to calling memcpy instead of memset.
9832
9833 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9834
9835 * hash-table.h (hash_table::empty_slow): Don't assign
9836 size_t values to int variables.
9837
9838 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9839
9840 * expr.c (convert_mode_scalar): Remove shadowing local var.
9841 (emit_block_move): Rename local vars.
9842 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9843 (emit_push_insn): Rename local vars.
9844 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9845 shadowing local vars.
9846 (store_constructor): Remove shadowing local vars. Rename local var.
9847 (store_field, expand_cond_expr_using_cmove,
9848 expand_expr_real_2): Remove shadowing local vars.
9849 (expand_expr_real_1,
9850 do_store_flag): Remove shadowing local vars. Rename local vars.
9851
9852 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9853
9854 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9855
9856 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9857
9858 * genmatch.c (commutate): Rename local var.
9859 (lower_cond): Reuse local var.
9860 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9861 dt_operand::gen, dt_operand::gen_gimple_expr,
9862 dt_simplify::gen): Add a param. Rename generated vars.
9863 (decision_tree::insert_operand,
9864 (capture_info::walk_match, capture_info::walk_result,
9865 capture_info::walk_c_expr): Rename local vars.
9866 (expr::gen_transform): Rename generated vars.
9867 Use snprintf. Rename local vars.
9868 (capture::gen_transform, dt_operand::get_name,
9869 dt_operand::gen_opname): Rename generated vars.
9870 (write_predicate): Adjust call to gen_kids.
9871 (parser::get_internal_capture_id): Rename generated vars.
9872 (parser::parse_expr): Rename local vars.
9873 (parser::parse_if): Remove local var.
9874 (parser::parse_pattern, add_operator): Rename local vars.
9875
9876 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9877
9878 * builtins.def (DEF_C2X_BUILTIN): New macro.
9879 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9880 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9881 (strndup): Use DEF_C2X_BUILTIN.
9882 * coretypes.h (enum function_class): Add function_c2x_misc.
9883
9884 2019-10-04 Maya Rashish <coypu@sdf.org>
9885
9886 * ira-color.c (update_costs_from_allocno): Call
9887 ira_init_register_move_cost_if_necessary.
9888
9889 2019-10-04 Jeff Law <law@redhat.com>
9890
9891 * config/h8300/h8300.md (cpymemsi): Disable.
9892 (movmd, movmd_internal_<mode>, movstr, movsd):
9893 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9894 (movmd splitter, movsd splitter): Likewise.
9895
9896 * range-op.cc (range_tests): Avoid two tests when ints and
9897 shorts are the same size.
9898
9899 2019-10-04 Richard Biener <rguenther@suse.de>
9900
9901 PR lto/91968
9902 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9903 BLOCK_VARS.
9904
9905 2019-10-04 Richard Biener <rguenther@suse.de>
9906
9907 PR tree-optimization/91982
9908 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9909 against EXTRACT_LAST_REDUCTION.
9910 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9911
9912 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9913
9914 * range-op.o (value_range_from_overflowed_bounds): Rename from
9915 adjust_overflow_bound.
9916 (value_range_with_overflow): Rename from
9917 create_range_with_overflow.
9918 (create_possibly_reversed_range): Adjusted for above renames.
9919 (operator_*::wi_fold): Same.
9920 (cross_product_operator::wi_cross_productor): Same.
9921
9922 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9923
9924 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9925 -Wshadow=compatible-local): Fix description.
9926 Add an example where -Wshadow=compatible-local does not
9927 warn.
9928
9929 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9930
9931 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9932
9933 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9934 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9935
9936 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9937
9938 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9939 can_move_by_pieces issue.
9940
9941 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9942
9943 PR target/87243
9944 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9945 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9946 is available and the user has not set one on the command line.
9947
9948 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9949
9950 PR target/91769
9951 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9952 instead of REGNO equality check on addr.reg.
9953
9954 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9955
9956 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9957 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9958 * doc/invoke.texi (inline-heuristics-hint-percent,
9959 inline-heuristics-hint-percent-O2): Document.
9960 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9961 hint attribute.
9962 (can_inline_edge_by_limits_p): Use it.
9963
9964 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9965
9966 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9967 to print CONST_DOUBLEs.
9968
9969 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9970
9971 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9972 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9973 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9974
9975 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9976
9977 * Makefile.in (OBJS): Add range.o and range-op.o.
9978 Remove wide-int-range.o.
9979 * function-tests.c (test_ranges): New.
9980 (function_tests_c_tests): Call test_ranges.
9981 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9982 range_fold_unary_expr instead of extract_range_from_unary_expr.
9983 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9984 * range-op.cc: New file.
9985 * range-op.h: New file.
9986 * range.cc: New file.
9987 * range.h: New file.
9988 * selftest.h (range_tests): New prototype.
9989 * ssa.h: Include range.h.
9990 * tree-vrp.c (value_range_base::value_range_base): New
9991 constructors.
9992 (value_range_base::singleton_p): Do not call
9993 ranges_from_anti_range until sure we will need to.
9994 (value_range_base::type): Rename gcc_assert to
9995 gcc_checking_assert.
9996 (vrp_val_is_max): New argument.
9997 (vrp_val_is_min): Same.
9998 (wide_int_range_set_zero_nonzero_bits): Move from
9999 wide-int-range.cc.
10000 (extract_range_into_wide_ints): Remove.
10001 (extract_range_from_multiplicative_op): Remove.
10002 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10003 from extract_range_from_binary_expr.
10004 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10005 from extract_range_from_binary_expr.
10006 (extract_range_from_binary_expr): Remove.
10007 (normalize_for_range_ops): New.
10008 (range_fold_binary_expr): New.
10009 (range_fold_unary_expr): New.
10010 (value_range_base::num_pairs): New.
10011 (value_range_base::lower_bound): New.
10012 (value_range_base::upper_bound): New.
10013 (value_range_base::upper_bound): New.
10014 (value_range_base::contains_p): New.
10015 (value_range_base::invert): New.
10016 (value_range_base::union_): New.
10017 (value_range_base::intersect): New.
10018 (range_compatible_p): New.
10019 (value_range_base::operator==): New.
10020 (determine_value_range_1): Call range_fold_*expr instead of
10021 extract_range_from_*expr.
10022 * tree-vrp.h (class value_range_base): Add new constructors.
10023 Add methods for union_, intersect, operator==, contains_p,
10024 num_pairs, lower_bound, upper_bound, invert.
10025 (vrp_val_is_min): Add handle_pointers argument.
10026 (vrp_val_is_max): Same.
10027 (extract_range_from_unary_expr): Remove.
10028 (extract_range_from_binary_expr): Remove.
10029 (range_fold_unary_expr): New.
10030 (range_fold_binary_expr): New.
10031 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10032 range_fold_binary_expr instead of extract_range_from_binary_expr.
10033 (vr_values::extract_range_basic): Same.
10034 (vr_values::extract_range_from_unary_expr): Call
10035 range_fold_unary_expr instead of extract_range_from_unary_expr.
10036 * wide-int-range.cc: Remove.
10037 * wide-int-range.h: Remove.
10038
10039 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10040
10041 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10042 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10043 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10044 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10045 macro.
10046
10047 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10048
10049 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10050 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10051 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10052 * glimits.h: Likewise.
10053
10054 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10055
10056 PR rtl-optimization/91976
10057 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10058 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10059 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10060
10061 2019-10-02 Martin Sebor <msebor@redhat.com>
10062
10063 PR tree-optimization/80936
10064 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10065
10066 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10067
10068 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10069 instead of reg_class_contents[ALL_REGS].
10070
10071 2019-09-30 Jason Merrill <jason@redhat.com>
10072
10073 Add some hash_map_safe_* functions like vec_safe_*.
10074 * hash-map.h (default_hash_map_size): New variable.
10075 (create_ggc): Use it as default argument.
10076 (hash_map_maybe_create, hash_map_safe_get)
10077 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10078
10079 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10080
10081 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10082 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10083 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10084 (can_inline_edge_by_limits_p): Use it.
10085 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10086 (want_inline_small_function_p): Use O2 bounds.
10087 (edge_badness): LIkewise.
10088 * opts.c (default_options): Add OPT_finline_functions.
10089 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10090 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10091 New parameters.
10092 * doc/invoke.texi (-finline-functions): Update documentation.
10093 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10094 inline-min-speedup-O2): Document.
10095 (early-inlining-insns-O2): Simplify docs.
10096
10097 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10098
10099 PR rtl-optimization/87047
10100 * ifcvt.c (average_cost): New static function. Use it...
10101 (noce_process_if_block): ... here.
10102
10103 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10104
10105 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10106 * config/rs6000/rs6000-string.c (expand_block_move): Add
10107 might_overlap parm.
10108 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10109 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10110
10111 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10112
10113 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10114 (expand_builtin_memcpy): Use might_overlap parm.
10115 (expand_builtin_mempcpy_args): Use might_overlap parm.
10116 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10117 (expand_builtin_memory_copy_args): Add might_overlap parm.
10118 * expr.c (emit_block_move_via_cpymem): Rename to
10119 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10120 or movmem optab as appropriate.
10121 (emit_block_move_hints): Add might_overlap parm, do the right
10122 thing for might_overlap==true.
10123 * expr.h (emit_block_move_hints): Update prototype.
10124
10125 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10126
10127 * tree-eh.h (unsplit_eh_edges): Declare.
10128 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10129 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10130 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10131 (struct store_immediate_info): Add lp_nr field.
10132 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10133 initialize lp_nr with it.
10134 (struct merged_store_group): Add lp_nr and only_constants fields.
10135 (merged_store_group::merged_store_group): Initialize them.
10136 (merged_store_group::can_be_merged_into): Deal with them.
10137 (pass_store_merging): Rename terminate_and_release_chain into
10138 terminate_and_process_chain.
10139 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10140 renaming and remove useless assertions.
10141 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10142 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10143 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10144 instead of always recomputing it and compare lp_nr.
10145 (imm_store_chain_info::output_merged_store): If the group is in an
10146 active EH region, register new stores if they can throw. Moreover,
10147 if the insertion has created new basic blocks, adjust the PHI nodes
10148 of the post landing pad.
10149 (imm_store_chain_info::output_merged_stores): If the original stores
10150 are in an active EH region, deregister them.
10151 (lhs_valid_for_store_merging_p): Prettify.
10152 (adjust_bit_pos): New function extracted from...
10153 (mem_valid_for_store_merging): ...here. Use it for the base address
10154 and also for the offset if it is the addition of a constant.
10155 (lp_nr_for_store): New function.
10156 (pass_store_merging::process_store): Change return type to bool.
10157 Call lp_nr_for_store to initialize the store info. Propagate the
10158 return status of various called functions to the return value.
10159 (store_valid_for_store_merging_p): New predicate.
10160 (enum basic_block_status): New enumeration.
10161 (get_status_for_store_merging): New function.
10162 (pass_store_merging::execute): If the function can throw and catch
10163 non-call exceptions, unsplit the EH edges on entry and clean up the
10164 CFG on exit if something changed. Call get_status_for_store_merging
10165 for every basic block and keep the chains open across basic blocks
10166 when possible. Terminate and process open chains at the end, if any.
10167
10168 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10169
10170 * reginfo.c (globalize_reg): Fix shadowed variable in
10171 function_abis walk.
10172
10173 2019-10-02 Martin Jambor <mjambor@suse.cz>
10174
10175 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10176 do not compute some stuff when set.
10177 (cgraph_node::create_edge): Likewise.
10178 (cgraph_node::create_indirect_edge): Renamed last parameter to
10179 coning_p and flipped its meaning, don't even calculate
10180 inline_failed when set.
10181 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10182 (symbol_table::::create_edge): Likewise.
10183 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10184 the default value.
10185 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10186 call graph edge creating functions.
10187
10188 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10189
10190 PR c++/91222
10191 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10192 namespace types.
10193
10194 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10195
10196 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10197
10198 2019-10-02 Richard Biener <rguenther@suse.de>
10199
10200 * tree-vectorizer.h (vect_transform_reduction): Declare.
10201 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10202 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10203 stmt transform to ...
10204 (vect_transform_reduction): ... this.
10205
10206 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10207
10208 * omp-low.c (lower_omp_target): Dereference optional argument
10209 to work with the right pointer.
10210
10211 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10212
10213 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10214 false.
10215 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10216 * langhooks.h (omp_is_optional_argument): New hook.
10217 * omp-general.c (omp_is_optional_argument): New.
10218 * omp-general.h (omp_is_optional_argument): New declaration.
10219 * omp-low.c (lower_omp_target): Create temporary for received value
10220 and take the address for new_var if the original variable was a
10221 DECL_BY_REFERENCE. Use size of referenced object when a
10222 pass-by-reference optional argument used as argument to firstprivate.
10223
10224 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10225
10226 PR tree-optimization/91940
10227 * tree-vect-patterns.c: Include tree-vector-builder.h and
10228 vec-perm-indices.h.
10229 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10230 unpromoting the argument back to uint16_t, or by converting into a
10231 rotate, or into shifts plus ior.
10232
10233 2019-10-02 Richard Biener <rguenther@suse.de>
10234
10235 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10236 New.
10237 (vect_transform_cycle_phi): Declare.
10238 * tree-vect-stmts.c (vect_transform_stmt): Call
10239 vect_transform_cycle_phi.
10240 * tree-vect-loop.c (vectorizable_reduction): Split out
10241 PHI transformation stage to ...
10242 (vect_transform_cycle_phi): ... here.
10243
10244 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10245
10246 PR middle-end/91957
10247 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10248 eliminable registers.
10249 (make_hard_regno_live): Likewise, and don't make them live.
10250
10251 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10252
10253 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10254 Call pp_emit_prefix.
10255 (layout::print_source_line): Likewise.
10256 (layout::start_annotation_line): Likewise.
10257 (diagnostic_show_locus): Remove call to temporarily clear the
10258 prefix.
10259 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10260 interaction of pp_set_prefix with rulers and fix-it hints.
10261 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10262 prefix when calling diagnostic_show_locus, rather than destroying
10263 it afterwards.
10264 (print_parseable_fixits): Temporarily clear prefix.
10265 * pretty-print.c (pp_format): Save and restore line_length, rather
10266 than assuming it is zero.
10267 (pp_output_formatted_text): Remove assertion that line_length is
10268 zero.
10269
10270 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10271
10272 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10273 Rename to ...
10274 (nonoverlapping_refs_since_match_p): ... this; handle also
10275 ARRAY_REFs.
10276 (alias_stats): Update stats.
10277 (dump_alias_stats): Likewise.
10278 (cheap_array_ref_low_bound): New function.
10279 (aliasing_matching_component_refs_p): Add partial_overlap
10280 argument;
10281 pass it to nonoverlapping_refs_since_match_p.
10282 (aliasing_component_refs_walk): Update call of
10283 aliasing_matching_component_refs_p
10284 (nonoverlapping_array_refs_p): New function.
10285 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10286 indirect_refs_may_alias_p): Update calls of
10287 nonoverlapping_refs_since_match_p.
10288
10289 2019-10-01 Maya Rashish <coypu@sdf.org>
10290
10291 PR target/85401
10292 * ira-color.c (allocno_copy_cost_saving): Call
10293 ira_init_register_move_cost_if_necessary.
10294
10295 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10296
10297 * Makefile.in (gnat_install_lib): New variable.
10298 * configure.ac: Substitute it.
10299 * configure: Regenerate.
10300
10301 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10302
10303 PR lto/91222
10304 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10305 is matched with non-C++ type
10306
10307 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10308
10309 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10310 after local CSE.
10311
10312 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10313
10314 * doc/invoke.texi (early-inlining-insns-O2): Document.
10315 (early-inlining-insns): Update.
10316 * params.def (early-inlining-insns-O2): New bound.
10317 (early-inlining-insns): Update docs.
10318 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10319
10320 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10321
10322 PR target/88562
10323 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10324 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10325 a memory access insn.
10326
10327 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10328
10329 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10330 vpmsumd.
10331
10332 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10333
10334 PR target/77918
10335 * config/s390/s390.c (s390_expand_vec_compare): Use
10336 gen_vec_cmpordered and gen_vec_cmpunordered.
10337 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10338 vec_unordered): Delete.
10339 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10340 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10341 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10342 (vec_cmp<code>): Generic dispatcher.
10343
10344 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10345
10346 PR target/77918
10347 * config/s390/vector.md (V_HW): Add V1TI in order to make
10348 vcond$a$b generate vcondv1tiv1tf.
10349
10350 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10351
10352 PR rtl-optimization/91948
10353 * ira-build.c (ira_create_allocno): Initialize
10354 ALLOCNO_CROSSED_CALLS_ABIS.
10355 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10356 than regno to ira_need_caller_save_p.
10357
10358 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10359
10360 * config/i386/i386-options.c
10361 (ix86_recompute_optlev_based_flags): New, moved out of...
10362 (ix86_option_override_internal): ... this. Call it.
10363 (ix86_override_options_after_change): Call it here too.
10364
10365 PR debug/91507
10366 * dwarf2out.c (override_type_for_decl_p): New.
10367 (gen_variable_die): Use it.
10368
10369 2019-10-01 Richard Biener <rguenther@suse.de>
10370
10371 * tree-vect-loop.c (vectorizable_reduction): Move variables
10372 to where they are used.
10373
10374 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10375
10376 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10377 (build_def_use): Use PC instead of CC0 in a comment.
10378
10379 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10380
10381 * rtl.def (CLOBBER_HIGH): Delete.
10382 * doc/rtl.texi (clobber_high): Remove documentation.
10383 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10384 (reg_is_clobbered_by_clobber_high): Delete.
10385 (gen_hard_reg_clobber_high): Likewise.
10386 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10387 * cfgexpand.c (expand_gimple_stmt): Likewise.
10388 * combine-stack-adj.c (single_set_for_csa): Likewise.
10389 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10390 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10391 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10392 * cse.c (invalidate_reg): Remove clobber_high parameter.
10393 (invalidate): Update call accordingly.
10394 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10395 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10396 (count_reg_usage, insn_live_p): Likewise.
10397 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10398 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10399 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10400 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10401 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10402 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10403 (mark_nonreg_stores_2): Likewise.
10404 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10405 (df_get_call_refs): Likewise.
10406 * dwarf2out.c (mem_loc_descriptor): Likewise.
10407 * emit-rtl.c (verify_rtx_sharing): Likewise.
10408 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10409 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10410 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10411 * genemit.c (gen_exp, gen_insn): Likewise.
10412 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10413 * haifa-sched.c (haifa_classify_rtx): Likewise.
10414 * ira-build.c (create_insn_allocnos): Likewise.
10415 * ira-costs.c (scan_one_insn): Likewise.
10416 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10417 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10418 * jump.c (mark_jump_label_1): Likewise.
10419 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10420 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10421 handling.
10422 (mark_not_eliminable): Likewise.
10423 * lra-lives.c (process_bb_lives): Likewise.
10424 * lra.c (new_insn_reg): Remove clobber_high parameter.
10425 (collect_non_operand_hard_regs): Likewise. Update call to new
10426 insn_reg. Remove CLOBBER_HIGH handling.
10427 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10428 to collect_non_operand_hard_regs.
10429 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10430 Update call to new_insn_reg.
10431 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10432 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10433 (move2add_note_store): Likewise.
10434 * print-rtl.c (print_pattern): Likewise.
10435 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10436 (if_test_bypass_p): Likewise.
10437 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10438 * reginfo.c (reg_scan_mark_refs): Likewise.
10439 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10440 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10441 (forget_old_reloads_1): Likewise.
10442 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10443 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10444 (dbr_schedule): Likewise.
10445 * resource.c (update_live_status, mark_referenced_resources)
10446 (mark_set_resources): Likewise.
10447 * rtl.c (copy_rtx): Likewise.
10448 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10449 (note_pattern_stores): Likewise.
10450 (reg_is_clobbered_by_clobber_high): Delete.
10451 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10452 CLOBBER_HIGH handling.
10453
10454 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10455
10456 PR target/91452
10457 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10458 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10459 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10460 Handle ARM_PCS_TLSDESC.
10461 (aarch64_tlsdesc_abi_id): New function.
10462 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10463 rtx instead of a list of clobbers and clobber_highs.
10464 (tlsdesc_small_<mode>): Update accordingly.
10465
10466 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10467
10468 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10469 extra callee_abi argument.
10470 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10471 Insert a CALLEE_ABI unspec into the call pattern as the second
10472 element in the PARALLEL.
10473 (aarch64_simd_call_p): Delete.
10474 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10475 the new CALLEE_ABI element of the PARALLEL.
10476 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10477 from the function type, if given.
10478 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10479 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10480 when passed the function_arg_info end marker.
10481 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10482 final argument of gen_sibcall.
10483 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10484 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10485 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10486 pattern.
10487 (call_value): Likewise operand 3.
10488 (sibcall): Likewise operand 2. Place the unspec before rather than
10489 after the return.
10490 (sibcall_value): Likewise operand 3.
10491 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10492 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10493 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10494 constraint strings.
10495 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10496
10497 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10498
10499 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10500 choose_hard_reg_mode.
10501 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10502
10503 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10504
10505 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10506 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10507 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10508
10509 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10510
10511 * diagnostic-show-locus.c (line_label::line_label): Initialize
10512 m_has_vbar.
10513 (line_label::comparator): Reverse the sort order by m_state_idx,
10514 so that when the list is walked backwards the labels appear in
10515 order of insertion into the rich_location.
10516 (line_label::m_has_vbar): New field.
10517 (layout::print_any_labels): When dealing with multiple labels at
10518 the same line and column, only print vertical bars for the one
10519 with the highest label_line.
10520 (selftest::test_one_liner_labels): Update test for multiple labels
10521 to expect the labels to be in the order of insertion into the
10522 rich_location. Add a test for many such labels, where the column
10523 numbers are out-of-order relative to the insertion order.
10524
10525 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10526
10527 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10528 (ix86_frame::expensive_count): Likewise.
10529 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10530 of use_fast_prologue_epilogue robust against incidental changes
10531 in function size.
10532
10533 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10534
10535 PR target/77918
10536 * config/s390/vector.md (vec_unordered<mode>): Call
10537 gen_vec_ordered<mode>.
10538
10539 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10540
10541 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10542 New pattern for ASRD.
10543 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10544 * internal-fn.def (IFN_DIV_POW2): New internal function.
10545 * optabs.def (sdiv_pow2_optab): New optab.
10546 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10547 Modify pattern to support new operation.
10548 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10549 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10550 Document new target selector.
10551
10552 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10553
10554 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10555 to test whether we're compiling a vector PCS function and to test
10556 whether the function needs to save a particular register.
10557 Remove the vector PCS handling of df_set_regs_ever_live.
10558 (aarch64_components_for_bb): Use crtl->abi to test whether
10559 the function needs to save a particular register.
10560 (aarch64_process_components): Use crtl->abi to test whether
10561 we're compiling a vector PCS function.
10562 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10563 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10564
10565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10566
10567 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10568 Delete.
10569 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10570 whether the block calls a function that clobbers more registers
10571 than the current function is allowed to.
10572 (aarch64_use_simple_return_insn_p): Delete.
10573 * config/aarch64/aarch64.md (simple_return): Remove condition.
10574
10575 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10576
10577 * function-abi.h (function_abi_aggregator): New class.
10578 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10579 function.
10580 * ira.c (update_equiv_regs_prescan): New function. Call
10581 set_paradoxical_subreg here rather than...
10582 (update_equiv_regs): ...here.
10583 (ira): Call update_equiv_regs_prescan.
10584
10585 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10586
10587 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10588 IN_TARGET_CODE.
10589 (call_used_or_fixed_regs): Likewise.
10590 (call_used_or_fixed_reg_p): Likewise.
10591 * reginfo.c (regs_invalidated_by_call): New macro.
10592
10593 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10594
10595 * shrink-wrap.c: Include function-abi.h.
10596 (requires_stack_frame_p): Use crtl->abi to test whether the
10597 current function can use a register without saving it first.
10598
10599 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10600
10601 * sel-sched-ir.h (_def::crosses_call): Replace with...
10602 (_def::crossed_call_abis): ..this new field.
10603 (def_list_add): Take a mask of ABIs instead of a crosses_call
10604 boolean.
10605 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10606 of _def accordingly.
10607 * sel-sched.c: Include function-abi.h.
10608 (hard_regs_data::regs_for_call_clobbered): Delete.
10609 (reg_rename::crosses_call): Replace with...
10610 (reg_rename::crossed_call_abis): ...this new field.
10611 (fur_static_params::crosses_call): Replace with...
10612 (fur_static_params::crossed_call_abis): ...this new field.
10613 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10614 (init_hard_regs_data): Use crtl->abi to test which registers the
10615 current function would need to save before it uses them.
10616 (mark_unavailable_hard_regs): Update handling of call-clobbered
10617 registers, using call_clobbers_in_region to find out which registers
10618 might be call-clobbered (but without taking -fipa-ra into account
10619 for now). Remove separate handling of partially call-clobbered
10620 registers.
10621 (verify_target_availability): Use crossed_call_abis instead of
10622 crosses_call.
10623 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10624 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10625
10626 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10627
10628 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10629 function to test whether a register is fully or partly clobbered.
10630
10631 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10632
10633 * rtlanal.c: Include function-abi.h.
10634 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10635 function and clobbers_reg_p to test whether the register
10636 is call-clobbered.
10637 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10638 to get the ABI of the called function and full_reg_clobbers to
10639 get the set of fully call-clobbered registers. Warn about the
10640 pitfalls of using this mode.
10641
10642 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10643
10644 * reload.c: Include function-abi.h.
10645 (find_equiv_reg): Use clobbers_reg_p to test whether either
10646 of the equivalent registers is clobbered by a call.
10647 * reload1.c: Include function-abi.h.
10648 (reg_reloaded_call_part_clobbered): Delete.
10649 (reload): Use crtl->abi to test which registers would need
10650 saving in the prologue before use.
10651 (find_reg): Likewise.
10652 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10653 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10654 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10655
10656 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10657
10658 * regrename.h (du_head::call_clobber_mask): New field.
10659 (du_head::need_caller_save_reg): Replace with...
10660 (du_head::call_abis): ...this new field.
10661 * regrename.c: Include function-abi.h.
10662 (call_clobbered_in_chain_p): New function.
10663 (check_new_reg_p): Use crtl->abi when deciding whether a register
10664 is free for use after RA. Use call_clobbered_in_chain_p to test
10665 whether a candidate register would be clobbered by a call.
10666 (find_rename_reg): Don't add call-clobber conflicts here.
10667 (rename_chains): Check call_abis instead of need_caller_save_reg.
10668 (merge_chains): Update for changes to du_head.
10669 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10670 target. Record the ABI identifier in call_abis and the set of
10671 fully or partially clobbered registers in call_clobber_mask.
10672 Add fully-clobbered registers to hard_conflicts here rather
10673 than in find_rename_reg.
10674 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10675 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10676 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10677 function-abi.h.
10678 * config/c6x/c6x.c: Likewise.
10679
10680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10681
10682 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10683 mode of the register when deciding whether it is no longer
10684 available after a call.
10685
10686 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10687
10688 * recog.c: Include function-abi.h.
10689 (peep2_find_free_register): Use crtl->abi when deciding whether
10690 a register is free for use after RA.
10691
10692 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10693
10694 * postreload-gcse.c: Include regs.h and function-abi.h.
10695 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10696 call insn target. Conservatively assume that partially-clobbered
10697 registers are altered.
10698
10699 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10700
10701 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10702 when deciding whether a register is free for use after RA.
10703 (reload_combine): Remove unnecessary use of fixed_reg_set.
10704 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10705 call insn target. Use reg_mode when testing whether a register
10706 is no longer available.
10707
10708 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10709
10710 * target.def (return_call_with_max_clobbers): Delete.
10711 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10712 * doc/tm.texi: Regenerate.
10713 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10714 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10715 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10716 (lra_reg::call_insn): Delete.
10717 * lra.c: Include function-abi.h.
10718 (initialize_lra_reg_info_element): Don't initialize the fields above.
10719 (lra): Use crtl->abi to test whether the current function needs to
10720 save a register in the prologue. Remove special pre-inheritance
10721 lra_create_live_ranges pass for flag_ipa_ra.
10722 * lra-assigns.c: Include function-abi.h
10723 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10724 function needs to save a register in the prologue.
10725 (lra_assign): Assert that registers aren't allocated to a
10726 conflicting register, rather than checking only for overlaps
10727 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10728 and for registers that are not live across a call.
10729 * lra-constraints.c (last_call_for_abi): New variable.
10730 (full_and_partial_call_clobbers): Likewise.
10731 (setup_next_usage_insn): Remove the register from
10732 full_and_partial_call_clobbers.
10733 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10734 whether the register needs a caller save.
10735 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10736 of call_used_or_fixed_regs.
10737 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10738 full_and_partial_call_clobbers.
10739 * lra-lives.c (check_pseudos_live_through_calls): Replace
10740 last_call_used_reg_set and call_insn arguments with an abi argument.
10741 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10742 as the set of conflicting registers.
10743 (calls_have_same_clobbers_p): Delete.
10744 (process_bb_lives): Track the ABI of the last call instead of an
10745 insn/HARD_REG_SET pair. Update calls to
10746 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10747 the set of registers that could be clobbered by an EH edge.
10748 Include partially-clobbered as well as fully-clobbered registers.
10749 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10750 * lra-remat.c: Include function-abi.h.
10751 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10752 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10753 registers and bitmap_view to combine them into dead_regs.
10754 (call_used_input_regno_present_p): Take a function_abi argument
10755 and use it to test whether a register is call-clobbered.
10756 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10757 call insn target. Update tje call to call_used_input_regno_present_p.
10758 (do_remat): Likewise.
10759 (lra_remat): Remove the initialization of call_used_regs_arr_len
10760 and call_used_regs_arr.
10761
10762 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10763
10764 * loop-iv.c: Include regs.h and function-abi.h.
10765 (simplify_using_initial_values): Use insn_callee_abi to get the
10766 ABI of the call insn target. Conservatively assume that
10767 partially-clobbered registers are altered.
10768
10769 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10770
10771 * function-abi.h (call_clobbers_in_region): Declare.
10772 (call_clobbered_in_region_p): New function.
10773 * function-abi.cc (call_clobbers_in_region): Likewise.
10774 * ira-int.h: Include function-abi.h.
10775 (ira_allocno::crossed_calls_abis): New field.
10776 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10777 (ira_need_caller_save_regs): New function.
10778 (ira_need_caller_save_p): Likewise.
10779 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10780 of call_used_or_fixed_regs.
10781 (do_reload): Use crtl->abi to test whether the current function
10782 needs to save a register in the prologue. Count registers that
10783 need to be saved rather than registers that don't.
10784 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10785 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10786 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10787 (propagate_some_info_from_allocno): Likewise.
10788 (copy_info_to_removed_store_destinations): Likewise.
10789 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10790 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10791 (ira_build): Use ira_need_caller_save_regs instead of
10792 call_used_or_fixed_regs.
10793 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10794 whether the current function would need to save a register
10795 before using it.
10796 (calculate_spill_cost): Likewise.
10797 (allocno_reload_assign): Use ira_need_caller_save_regs and
10798 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10799 * ira-conflicts.c (ira_build_conflicts): Use
10800 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10801 as the set of call-clobbered registers. Remove the
10802 call_used_or_fixed_regs mask from the calculation of
10803 temp_hard_reg_set and mask its use instead. Remove special
10804 handling of partially-clobbered registers.
10805 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10806 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10807 calculate the set of conflicting registers for calls that
10808 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10809 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10810 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10811 Use eh_edge_abi to calculate the set of registers that could
10812 be clobbered by an EH edge. Include partially-clobbered as
10813 well as fully-clobbered registers.
10814
10815 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10816
10817 * haifa-sched.c: Include function-abi.h.
10818 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10819 the function would need to save a register before using it.
10820
10821 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10822
10823 * gcse.c: Include function-abi.h.
10824 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10825 the call insn target. Invalidate partially call-clobbered
10826 registers as well as fully call-clobbered ones.
10827
10828 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10829
10830 * function.c (aggregate_value_p): Work out which ABI the
10831 function is using before testing which registers are at least
10832 partly preserved by a call.
10833
10834 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10835
10836 * early-remat.c: Include regs.h and function-abi.h.
10837 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10838 registers here.
10839 (early_remat::restrict_remat_for_unavail_regs): New function.
10840 (early_remat::restrict_remat_for_call): Likewise.
10841 (early_remat::process_block): Before calling emit_remat_insns
10842 for a previous call in the block, invalidate any candidates
10843 that would clobber call-preserved registers.
10844 (early_remat::emit_remat_insns_for_block): Likewise for the
10845 final call in a block. Do the same thing for live-in registers
10846 when calling emit_remat_insns at the head of a block.
10847
10848 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10849
10850 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10851 whether the current function needs to save at least part of a
10852 register before using it.
10853 (df_get_exit_block_use_set): Likewise for epilogue restores.
10854
10855 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10856
10857 * df-problems.c: Include regs.h and function-abi.h.
10858 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10859 sparse_invalidated_by_eh and dense_invalidated_by_call to
10860 dense_invalidated_by_eh.
10861 (df_print_bb_index): Update accordingly.
10862 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10863 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10864 that are clobbered by an EH edge. Clobber partially-clobbered
10865 registers as well as fully-clobbered ones.
10866 (df_md_confluence_n): Likewise.
10867 (df_rd_local_compute): Likewise. Update for changes to
10868 df_rd_problem_data.
10869 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10870 of registers that are clobbered by an EH edge. Includde partially-
10871 clobbered registers as well as fully-clobbered ones.
10872
10873 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10874
10875 * cselib.c (cselib_process_insn): If we know what mode a
10876 register was set in, check whether it is clobbered in that
10877 mode by a call. Only fall back to reg_raw_mode if that fails.
10878
10879 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10880
10881 * cse.c: Include regs.h and function-abi.h.
10882 (invalidate_for_call): Take the call insn as an argument.
10883 Use insn_callee_abi to get the ABI of the call and invalidate
10884 partially clobbered registers as well as fully clobbered ones.
10885 (cse_insn): Update call accordingly.
10886
10887 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10888
10889 * combine.c: Include function-abi.h.
10890 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10891 of the target of call insns. Invalidate partially-clobbered
10892 registers as well as fully-clobbered ones.
10893
10894 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10895
10896 * cfgloopanal.c: Include regs.h and function-abi.h.
10897 (init_set_costs): Use default_function_abi to test whether
10898 a general register is call-clobbered.
10899
10900 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10901
10902 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10903 instead of the call-clobbered sets.
10904
10905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10906
10907 * caller-save.c (setup_save_areas): Remove redundant |s of
10908 fixed_reg_set.
10909 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10910 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10911 value is useful.
10912
10913 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10914
10915 * rtl.h (predefined_function_abi): Declare.
10916 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10917 instead of a boolean call_save flag.
10918 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10919 accordingly.
10920 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10921 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10922 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10923 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10924 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10925 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10926 * reginfo.c (init_reg_modes_target): Likewise.
10927 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10928 instead of a boolean call_save flag.
10929 * targhooks.c: Include function-abi.h.
10930 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10931 using eh_edge_abi to choose the mode.
10932
10933 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10934
10935 * target.def (hard_regno_call_part_clobbered): Take an ABI
10936 identifier instead of an rtx_insn.
10937 * doc/tm.texi: Regenerate.
10938 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10939 (hook_bool_uint_uint_mode_false): New function.
10940 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10941 (hook_bool_uint_uint_mode_false): New function.
10942 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10943 Take an ABI identifier instead of an rtx_insn.
10944 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10945 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10946 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10947 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10948 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10949 Likewise.
10950 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10951 * cselib.c: Include function-abi.h.
10952 (cselib_process_insn): Update call to
10953 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10954 to get the appropriate ABI identifier.
10955 * function-abi.cc (predefined_function_abi::initialize): Update call
10956 to targetm.hard_regno_call_part_clobbered.
10957 * ira-conflicts.c (ira_build_conflicts): Likewise.
10958 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10959 * lra-constraints.c: Include function-abi.h.
10960 (need_for_call_save_p): Update call to
10961 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10962 to get the appropriate ABI identifier.
10963 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10964 * regcprop.c (copyprop_hardreg_forward_1): Update call
10965 to targetm.hard_regno_call_part_clobbered.
10966 * reginfo.c (choose_hard_reg_mode): Likewise.
10967 * regrename.c (check_new_reg_p): Likewise.
10968 * reload.c (find_equiv_reg): Likewise.
10969 * reload1.c (emit_reload_insns): Likewise.
10970 * sched-deps.c: Include function-abi.h.
10971 (deps_analyze_insn): Update call to
10972 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10973 to get the appropriate ABI identifier.
10974 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10975 call to targetm.hard_regno_call_part_clobbered.
10976 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10977
10978 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10979
10980 * config/i386/i386.c: Include function-abi.h.
10981 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10982 if they preserve some 256-bit or 512-bit SSE registers.
10983
10984 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10985
10986 * target.def (insn_callee_abi): New hook.
10987 (remove_extra_call_preserved_regs): Delete.
10988 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10989 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10990 * doc/tm.texi: Regenerate.
10991 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10992 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10993 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10994 insn argument.
10995 (aarch64_remove_extra_call_preserved_regs): Delete.
10996 (aarch64_insn_callee_abi): New function.
10997 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10998 (TARGET_INSN_CALLEE_ABI): New macro.
10999 * rtl.h (get_call_fndecl): Declare.
11000 (cgraph_rtl_info): Fix formatting. Tweak comment for
11001 function_used_regs. Remove function_used_regs_valid.
11002 * rtlanal.c (get_call_fndecl): Moved from final.c
11003 * function-abi.h (insn_callee_abi): Declare.
11004 (target_function_abi_info): Mention insn_callee_abi.
11005 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11006 way to get_call_reg_set_usage did.
11007 (insn_callee_abi): New function.
11008 * regs.h (get_call_reg_set_usage): Delete.
11009 * final.c: Include function-abi.h.
11010 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11011 function_used_regs before the main loop rather than afterwards.
11012 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11013 if function_used_regs ends up not being useful.
11014 (get_call_fndecl): Move to rtlanal.c
11015 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11016 * caller-save.c: Include function-abi.h.
11017 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11018 instead of get_call_reg_set_usage.
11019 * cfgcleanup.c: Include function-abi.h.
11020 (old_insns_match_p): Use insn_callee_abi instead of
11021 get_call_reg_set_usage.
11022 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11023 a tree.
11024 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11025 function_used_regs.
11026 * df-scan.c: Include function-abi.h.
11027 (df_get_call_refs): Use insn_callee_abi instead of
11028 get_call_reg_set_usage.
11029 * ira-lives.c: Include function-abi.h.
11030 (process_bb_node_lives): Use insn_callee_abi instead of
11031 get_call_reg_set_usage.
11032 * lra-lives.c: Include function-abi.h.
11033 (process_bb_lives): Use insn_callee_abi instead of
11034 get_call_reg_set_usage.
11035 * postreload.c: Include function-abi.h.
11036 (reload_combine): Use insn_callee_abi instead of
11037 get_call_reg_set_usage.
11038 * regcprop.c: Include function-abi.h.
11039 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11040 get_call_reg_set_usage.
11041 * resource.c: Include function-abi.h.
11042 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11043 instead of get_call_reg_set_usage.
11044 * var-tracking.c: Include function-abi.h.
11045 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11046 get_call_reg_set_usage.
11047
11048 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11049
11050 * target.def (fntype_abi): New target hook.
11051 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11052 * doc/tm.texi: Regenerate.
11053 * target.h (predefined_function_abi): Declare.
11054 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11055 if defined.
11056 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11057 * config/aarch64/aarch64.c: Include function-abi.h.
11058 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11059 (TARGET_FNTYPE_ABI): Define.
11060
11061 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11062
11063 * Makefile.in (OBJS): Add function-abi.o.
11064 (GTFILES): Add function-abi.h.
11065 * function-abi.cc: New file.
11066 * function-abi.h: Likewise.
11067 * emit-rtl.h (rtl_data::abi): New field.
11068 * function.c: Include function-abi.h.
11069 (prepare_function_start): Initialize crtl->abi.
11070 * read-rtl-function.c: Include regs.h and function-abi.h.
11071 (read_rtl_function_body): Initialize crtl->abi.
11072 (read_rtl_function_body_from_file_range): Likewise.
11073 * reginfo.c: Include function-abi.h.
11074 (init_reg_sets_1): Initialize default_function_abi.
11075 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11076 when making a register global.
11077 * target-globals.h (this_target_function_abi_info): Declare.
11078 (target_globals::function_abi_info): New field.
11079 (restore_target_globals): Copy it.
11080 * target-globals.c: Include function-abi.h.
11081 (default_target_globals): Initialize the function_abi_info field.
11082 (target_globals): Allocate it.
11083 (save_target_globals): Free it.
11084
11085 2019-09-30 Nick Clifton <nickc@redhat.com>
11086
11087 PR target/85978
11088 * config/frv/frv.c (frv_register_move_cost): Add break statements
11089 to avoid falling through to the wrong cases. Tidy code.
11090
11091 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11092
11093 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11094 For multi-registers modes, test how big each register part is.
11095
11096 2019-09-30 Nick Clifton <nickc@redhat.com>
11097
11098 PR target/59205
11099 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11100 (TARGET_ASM_SELECT_SECTION): Remove definition.
11101 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11102
11103 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11104
11105 * emit-rtl.c (init_raw_REG): New function.
11106 (gen_raw_REG): Use init_raw_REG.
11107 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11108 macros.
11109 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11110 * rtl.h (rtx_init): New function.
11111 (rtx_alloca): New function.
11112 (init_raw_REG): New function.
11113 (alloca_raw_REG): New macro.
11114
11115 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11116
11117 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11118 (pcrel_local_address): Replace pcrel_address predicate, use the
11119 new function address_to_insn_form.
11120 (pcrel_external_address): Replace with new implementation using
11121 address_to_insn_form..
11122 (prefixed_mem_operand): Delete predicate which is now unused.
11123 (pcrel_external_mem_operand): Delete predicate which is now
11124 unused.
11125 * config/rs6000/rs6000-protos.h (enum insn_form): New
11126 enumeration.
11127 (enum non_prefixed_form): New enumeration.
11128 (address_to_insn_form): New declaration.
11129 (prefixed_load_p): New declaration.
11130 (prefixed_store_p): New declaration.
11131 (prefixed_paddi_p): New declaration.
11132 (rs6000_asm_output_opcode): New declaration.
11133 (rs6000_final_prescan_insn): Move declaration and update calling
11134 signature.
11135 (address_is_prefixed): New helper inline function.
11136 * config/rs6000/rs6000.c(print_operand_address): Check for either
11137 PC-relative local symbols or PC-relative external symbols.
11138 (rs6000_emit_move): Support loading PC-relative addresses.
11139 (mode_supports_prefixed_address_p): Delete, no longer used.
11140 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11141 (address_to_insn_form): New function to decode an address format.
11142 (reg_to_non_prefixed): New function to identify what the
11143 non-prefixed memory instruction format is for a register.
11144 (prefixed_load_p): New function to identify prefixed loads.
11145 (prefixed_store_p): New function to identify prefixed stores.
11146 (prefixed_paddi_p): New function to identify prefixed load
11147 immediates.
11148 (next_insn_prefixed_p): New static state variable.
11149 (rs6000_final_prescan_insn): New function to determine if an insn
11150 uses a prefixed instruction.
11151 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11152 prefixed instruction.
11153 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11154 (ASM_OUTPUT_OPCODE): New target hook.
11155 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11156 prefixed instructions.
11157 (prefixed_length): New insn attribute for the size of prefixed
11158 instructions.
11159 (non_prefixed_length): New insn attribute for the size of
11160 non-prefixed instructions.
11161 (pcrel_local_addr): New insn to load up a local PC-relative
11162 address.
11163 (pcrel_extern_addr): New insn to load up an external PC-relative
11164 address.
11165 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11166 GPR and loading a 128-bit floating point type to a GPR.
11167
11168 2019-09-30 Richard Biener <rguenther@suse.de>
11169
11170 * gimple.c (gimple_get_lhs): For PHIs return the result.
11171 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11172 SLP instance as argument.
11173 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11174 double-reduction PHIs with vectorizable_lc_phi.
11175 (vect_analyze_loop_operations): Adjust.
11176 (vect_create_epilog_for_reduction): Remove all code not dealing
11177 with reduction LC PHI or epilogue generation.
11178 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11179 for live stmts of reductions.
11180 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11181 do not handle defs that are not vect_internal_def.
11182 (can_vectorize_live_stmts): Adjust.
11183 (vect_analyze_stmt): When the vectorized stmt defined a value
11184 used on backedges adjust the backedge uses of vectorized PHIs.
11185
11186 2019-09-30 Martin Jambor <mjambor@suse.cz>
11187
11188 PR ipa/91853
11189 * tree-inline.c (force_value_to_type): New function.
11190 (setup_one_parameter): Use force_value_to_type to convert type.
11191 * tree-inline.c (force_value_to_type): Declare.
11192 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11193 with register type mismatches.
11194
11195 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11196
11197 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11198 32-bit PowerPC.
11199 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11200 * config/rs6000/t-freebsd64: Make use of the above define and build
11201 the 32-bit libraries with secure-plt.
11202
11203 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11204
11205 PR target/91931
11206 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11207 gen_int_mode instead of GEN_INT.
11208
11209 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11210
11211 * config/darwin.c (gen_macho_low): Amend to include the mode
11212 argument.
11213 (machopic_indirect_data_reference): Amend gen_macho_low call
11214 to include mode argument
11215 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11216 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11217 the macho_high expander and two define_insn entries.
11218
11219 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11220
11221 PR bootstrap/90543
11222 * optc-save-gen.awk: Fix up printing string option differences.
11223
11224 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11225
11226 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11227 vec_perm cost to 1 for non-Power7 VSX architectures.
11228
11229 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11230
11231 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11232 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11233 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11234
11235 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11236
11237 * config/darwin.c (gen_macho_high): Amend to include the mode
11238 argument.
11239 (machopic_indirect_data_reference): Amend gen_macho_high call
11240 to include mode argument.
11241 (machopic_legitimize_pic_address): Likewise.
11242 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11243 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11244 the macho_high expander and two define_insn entries.
11245
11246 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11247
11248 PR target/86805
11249 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11250
11251 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11252
11253 PR target/80672
11254 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11255 std::string::compare instead of std::string::find.
11256
11257 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11258
11259 * configure: Regenerate.
11260
11261 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11262
11263 PR middle-end/91920
11264 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11265 variables as shared.
11266
11267 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11268
11269 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11270 replaces the expander and two define_insn entries.
11271 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11272 call.
11273 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11274
11275 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11276
11277 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11278 (fibonacci_heap::nodes): Likewise.
11279 (fibonacci_heap::min_key): Likewise.
11280 (fibonacci_heap::min): Likewise.
11281
11282 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11283
11284 * cgraph.c (cgraph_node::get_fun): Make const.
11285 * cgraph.h (cgraph_node::get_fun): Likewise.
11286
11287 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11288
11289 PR target/91919
11290 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11291 of SImode MULT.
11292
11293 2019-09-27 Richard Biener <rguenther@suse.de>
11294
11295 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11296 (STMT_VINFO_REDUC_FN): Likewise.
11297 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11298 STMT_VINFO_REDUC_FN.
11299 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11300 for condition reductions.
11301 (vect_create_epilog_for_reduction): Compute all required state
11302 from the stmt to be vectorized.
11303 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11304 invocation and remove then dead code. For single def-use chains
11305 record only a single vector stmt.
11306
11307 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11308
11309 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11310 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11311 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11312 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11313 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11314 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11315 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11316 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11317 (aarch64_general_builtin_rsqrt): Declare.
11318 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11319 New function.
11320 (aarch64_mangle_builtin_type): Rename to...
11321 (aarch64_general_mangle_builtin_type): ...this.
11322 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11323 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11324 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11325 aarch64_general_add_builtin instead of add_builtin_function.
11326 (aarch64_init_builtins): Rename to...
11327 (aarch64_general_init_builtins): ...this. Use
11328 aarch64_general_add_builtin instead of add_builtin_function.
11329 (aarch64_builtin_decl): Rename to...
11330 (aarch64_general_builtin_decl): ...this and remove the unused
11331 arguments.
11332 (aarch64_expand_builtin): Rename to...
11333 (aarch64_general_expand_builtin): ...this and remove the unused
11334 arguments.
11335 (aarch64_builtin_rsqrt): Rename to...
11336 (aarch64_general_builtin_rsqrt): ...this.
11337 (aarch64_fold_builtin): Rename to...
11338 (aarch64_general_fold_builtin): ...this. Take the function subcode
11339 and return type as arguments. Remove the "ignored" argument.
11340 (aarch64_gimple_fold_builtin): Rename to...
11341 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11342 subcode and gcall as arguments, and return the new function call.
11343 * config/aarch64/aarch64.c (aarch64_init_builtins)
11344 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11345 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11346 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11347 instead of aarch64_builtin_rsqrt.
11348 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11349 instead of aarch64_mangle_builtin_type.
11350
11351 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11352
11353 * target.def (check_builtin_call): New target hook.
11354 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11355 * doc/tm.texi: Regenerate.
11356
11357 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11358
11359 PR tree-optimization/91909
11360 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11361 reduc_index parameter. When handling COND_REDUCTION, make sure
11362 that the reduction phi operand is in the correct arm of the
11363 VEC_COND_EXPR.
11364 (vectorizable_reduction): Pass reduc_index to the above.
11365
11366 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11367
11368 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11369 New combine pattern.
11370
11371 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11372
11373 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11374 loop instruction into new basic block before the loop when basic
11375 block that precedes the loop is empty.
11376
11377 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11378
11379 * function.c (gimplify_parameters): Use build_clobber function.
11380 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11381 * tree-inline.c (expand_call_inline): Likewise.
11382 * tree-sra.c (clobber_subtree): Likewise.
11383 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11384 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11385 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11386 lower_omp_target): Likewise.
11387 * omp-expand.c (expand_omp_for_generic): Likewise.
11388 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11389
11390 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11391
11392 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11393 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11394 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11395 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11396 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11397 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11398 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11399 LD_ELEMREV_V16QI): Use the PURE attribute.
11400
11401 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11402
11403 * config/rs6000/darwin.md: Replace the expanders for
11404 load_macho_picbase and reload_macho_picbase with use of '@'
11405 and <mode> in their respective define_insns.
11406 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11407 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11408 Pmode to gen_load_macho_picbase.
11409 * config/rs6000/rs6000.md: Likewise.
11410
11411 2019-09-25 Richard Biener <rguenther@suse.de>
11412
11413 PR tree-optimization/91896
11414 * tree-vect-loop.c (vectorizable_reduction): The single
11415 def-use cycle optimization cannot apply when there's more
11416 than one pattern stmt involved.
11417
11418 2019-09-26 Richard Biener <rguenther@suse.de>
11419
11420 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11421 loop-closed PHIs that are vect_internal_def.
11422 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11423 Simplify.
11424 (vectorizable_lc_phi): New.
11425 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11426 (vect_transform_stmt): Likewise.
11427 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11428 (vectorizable_lc_phi): Declare.
11429
11430 2019-09-26 Richard Biener <rguenther@suse.de>
11431
11432 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11433 vectorizable_reduction for vect_double_reduction_def.
11434 (vect_transform_loop): Likewise.
11435 (vect_create_epilog_for_reduction): Move double-reduction
11436 PHI creation and preheader argument setting of PHIs ...
11437 (vectorizable_reduction): ... here. Also process
11438 vect_double_reduction_def PHIs, creating the vectorized
11439 PHI nodes, remembering the scalar adjustment computed for
11440 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11441 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11442 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11443 Initialize STMT_VINFO_REDUC_CODE.
11444 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11445 (_stmt_vec_info::reduc_code): Likewise.
11446 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11447 (STMT_VINFO_REDUC_CODE): Likewise.
11448
11449 2019-09-26 Matt Turner <mattst88@gmail.com>
11450
11451 PR driver/69471
11452 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11453 (mtune=): Add Negative(mtune=).
11454 (mcpu=): Add Negative(mcpu=).
11455 * config/arm/arm.opt: Likewise.
11456
11457 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11458
11459 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11460 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11461 Define.
11462 * config/arm/arm_acle.h: Define builtins for the above.
11463 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11464 (simd32_op): Handle the above.
11465 * config/arm/unspecs.md: Define unspecs for the above.
11466
11467 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11468
11469 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11470 (arm_<sup>xtb16): Likewise.
11471 (arm_usada8): Likewise.
11472 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11473 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11474 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11475 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11476 __sxtb16, __uxtab16, __uxtb16): Define.
11477 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11478 * config/arm/unspecs.md: Define unspecs for the above.
11479 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11480 (USXTB16): Likewise.
11481 (simd32_op): New int_attribute.
11482 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11483 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11484
11485 2019-09-26 Martin Jambor <mjambor@suse.cz>
11486
11487 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11488 internal_error.
11489
11490 2019-09-26 Martin Jambor <mjambor@suse.cz>
11491
11492 * ipa-sra.c (process_scan_results): Fix continue condition.
11493
11494 2019-09-26 Martin Liska <mliska@suse.cz>
11495
11496 PR tree-optimization/91885
11497 * tree-vectorizer.c (try_vectorize_loop_1): Add
11498 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11499
11500 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11501
11502 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11503 aarch64_plus_immediate rather than aarch64_uimm12_shift
11504 to test for valid PLUS immediates.
11505
11506 2019-09-25 Martin Jambor <mjambor@suse.cz>
11507
11508 * tree-sra.c (no_accesses_p): Remove.
11509 (no_accesses_representant): Likewise.
11510
11511 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11512
11513 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11514 consistenly.
11515 (vaba_s16): Likewise.
11516 (vaba_s32): Likewise.
11517 (vaba_u8): Likewise.
11518 (vaba_u16): Likewise.
11519 (vaba_u32): Likewise.
11520 (vabal_high_s8): Likewise.
11521 (vabal_high_s16): Likewise.
11522 (vabal_high_s32): Likewise.
11523 (vabal_high_u8): Likewise.
11524 (vabal_high_u16): Likewise.
11525 (vabal_high_u32): Likewise.
11526 (vabal_s8): Likewise.
11527 (vabal_s16): Likewise.
11528 (vabal_s32): Likewise.
11529 (vabal_u8): Likewise.
11530 (vabal_u16): Likewise.
11531 (vabal_u32): Likewise.
11532 (vabaq_s8): Likewise.
11533 (vabaq_s16): Likewise.
11534 (vabaq_s32): Likewise.
11535 (vabaq_u8): Likewise.
11536 (vabaq_u16): Likewise.
11537 (vabaq_u32): Likewise.
11538 (vabd_s8): Likewise.
11539 (vabd_s16): Likewise.
11540 (vabd_s32): Likewise.
11541 (vabd_u8): Likewise.
11542 (vabd_u16): Likewise.
11543 (vabd_u32): Likewise.
11544 (vabdl_high_s8): Likewise.
11545 (vabdl_high_s16): Likewise.
11546 (vabdl_high_s32): Likewise.
11547 (vabdl_high_u8): Likewise.
11548 (vabdl_high_u16): Likewise.
11549 (vabdl_high_u32): Likewise.
11550 (vabdl_s8): Likewise.
11551 (vabdl_s16): Likewise.
11552 (vabdl_s32): Likewise.
11553 (vabdl_u8): Likewise.
11554 (vabdl_u16): Likewise.
11555 (vabdl_u32): Likewise.
11556 (vabdq_s8): Likewise.
11557 (vabdq_s16): Likewise.
11558 (vabdq_s32): Likewise.
11559 (vabdq_u8): Likewise.
11560 (vabdq_u16): Likewise.
11561 (vabdq_u32): Likewise.
11562 (vaddlv_s8): Likewise.
11563 (vaddlv_s16): Likewise.
11564 (vaddlv_u8): Likewise.
11565 (vaddlv_u16): Likewise.
11566 (vaddlvq_s8): Likewise.
11567 (vaddlvq_s16): Likewise.
11568 (vaddlvq_s32): Likewise.
11569 (vaddlvq_u8): Likewise.
11570 (vaddlvq_u16): Likewise.
11571 (vaddlvq_u32): Likewise.
11572 (vcvtx_f32_f64): Likewise.
11573 (vcvtx_high_f32_f64): Likewise.
11574 (vcvtxd_f32_f64): Likewise.
11575 (vmla_n_f32): Likewise.
11576 (vmla_n_s16): Likewise.
11577 (vmla_n_s32): Likewise.
11578 (vmla_n_u16): Likewise.
11579 (vmla_n_u32): Likewise.
11580 (vmla_s8): Likewise.
11581 (vmla_s16): Likewise.
11582 (vmla_s32): Likewise.
11583 (vmla_u8): Likewise.
11584 (vmla_u16): Likewise.
11585 (vmla_u32): Likewise.
11586 (vmlal_high_n_s16): Likewise.
11587 (vmlal_high_n_s32): Likewise.
11588 (vmlal_high_n_u16): Likewise.
11589 (vmlal_high_n_u32): Likewise.
11590 (vmlal_high_s8): Likewise.
11591 (vmlal_high_s16): Likewise.
11592 (vmlal_high_s32): Likewise.
11593 (vmlal_high_u8): Likewise.
11594 (vmlal_high_u16): Likewise.
11595 (vmlal_high_u32): Likewise.
11596 (vmlal_n_s16): Likewise.
11597 (vmlal_n_s32): Likewise.
11598 (vmlal_n_u16): Likewise.
11599 (vmlal_n_u32): Likewise.
11600 (vmlal_s8): Likewise.
11601 (vmlal_s16): Likewise.
11602 (vmlal_s32): Likewise.
11603 (vmlal_u8): Likewise.
11604 (vmlal_u16): Likewise.
11605 (vmlal_u32): Likewise.
11606 (vmlaq_n_f32): Likewise.
11607 (vmlaq_n_s16): Likewise.
11608 (vmlaq_n_s32): Likewise.
11609 (vmlaq_n_u16): Likewise.
11610 (vmlaq_n_u32): Likewise.
11611 (vmlaq_s8): Likewise.
11612 (vmlaq_s16): Likewise.
11613 (vmlaq_s32): Likewise.
11614 (vmlaq_u8): Likewise.
11615 (vmlaq_u16): Likewise.
11616 (vmlaq_u32): Likewise.
11617 (vmls_n_f32): Likewise.
11618 (vmls_n_s16): Likewise.
11619 (vmls_n_s32): Likewise.
11620 (vmls_n_u16): Likewise.
11621 (vmls_n_u32): Likewise.
11622 (vmls_s8): Likewise.
11623 (vmls_s16): Likewise.
11624 (vmls_s32): Likewise.
11625 (vmls_u8): Likewise.
11626 (vmls_u16): Likewise.
11627 (vmls_u32): Likewise.
11628 (vmlsl_high_n_s16): Likewise.
11629 (vmlsl_high_n_s32): Likewise.
11630 (vmlsl_high_n_u16): Likewise.
11631 (vmlsl_high_n_u32): Likewise.
11632 (vmlsl_high_s8): Likewise.
11633 (vmlsl_high_s16): Likewise.
11634 (vmlsl_high_s32): Likewise.
11635 (vmlsl_high_u8): Likewise.
11636 (vmlsl_high_u16): Likewise.
11637 (vmlsl_high_u32): Likewise.
11638 (vmlsl_n_s16): Likewise.
11639 (vmlsl_n_s32): Likewise.
11640 (vmlsl_n_u16): Likewise.
11641 (vmlsl_n_u32): Likewise.
11642 (vmlsl_s8): Likewise.
11643 (vmlsl_s16): Likewise.
11644 (vmlsl_s32): Likewise.
11645 (vmlsl_u8): Likewise.
11646 (vmlsl_u16): Likewise.
11647 (vmlsl_u32): Likewise.
11648 (vmlsq_n_f32): Likewise.
11649 (vmlsq_n_s16): Likewise.
11650 (vmlsq_n_s32): Likewise.
11651 (vmlsq_n_u16): Likewise.
11652 (vmlsq_n_u32): Likewise.
11653 (vmlsq_s8): Likewise.
11654 (vmlsq_s16): Likewise.
11655 (vmlsq_s32): Likewise.
11656 (vmlsq_u8): Likewise.
11657 (vmlsq_u16): Likewise.
11658 (vmlsq_u32): Likewise.
11659 (vmovl_high_s8): Likewise.
11660 (vmovl_high_s16): Likewise.
11661 (vmovl_high_s32): Likewise.
11662 (vmovl_high_u8): Likewise.
11663 (vmovl_high_u16): Likewise.
11664 (vmovl_high_u32): Likewise.
11665 (vmovl_s8): Likewise.
11666 (vmovl_s16): Likewise.
11667 (vmovl_s32): Likewise.
11668 (vmovl_u8): Likewise.
11669 (vmovl_u16): Likewise.
11670 (vmovl_u32): Likewise.
11671 (vmovn_high_s16): Likewise.
11672 (vmovn_high_s32): Likewise.
11673 (vmovn_high_s64): Likewise.
11674 (vmovn_high_u16): Likewise.
11675 (vmovn_high_u32): Likewise.
11676 (vmovn_high_u64): Likewise.
11677 (vmovn_s16): Likewise.
11678 (vmovn_s32): Likewise.
11679 (vmovn_s64): Likewise.
11680 (vmovn_u16): Likewise.
11681 (vmovn_u32): Likewise.
11682 (vmovn_u64): Likewise.
11683 (vmull_high_n_s16): Likewise.
11684 (vmull_high_n_s32): Likewise.
11685 (vmull_high_n_u16): Likewise.
11686 (vmull_high_n_u32): Likewise.
11687 (vmull_high_p8): Likewise.
11688 (vmull_high_s8): Likewise.
11689 (vmull_high_s16): Likewise.
11690 (vmull_high_s32): Likewise.
11691 (vmull_high_u8): Likewise.
11692 (vmull_high_u16): Likewise.
11693 (vmull_high_u32): Likewise.
11694 (vmull_n_s16): Likewise.
11695 (vmull_n_s32): Likewise.
11696 (vmull_n_u16): Likewise.
11697 (vmull_n_u32): Likewise.
11698 (vmull_p8): Likewise.
11699 (vmull_s8): Likewise.
11700 (vmull_s16): Likewise.
11701 (vmull_s32): Likewise.
11702 (vmull_u8): Likewise.
11703 (vmull_u16): Likewise.
11704 (vmull_u32): Likewise.
11705 (vpadal_s8): Likewise.
11706 (vpadal_s16): Likewise.
11707 (vpadal_s32): Likewise.
11708 (vpadal_u8): Likewise.
11709 (vpadal_u16): Likewise.
11710 (vpadal_u32): Likewise.
11711 (vpadalq_s8): Likewise.
11712 (vpadalq_s16): Likewise.
11713 (vpadalq_s32): Likewise.
11714 (vpadalq_u8): Likewise.
11715 (vpadalq_u16): Likewise.
11716 (vpadalq_u32): Likewise.
11717 (vpaddl_s8): Likewise.
11718 (vpaddl_s16): Likewise.
11719 (vpaddl_s32): Likewise.
11720 (vpaddl_u8): Likewise.
11721 (vpaddl_u16): Likewise.
11722 (vpaddl_u32): Likewise.
11723 (vpaddlq_s8): Likewise.
11724 (vpaddlq_s16): Likewise.
11725 (vpaddlq_s32): Likewise.
11726 (vpaddlq_u8): Likewise.
11727 (vpaddlq_u16): Likewise.
11728 (vpaddlq_u32): Likewise.
11729 (vpaddq_s8): Likewise.
11730 (vpaddq_s16): Likewise.
11731 (vpaddq_s32): Likewise.
11732 (vpaddq_s64): Likewise.
11733 (vpaddq_u8): Likewise.
11734 (vpaddq_u16): Likewise.
11735 (vpaddq_u32): Likewise.
11736 (vpaddq_u64): Likewise.
11737 (vqdmulh_n_s16): Likewise.
11738 (vqdmulh_n_s32): Likewise.
11739 (vqdmulhq_n_s16): Likewise.
11740 (vqdmulhq_n_s32): Likewise.
11741 (vqmovn_high_s16): Likewise.
11742 (vqmovn_high_s32): Likewise.
11743 (vqmovn_high_s64): Likewise.
11744 (vqmovn_high_u16): Likewise.
11745 (vqmovn_high_u32): Likewise.
11746 (vqmovn_high_u64): Likewise.
11747 (vqmovun_high_s16): Likewise.
11748 (vqmovun_high_s32): Likewise.
11749 (vqmovun_high_s64): Likewise.
11750 (vqrdmulh_n_s16): Likewise.
11751 (vqrdmulh_n_s32): Likewise.
11752 (vqrdmulhq_n_s16): Likewise.
11753 (vqrdmulhq_n_s32): Likewise.
11754 (vrsqrte_u32): Likewise.
11755 (vrsqrteq_u32): Likewise.
11756 (vtst_p8): Likewise.
11757 (vtst_p16): Likewise.
11758 (vtst_p64): Likewise.
11759 (vtstq_p8): Likewise.
11760 (vtstq_p16): Likewise.
11761 (vtstq_p64): Likewise.
11762 (vaddlv_s32): Likewise.
11763 (vaddlv_u32): Likewise.
11764 (vqtbl1_p8): Likewise.
11765 (vqtbl1_s8): Likewise.
11766 (vqtbl1_u8): Likewise.
11767 (vqtbl1q_p8): Likewise.
11768 (vqtbl1q_s8): Likewise.
11769 (vqtbl1q_u8): Likewise.
11770 (vqtbx1_s8): Likewise.
11771 (vqtbx1_u8): Likewise.
11772 (vqtbx1_p8): Likewise.
11773 (vqtbx1q_s8): Likewise.
11774 (vqtbx1q_u8): Likewise.
11775 (vqtbx1q_p8): Likewise.
11776 (vtbl1_s8): Likewise.
11777 (vtbl1_u8): Likewise.
11778 (vtbl1_p8): Likewise.
11779 (vtbl2_s8): Likewise.
11780 (vtbl2_u8): Likewise.
11781 (vtbl2_p8): Likewise.
11782 (vtbl3_s8): Likewise.
11783 (vtbl3_u8): Likewise.
11784 (vtbl3_p8): Likewise.
11785 (vtbl4_s8): Likewise.
11786 (vtbl4_u8): Likewise.
11787 (vtbl4_p8): Likewise.
11788 (vtbx2_s8): Likewise.
11789 (vtbx2_u8): Likewise.
11790 (vtbx2_p8): Likewise.
11791 (vld1_f32): Likewise.
11792 (vld1_f64): Likewise.
11793 (vld1_p8): Likewise.
11794 (vld1_p16): Likewise.
11795 (vld1_p64): Likewise.
11796 (vld1_s8): Likewise.
11797 (vld1_s16): Likewise.
11798 (vld1_s32): Likewise.
11799 (vld1_s64): Likewise.
11800 (vld1_u8): Likewise.
11801 (vld1_u16): Likewise.
11802 (vld1_u32): Likewise.
11803 (vld1_u64): Likewise.
11804 (vld1q_f32): Likewise.
11805 (vld1q_f64): Likewise.
11806 (vld1q_p8): Likewise.
11807 (vld1q_p16): Likewise.
11808 (vld1q_p64): Likewise.
11809 (vld1q_s8): Likewise.
11810 (vld1q_s16): Likewise.
11811 (vld1q_s32): Likewise.
11812 (vld1q_s64): Likewise.
11813 (vld1q_u8): Likewise.
11814 (vld1q_u16): Likewise.
11815 (vld1q_u32): Likewise.
11816 (vld1q_u64): Likewise.
11817 (vpmax_s8): Likewise.
11818 (vpmax_s16): Likewise.
11819 (vpmax_s32): Likewise.
11820 (vpmax_u8): Likewise.
11821 (vpmax_u16): Likewise.
11822 (vpmax_u32): Likewise.
11823 (vpmaxq_s8): Likewise.
11824 (vpmaxq_s16): Likewise.
11825 (vpmaxq_s32): Likewise.
11826 (vpmaxq_u8): Likewise.
11827 (vpmaxq_u16): Likewise.
11828 (vpmaxq_u32): Likewise.
11829 (vpmax_f32): Likewise.
11830 (vpmaxq_f32): Likewise.
11831 (vpmaxq_f64): Likewise.
11832 (vpmaxqd_f64): Likewise.
11833 (vpmaxs_f32): Likewise.
11834 (vpmaxnm_f32): Likewise.
11835 (vpmaxnmq_f32): Likewise.
11836 (vpmaxnmq_f64): Likewise.
11837 (vpmaxnmqd_f64): Likewise.
11838 (vpmaxnms_f32): Likewise.
11839 (vpmin_s8): Likewise.
11840 (vpmin_s16): Likewise.
11841 (vpmin_s32): Likewise.
11842 (vpmin_u8): Likewise.
11843 (vpmin_u16): Likewise.
11844 (vpmin_u32): Likewise.
11845 (vpminq_s8): Likewise.
11846 (vpminq_s16): Likewise.
11847 (vpminq_s32): Likewise.
11848 (vpminq_u8): Likewise.
11849 (vpminq_u16): Likewise.
11850 (vpminq_u32): Likewise.
11851 (vpmin_f32): Likewise.
11852 (vpminq_f32): Likewise.
11853 (vpminq_f64): Likewise.
11854 (vpminqd_f64): Likewise.
11855 (vpmins_f32): Likewise.
11856 (vpminnm_f32): Likewise.
11857 (vpminnmq_f32): Likewise.
11858 (vpminnmq_f64): Likewise.
11859 (vpminnmqd_f64): Likewise.
11860 (vpminnms_f32): Likewise.
11861 (vmla_f32): Likewise.
11862 (vmlaq_f32): Likewise.
11863 (vmlaq_f64): Likewise.
11864 (vmls_f32): Likewise.
11865 (vmlsq_f32): Likewise.
11866 (vmlsq_f64): Likewise.
11867 (vqtbl2_s8): Likewise.
11868 (vqtbl2_u8): Likewise.
11869 (vqtbl2_p8): Likewise.
11870 (vqtbl2q_s8): Likewise.
11871 (vqtbl2q_u8): Likewise.
11872 (vqtbl2q_p8): Likewise.
11873 (vqtbl3_s8): Likewise.
11874 (vqtbl3_u8): Likewise.
11875 (vqtbl3_p8): Likewise.
11876 (vqtbl3q_s8): Likewise.
11877 (vqtbl3q_u8): Likewise.
11878 (vqtbl3q_p8): Likewise.
11879 (vqtbl4_s8): Likewise.
11880 (vqtbl4_u8): Likewise.
11881 (vqtbl4_p8): Likewise.
11882 (vqtbl4q_s8): Likewise.
11883 (vqtbl4q_u8): Likewise.
11884 (vqtbl4q_p8): Likewise.
11885 (vqtbx2_s8): Likewise.
11886 (vqtbx2_u8): Likewise.
11887 (vqtbx2_p8): Likewise.
11888 (vqtbx2q_s8): Likewise.
11889 (vqtbx2q_u8): Likewise.
11890 (vqtbx2q_p8): Likewise.
11891 (vqtbx3_s8): Likewise.
11892 (vqtbx3_u8): Likewise.
11893 (vqtbx3_p8): Likewise.
11894 (vqtbx3q_s8): Likewise.
11895 (vqtbx3q_u8): Likewise.
11896 (vqtbx3q_p8): Likewise.
11897 (vqtbx4_s8): Likewise.
11898 (vqtbx4_u8): Likewise.
11899 (vqtbx4_p8): Likewise.
11900 (vqtbx4q_s8): Likewise.
11901 (vqtbx4q_u8): Likewise.
11902 (vqtbx4q_p8): Likewise.
11903 (vrev16_p8): Likewise.
11904 (vrev16_s8): Likewise.
11905 (vrev16_u8): Likewise.
11906 (vrev16q_p8): Likewise.
11907 (vrev16q_s8): Likewise.
11908 (vrev16q_u8): Likewise.
11909 (vrev32_p8): Likewise.
11910 (vrev32_p16): Likewise.
11911 (vrev32_s8): Likewise.
11912 (vrev32_s16): Likewise.
11913 (vrev32_u8): Likewise.
11914 (vrev32_u16): Likewise.
11915 (vrev32q_p8): Likewise.
11916 (vrev32q_p16): Likewise.
11917 (vrev32q_s8): Likewise.
11918 (vrev32q_s16): Likewise.
11919 (vrev32q_u8): Likewise.
11920 (vrev32q_u16): Likewise.
11921 (vrev64_f32): Likewise.
11922 (vrev64_p8): Likewise.
11923 (vrev64_p16): Likewise.
11924 (vrev64_s8): Likewise.
11925 (vrev64_s16): Likewise.
11926 (vrev64_s32): Likewise.
11927 (vrev64_u8): Likewise.
11928 (vrev64_u16): Likewise.
11929 (vrev64_u32): Likewise.
11930 (vrev64q_f32): Likewise.
11931 (vrev64q_p8): Likewise.
11932 (vrev64q_p16): Likewise.
11933 (vrev64q_s8): Likewise.
11934 (vrev64q_s16): Likewise.
11935 (vrev64q_s32): Likewise.
11936 (vrev64q_u8): Likewise.
11937 (vrev64q_u16): Likewise.
11938 (vrev64q_u32): Likewise.
11939 (vsha1cq_u32): Likewise.
11940 (vsha1mq_u32): Likewise.
11941 (vsha1pq_u32): Likewise.
11942 (vsha1h_u32): Likewise.
11943 (vsha1su0q_u32): Likewise.
11944 (vsha1su1q_u32): Likewise.
11945 (vsha256hq_u32): Likewise.
11946 (vsha256h2q_u32): Likewise.
11947 (vsha256su0q_u32): Likewise.
11948 (vsha256su1q_u32): Likewise.
11949 (vmull_p64): Likewise.
11950 (vmull_high_p64): Likewise.
11951 (vsqrt_f32): Likewise.
11952 (vsqrtq_f32): Likewise.
11953 (vsqrt_f64): Likewise.
11954 (vsqrtq_f64): Likewise.
11955 (vst1_f32): Likewise.
11956 (vst1_f64): Likewise.
11957 (vst1_p8): Likewise.
11958 (vst1_p16): Likewise.
11959 (vst1_p64): Likewise.
11960 (vst1_s8): Likewise.
11961 (vst1_s16): Likewise.
11962 (vst1_s32): Likewise.
11963 (vst1_s64): Likewise.
11964 (vst1_u8): Likewise.
11965 (vst1_u16): Likewise.
11966 (vst1_u32): Likewise.
11967 (vst1_u64): Likewise.
11968 (vst1q_f32): Likewise.
11969 (vst1q_f64): Likewise.
11970 (vst1q_p8): Likewise.
11971 (vst1q_p16): Likewise.
11972 (vst1q_p64): Likewise.
11973 (vst1q_s8): Likewise.
11974 (vst1q_s16): Likewise.
11975 (vst1q_s32): Likewise.
11976 (vst1q_s64): Likewise.
11977 (vst1q_u8): Likewise.
11978 (vst1q_u16): Likewise.
11979 (vst1q_u32): Likewise.
11980 (vst1q_u64): Likewise.
11981 (vst1_s64_x2): Likewise.
11982 (vst1_u64_x2): Likewise.
11983 (vst1_f64_x2): Likewise.
11984 (vst1_s8_x2): Likewise.
11985 (vst1_p8_x2): Likewise.
11986 (vst1_s16_x2): Likewise.
11987 (vst1_p16_x2): Likewise.
11988 (vst1_s32_x2): Likewise.
11989 (vst1_u8_x2): Likewise.
11990 (vst1_u16_x2): Likewise.
11991 (vst1_u32_x2): Likewise.
11992 (vst1_f16_x2): Likewise.
11993 (vst1_f32_x2): Likewise.
11994 (vst1_p64_x2): Likewise.
11995 (vst1q_s8_x2): Likewise.
11996 (vst1q_p8_x2): Likewise.
11997 (vst1q_s16_x2): Likewise.
11998 (vst1q_p16_x2): Likewise.
11999 (vst1q_s32_x2): Likewise.
12000 (vst1q_s64_x2): Likewise.
12001 (vst1q_u8_x2): Likewise.
12002 (vst1q_u16_x2): Likewise.
12003 (vst1q_u32_x2): Likewise.
12004 (vst1q_u64_x2): Likewise.
12005 (vst1q_f16_x2): Likewise.
12006 (vst1q_f32_x2): Likewise.
12007 (vst1q_f64_x2): Likewise.
12008 (vst1q_p64_x2): Likewise.
12009 (vst1_s64_x3): Likewise.
12010 (vst1_u64_x3): Likewise.
12011 (vst1_f64_x3): Likewise.
12012 (vst1_s8_x3): Likewise.
12013 (vst1_p8_x3): Likewise.
12014 (vst1_s16_x3): Likewise.
12015 (vst1_p16_x3): Likewise.
12016 (vst1_s32_x3): Likewise.
12017 (vst1_u8_x3): Likewise.
12018 (vst1_u16_x3): Likewise.
12019 (vst1_u32_x3): Likewise.
12020 (vst1_f16_x3): Likewise.
12021 (vst1_f32_x3): Likewise.
12022 (vst1_p64_x3): Likewise.
12023 (vst1q_s8_x3): Likewise.
12024 (vst1q_p8_x3): Likewise.
12025 (vst1q_s16_x3): Likewise.
12026 (vst1q_p16_x3): Likewise.
12027 (vst1q_s32_x3): Likewise.
12028 (vst1q_s64_x3): Likewise.
12029 (vst1q_u8_x3): Likewise.
12030 (vst1q_u16_x3): Likewise.
12031 (vst1q_u32_x3): Likewise.
12032 (vst1q_u64_x3): Likewise.
12033 (vst1q_f16_x3): Likewise.
12034 (vst1q_f32_x3): Likewise.
12035 (vst1q_f64_x3): Likewise.
12036 (vst1q_p64_x3): Likewise.
12037 (vst2_s64): Likewise.
12038 (vst2_u64): Likewise.
12039 (vst2_f64): Likewise.
12040 (vst2_s8): Likewise.
12041 (vst2_p8): Likewise.
12042 (vst2_s16): Likewise.
12043 (vst2_p16): Likewise.
12044 (vst2_s32): Likewise.
12045 (vst2_u8): Likewise.
12046 (vst2_u16): Likewise.
12047 (vst2_u32): Likewise.
12048 (vst2_f16): Likewise.
12049 (vst2_f32): Likewise.
12050 (vst2_p64): Likewise.
12051 (vst2q_s8): Likewise.
12052 (vst2q_p8): Likewise.
12053 (vst2q_s16): Likewise.
12054 (vst2q_p16): Likewise.
12055 (vst2q_s32): Likewise.
12056 (vst2q_s64): Likewise.
12057 (vst2q_u8): Likewise.
12058 (vst2q_u16): Likewise.
12059 (vst2q_u32): Likewise.
12060 (vst2q_u64): Likewise.
12061 (vst2q_f16): Likewise.
12062 (vst2q_f32): Likewise.
12063 (vst2q_f64): Likewise.
12064 (vst2q_p64): Likewise.
12065 (vst3_s64): Likewise.
12066 (vst3_u64): Likewise.
12067 (vst3_f64): Likewise.
12068 (vst3_s8): Likewise.
12069 (vst3_p8): Likewise.
12070 (vst3_s16): Likewise.
12071 (vst3_p16): Likewise.
12072 (vst3_s32): Likewise.
12073 (vst3_u8): Likewise.
12074 (vst3_u16): Likewise.
12075 (vst3_u32): Likewise.
12076 (vst3_f16): Likewise.
12077 (vst3_f32): Likewise.
12078 (vst3_p64): Likewise.
12079 (vst3q_s8): Likewise.
12080 (vst3q_p8): Likewise.
12081 (vst3q_s16): Likewise.
12082 (vst3q_p16): Likewise.
12083 (vst3q_s32): Likewise.
12084 (vst3q_s64): Likewise.
12085 (vst3q_u8): Likewise.
12086 (vst3q_u16): Likewise.
12087 (vst3q_u32): Likewise.
12088 (vst3q_u64): Likewise.
12089 (vst3q_f16): Likewise.
12090 (vst3q_f32): Likewise.
12091 (vst3q_f64): Likewise.
12092 (vst3q_p64): Likewise.
12093 (vst4_s64): Likewise.
12094 (vst4_u64): Likewise.
12095 (vst4_f64): Likewise.
12096 (vst4_s8): Likewise.
12097 (vst4_p8): Likewise.
12098 (vst4_s16): Likewise.
12099 (vst4_p16): Likewise.
12100 (vst4_s32): Likewise.
12101 (vst4_u8): Likewise.
12102 (vst4_u16): Likewise.
12103 (vst4_u32): Likewise.
12104 (vst4_f16): Likewise.
12105 (vst4_f32): Likewise.
12106 (vst4_p64): Likewise.
12107 (vst4q_s8): Likewise.
12108 (vst4q_p8): Likewise.
12109 (vst4q_s16): Likewise.
12110 (vst4q_p16): Likewise.
12111 (vst4q_s32): Likewise.
12112 (vst4q_s64): Likewise.
12113 (vst4q_u8): Likewise.
12114 (vst4q_u16): Likewise.
12115 (vst4q_u32): Likewise.
12116 (vst4q_u64): Likewise.
12117 (vst4q_f16): Likewise.
12118 (vst4q_f32): Likewise.
12119 (vst4q_f64): Likewise.
12120 (vst4q_p64): Likewise.
12121 (vtbx4_s8): Likewise.
12122 (vtbx4_u8): Likewise.
12123 (vtbx4_p8): Likewise.
12124 (vtrn_f32): Likewise.
12125 (vtrn_p8): Likewise.
12126 (vtrn_p16): Likewise.
12127 (vtrn_s8): Likewise.
12128 (vtrn_s16): Likewise.
12129 (vtrn_s32): Likewise.
12130 (vtrn_u8): Likewise.
12131 (vtrn_u16): Likewise.
12132 (vtrn_u32): Likewise.
12133 (vtrnq_f32): Likewise.
12134 (vtrnq_p8): Likewise.
12135 (vtrnq_p16): Likewise.
12136 (vtrnq_s8): Likewise.
12137 (vtrnq_s16): Likewise.
12138 (vtrnq_s32): Likewise.
12139 (vtrnq_u8): Likewise.
12140 (vtrnq_u16): Likewise.
12141 (vtrnq_u32): Likewise.
12142 (vrsqrte_f16): Likewise.
12143 (vrsqrteq_f16): Likewise.
12144 (vsqrt_f16): Likewise.
12145 (vsqrtq_f16): Likewise.
12146 (vabd_f16): Likewise.
12147 (vabdq_f16): Likewise.
12148 (vpadd_f16): Likewise.
12149 (vpaddq_f16): Likewise.
12150 (vpmax_f16): Likewise.
12151 (vpmaxq_f16): Likewise.
12152 (vpmaxnm_f16): Likewise.
12153 (vpmaxnmq_f16): Likewise.
12154 (vpmin_f16): Likewise.
12155 (vpminq_f16): Likewise.
12156 (vpminnm_f16): Likewise.
12157 (vpminnmq_f16): Likewise.
12158 (vrsqrts_f16): Likewise.
12159 (vrsqrtsq_f16): Likewise.
12160
12161 2019-09-25 Richard Biener <rguenther@suse.de>
12162
12163 PR tree-optimization/91896
12164 * tree-vect-loop.c (vectorizable_reduction): The single
12165 def-use cycle optimization cannot apply when there's more
12166 than one pattern stmt involved.
12167
12168 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12169
12170 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12171 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12172 (reload_macho_picbase_<mode>): Likewise.
12173
12174 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12175
12176 * config/rs6000/rs6000.md: Move darwin.md include until
12177 after the definition of the mode iterators.
12178
12179 2019-09-23 Martin Sebor <msebor@redhat.com>
12180
12181 PR tree-optimization/91570
12182 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12183 non-constant minlen, maxlen and maxbound.
12184
12185 2019-09-24 Richard Biener <rguenther@suse.de>
12186
12187 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12188 Rename to...
12189 (_stmt_vec_info::cond_reduc_code): ... this.
12190 (_stmt_vec_info::induc_cond_initial_val): Add.
12191 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12192 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12193 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12194 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12195 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12196 the reduction code.
12197 (vect_create_epilog_for_reduction): Drop special
12198 induction condition reduction params, pass in reduction code
12199 and simplify.
12200 (vectorizable_reduction): Perform condition reduction kind
12201 selection only at analysis time. Adjust passing on state.
12202
12203 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12204
12205 * config/aarch64/aarch64.md (mov<mode>): Don't call
12206 aarch64_split_dimode_const_store on volatile MEM.
12207
12208 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12209
12210 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12211 Update hwcap string for fp16fml.
12212
12213 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12214
12215 PR middle-end/91866
12216 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12217 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12218
12219 2019-09-24 Martin Liska <mliska@suse.cz>
12220
12221 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12222 instead of if-elseif-elseif-...
12223 * gimple-expr.c (extract_ops_from_tree): Likewise.
12224 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12225 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12226
12227 2019-09-24 Martin Jambor <mjambor@suse.cz>
12228
12229 PR ipa/91831
12230 * ipa-param-manipulation.c (carry_over_param): Make a method of
12231 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12232 in case of a context mismatch.
12233 (ipa_param_body_adjustments::common_initialization): Adjust call to
12234 carry_over_param.
12235 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12236 private method carry_over_param.
12237
12238 2019-09-24 Martin Jambor <mjambor@suse.cz>
12239
12240 PR ipa/91832
12241 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12242
12243 2019-09-24 Richard Biener <rguenther@suse.de>
12244
12245 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12246 base.
12247
12248 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12249
12250 * config/arm/t-arm (arm-builtins.o): Add dependency on
12251 arm_acle_builtins.def.
12252
12253 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12254
12255 PR target/91823
12256 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12257 canonical CONST_INTs. Use gen_rtvec.
12258
12259 2019-09-23 Richard Biener <rguenther@suse.de>
12260
12261 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12262 avoid adjusting by + 0 or * 1.
12263 (vect_create_epilog_for_reduction): Get reduction code only
12264 when necessary. Deal with adjustment_def only when necessary.
12265
12266 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12267
12268 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12269 memmodel index.
12270
12271 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12272
12273 PR ipa/91835
12274 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12275 "ipa-sra".
12276
12277 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12278
12279 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12280 code. Merge code blocks with common conditionals. Use declared
12281 macro instead of a magic number for PIC level.
12282
12283 2019-09-21 Martin Sebor <msebor@redhat.com>
12284
12285 PR middle-end/91830
12286 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12287 Simplify computation of the offset of the referenced subobject.
12288
12289 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12290
12291 * config/darwin.c (machopic_legitimize_pic_address): Check
12292 for lra not reload.
12293
12294 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12295
12296 * ira-conflicts.c (can_use_same_reg_p): New function.
12297 (process_reg_shuffles): Take an insn parameter. Ignore cases
12298 in which input operand op_num could seemingly never be allocated
12299 to the same register as the destination.
12300 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12301
12302 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12303
12304 * simplify-rtx.c (neg_const_int): Replace with...
12305 (neg_poly_int_rtx): ...this new function.
12306 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12307 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12308 (simplify_plus_minus): Likewise for constant terms here.
12309
12310 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12311
12312 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12313 HOST_WIDE_PRINT_UNSIGNED.
12314
12315 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12316
12317 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12318 character.
12319
12320 2019-09-20 Maya Rashish <coypu@sdf.org>
12321
12322 PR target/86811
12323 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12324 Define to speculation_safe_value_not_needed.
12325
12326 2019-09-20 Richard Biener <rguenther@suse.de>
12327 Uros Bizjak <ubizjak@gmail.com>
12328
12329 PR target/91814
12330 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12331 previous change.
12332 (general_scalar_chain::convert_op): Force not suitable memory
12333 operands to a register.
12334
12335 2019-09-20 Richard Biener <rguenther@suse.de>
12336
12337 PR tree-optimization/91821
12338 * tree-vect-loop.c (check_reduction_path): Check we can compute
12339 reduc_idx.
12340 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12341 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12342 operands in canonical order.
12343 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12344 STMT_VINFO_REDUC_IDX.
12345 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12346 (STMT_VINFO_REDUC_IDX): Likewise.
12347
12348 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12349
12350 PR target/91269
12351 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12352
12353 2019-09-20 Richard Biener <rguenther@suse.de>
12354
12355 PR tree-optimization/91822
12356 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12357 parameter.
12358 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12359 for reduc_index in nested cycles, adjust vectorizable_condition
12360 calls.
12361 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12362 parameter.
12363 (vect_analyze_stmt): Adjust.
12364 (vect_transform_stmt): Likewise.
12365
12366 2019-09-20 Richard Biener <rguenther@suse.de>
12367
12368 PR target/91767
12369 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12370 Ensure there's a sequence point between allocating the new register
12371 and passing a reference to a reg via regno_reg_rtx.
12372
12373 2019-09-20 Martin Jambor <mjambor@suse.cz>
12374
12375 * coretypes.h (cgraph_edge): Declare.
12376 * ipa-param-manipulation.c: Rewrite.
12377 * ipa-param-manipulation.h: Likewise.
12378 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12379 (OBJS): Added ipa-sra.o.
12380 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12381 and ref_p, added fields param_adjustments and performed_splits.
12382 (struct cgraph_clone_info): Remove ags_to_skip and
12383 combined_args_to_skip, new field param_adjustments.
12384 (cgraph_node::create_clone): Changed parameters to use
12385 ipa_param_adjustments.
12386 (cgraph_node::create_virtual_clone): Likewise.
12387 (cgraph_node::create_virtual_clone_with_body): Likewise.
12388 (tree_function_versioning): Likewise.
12389 (cgraph_build_function_type_skip_args): Removed.
12390 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12391 using ipa_param_adjustments.
12392 (clone_of_p): Likewise.
12393 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12394 (build_function_decl_skip_args): Likewise.
12395 (duplicate_thunk_for_node): Adjust parameters using
12396 ipa_param_body_adjustments, copy param_adjustments instead of
12397 args_to_skip.
12398 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12399 (cgraph_node::create_virtual_clone): Likewise.
12400 (cgraph_node::create_version_clone_with_body): Likewise.
12401 (cgraph_materialize_clone): Likewise.
12402 (symbol_table::materialize_all_clones): Likewise.
12403 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12404 ipa_replace_map check.
12405 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12406 (initialize_node_lattices): Make aware that some parameters might have
12407 already been removed.
12408 (want_remove_some_param_p): New function.
12409 (create_specialized_node): Convert to using ipa_param_adjustments and
12410 deal with possibly pre-existing adjustments.
12411 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12412 (output_node_opt_summary): Do not stream removed fields. Stream
12413 parameter adjustments instead of argumetns to skip.
12414 (input_node_opt_summary): Likewise.
12415 (input_node_opt_summary): Likewise.
12416 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12417 * lto-streamer.h (lto_section_type): Likewise.
12418 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12419 param_body_adjs.
12420 (copy_decl_to_var): Declare.
12421 * tree-inline.c (update_clone_info): Do not remap old_tree.
12422 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12423 statements, walk all extra generated statements and remap their
12424 operands.
12425 (redirect_all_calls): Add killed SSA names to a hash set.
12426 (remap_ssa_name): Do not remap killed SSA names.
12427 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12428 half of functionality moved to ipa_param_body_adjustments.
12429 (copy_decl_to_var): Make exported.
12430 (copy_body): Destroy killed_new_ssa_names hash set.
12431 (expand_call_inline): Remap performed splits.
12432 (update_clone_info): Likewise.
12433 (tree_function_versioning): Simplify tree_map processing. Updated to
12434 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12435 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12436 for the new interface.
12437 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12438 (simd_clone_compute_base_data_type): Likewise.
12439 (simd_clone_init_simd_arrays): Adjust for the new interface.
12440 (simd_clone_adjust_argument_types): Likewise.
12441 (struct modify_stmt_info): Likewise.
12442 (ipa_simd_modify_stmt_ops): Likewise.
12443 (ipa_simd_modify_function_body): Likewise.
12444 (simd_clone_adjust): Likewise.
12445 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12446 (type_internals_preclude_sra_p): Make public.
12447 * tree-sra.h: New file.
12448 * ipa-inline-transform.c (save_inline_function_body): Update to
12449 refelct new tree_function_versioning signature.
12450 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12451 ipa_param_adjustments to get current parameter indices.
12452 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12453 (ipcp_update_bits): Likewise.
12454 (ipcp_update_vr): Likewise.
12455 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12456 * ipa-sra.c: New file.
12457 * multiple_target.c (create_target_clone): Update to reflet new type
12458 of create_version_clone_with_body.
12459 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12460 tree_function_versioning.
12461 (modify_function): Update to reflect new type of
12462 tree_function_versioning.
12463 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12464 * passes.def: Remove old IPA-SRA and add new one.
12465 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12466 (make_pass_ipa_sra): Declare.
12467 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12468 ipa_sra_retvalues.
12469 * doc/invoke.texi (ipa-sra-max-replacements): New.
12470
12471 2019-09-19 Martin Sebor <msebor@redhat.com>
12472
12473 PR middle-end/91631
12474 * builtins.c (component_size): Correct trailing array computation,
12475 rename to component_ref_size and move...
12476 (compute_objsize): Adjust.
12477 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12478 (builtin_access::strict): Do not consider memmove.
12479 (builtin_access::write_off): New function.
12480 (builtin_memref::builtin_memref): Initialize refsize.
12481 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12482 refsize.
12483 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12484 Handle refsize.
12485 (builtin_access::builtin_access): Initialize dstoff to destination
12486 refeence offset here instead of in maybe_diag_overlap. Adjust
12487 referencess even to unrelated objects. Adjust sizrange of bounded
12488 string functions to reflect bound. For strcat, adjust destination
12489 sizrange by that of source.
12490 (builtin_access::strcat_overlap): Adjust offsets and sizes
12491 to reflect the increase in destination sizrange above.
12492 (builtin_access::overlap): Do not set dstoff here but instead
12493 in builtin_access::builtin_access.
12494 (check_bounds_or_overlap): Use builtin_access::write_off.
12495 (maybe_diag_access_bounds): Add argument. Add informational notes.
12496 (dump_builtin_memref, dump_builtin_access): New functions.
12497 * tree.c (component_ref_size): ...to here.
12498 * tree.h (component_ref_size): Declare.
12499 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12500 nul in the size of the source string.
12501
12502 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12503
12504 PR c/67224
12505 * doc/cpp.texi: Document support for extended characters in
12506 identifiers.
12507 * doc/cppopts.texi: Likewise.
12508
12509 2019-09-19 Richard Biener <rguenther@suse.de>
12510
12511 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12512 (check_reduction_path): New overload having the path as result.
12513 (vect_is_simple_reduction): From the detected reduction
12514 path build a SLP reduction chain if possible.
12515
12516 2019-09-19 Richard Biener <rguenther@suse.de>
12517
12518 PR target/91814
12519 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12520 Force operand to a register if it isn't nonimmediate_operand.
12521
12522 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12523
12524 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12525 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12526 (logical_op): Remove code attribute.
12527 (logical_OP): Likewise.
12528
12529 2019-09-19 Martin Liska <mliska@suse.cz>
12530
12531 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12532 Use proper casting.
12533
12534 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12535
12536 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12537 registers with %R.
12538
12539 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12540 for NE comparison of TImode values.
12541 (aarch64_emit_load_exclusive): Add support for TImode.
12542 (aarch64_emit_store_exclusive): Likewise.
12543 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12544 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12545 Change iterator from ALLI to ALLI_TI.
12546 (@atomic_compare_and_swap<JUST_TI>): New.
12547 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12548 (aarch64_load_exclusive_pair): New.
12549 (aarch64_store_exclusive_pair): New.
12550 * config/aarch64/iterators.md (JUST_TI): New.
12551
12552 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12553 strong_zero_p for aarch64_track_speculation; unify some code paths;
12554 use aarch64_gen_compare_reg instead of open-coding.
12555
12556 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12557 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12558 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12559 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12560 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12561 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12562 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12563 (atomic_<atomic_op><ALLI>): Likewise.
12564 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12565 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12566 * doc/invoke.texi: Document -moutline-atomics.
12567
12568 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12569
12570 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12571 trivial predicate for condition branch.
12572 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12573 for switch case.
12574 (compute_bb_predicates): Update predicate based on post-dominating
12575 relationship.
12576 (analyze_function_body): Calculate post-dominating information.
12577
12578 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12579
12580 * tree-vectorizer.h (vectorizable_condition): Take an int
12581 reduction index instead of a boolean flag.
12582 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12583 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12584 reductions if the reduction accumulator is the "then" rather
12585 than the "else" value.
12586 (vect_analyze_stmt): Update call accordingly.
12587 (vect_transform_stmt): Likewise.
12588 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12589 asserting that the index is > 0.
12590
12591 2019-09-19 Martin Liska <mliska@suse.cz>
12592
12593 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12594 (sort_congruence_classes_by_decl_uid): Likewise.
12595 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12596 easier sorting.
12597 (sem_item_optimizer::merge_classes): Likewise.
12598
12599 2019-09-19 Richard Biener <rguenther@suse.de>
12600
12601 PR tree-optimization/91812
12602 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12603 volatile loads.
12604
12605 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12606
12607 * defaults.h (TARGET_UNIT): New macro.
12608 (target_unit): New type.
12609 * rtl.h (native_encode_rtx, native_decode_rtx)
12610 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12611 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12612 * rtlanal.c (subreg_lsb_1): Delete.
12613 (subreg_size_lsb): New function.
12614 * simplify-rtx.c: Include rtx-vector-builder.h
12615 (simplify_immed_subreg): Delete.
12616 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12617 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12618 functions.
12619 (simplify_subreg): Use them.
12620 (test_vector_subregs_modes, test_vector_subregs_repeating)
12621 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12622 (test_vector_subregs): New functions.
12623 (test_vector_ops): Call test_vector_subregs for integer vector
12624 modes with at least 2 elements.
12625
12626 2019-09-19 Richard Biener <rguenther@suse.de>
12627
12628 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12629 LOOP_VINFO_OPERANDS_SWAPPED.
12630 (parloops_is_simple_reduction): Likewise.
12631 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12632 initialize operands_swapped.
12633 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12634 (vect_is_slp_reduction): Do not swap operands.
12635 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12636 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12637
12638 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12639
12640 PR target/87007
12641 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12642 Add avx_partial_xmm_update.
12643
12644 2019-09-18 Jim Wilson <jimw@sifive.com>
12645
12646 PR target/91683
12647 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12648 (riscv_move_integer): Likewise.
12649 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12650 riscv_move_integer arg.
12651 (riscv_legitimize_move): Likewise.
12652 (riscv_force_temporary): New parameter in_splitter. Don't call
12653 force_reg if true.
12654 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12655 arg.
12656 (riscv_add_offset): Likewise.
12657 (riscv_split_symbol): New parameter in_splitter. Pass to
12658 riscv_force_temporary.
12659 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12660 arg.
12661 (riscv_move_integer): New parameter in_splitter. New local
12662 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12663 in_splitter TRUE.
12664 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12665 riscv_split_symbol, and riscv_force_temporary args.
12666 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12667 riscv_move_integer arg.
12668 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12669
12670 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12671
12672 PR target/90878
12673 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12674 hard register store cost to 6.
12675
12676 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12677
12678 PR target/91446
12679 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12680 pseudo register store cost from 3 to 6 to make it the same as
12681 QImode and HImode.
12682
12683 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12684
12685 PR target/91738
12686 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12687 (one_cmpldi2): Likewise.
12688 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12689 of the constant parts is simple.
12690 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12691 (logical_op): Add new code attribute.
12692 (logical_OP): Likewise.
12693 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12694 (arm_iordi_operand): Add predicate.
12695 (arm_xordi_operand): Add predicate.
12696
12697 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12698
12699 * config/arm/arm.md (maddsidi4): Remove expander.
12700 (mulsidi3adddi): Remove pattern.
12701 (mulsidi3adddi_v6): Likewise.
12702 (mulsidi3_nov6): Likewise.
12703 (mulsidi3_v6): Likewise.
12704 (umulsidi3): Remove expander.
12705 (umulsidi3_nov6): Remove pattern.
12706 (umulsidi3_v6): Likewise.
12707 (umulsidi3adddi): Likewise.
12708 (umulsidi3adddi_v6): Likewise.
12709 (<Us>mulsidi3): Add combined expander.
12710 (<Us>maddsidi4): Likewise.
12711 (<US>mull): Add combined umull and smull pattern.
12712 (<US>mlal): Likewise.
12713 * config/arm/iterators.md (Us): Add new iterator.
12714
12715 2019-09-18 Richard Biener <rguenther@suse.de>
12716
12717 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12718 swapping.
12719 (vectorize_fold_left_reduction): Remove assert.
12720 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12721 operand in position 2. Remove assert.
12722
12723 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12724
12725 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12726 (smulsi3_highpart_nov6): Remove pattern.
12727 (smulsi3_highpart_v6): Likewise.
12728 (umulsi3_highpart): Likewise.
12729 (umulsi3_highpart_nov6): Likewise.
12730 (umulsi3_highpart_v6): Likewise.
12731 (<US>mull_high): Add new combined multiply pattern.
12732
12733 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12734
12735 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12736 (arm_mulsi3_v6): Likewise.
12737 (mulsi3addsi_v6): Likewise.
12738 (mulsi3subsi): Likewise.
12739 (mul): Add new multiply pattern.
12740 (mla): Likewise.
12741 (mls): Likewise.
12742
12743 2019-09-18 Richard Biener <rguenther@suse.de>
12744
12745 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12746 (parloops_valid_reduction_input_p): Copy from
12747 valid_reduction_input_p.
12748 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12749 (parloops_needs_fold_left_reduction_p): Copy from
12750 needs_fold_left_reduction_p.
12751 (parloops_is_simple_reduction): Copy from
12752 vect_is_simple_reduction.
12753 (parloops_force_simple_reduction): Copy from
12754 vect_force_simple_reduction.
12755 (gather_scalar_reductions): Adjust.
12756 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12757 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12758
12759 2019-09-18 Richard Biener <rguenther@suse.de>
12760
12761 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12762 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12763 static.
12764 (vect_create_epilog_for_reduction): Remove dead code.
12765
12766 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12767
12768 * varasm.c (assemble_real): Generate canonical const_ints.
12769
12770 2019-09-18 Richard Biener <rguenther@suse.de>
12771
12772 PR lto/91763
12773 * lto-streamer-in.c (input_eh_regions): Move EH init to
12774 lto_materialize_function.
12775 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12776 Likewise.
12777
12778 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12779
12780 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12781 are INTEGER_CSTs.
12782
12783 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12784
12785 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12786 of checking specifically for INTEGER_CST.
12787
12788 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12789
12790 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12791 sizes instead of uhwi sizes.
12792
12793 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12794
12795 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12796 (add_const_value_attribute): Handle CONST_POLY_INT.
12797
12798 2019-09-18 Martin Liska <mliska@suse.cz>
12799
12800 * dbgcnt.def (store_merging): New counter.
12801 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12802 Use it in store merging.
12803
12804 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12805
12806 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12807 function.
12808 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12809 * config/arm/arm.c (arm_sched_variable_issue): New function.
12810 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12811
12812 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12813
12814 * config/arm/types.md (no_reservation): New reservation.
12815 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12816 no_insn here.
12817 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12818 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12819 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12820 * config/arm/arm1020e.md (1020alu_op): Likewise.
12821 * config/arm/arm1026ejs.md (alu_op): Likewise.
12822 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12823 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12824 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12825 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12826 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12827 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12828 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12829 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12830 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12831 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12832 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12833 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12834 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12835 * config/arm/fa526.md (526_alu_op): Likewise.
12836 * config/arm/fa606te.md (606te_alu_op): Likewise.
12837 * config/arm/fa626te.md (626te_alu_op): Likewise.
12838 * config/arm/fa726te.md (726te_alu_op): Likewise.
12839 * config/arm/xgene1.md (xgene1_nop): Likewise.
12840
12841 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12842
12843 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12844 "no_insn" to "branch".
12845
12846 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12847
12848 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12849
12850 2019-09-17 Richard Biener <rguenther@suse.de>
12851
12852 PR debug/91772
12853 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12854 was missing generate locations only once.
12855
12856 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12857
12858 PR ipa/91089
12859 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12860 option.
12861 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12862 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12863 for switch default case using range analysis information.
12864
12865 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12866
12867 PR target/91749
12868 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12869 mode attributed is supported by FDPIC.
12870
12871 2019-09-17 Richard Biener <rguenther@suse.de>
12872
12873 PR tree-optimization/91790
12874 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12875 use the correct DR for setting up realignment.
12876
12877 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12878
12879 PR target/91719
12880 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12881 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12882 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12883 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12884
12885 2019-09-16 Jason Merrill <jason@redhat.com>
12886
12887 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12888
12889 2019-09-16 Martin Liska <mliska@suse.cz>
12890
12891 * gimple-fold.c (or_comparisons_1): Remove rules moved
12892 to ...
12893 * match.pd: ... here.
12894
12895 2019-09-16 Martin Liska <mliska@suse.cz>
12896
12897 * gimple-fold.c (or_comparisons_1): Remove rules
12898 moved to ...
12899 * match.pd: ... here.
12900
12901 2019-09-16 Martin Liska <mliska@suse.cz>
12902
12903 * genmatch.c (dt_node::append_simplify): Do not print
12904 warning when we have duplicate patterns belonging
12905 to a same simplify rule.
12906 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12907 (maybe_fold_comparisons_from_match_pd): Handle
12908 tcc_comparison as a results.
12909 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12910
12911 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12912 Qi Feng <ffengqi@linux.ibm.com>
12913
12914 PR middle-end/88784
12915 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12916 (x > y && x == XXX_MIN): Optimize into 'false'.
12917 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12918 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12919 (x < y && x == XXX_MAX): Optimize into 'false'.
12920 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12921 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12922 (x <= y || x != XXX_MIN): Optimize into 'true'.
12923 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12924 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12925 (x >= y || x != XXX_MAX): Optimize into 'true'.
12926 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12927
12928 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12929 Martin Liska <mliska@suse.cz>
12930
12931 * gimple-fold.c (and_comparisons_1): Add type as first
12932 argument.
12933 (and_var_with_comparison): Likewise.
12934 (and_var_with_comparison_1): Likewise.
12935 (or_comparisons_1): Likewise.
12936 (or_var_with_comparison): Likewise.
12937 (or_var_with_comparison_1): Likewise.
12938 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12939 (maybe_fold_or_comparisons): Likewise.
12940 (maybe_fold_comparisons_from_match_pd): New.
12941 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12942 (maybe_fold_or_comparisons): Likewise.
12943 * gimple.c (gimple_size): Make it public and add num_ops argument.
12944 (gimple_init): New function.
12945 (gimple_alloc): Call gimple_init.
12946 * gimple.h (gimple_size): New.
12947 (gimple_init): Likewise.
12948 * tree-if-conv.c (fold_or_predicates): Pass type.
12949 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12950 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12951 (optimize_vec_cond_expr): Likewise.
12952 (ovce_extract_ops): Return type of conditional expression.
12953 * tree-ssanames.c (init_ssa_name_imm_use): New.
12954 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12955 * tree-ssanames.h (init_ssa_name_imm_use): New.
12956
12957 2019-09-16 Richard Biener <rguenther@suse.de>
12958
12959 PR tree-optimization/91756
12960 PR tree-optimization/87132
12961 * tree-ssa-alias.h (enum translate_flags): New.
12962 (get_continuation_for_phi): Use it instead of simple bool flag.
12963 (walk_non_aliased_vuses): Likewise.
12964 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12965 (get_continuation_for_phi): When looking across backedges only
12966 disallow valueization.
12967 (walk_non_aliased_vuses): Adjust.
12968 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12969 if requested.
12970
12971 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12972
12973 PR middle-end/80791
12974 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12975 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12976 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12977 * target.def (have_count_reg_decr_p): New hook.
12978 (doloop_cost_for_generic): Likewise.
12979 (doloop_cost_for_address): Likewise.
12980 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12981 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12982 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12983 * doc/tm.texi: Regenerate.
12984 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12985 addend.
12986 (record_group): Init doloop_p.
12987 (add_candidate_1): Add optional argument doloop, change the handlings
12988 accordingly.
12989 (add_candidate): Likewise.
12990 (generic_predict_doloop_p): Update attribute.
12991 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12992 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12993 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12994 MIN_EXPR.
12995 (get_computation_cost): Update for doloop IV cand extra cost.
12996 (determine_group_iv_cost_cond): Update for doloop IV cand.
12997 (determine_iv_cost): Likewise.
12998 (ivopts_estimate_reg_pressure): Likewise.
12999 (may_eliminate_iv): Update handlings for doloop IV cand.
13000 (add_iv_candidate_for_doloop): New function.
13001 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13002 (iv_ca_set_no_cp): Update for doloop IV cand.
13003 (iv_ca_set_cp): Likewise.
13004 (iv_ca_dump): Dump register cost.
13005 (find_doloop_use): New function.
13006 (analyze_and_mark_doloop_use): Likewise.
13007 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13008
13009 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13010
13011 PR middle-end/91708
13012 * cse.c (cse_insn): Do not replace anything with a
13013 MEM.
13014
13015 2019-09-13 Ian Lance Taylor <iant@golang.org>
13016
13017 * doc/invoke.texi (Optimize Options): Fix typo.
13018
13019 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13020
13021 PR tree-optimization/89386
13022 * config/i386/sse.md (smulhrs<mode>3): New expander.
13023 (smulhrsv4hi3): Ditto.
13024
13025 2019-09-12 Richard Biener <rguenther@suse.de>
13026
13027 PR tree-optimization/91750
13028 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13029 in the type of the evolution.
13030
13031 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13032
13033 PR tree-optimization/89386
13034 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13035 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13036 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13037 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13038 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13039 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13040 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13041 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13042 (su, r): Handle the unspecs above.
13043 (bt): New int attribute.
13044 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13045 * internal-fn.c (first_commutative_argument): Commutativity info for
13046 above.
13047 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13048 (umulhrs_optab): New optabs.
13049 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13050 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13051 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13052 function.
13053 (vect_vect_recog_func_ptrs): Add it.
13054
13055 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13056
13057 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13058 code.
13059
13060 2019-09-11 Nathan Sidwell <nathan@acm.org>
13061
13062 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13063 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13064
13065 2019-09-11 Richard Biener <rguenther@suse.de>
13066
13067 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13068 * lto-wrapper.c (merge_and_complain): Pick up -g.
13069 (append_compiler_options): Likewise.
13070 (run_gcc): Re-instantiate handling -g0 at link-time.
13071 * doc/invoke.texi (flto): Document debug info generation.
13072
13073 2019-09-11 Richard Biener <rguenther@suse.de>
13074
13075 PR tree-optimization/90387
13076 * vr-values.c (vr_values::extract_range_basic): After inlining
13077 simplify non-constant __builtin_constant_p to false.
13078
13079 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13080
13081 PR rtl-optimization/89795
13082 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13083 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13084
13085 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13086
13087 PR tree-optimization/91723
13088 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13089 instead of pointer equality when checking if argument vectypes are
13090 the same.
13091
13092 PR middle-end/91725
13093 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13094 of get_nonzero_bits, only call it for integral types.
13095
13096 2019-09-11 Richard Biener <rguenther@suse.de>
13097
13098 Revert
13099 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13100
13101 * match.pd: Add flag_unsafe_math_optimizations check
13102 before deciding on the widest type in a binary math operation.
13103
13104 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13105
13106 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13107 and CALL_REALLY_USED_REGISTERS must be defined, and that
13108 CALL_REALLY_USED_REGISTERS is preferred.
13109 * doc/tm.texi: Regenerate.
13110 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13111 (call_really_used_regs): Likewise.
13112 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13113 CALL_REALLY_USED_REGISTERS are defined.
13114 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13115 initial value if defined.
13116 (initial_call_really_used_regs): Delete.
13117 (saved_call_really_used_regs): Likewise.
13118 (CALL_REALLY_USED_REGNO_P): Likewise.
13119 (init_reg_sets): Remove handling of call_really_used_regs.
13120 (save_register_info, restore_register_info, globalize_reg): Likewise.
13121 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13122 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13123 outside operand_reg_set.
13124 (fix_register): Don't change call_used_regs if
13125 CALL_REALLY_USED_REGISTERS is defined.
13126 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13127 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13128 instead of call_really_used_regs.
13129 (csky_conditional_register_usage): Remove the old handling of
13130 call_used_regs and change the handling of call_really_used_regs
13131 to use call_used_regs instead.
13132 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13133 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13134 making a register fixed.
13135 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13136 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13137 instead of call_really_used_regs.
13138 (m32r_conditional_register_usage): Don't set call_used_regs when
13139 making a register fixed.
13140 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13141 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13142 instead of call_really_used_regs.
13143 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13144 (mips_cfun_call_saved_reg_p): Likewise.
13145 (mips_swap_registers): Remove the old handling of call_used_regs
13146 and change the handling of call_really_used_regs to use call_used_regs
13147 instead.
13148 (mips_conditional_register_usage): Likewise.
13149 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13150 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13151 instead of call_really_used_regs.
13152 (mn10300_get_live_callee_saved_regs): Likewise.
13153 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13154 (mn10300_conditional_register_usage): Don't set call_used_regs when
13155 making a register fixed.
13156 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13157 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13158 Remove the old handling of call_used_regs and change the handling
13159 of call_really_used_regs to use call_used_regs instead.
13160 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13161 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13162 instead of call_really_used_regs.
13163 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13164 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13165 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13166 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13167 (s390_conditional_register_usage): Remove the old handling of
13168 call_used_regs and change the handling of call_really_used_regs
13169 to use call_used_regs instead.
13170 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13171 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13172 (sh_fix_range, reg_unused_after): Likewise.
13173 (sh_conditional_register_usage): Remove the old handling of
13174 call_used_regs and change the handling of call_really_used_regs
13175 to use call_used_regs instead.
13176 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13177 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13178 call_used_regs when making a register fixed.
13179 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13180 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13181 call_used_regs when making a register fixed.
13182 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13183 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13184 set call_used_regs when making a register fixed.
13185 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13186 * config/visium/visium.c (visium_conditional_register_usage): Remove
13187 the old handling of call_used_regs and change the handling of
13188 call_really_used_regs to use call_used_regs instead.
13189
13190 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13191
13192 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13193 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13194 * reginfo.c (call_used_regs): New macro.
13195
13196 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13197
13198 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13199 fixed_regs test.
13200 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13201 (bpf_expand_epilogue): Likewise.
13202 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13203 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13204 (ft32_expand_epilogue): Likewise.
13205 * config/i386/i386.c (ix86_save_reg): Likewise.
13206 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13207 (moxie_expand_epilogue): Likewise.
13208 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13209 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13210 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13211
13212 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13213
13214 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13215 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13216 instead of testing call_used_regs directly.
13217 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13218 (aarch64_components_for_bb): Likewise.
13219 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13220 * config/arc/arc.c (arc_must_save_register): Likewise.
13221 (arc_epilogue_uses): Likewise.
13222 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13223 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13224 (arm_compute_save_reg0_reg12_mask): Likewise.
13225 (arm_compute_save_core_reg_mask): Likewise.
13226 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13227 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13228 (cmse_nonsecure_entry_clear_before_return): Likewise.
13229 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13230 (arm_expand_epilogue): Likewise.
13231 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13232 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13233 (_reg_unused_after): Likewise.
13234 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13235 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13236 (add_to_reg, hwloop_optimize): Likewise.
13237 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13238 (bpf_expand_epilogue): Likewise.
13239 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13240 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13241 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13242 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13243 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13244 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13245 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13246 * config/frv/frv.c (frv_stack_info): Likewise.
13247 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13248 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13249 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13250 (move_callee_saved_registers): Likewise.
13251 * config/h8300/h8300.c (byte_reg): Likewise.
13252 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13253 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13254 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13255 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13256 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13257 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13258 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13259 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13260 * config/m32c/m32c.c (need_to_save): Likewise.
13261 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13262 * config/mcore/mcore.c (calc_live_regs): Likewise.
13263 * config/microblaze/microblaze.c (microblaze_must_save_register):
13264 Likewise.
13265 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13266 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13267 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13268 (mmix_expand_epilogue): Likewise.
13269 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13270 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13271 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13272 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13273 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13274 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13275 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13276 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13277 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13278 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13279 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13280 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13281 * config/rl78/rl78.c (need_to_save): Likewise.
13282 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13283 (rs6000_stack_info, generate_set_vrsave): Likewise.
13284 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13285 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13286 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13287 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13288 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13289 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13290 (save_local_or_in_reg_p): Likewise.
13291 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13292 (xstormy16_epilogue_uses): Likewise.
13293 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13294 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13295 * config/v850/v850.c (compute_register_save_size): Likewise.
13296 * config/vax/vax.c (vax_expand_prologue): Likewise.
13297 * config/visium/visium.c (visium_save_reg_p): Likewise.
13298 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13299 * cselib.c (cselib_process_insn): Likewise.
13300 * df-scan.c (df_get_entry_block_def_set): Likewise.
13301 * function.c (aggregate_value_p): Likewise.
13302 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13303 * ira-lives.c (process_bb_node_lives): Likewise.
13304 * ira.c (do_reload): Likewise.
13305 * lra-lives.c (process_bb_lives): Likewise.
13306 * lra-remat.c (lra_remat): Likewise.
13307 * lra.c (lra): Likewise.
13308 * postreload.c (reload_combine_recognize_pattern): Likewise.
13309 (reload_cse_move2add): Likewise.
13310 * recog.c (peep2_find_free_register): Likewise.
13311 * regrename.c (check_new_reg_p): Likewise.
13312 * reload.c (find_equiv_reg): Likewise.
13313 * reload1.c (reload, find_reg): Likewise.
13314 * sel-sched.c (init_hard_regs_data): Likewise.
13315
13316 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13317
13318 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13319 regs_invalidated_by_call & ~fixed_reg_set instead of
13320 call_used_or_fixed_regs & ~fixed_reg_set.
13321 * config/sh/sh.c (output_stack_adjust): Likewise.
13322
13323 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13324
13325 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13326 (call_used_reg_set): Delete.
13327 (call_used_or_fixed_regs): New macro.
13328 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13329 of call_used_reg_set.
13330 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13331 instead of call_used_regs.
13332 (save_call_clobbered_regs): Likewise.
13333 * cfgcleanup.c (old_insns_match_p): Likewise.
13334 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13335 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13336 Likewise.
13337 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13338 * config/sh/sh.c (output_stack_adjust): Likewise.
13339 * final.c (collect_fn_hard_reg_usage): Likewise.
13340 * ira-build.c (ira_build): Likewise.
13341 * ira-color.c (calculate_saved_nregs): Likewise.
13342 (allocno_reload_assign, calculate_spill_cost): Likewise.
13343 * ira-conflicts.c (ira_build_conflicts): Likewise.
13344 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13345 * ira-lives.c (process_bb_node_lives): Likewise.
13346 * ira.c (setup_reg_renumber): Likewise.
13347 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13348 * lra-constraints.c (need_for_call_save_p): Likewise.
13349 (need_for_split_p, inherit_in_ebb): Likewise.
13350 * lra-lives.c (process_bb_lives): Likewise.
13351 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13352 * postreload.c (reload_combine): Likewise.
13353 * regrename.c (find_rename_reg): Likewise.
13354 * reload1.c (reload_as_needed): Likewise.
13355 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13356 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13357 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13358
13359 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13360
13361 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13362 (no_caller_save_reg_set): Delete.
13363 * caller-save.c (init_caller_save): Don't initialize it.
13364 * ira-conflicts.c (ira_build_conflicts): Calculate
13365 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13366
13367 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13368
13369 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13370 (target_hard_regs::x_savable_regs): New field.
13371 (call_fixed_reg_set): Delete.
13372 (savable_regs): New macro,
13373 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13374 (init_reg_sets_1): Likewise. Initialize savable_regs.
13375 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13376 for all registers. Set savable_regs instead of call_fixed_reg_set.
13377 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13378 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13379 * config/sh/sh.c (output_stack_adjust): Likewise.
13380
13381 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13382
13383 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13384 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13385 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13386
13387 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13388
13389 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13390 * rtlanal.c (get_call_rtx_from): Likewise.
13391 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13392 than the pattern to get_call_rtx_from.
13393 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13394 an rtx_insn * instead of an rtx.
13395 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13396
13397 2019-09-10 Martin Liska <mliska@suse.cz>
13398
13399 * common.opt: Use newly added WarnRemoved.
13400 * config/aarch64/aarch64.opt: Likewise.
13401 * config/arm/arm.opt: Likewise.
13402 * config/i386/i386.opt: Likewise.
13403 * config/ia64/ia64.opt: Likewise.
13404 * config/rs6000/rs6000.opt: Likewise.
13405 * doc/options.texi: Document WarnRemoved properly.
13406 * dwarf2out.c (gen_producer_string): Handle renamed
13407 OPT_SPECIAL_warn_removed.
13408 * lto-opts.c (lto_write_options): Likewise.
13409 * lto-wrapper.c (merge_and_complain): Likewise.
13410 * opts-common.c (decode_cmdline_option): Likewise.
13411 (prune_options): Likewise.
13412 (read_cmdline_option): Likewise.
13413 (control_warning_option): Likewise.
13414 * opts.c (print_filtered_help): Likewise.
13415 * optc-gen.awk: Parse for WarnRemoved and make usage
13416 of Deprecated an error.
13417 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13418
13419 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13420
13421 * doc/install.texi: Fix syntax for html generation.
13422
13423 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13424
13425 PR middle-end/91680
13426 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13427 the shift type to type.
13428
13429 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13430
13431 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13432 FDPIC mode.
13433 (stack_protect_combined_test_insn): Likewise.
13434
13435 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13436 Mickaël Guêné <mickael.guene@st.com>
13437
13438 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13439 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13440 (load_tp_soft_fdpic): New pattern.
13441 (load_tp_soft): Disable in FDPIC mode.
13442
13443 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13444 Mickaël Guêné <mickael.guene@st.com>
13445
13446 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13447 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13448 (arm_call_tls_get_addr): Add FDPIC support.
13449 (legitimize_tls_address): Likewise.
13450 (arm_emit_tls_decoration): Likewise.
13451
13452 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13453 Mickaël Guêné <mickael.guene@st.com>
13454
13455 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13456 support.
13457 (arm_trampoline_init): Likewise.
13458 (arm_trampoline_adjust_address): Likewise.
13459 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13460
13461 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13462 Mickaël Guêné <mickael.guene@st.com>
13463
13464 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13465 (legitimize_pic_address): Enforce binding rules on function
13466 pointers in FDPIC mode.
13467 (arm_assemble_integer): Likewise.
13468
13469 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13470 Mickaël Guêné <mickael.guene@st.com>
13471
13472 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13473 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13474 FDPIC.
13475
13476 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13477 Mickaël Guêné <mickael.guene@st.com>
13478
13479 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13480 field.
13481
13482 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13483 Mickaël Guêné <mickael.guene@st.com>
13484
13485 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13486 in FDPIC mode.
13487 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13488 new function.
13489 * config/arm/arm.c (arm_option_override): Define pic register to
13490 FDPIC_REGNUM.
13491 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13492 have no decl or go through PLT.
13493 (calculate_pic_address_constant): New function.
13494 (legitimize_pic_address): Call calculate_pic_address_constant.
13495 (arm_load_pic_register): Handle TARGET_FDPIC.
13496 (arm_is_segment_info_known): New function.
13497 (arm_pic_static_addr): Add support for FDPIC.
13498 (arm_load_function_descriptor): New function.
13499 (arm_emit_call_insn): Add support for FDPIC.
13500 (arm_assemble_integer): Add support for FDPIC.
13501 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13502 Define. (FDPIC_REGNUM): New define.
13503 * config/arm/arm.md (call): Add support for FDPIC.
13504 (call_value): Likewise.
13505 (restore_pic_register_after_call): New pattern.
13506 (untyped_call): Disable if FDPIC.
13507 (untyped_return): Likewise.
13508 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13509
13510 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13511 Mickaël Guêné <mickael.guene@st.com>
13512
13513 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13514 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13515 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13516 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13517 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13518 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13519 * config/arm/uclinuxfdpiceabi.h: New file.
13520
13521 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13522
13523 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13524
13525 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13526 Mickaël Guêné <mickael.guene@st.com>
13527
13528 * config/arm/arm.opt: Add -mfdpic option.
13529 * doc/invoke.texi: Add documentation for -mfdpic.
13530
13531 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13532
13533 * expmed.c (extract_bit_field): Update function comment
13534 regarding alt_rtl.
13535 * expr.c (expand_expr_real): Update function comment
13536 regarding alt_rtl.
13537 (expand_misaligned_mem_ref): New helper function.
13538 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13539 Remove duplicate assignment to "base" at case MEM_REF.
13540 Remove a shadowed variable "unsignedp" at case VCE.
13541
13542 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13543
13544 * regset.h (regs_invalidated_by_call_regset): Delete.
13545 (fixed_reg_set_regset): Likewise.
13546 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13547 (fixed_reg_set_regset, persistent_obstack): Likewise.
13548 (init_reg_sets_1, globalize_reg): Update accordingly.
13549 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13550 instead of a bitmap.
13551 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13552 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13553 instead of regs_invalidated_by_call_regset.
13554 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13555 * df-scan.c (df_scan_start_dump): Likewise.
13556 * dse.c (copy_fixed_regs): Likewise.
13557 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13558
13559 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13560
13561 * array-traits.h: New file.
13562 * coretypes.h (array_traits, bitmap_view): New types.
13563 * bitmap.h: Include "array-traits.h"
13564 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13565 (base_bitmap_view, bitmap_view): New classes.
13566 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13567 * hard-reg-set.h: Include array-traits.h.
13568 (array_traits<HARD_REG_SET>): New struct.
13569 * regset.h (IOR_REG_SET_HRS): New macro.
13570 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13571 rather than iterating over each hard register.
13572 * sched-deps.c (sched_analyze_insn): Likewise.
13573 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13574
13575 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13576
13577 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13578 instead of a HARD_REG_SET *.
13579 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13580 (ira_build): Update call accordingly.
13581 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13582
13583 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13584
13585 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13586 (HARD_REG_SET::operator!=): Likewise.
13587 (hard_reg_set_equal_p): Delete.
13588 * cfgcleanup.c (old_insns_match_p): Use == instead of
13589 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13590 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13591 (add_allocno_hard_regs_to_forest): Likewise.
13592 (setup_allocno_available_regs_num): Likewise.
13593 * ira.c (setup_pressure_classes): Likewise.
13594 (setup_allocno_and_important_classes): Likewise.
13595 (setup_reg_class_relations): Likewise.
13596 * lra-lives.c (process_bb_lives): Likewise.
13597 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13598
13599 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13600
13601 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13602 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13603 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13604 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13605 Likewise.
13606 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13607 * ira.c (setup_reg_renumber): Likewise.
13608 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13609 * regrename.c (regrename_find_superclass): Likewise.
13610 * reload1.c (find_reg): Likewise.
13611
13612 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13613
13614 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13615 * caller-save.c (setup_save_areas): Use "&~" instead of
13616 AND_COMPL_HARD_REG_SET.
13617 (save_call_clobbered_regs): Likewise.
13618 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13619 Likewise.
13620 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13621 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13622 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13623 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13624 (mips_conditional_register_usage): Likewise.
13625 * config/sh/sh.c (output_stack_adjust): Likewise.
13626 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13627 (setup_profitable_hard_regs): Likewise.
13628 (get_conflict_and_start_profitable_regs): Likewise.
13629 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13630 (ira_build_conflicts): Likewise.
13631 * ira-costs.c (restrict_cost_classes): Likewise.
13632 (setup_regno_cost_classes_by_aclass): Likewise.
13633 * ira-lives.c (process_bb_node_lives): Likewise.
13634 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13635 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13636 (setup_allocno_and_important_classes, setup_class_translate_array)
13637 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13638 Likewise.
13639 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13640 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13641 (process_alt_operands, inherit_in_ebb): Likewise.
13642 * lra-eliminations.c (update_reg_eliminate): Likewise.
13643 * lra-lives.c (process_bb_lives): Likewise.
13644 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13645 * resource.c (find_dead_or_set_registers): Likewise.
13646 (mark_target_live_regs): Likewise.
13647 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13648 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13649 (implicit_clobber_conflict_p): Likewise.
13650 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13651 (try_shrink_wrapping): Likewise.
13652
13653 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13654
13655 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13656 (HARD_REG_SET::operator|=): Likewise.
13657 (IOR_HARD_REG_SET): Delete.
13658 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13659 IOR_HARD_REG_SET.
13660 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13661 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13662 * final.c (collect_fn_hard_reg_usage): Likewise.
13663 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13664 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13665 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13666 (propagate_some_info_from_allocno): Likewise.
13667 (copy_info_to_removed_store_destinations): Likewise.
13668 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13669 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13670 (fast_allocation): Likewise.
13671 * ira-conflicts.c (ira_build_conflicts): Likewise.
13672 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13673 (process_bb_node_lives): Likewise.
13674 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13675 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13676 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13677 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13678 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13679 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13680 (process_bb_lives): Likewise.
13681 * lra-spills.c (assign_spill_hard_regs): Likewise.
13682 * postreload.c (reload_combine): Likewise.
13683 * reginfo.c (init_reg_sets_1): Likewise.
13684 * regrename.c (merge_overlapping_regs, find_rename_reg)
13685 (merge_chains): Likewise.
13686 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13687 (find_reload_regs, finish_spills, choose_reload_regs_init)
13688 (emit_reload_insns): Likewise.
13689 * reorg.c (redundant_insn): Likewise.
13690 * resource.c (find_dead_or_set_registers, mark_set_resources)
13691 (mark_target_live_regs): Likewise.
13692 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13693 * sched-deps.c (sched_analyze_insn): Likewise.
13694 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13695 (find_best_reg_for_expr): Likewise.
13696 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13697
13698 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13699
13700 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13701 (HARD_REG_SET::operator&): Likewise.
13702 (AND_HARD_REG_SET): Delete.
13703 * caller-save.c (setup_save_areas): Use "&" instead of
13704 AND_HARD_REG_SET.
13705 (save_call_clobbered_regs): Likewise.
13706 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13707 * config/m32c/m32c.c (reduce_class): Likewise.
13708 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13709 * final.c (get_call_reg_set_usage): Likewise.
13710 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13711 (setup_left_conflict_sizes_p): Likewise.
13712 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13713 (ira_build_conflicts): Likewise.
13714 * ira-costs.c (restrict_cost_classes): Likewise.
13715 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13716 (setup_reg_class_relations): Likewise.
13717 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13718 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13719 * resource.c (find_dead_or_set_registers): Likewise.
13720 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13721
13722 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13723
13724 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13725 (COMPL_HARD_REG_SET): Delete.
13726 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13727 of COMPL_HARD_REG_SET.
13728 (try_rename_operands): Likewise.
13729 * config/sh/sh.c (push_regs): Likewise.
13730 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13731 * lra-constraints.c (contains_reg_p): Likewise.
13732 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13733
13734 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13735
13736 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13737 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13738 of COPY_HARD_REG_SET.
13739 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13740 (epiphany_conditional_register_usage): Likewise.
13741 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13742 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13743 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13744 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13745 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13746 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13747 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13748 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13749 * config/sh/sh.c (output_stack_adjust): Likewise.
13750 * final.c (collect_fn_hard_reg_usage): Likewise.
13751 (get_call_reg_set_usage): Likewise.
13752 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13753 (ira_flattening): Likewise.
13754 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13755 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13756 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13757 (ira_reassign_pseudos): Likewise.
13758 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13759 (ira_build_conflicts): Likewise.
13760 * ira-costs.c (restrict_cost_classes): Likewise.
13761 (setup_regno_cost_classes_by_aclass): Likewise.
13762 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13763 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13764 (setup_stack_reg_pressure_class, setup_pressure_classes)
13765 (setup_allocno_and_important_classes, setup_class_translate_array)
13766 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13767 (ira_setup_eliminable_regset): Likewise.
13768 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13769 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13770 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13771 (process_alt_operands, inherit_in_ebb): Likewise.
13772 * lra-lives.c (process_bb_lives): Likewise.
13773 * lra-spills.c (assign_spill_hard_regs): Likewise.
13774 * lra.c (lra): Likewise.
13775 * mode-switching.c (new_seginfo): Likewise.
13776 * postreload.c (reload_combine): Likewise.
13777 * reg-stack.c (straighten_stack): Likewise.
13778 * reginfo.c (save_register_info, restore_register_info): Likewise.
13779 (init_reg_sets_1, record_subregs_of_mode): Likewise
13780 * regrename.c (create_new_chain, rename_chains): Likewise.
13781 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13782 (find_reload_regs): Likewise.
13783 * resource.c (find_dead_or_set_registers): Likewise.
13784 (mark_target_live_regs): Likewise.
13785 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13786
13787 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13788
13789 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13790 (note_pattern_stores): Declare.
13791 (note_stores): Take an rtx_insn *.
13792 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13793 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13794 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13795 (note_stores): Take an rtx_insn * as argument and process
13796 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13797 (note_pattern_stores): ...this.
13798 (find_first_parameter_load): Pass the insn rather than
13799 its pattern to note_stores.
13800 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13801 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13802 (insert_one_insn): Likewise.
13803 * combine.c (combine_instructions): Likewise.
13804 (likely_spilled_retval_p): Likewise.
13805 (try_combine): Use note_pattern_stores instead of note_stores.
13806 (record_dead_and_set_regs): Pass the insn rather than its pattern
13807 to note_stores.
13808 (reg_dead_at_p): Likewise.
13809 * config/bfin/bfin.c (workaround_speculation): Likewise.
13810 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13811 rather than an rtx.
13812 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13813 instead of note_stores.
13814 (frv_optimize_membar_local): Pass the insn rather than its pattern
13815 to note_stores.
13816 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13817 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13818 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13819 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13820 (mips_reorg_process_insns): Likewise.
13821 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13822 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13823 rather than rtxes.
13824 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13825 its pattern to note_stores.
13826 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13827 of note_stores.
13828 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13829 the insn to note_stores.
13830 (prescan_insns_for_dce): Update call accordingly.
13831 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13832 to note_stores.
13833 * df-problems.c (can_move_insns_across): Likewise.
13834 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13835 * function.c (assign_parm_setup_reg): Likewise.
13836 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13837 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13838 (single_set_gcse): Likewise.
13839 * ira.c (validate_equiv_mem): Likewise.
13840 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13841 for no_equiv.
13842 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13843 pattern to note_stores.
13844 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13845 * loop-iv.c (simplify_using_initial_values): Likewise.
13846 * mode-switching.c (optimize_mode_switching): Likewise.
13847 * optabs.c (emit_libcall_block_1): Likewise.
13848 (expand_atomic_compare_and_swap): Likewise.
13849 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13850 (record_opr_changes): Likewise. Remove explicit handling of
13851 CALL_INSN_FUNCTION_USAGE.
13852 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13853 * regcprop.c (kill_clobbered_values): Likewise.
13854 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13855 to note_stores.
13856 * regrename.c (build_def_use): Likewise.
13857 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13858 for mark_not_eliminable.
13859 (reload_as_needed): Pass the insn rather than its pattern
13860 to note_stores.
13861 (emit_output_reload_insns): Likewise.
13862 * resource.c (mark_target_live_regs): Likewise.
13863 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13864 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13865 instead of note_stores.
13866 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13867 its pattern to note_stores.
13868 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13869 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13870
13871 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13872
13873 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13874 than a #define. Use a structure rather than an array as the
13875 fallback definition. Remove special cases for low array sizes.
13876 (const_hard_reg_set): New typedef.
13877 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13878 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13879 (hard_reg_set_empty_p): Likewise.
13880 (SET_HARD_REG_BIT): Use a function rather than a macro to
13881 handle the case in which HARD_REG_SET is a structure.
13882 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13883 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13884 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13885 (IOR_COMPL_HARD_REG_SET): Likewise.
13886 (hard_reg_set_iterator::pset): Constify the pointer target.
13887 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13888 of a "const HARD_REG_SET". Update the handling of non-integer
13889 HARD_REG_SETs.
13890 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13891 * reload.h: Likewise.
13892 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13893 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13894 of a "const HARD_REG_SET".
13895 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13896 (range_in_hard_reg_set_p): Likewise.
13897 * ira-costs.c (restrict_cost_classes): Likewise.
13898 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13899 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13900 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13901 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13902 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13903 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13904 take an unsigned int and open-code the HARD_REG_SET operations.
13905
13906 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13907
13908 * Makefile.in (OBJS): Remove bt-load.o.
13909 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13910 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13911 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13912 document that the option no longer does anything.
13913 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13914 * target.def (branch_target_register_class): Delete.
13915 (branch_target_register_callee_saved): Likewise.
13916 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13917 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13918 * doc/tm.texi: Regenerate.
13919 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13920 (make_pass_branch_target_load_optimize2): Likewise.
13921 * passes.def (pass_branch_target_load_optimize1): Likewise.
13922 (pass_branch_target_load_optimize2): Likewise.
13923 * targhooks.h (default_branch_target_register_class): Likewise.
13924 * targhooks.c (default_branch_target_register_class): Likewise.
13925 * opt-suggestions.c (test_completion_valid_options): Remove
13926 -fbtr-bb-exclusive from the list of test options.
13927 * bt-load.c: Remove.
13928
13929 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13930
13931 * match.pd: Add flag_unsafe_math_optimizations check
13932 before deciding on the widest type in a binary math operation.
13933
13934 2019-09-09 Martin Liska <mliska@suse.cz>
13935
13936 * config/i386/i386.opt: Update comment of removed
13937 options that are preserved only for backward
13938 compatibility.
13939
13940 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13941
13942 PR target/87853
13943 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13944 instead of __v16qs.
13945
13946 PR target/91704
13947 * config/i386/avxintrin.h (__v32qs): New typedef.
13948 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13949 instead of __v32qi.
13950
13951 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13952
13953 * doc/invoke.texi (Option Summary): Cover eBPF.
13954 (eBPF Options): New section.
13955 * doc/extend.texi (BPF Built-in Functions): Likewise.
13956 (BPF Kernel Helpers): Likewise.
13957
13958 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13959
13960 * config.gcc: Support for bpf-*-* targets.
13961 * common/config/bpf/bpf-common.c: New file.
13962 * config/bpf/t-bpf: Likewise.
13963 * config/bpf/predicates.md: Likewise.
13964 * config/bpf/constraints.md: Likewise.
13965 * config/bpf/bpf.opt: Likewise.
13966 * config/bpf/bpf.md: Likewise.
13967 * config/bpf/bpf.h: Likewise.
13968 * config/bpf/bpf.c: Likewise.
13969 * config/bpf/bpf-protos.h: Likewise.
13970 * config/bpf/bpf-opts.h: Likewise.
13971 * config/bpf/bpf-helpers.h: Likewise.
13972 * config/bpf/bpf-helpers.def: Likewise.
13973
13974 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13975
13976 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13977 indirect_calls.
13978
13979 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13980
13981 * opt-functions.awk (integer_range_info): Make sure values are in
13982 numeric context before operating with them.
13983
13984 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13985
13986 * genemit.c (gen_split): Print the filename and line number where the
13987 splitter (or peephole2) was defined, to the dump file.
13988
13989 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13990
13991 PR tree-optimization/91665
13992 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13993 incompatible with the type of PHI result.
13994
13995 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13996
13997 PR target/91684
13998 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13999 gen_unaligned_storedi for 4-byte aligned addresses.
14000
14001 2019-09-06 Jim Wilson <jimw@sifive.com>
14002
14003 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14004 change.
14005
14006 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14007
14008 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14009
14010 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14011
14012 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14013 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14014
14015 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14016
14017 PR target/91654
14018 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14019 cost of SSE->integer and integer->SSE moves from 2 to 6.
14020 (core_cost): Ditto.
14021
14022 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14023
14024 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14025 before testing TYPE_TRANSPARENT_AGGR.
14026 * calls.c (initialize_argument_information, load_register_parameters):
14027 Likewise.
14028
14029 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14030
14031 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14032 high regs.
14033 (cmp_ior): Likewise.
14034
14035 2019-09-06 Martin Liska <mliska@suse.cz>
14036
14037 * doc/match-and-simplify.texi: Separate tuples with ;.
14038
14039 2019-09-06 Martin Liska <mliska@suse.cz>
14040
14041 PR c++/91125
14042 * Makefile.in: Remove tlink.o.
14043 * collect2.c (do_link): New function isolated
14044 from do_tlink.
14045 (main): Use.
14046 * collect2.h (do_tlink): Remove declaration of do_tlink.
14047 * doc/extend.texi: Remove documentation of -frepo.
14048 * doc/invoke.texi: Likewise.
14049 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14050 * tlink.c: Remove.
14051
14052 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14053 Jim Wilson <jimw@sifive.com>
14054
14055 PR target/91635
14056 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14057 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14058 paradoxical_subreg_p (operands[0]).
14059 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14060 use as intermediate value.
14061
14062 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14063
14064 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14065 (sync_compare_and_swap<mode>_insn): Likewise.
14066
14067 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14068
14069 PR middle-end/91615
14070 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14071 without movmisalign optab.
14072
14073 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14074
14075 PR middle-end/91001
14076 PR middle-end/91105
14077 PR middle-end/91106
14078 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14079 types, use type of their first field instead of type of
14080 args[i].tree_value.
14081
14082 2019-09-05 Richard Biener <rguenther@suse.de>
14083
14084 PR rtl-optimization/91656
14085 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14086 of early out.
14087
14088 2019-09-05 Richard Biener <rguenther@suse.de>
14089
14090 PR middle-end/90501
14091 * tree-inline.c (declare_return_variable): Mark the return
14092 slot as addressable after building an address of it.
14093
14094 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14095
14096 * doc/install.texi: Update and clarify requirements to build GNAT.
14097
14098 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14099
14100 PR middle-end/91577
14101 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14102 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14103 call to be in memory.
14104 (pass_expand::execute): Call discover_nonconstant_array_refs before
14105 setting currently_expanding_to_rtl.
14106
14107 2019-09-04 Caroline Tice <cmtice@google.com>
14108
14109 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14110 specified together.
14111
14112 2019-09-04 Marek Polacek <polacek@redhat.com>
14113
14114 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14115
14116 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14117
14118 PR target/32413
14119 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14120 for QI and HImode moves between SSE and general registers.
14121
14122 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14123
14124 PR c/78736
14125 * doc/invoke.texi: Document -Wenum-conversion.
14126
14127 2019-09-04 Richard Biener <rguenther@suse.de>
14128
14129 PR rtl-optimization/36262
14130 * postreload-gcse.c: Include intl.h and gcse.h.
14131 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14132 to avoid linear list walk.
14133 (record_last_mem_set_info): Gate off if not computing transparentness.
14134 (get_bb_avail_insn): If transparentness isn't computed give up
14135 early.
14136 (gcse_after_reload_main): Skip compute_transp and extended PRE
14137 if gcse_or_cprop_is_too_expensive says so.
14138
14139 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14140
14141 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14142 noinit section.
14143 (msp430_select_section): Handle decls with the "noinit" attribute with
14144 default_elf_select_section.
14145 Handle SECCAT_RODATA_MERGE_* section types with
14146 default_elf_select_section.
14147 Add comments about handling of unsupported section types.
14148 (msp430_section_type_flags): Remove handling of the noinit section.
14149
14150 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14151
14152 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14153 conflicting msp430-specific attributes.
14154 (msp430_section_attr): Likewise.
14155 Add warnings about conflicts with generic "noinit" and "section"
14156 attributes.
14157 Fix grammar in -mlarge error message.
14158 (msp430_data_attr): Rename to msp430_persist_attr.
14159 Add warnings about conflicts with generic "noinit" and "section"
14160 attributes.
14161 Add warning for when variable is not initialized.
14162 Chain conditionals which prevent the attribute being added.
14163 (ATTR_EXCL): New helper.
14164 (attr_reent_exclusions): New exclusion table.
14165 (attr_naked_exclusions): Likewise.
14166 (attr_crit_exclusions): Likewise.
14167 (attr_lower_exclusions): Likewise.
14168 (attr_upper_exclusions): Likewise.
14169 (attr_either_exclusions): Likewise.
14170 (attr_persist_exclusions): Likewise.
14171 (msp430_attribute_table): Update with exclusion rules.
14172 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14173 has a section.
14174
14175 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14176
14177 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14178 (msp430_handle_generic_attribute): New function.
14179 * doc/tm.texi: Regenerate.
14180 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14181 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14182 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14183 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14184
14185 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14186
14187 PR tree-optimization/91504
14188 * match.pd: Add ((~a & b) ^a) --> (a | b).
14189
14190 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14191
14192 PR target/91604
14193 * config/i386/i386-expand.c (split_double_mode): If there is more than
14194 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14195 already split matching MEM operand instead of calling adjust_address
14196 again.
14197
14198 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14199
14200 * config.gcc: Obsolete spu target. Remove references to spu.
14201 * configure.ac: Remove references to spu.
14202 * configure: Regenerate.
14203 * config/spu/: Remove directory.
14204 * common/config/spu/: Remove directory.
14205
14206 * doc/extend.texi: Remove references to spu.
14207 * doc/invoke.texi: Likewise.
14208 * doc/md.texi: Likewise.
14209 * doc/sourcebuild.texi: Likewise.
14210
14211 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14212
14213 PR middle-end/91603
14214 PR middle-end/91612
14215 PR middle-end/91613
14216 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14217 and SSA_NAME referring to CONSTANT_P correctly.
14218
14219 2019-09-03 Richard Biener <rguenther@suse.de>
14220
14221 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14222 (vn_nary_op_insert): Likewise.
14223 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14224 (vn_nary_op_lookup): Likewise.
14225 (vn_nary_op_insert): Likewise.
14226
14227 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14228
14229 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14230 (*op0, 1) instead of XEXP (*op1, 0).
14231
14232 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14233
14234 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14235 (aarch64_fjcvtzs): New define_insn.
14236 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14237 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14238 Add AARCH64_JSCVT.
14239 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14240 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14241 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14242 __ARM_FEATURE_JCVT where appropriate.
14243 * config/aarch64/arm_acle.h (__jcvt): Define.
14244
14245 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14246
14247 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14248 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14249 (aarch64_<frintnzs_op><mode>): New define_insn.
14250 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14251 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14252 __ARM_FEATURE_FRINT when appropriate.
14253 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14254 frint32x, frint64z, frint64x.
14255 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14256 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14257 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14258 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14259 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14260 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14261 * config/aarch64/iterators.md (VSFDF): Define.
14262 (FRINTNZX): Likewise.
14263 (frintnzs_op): Likewise.
14264
14265 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14266
14267 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14268 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14269 Cortex-A34.
14270 * config/aarch64/aarch64-tune.md: Regenerated.
14271 * doc/invoke.texi: Document the new processors.
14272
14273 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14274
14275 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14276 string.
14277 (ssbs): Likewise.
14278 (sve2): Likewise.
14279 (sve2-sm4): Likewise.
14280 (sveaes): Likewise.
14281 (svesha3): Likewise.
14282 (svebitperm): Likewise.
14283
14284 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14285 Richard Biener <rguenther@suse.de>
14286
14287 PR tree-optimization/91597
14288 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14289 BIT_AND_EXPR optimization for pointers, even if both operand
14290 ranges don't include NULL, the result can be NULL.
14291
14292 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14293
14294 PR middle-end/91605
14295 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14296 (non_mem_decl_p): ...this.
14297 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14298 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14299 unconditionally as before.
14300
14301 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14302
14303 PR target/91323
14304 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14305 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14306 * tree.def (LTGT_EXPR): Likewise.
14307 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14308
14309 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14310
14311 PR go/91617
14312 * fold-const.c (range_check_type): For enumeral and boolean
14313 type, pass 1 to type_for_size langhook instead of
14314 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14315 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14316 (build_range_check): Don't call unsigned_type_for for pointer types.
14317 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14318 range_check_type result.
14319
14320 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14321
14322 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14323 (replace_ref): Do not replace a chain of only two candidates which are
14324 valid memory references.
14325
14326 2019-09-02 Martin Liska <mliska@suse.cz>
14327
14328 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14329 Bail out when we'll end up with the same number of clusters as
14330 at the beginning.
14331 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14332 (jump_table_cluster::can_be_handled): Remove the guard
14333 as it's already handled in ::is_enabled. Allocate output
14334 after early bail out.
14335
14336 2019-09-02 Martin Liska <mliska@suse.cz>
14337
14338 PR gcov-profile/91601
14339 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14340 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14341 also negative edges.
14342 (circuit): Handle also negative edges as they can happen
14343 in some situations.
14344
14345 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14346
14347 PR target/91472
14348 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14349 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14350 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14351
14352 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14353
14354 PR middle-end/91623
14355 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14356 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14357 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14358 zero vector.
14359
14360 PR lto/91572
14361 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14362 GIMPLE_ASM TREE_LIST operands.
14363
14364 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14365
14366 * doc/generic.texi (Unary and Binary Expressions): Mark up
14367 an instance of TYPE_MIN.
14368
14369 2019-08-31 Stafford Horne <shorne@gmail.com>
14370
14371 * config/or1k/constraints.md (t): New constraint.
14372 * config/or1k/or1k.h (GOT_REGS): New register class.
14373 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14374
14375 2019-08-30 Jim Wilson <jimw@sifive.com>
14376
14377 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14378 and -fpic and -mplt then disable -msave-restore and warn.
14379
14380 2019-08-30 Martin Sebor <msebor@redhat.com>
14381
14382 PR middle-end/91599
14383 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14384 the statement doesn't have one.
14385 * gimple-pretty-print.c (percent_G_format): Same.
14386
14387 PR middle-end/91584
14388 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14389 before using them to validate MEM_REF offset.
14390
14391 2019-08-30 Marek Polacek <polacek@redhat.com>
14392
14393 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14394
14395 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14396
14397 * config/arm/arm.md (unaligned_loaddi,
14398 unaligned_storedi): New unspec insn patterns.
14399 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14400 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14401 and unaligned_storedi for 4-byte aligned memory.
14402 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14403 4-byte aligned memory.
14404
14405 2019-08-30 Martin Jambor <mjambor@suse.cz>
14406
14407 tree-optimization/91579
14408 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14409 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14410 appropriate.
14411 (arg_needs_copy_p): Removed.
14412 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14413 arg_needs_copy_p.
14414 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14415
14416 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14417
14418 * config/i386/i386-features.c
14419 (general_scalar_chain::compute_convert_gain):
14420 Correct cost for double-word shifts.
14421 (general_scalar_to_vector_candidate_p): Reject count operands
14422 greater or equal to mode bitsize.
14423
14424 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14425
14426 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14427 for moves between SSE and non-general registers and between
14428 mask and non-general registers.
14429 (ix86_register_move_cost): Remove stalled comment.
14430
14431 2019-08-29 Richard Biener <rguenther@suse.de>
14432
14433 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14434 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14435
14436 2019-08-29 Richard Biener <rguenther@suse.de>
14437
14438 PR bootstrap/91580
14439 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14440 Do not emit scalar copies for debug-insns, instead replace
14441 their uses with the reg copy used in the chain or reset them
14442 if there is a reaching definition outside of the chain as well.
14443
14444 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14445
14446 PR target/91560
14447 * config/i386/i386-expand.c (expand_vec_perm_movs,
14448 expand_vec_perm_blend, expand_vec_perm_vpermil,
14449 expand_vec_perm_pshufb, expand_vec_perm_1,
14450 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14451 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14452 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14453 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14454 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14455 comments - replace ix86_expand_vec_perm_builtin_1 with
14456 ix86_expand_vec_perm_const_1.
14457 (expand_vec_perm2_vperm2f128_vblend): New function.
14458 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14459 expand_vec_perm2_vperm2f128_vblend as last resort.
14460 (canonicalize_perm): Formatting fix.
14461
14462 PR tree-optimization/91351
14463 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14464 unsigned_type_for.
14465 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14466 range_check_type returns NULL.
14467 * tree-switch-conversion.c (switch_conversion::build_one_array):
14468 Use range_check_type instead of unsigned_type_for, don't perform
14469 linear opt if it returns NULL.
14470 (bit_test_cluster::find_bit_tests): Formatting fix.
14471 (bit_test_cluster::emit): Use range_check_type instead of
14472 unsigned_type_for.
14473 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14474 returns NULL.
14475
14476 2019-08-29 Richard Biener <rguenther@suse.de>
14477
14478 PR tree-optimization/91568
14479 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14480 (vect_update_max_nunits): Add overload for poly_uint64.
14481 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14482 (vect_build_slp_tree): Record max_nunits into the subtree
14483 and merge it upwards.
14484 (vect_print_slp_tree): Print max_nunits.
14485
14486 2019-08-28 Marek Polacek <polacek@redhat.com>
14487
14488 Implement P1152R4: Deprecating some uses of volatile.
14489 PR c++/91361
14490 * doc/invoke.texi: Document -Wvolatile.
14491
14492 2019-08-28 Marek Polacek <polacek@redhat.com>
14493
14494 PR c++/91360 - Implement C++20 P1143R2: constinit.
14495 * doc/invoke.texi: Document -Wc++20-compat.
14496
14497 2019-08-28 Martin Sebor <msebor@redhat.com>
14498
14499 PR tree-optimization/91457
14500 * builtins.c (component_size): New function.
14501 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14502 * builtins.h (compute_objsize): Add argument.
14503 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14504 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14505 (vrp_prop::check_mem_ref): Same.
14506 (vrp_prop::search_for_addr_array): Set no-warning bit.
14507 (check_array_bounds): Same.
14508
14509 2019-08-28 Martin Sebor <msebor@redhat.com>
14510
14511 PR driver/80545
14512 * opts-common.c (option_enabled): Correct checking for language
14513 options.
14514
14515 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14516
14517 * config/i386/i386.c (ix86_register_move_cost): Do not
14518 limit the cost of moves to/from XMM register to minimum 8.
14519
14520 2019-08-28 Martin Jambor <mjambor@suse.cz>
14521
14522 PR ipa/91468
14523 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14524 checking assert a normal assert to test it really is redundant.
14525 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14526 redundant test.
14527 (update_jump_functions_after_inlining): Removed combining unary
14528 arithmetic operations with an ancestor jump function.
14529 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14530 instead of t.
14531
14532 2019-08-28 Richard Biener <rguenther@suse.de>
14533
14534 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14535 add the MD problem.
14536
14537 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14538 Richard Biener <rguenther@suse.de>
14539
14540 * expr.c (expand_assignment): Handle misaligned DECLs.
14541 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14542 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14543 too.
14544 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14545 * varasm.c (build_constant_desc): Align constants of misaligned types.
14546 * config/arm/predicates.md (aligned_operand): New predicate.
14547 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14548 aligned_operand to check restrictions on memory addresses.
14549 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14550 * config/arm/vec-common.md (mov<VALL>): Likewise.
14551
14552 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14553
14554 PR libgomp/91530
14555 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14556 V_128 iterator instead of VI_128.
14557
14558 2019-08-28 Martin Liska <mliska@suse.cz>
14559
14560 PR tree-optimization/90970
14561 * builtins.c (check_access): Remove assignment to maxread
14562 as it hasn't been used since when it was introduced in r255755.
14563
14564 2019-08-27 Martin Sebor <msebor@redhat.com>
14565
14566 PR tree-optimization/91567
14567 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14568 of unknown strings.
14569 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14570 to PTRDIFF_MAX - 2.
14571
14572 2019-08-27 Jeff Law <law@redhat.com>
14573
14574 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14575 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14576
14577 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14578
14579 PR target/91528
14580 * config/i386/i386-features.c (convert_scalars_to_vector):
14581 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14582 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14583 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14584 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14585
14586 2019-08-27 Richard Biener <rguenther@suse.de>
14587
14588 * config/i386/i386-features.h
14589 (general_scalar_chain::~general_scalar_chain): Add.
14590 (general_scalar_chain::insns_conv): New bitmap.
14591 (general_scalar_chain::n_sse_to_integer): New.
14592 (general_scalar_chain::n_integer_to_sse): Likewise.
14593 (general_scalar_chain::make_vector_copies): Adjust signature.
14594 * config/i386/i386-features.c
14595 (general_scalar_chain::general_scalar_chain): Outline,
14596 initialize new members.
14597 (general_scalar_chain::~general_scalar_chain): New.
14598 (general_scalar_chain::mark_dual_mode_def): Record insns
14599 we need to insert conversions at and count them.
14600 (general_scalar_chain::compute_convert_gain): Account
14601 for conversion instructions at chain boundary.
14602 (general_scalar_chain::make_vector_copies): Generate a single
14603 copy for a def by a specific insn.
14604 (general_scalar_chain::convert_registers): First populate
14605 defs_map, then make copies at out-of chain insns.
14606
14607 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14608
14609 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14610 comment.
14611 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14612
14613 2019-08-27 Martin Liska <mliska@suse.cz>
14614
14615 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14616 loop.
14617 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14618 Enclose in anonymous namespace.
14619 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14620 hard_register initialization in braces.
14621 * tree-vrp.h (value_range_base::supports_type_p): Return false
14622 for function with boolean return type.
14623
14624 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14625
14626 * config/i386/i386.c (emit_i387_cw_initialization)
14627 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14628
14629 2019-08-26 Martin Sebor <msebor@redhat.com>
14630
14631 PR c++/83431
14632 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14633 (sprintf_dom_walker): Remove class.
14634 (get_int_range): Make argument const.
14635 (directive::fmtfunc, directive::set_precision): Same.
14636 (format_none): Same.
14637 (build_intmax_type_nodes): Same.
14638 (adjust_range_for_overflow): Same.
14639 (format_floating): Same.
14640 (format_character): Same.
14641 (format_string): Same.
14642 (format_plain): Same.
14643 (get_int_range): Cast away constness.
14644 (format_integer): Same.
14645 (get_string_length): Call get_range_strlen_dynamic. Handle
14646 null lendata.maxbound.
14647 (should_warn_p): Adjust argument scope qualifier.
14648 (maybe_warn): Same.
14649 (format_directive): Same.
14650 (parse_directive): Same.
14651 (is_call_safe): Same.
14652 (try_substitute_return_value): Same.
14653 (sprintf_dom_walker::handle_printf_call): Rename...
14654 (handle_printf_call): ...to this. Initialize target to host charmap
14655 here instead of in pass_sprintf_length::execute.
14656 (struct call_info): Make global.
14657 (sprintf_dom_walker::compute_format_length): Make global.
14658 (sprintf_dom_walker::handle_gimple_call): Same.
14659 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14660 * print-rtl.c (print_pattern): Reduce the number of spaces to
14661 avoid -Wformat-truncation.
14662 * tree-pass.h (make_pass_warn_printf): New function.
14663 * tree-ssa-strlen.c (strlen_optimize): New variable.
14664 (get_string_length): Add comments.
14665 (get_range_strlen_dynamic): New function.
14666 (check_and_optimize_call): New function.
14667 (handle_integral_assign): New function.
14668 (strlen_check_and_optimize_stmt): Factor code out into
14669 strlen_check_and_optimize_call and handle_integral_assign.
14670 (strlen_dom_walker::evrp): New member.
14671 (strlen_dom_walker::before_dom_children): Use evrp member.
14672 (strlen_dom_walker::after_dom_children): Use evrp member.
14673 (printf_strlen_execute): New function.
14674 (pass_strlen::gate): Update to handle printf calls.
14675 (dump_strlen_info): New function.
14676 (pass_data_warn_printf): New variable.
14677 (pass_warn_printf): New class.
14678 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14679 (handle_printf_call): Same.
14680 * tree-vrp.c (value_range_base::type): Adjust assertion.
14681 * vr-values.c (vr_values::update_value_range): Use type of the first
14682 argument rather than the second.
14683
14684 2019-08-26 Richard Biener <rguenther@suse.de>
14685
14686 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14687 Remove.
14688 (convert_scalars_to_vector): Do not call it.
14689
14690 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14691 Uros Bizjak <ubizjak@gmail.com>
14692
14693 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14694 CASE_MATHFN_FLOATN for roundeven.
14695 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14696 I387_ROUNDEVEN.
14697 (ix86_mode_needed): Likewise.
14698 (ix86_mode_after): Likewise.
14699 (ix86_mode_entry): Likewise.
14700 (ix86_mode_exit): Likewise.
14701 (ix86_emit_mode_set): Likewise.
14702 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14703 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14704 (ix86_entity): Add I387_ROUNDEVEN.
14705 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14706 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14707 (define_int_iterator): Likewise.
14708 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14709 (define_constant): Define ROUND_ROUNDEVEN mode.
14710 (define_attr): Add roundeven mode for i387_cw.
14711 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14712 * internal-fn.def (ROUNDEVEN): New builtin function.
14713 * optabs.def (roundeven_optab): New optab.
14714
14715 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14716
14717 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14718 for ROUNDEVEN.
14719 * builtins.def: Added function definitions for roundeven function
14720 variants.
14721 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14722 function call. Adjust condition for floor, ceil, trunc and round.
14723 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14724 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14725 (integer_valued_real_call_p): Added case for roundeven function.
14726 * real.c (is_even): New function. Returns true if real number is even,
14727 otherwise returns false.
14728 (is_halfway_below): New function. Returns true if real number is
14729 halfway between two integers, else return false.
14730 (real_roundeven): New function. Round real number to nearest integer,
14731 rounding halfway cases towards even.
14732 * real.h (real_value): Added descriptive comments. Added function
14733 declaration for roundeven function.
14734 * doc/extend.texi (Other Builtins): List roundeven variants among
14735 functions which can be handled as builtins.
14736
14737 2019-08-26 Richard Biener <rguenther@suse.de>
14738
14739 PR target/91522
14740 PR target/91527
14741 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14742 New member.
14743 (general_scalar_chain::replace_with_subreg): Remove.
14744 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14745 (general_scalar_chain::convert_reg): Adjust signature.
14746 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14747 iterate over all defs of a reg.
14748 (general_scalar_chain::replace_with_subreg): Remove.
14749 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14750 (general_scalar_chain::make_vector_copies): Populate defs_map,
14751 place copy only after defs that are used as vectors in the chain.
14752 (general_scalar_chain::convert_reg): Emit a copy for a specific
14753 def in a specific instruction.
14754 (general_scalar_chain::convert_op): All reg uses are converted here.
14755 (general_scalar_chain::convert_insn): Emit copies for scalar
14756 uses of defs here. Replace uses with the copies we created.
14757 Replace and convert the def. Adjust REG_DEAD notes, remove
14758 REG_EQUIV/EQUAL notes.
14759 (general_scalar_chain::convert_registers): Only handle copies
14760 into the chain here.
14761
14762 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14763
14764 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14765
14766 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14767
14768 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14769 Add nop_convert case.
14770 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14771 Fold all statements if requested.
14772 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14773 Allow to fold all statements.
14774 * tree-vrp.c (class vrp_folder):
14775 Let substitute_and_fold_engine fold all statements.
14776
14777 2019-08-26 Richard Biener <rguenther@suse.de>
14778
14779 PR tree-optimization/91526
14780 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14781 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14782 TODO_update_address_taken.
14783
14784 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14785
14786 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14787 __STDC_HOSTED__.
14788
14789 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14790
14791 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14792 machine mode for unspec_volatile operand.
14793
14794 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14795
14796 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14797 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14798 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14799 (prefer_neon_for_64bits): Remove.
14800 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14801 (tune_params): Remove PREF_NEON_64_FALSE uses.
14802 (arm_option_override): Remove prefer_neon selection code.
14803 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14804 * config/arm/arm-protos.h (tune_params): Remove
14805 prefer_neon_for_64bits.
14806 (prefer_neon_for_64bits): Remove.
14807
14808 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14809
14810 PR pch/61250
14811 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14812 and issue any diagnostics needed before collecting the pre-PCH
14813 state.
14814
14815 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14816
14817 PR middle-end/91283
14818 * common.opt (fexcess-precision=): Add Optimization flag. Use
14819 flag_excess_precision variable instead of
14820 flag_excess_precision_cmdline.
14821 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14822 member.
14823 (flag_excess_precision): Don't define.
14824 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14825 flag_excess_precision_cmdline. Remove comment.
14826 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14827 and x_flag_excess_precision instead of
14828 frontend_set_flag_excess_precision_cmdline and
14829 x_flag_excess_precision_cmdline.
14830 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14831 x_flag_excess_precision_cmdline.
14832 * toplev.c (init_excess_precision): Remove.
14833 (lang_dependent_init_target): Don't call it.
14834
14835 2019-08-23 Martin Liska <mliska@suse.cz>
14836
14837 * lto-wrapper.c (run_gcc): When setting jobserver
14838 set also parallel to 1. This was done so before r273908.
14839
14840 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14841
14842 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14843 (cortex-a76ae): Likewise.
14844 (cortex-a77): Likewise
14845 * config/arm/arm-tables.opt: Regenerate.
14846 * config/arm/arm-tune.md: Likewise.
14847 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14848 cortex-a77 CPU options.
14849
14850 2019-08-23 Martin Liska <mliska@suse.cz>
14851
14852 * profile.c (instrument_values): Do not set
14853 0 as last argument.
14854 * tree-profile.c (gimple_gen_interval_profiler): Remove
14855 last argument.
14856 (gimple_gen_pow2_profiler): Likewise.
14857 (gimple_gen_topn_values_profiler): Likewise.
14858 (gimple_gen_ic_profiler): Likewise.
14859 (gimple_gen_time_profiler): Likewise.
14860 (gimple_gen_average_profiler): Likewise.
14861 (gimple_gen_ior_profiler): Likewise.
14862 * value-prof.c (dump_histogram_value): Use default
14863 in switch statement instead of HIST_TYPE_MAX.
14864 (stream_in_histogram_value): Likewise.
14865 (gimple_duplicate_stmt_histograms): Do not
14866 use NULL for implicitly set arguments.
14867 (gimple_divmod_values_to_profile): Do not use
14868 reserve+quick_push.
14869 (gimple_indirect_call_to_profile): Likewise.
14870 (gimple_find_values_to_profile): Use implicit
14871 function call arguments.
14872 * value-prof.h (gimple_alloc_histogram_value):
14873 Set default values.
14874 (gimple_gen_interval_profiler): Remove last argument.
14875 (gimple_gen_pow2_profiler): Likewise.
14876 (gimple_gen_topn_values_profiler): Likewise.
14877 (gimple_gen_ic_profiler): Likewise.
14878 (gimple_gen_time_profiler): Likewise.
14879 (gimple_gen_average_profiler): Likewise.
14880 (gimple_gen_ior_profiler): Likewise.
14881
14882 2019-08-22 Martin Sebor <msebor@redhat.com>
14883
14884 PR middle-end/91490
14885 * builtins.c (c_strlen): Rename argument and introduce new local.
14886 Set no-warning bit on original argument.
14887 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14888 Fold empty and zero constructors into empty strings.
14889 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14890 for missing initializers.
14891 * tree.c (build_string_literal): Handle optional argument.
14892 * tree.h (build_string_literal): Add defaulted argument.
14893 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14894 no-warning bit on original expression.
14895
14896 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14897
14898 PR target/91481
14899 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14900 and UNSPEC_DARN_RAW.
14901 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14902 UNSPECV_DARN_RAW.
14903 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14904 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14905 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14906
14907 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14908
14909 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14910 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14911 * config/rs6000/rs6000.md (unspec): ... here.
14912 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14913 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14914 cmpeqb, *cmpeqb_internal): Delete, move to...
14915 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14916 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14917 cmpeqb, *cmpeqb_internal): ... here.
14918
14919 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14920
14921 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14922 intrinsics if __ARM_FP.
14923 Use __ARM_FEATURE_CRC32 ifdef guard.
14924
14925 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14926
14927 * config/arm/arm.md (neon_for_64bits): Remove.
14928 (avoid_neon_for_64bits): Remove.
14929 (arm_adddi3): Always split early.
14930 (arm_subdi3): Always split early.
14931 (negdi2): Remove Neon expansion.
14932 (split zero_extend): Split before reload.
14933 (split sign_extend): Split before reload.
14934
14935 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14936
14937 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14938 (qhs_extenddi_cstr): Likewise.
14939 * config/arm/arm.md (ashldi3): Always expand early.
14940 (ashlsi3): Likewise.
14941 (ashrsi3): Likewise.
14942 (zero_extend<mode>di2): Remove Neon variants.
14943 (extend<mode>di2): Likewise.
14944 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14945 (signed_shift_di3_neon): Likewise.
14946 (unsigned_shift_di3_neon): Likewise.
14947 (ashrdi3_neon_imm_noclobber): Likewise.
14948 (lshrdi3_neon_imm_noclobber): Likewise.
14949 (<shift>di3_neon): Likewise.
14950 (split extend): Remove DI extend split patterns.
14951
14952 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14953
14954 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14955 (split not): Add DImode not splitter.
14956 (anddi3): Remove pattern.
14957 (anddi3_insn): Likewise.
14958 (anddi_zesidi_di): Likewise.
14959 (anddi_sesdi_di): Likewise.
14960 (anddi_notdi_di): Likewise.
14961 (anddi_notzesidi_di): Likewise.
14962 (anddi_notsesidi_di): Likewise.
14963 (iordi3): Likewise.
14964 (iordi3_insn): Likewise.
14965 (iordi_zesidi_di): Likewise.
14966 (iordi_sesidi_di): Likewise.
14967 (xordi3): Likewise.
14968 (xordi3_insn): Likewise.
14969 (xordi_sesidi_di): Likewise.
14970 (xordi_zesidi_di): Likewise.
14971 (one_cmpldi2): Likewise.
14972 (one_cmpldi2_insn): Likewise.
14973 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14974 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14975 alternative.
14976 (iwmmxt_xordi3): Likewise.
14977 (iwmmxt_anddi3): Likewise.
14978 * config/arm/neon.md (orndi3_neon): Remove pattern.
14979 (anddi_notdi_di): Likewise.
14980 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14981 (arm_iordi_operand_neon): Likewise.
14982 (arm_xordi_operand_neon): Likewise.
14983 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14984 (iordi_notzesidi_di): Likewise.
14985 (iordi_notdi_zesidi): Likewise.
14986 (iordi_notsesidi_di): Likewise.
14987
14988 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14989
14990 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14991 insn.
14992 (iorsi3_compare0_scratch): Likewise.
14993
14994 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14995
14996 * config/aarch64/aarch64-simd-builtins.def:
14997 (ld1x4): New.
14998 (st1x4): Likewise.
14999 * config/aarch64/aarch64-simd.md:
15000 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15001 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15002 (aarch64_ld1_x4_<mode>): Likewise.
15003 (aarch64_st1_x4_<mode>): Likewise.
15004 * config/aarch64/arm_neon.h:
15005 (vld1_s8_x4): New function.
15006 (vld1q_s8_x4): Likewise.
15007 (vld1_s16_x4): Likewise.
15008 (vld1q_s16_x4): Likewise.
15009 (vld1_s32_x4): Likewise.
15010 (vld1q_s32_x4): Likewise.
15011 (vld1_u8_x4): Likewise.
15012 (vld1q_u8_x4): Likewise.
15013 (vld1_u16_x4): Likewise.
15014 (vld1q_u16_x4): Likewise.
15015 (vld1_u32_x4): Likewise.
15016 (vld1q_u32_x4): Likewise.
15017 (vld1_f16_x4): Likewise.
15018 (vld1q_f16_x4): Likewise.
15019 (vld1_f32_x4): Likewise.
15020 (vld1q_f32_x4): Likewise.
15021 (vld1_p8_x4): Likewise.
15022 (vld1q_p8_x4): Likewise.
15023 (vld1_p16_x4): Likewise.
15024 (vld1q_p16_x4): Likewise.
15025 (vld1_s64_x4): Likewise.
15026 (vld1_u64_x4): Likewise.
15027 (vld1_p64_x4): Likewise.
15028 (vld1q_s64_x4): Likewise.
15029 (vld1q_u64_x4): Likewise.
15030 (vld1q_p64_x4): Likewise.
15031 (vld1_f64_x4): Likewise.
15032 (vld1q_f64_x4): Likewise.
15033 (vst1_s8_x4): Likewise.
15034 (vst1q_s8_x4): Likewise.
15035 (vst1_s16_x4): Likewise.
15036 (vst1q_s16_x4): Likewise.
15037 (vst1_s32_x4): Likewise.
15038 (vst1q_s32_x4): Likewise.
15039 (vst1_u8_x4): Likewise.
15040 (vst1q_u8_x4): Likewise.
15041 (vst1_u16_x4): Likewise.
15042 (vst1q_u16_x4): Likewise.
15043 (vst1_u32_x4): Likewise.
15044 (vst1q_u32_x4): Likewise.
15045 (vst1_f16_x4): Likewise.
15046 (vst1q_f16_x4): Likewise.
15047 (vst1_f32_x4): Likewise.
15048 (vst1q_f32_x4): Likewise.
15049 (vst1_p8_x4): Likewise.
15050 (vst1q_p8_x4): Likewise.
15051 (vst1_p16_x4): Likewise.
15052 (vst1q_p16_x4): Likewise.
15053 (vst1_s64_x4): Likewise.
15054 (vst1_u64_x4): Likewise.
15055 (vst1_p64_x4): Likewise.
15056 (vst1q_s64_x4): Likewise.
15057 (vst1q_u64_x4): Likewise.
15058 (vst1q_p64_x4): Likewise.
15059 (vst1_f64_x4): Likewise.
15060 (vst1q_f64_x4): Likewise.
15061
15062 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15063
15064 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15065
15066 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15067 Richard Sandiford <richard.sandiford@arm.com>
15068
15069 PR target/88839
15070 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15071 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15072
15073 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15074
15075 PR target/90724
15076 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15077 in reg if it fails aarch64_plus_operand predicate.
15078
15079 2019-08-21 Richard Biener <rguenther@suse.de>
15080
15081 PR tree-optimization/91482
15082 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15083 BUILT_IN_ASSUME_ALIGNED calls.
15084
15085 2019-08-21 Richard Biener <rguenther@suse.de>
15086
15087 PR target/91498
15088 PR target/91503
15089 * config/i386/i386-features.c
15090 (general_scalar_chain::make_vector_copies): Copy stack temporary
15091 rtx when using it multiple times.
15092 (general_scalar_chain::convert_reg): Likewise.
15093
15094 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15095
15096 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15097
15098 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15099
15100 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15101 catch more redundant zero initialization cases.
15102 (dse_dom_walker::dse_optimize_stmt): Likewise.
15103
15104 2019-08-20 Richard Biener <rguenther@suse.de>
15105
15106 PR lto/91307
15107 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15108 by collect2 when targetm.have_ctors_dtors which avoids dragging
15109 in temporary filenames from LTO input objects.
15110
15111 2019-08-20 Richard Biener <rguenther@suse.de>
15112
15113 PR tree-optimization/37242
15114 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15115 to (T)a + (T)b if we know that a + b does not overflow.
15116
15117 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15118
15119 PR rtl-optimization/91347
15120 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15121 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15122
15123 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15124
15125 * calls.h (function_arg_info): Add a pass_by_reference field,
15126 defaulting to false.
15127 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15128 when applying pass-by-reference semantics.
15129 (initialize_argument_information): Likewise.
15130 (emit_library_call_value_1): Likewise.
15131 * function.c (assign_parm_data_one): Remove passed_pointer field.
15132 (assign_parm_find_data_types): Don't set it.
15133 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15134 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15135 arg.pass_by_reference instead of passed_pointer.
15136
15137 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15138
15139 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15140 into a single function_arg_info, updating its fields when we
15141 apply pass-by-reference and promotion semantics. Use the
15142 function_arg_info to track the mode rather than keeping it in
15143 a separate local variable.
15144 (initialize_argument_information): Likewise. Base the final
15145 arg_to_skip on this new function_arg_info rather than creating
15146 a new one from scratch.
15147
15148 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15149
15150 * function.c (assign_parm_data_one): Replace passed_type,
15151 promoted_mode and named_arg with a function_arg_info field.
15152 (assign_parm_find_data_types): Remove local variables and
15153 assign directly to "data". Make data->passed_mode shadow
15154 data->arg.mode until promotion, then assign the promoted
15155 mode to data->arg.mode.
15156 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15157 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15158 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15159 (assign_parm_setup_block, assign_parm_setup_reg)
15160 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15161 arg.mode instead of promoted_mode, arg.type instead of passed_type
15162 and arg.named instead of named_arg. Use data->arg for
15163 function_arg_info structures that had the field values passed_type,
15164 promoted_mode and named_arg. Base other function_arg_infos on
15165 data->arg, changing the necessary properties.
15166
15167 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15168
15169 * calls.h (apply_pass_by_reference_rules): Declare.
15170 * calls.c (apply_pass_by_reference_rules): New function.
15171 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15172 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15173 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15174 * function.c (assign_parm_find_data_types): Likewise.
15175 * var-tracking.c (prepare_call_arguments): Likewise.
15176
15177 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15178
15179 * target.def (must_pass_in_stack): Take a function_arg_info instead
15180 of a mode and a type.
15181 * doc/tm.texi: Regenerate.
15182 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15183 instead of a mode and a type.
15184 (must_pass_in_stack_var_size_or_pad): Likewise.
15185 * calls.c (must_pass_in_stack_var_size): Likewise.
15186 (must_pass_in_stack_var_size_or_pad): Likewise.
15187 (initialize_argument_information): Update call to
15188 targetm.calls.must_pass_in_stack.
15189 (must_pass_va_arg_on_stack): Likewise.
15190 * function.c (assign_parm_find_entry_rtl): Likewise.
15191 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15192 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15193 (alpha_function_arg_advance): Likewise.
15194 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15195 (cr16_function_arg_advance): Likewise.
15196 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15197 (cris_arg_partial_bytes): Likewise.
15198 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15199 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15200 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15201 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15202 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15203 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15204 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15205 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15206 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15207 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15208 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15209 instead of a mode and a type.
15210 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15211 (fr30_num_arg_regs): Likewise.
15212 (fr30_setup_incoming_varargs): Update calls accordingly.
15213 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15214 (fr30_function_arg_advance): Likewise.
15215 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15216 instead of a mode and a type.
15217 * config/gcn/gcn.c (num_arg_regs): Likewise.
15218 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15219 num_arg_regs and targetm.calls.must_pass_in_stack.
15220 (gcn_arg_partial_bytes): Likewise.
15221 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15222 function_arg_info instead of a mode and a type.
15223 (classify_argument): Update call accordingly.
15224 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15225 function_arg_info instead of a mode and a type.
15226 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15227 Likewise.
15228 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15229 (rs6000_parm_needs_stack): Update call accordingly.
15230 (setup_incoming_varargs): Likewise.
15231
15232 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15233
15234 * target.def (callee_copies): Take a function_arg_info instead
15235 of a mode, type and named flag.
15236 * doc/tm.texi: Regenerate.
15237 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15238 instead of a mode, type and named flag.
15239 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15240 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15241 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15242 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15243 instead of a mode, type and named flag.
15244 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15245 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15246 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15247 * calls.h (reference_callee_copied): Take a function_arg_info
15248 instead of a mode, type and named flag.
15249 * calls.c (reference_callee_copied): Likewise.
15250 (initialize_argument_information): Update call accordingly.
15251 (emit_library_call_value_1): Likewise.
15252 * function.c (gimplify_parameters): Likewise.
15253 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15254 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15255 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15256 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15257 (TARGET_CALLEE_COPIES): Define to
15258 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15259 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15260 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15261 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15262 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15263 instead of a mode, type and named flag.
15264 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15265 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15266 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15267 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15268 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15269 (TARGET_CALLEE_COPIES): Define to
15270 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15271 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15272 instead of a mode, type and named flag.
15273 * config/sh/sh.c (sh_callee_copies): Likewise.
15274 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15275 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15276 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15277
15278 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15279
15280 * target.def (function_arg_advance): Take a function_arg_info instead
15281 of a mode, type and named flag.
15282 * doc/tm.texi: Regenerate.
15283 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15284 instead of a mode, type and named flag.
15285 * targhooks.c (default_function_arg_advance): Likewise.
15286 * calls.c (initialize_argument_information): Update call to
15287 targetm.calls.function_arg_advance.
15288 (emit_library_call_value_1): Likewise.
15289 * dse.c (get_call_args): Likewise.
15290 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15291 * function.c (assign_parms, gimplify_parameters): Likewise.
15292 * var-tracking.c (prepare_call_arguments): Likewise.
15293 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15294 function_arg_info instead of a mode, type and named flag.
15295 (aarch64_setup_incoming_varargs): Update call accordingly.
15296 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15297 function_arg_info instead of a mode, type and named flag.
15298 (alpha_setup_incoming_varargs): Update call accordingly.
15299 * config/arc/arc.c (arc_function_arg_advance): Take a
15300 function_arg_info instead of a mode, type and named flag.
15301 (arc_setup_incoming_varargs): Update call accordingly.
15302 * config/arm/arm.c (arm_function_arg_advance): Take a
15303 function_arg_info instead of a mode, type and named flag.
15304 (cmse_func_args_or_return_in_stack): Update call accordingly.
15305 (arm_function_ok_for_sibcall): Likewise.
15306 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15307 * config/avr/avr.c (avr_function_arg_advance): Take a
15308 function_arg_info instead of a mode, type and named flag.
15309 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15310 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15311 (c6x_call_saved_register_used): Update call accordingly.
15312 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15313 function_arg_info instead of a mode, type and named flag.
15314 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15315 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15316 (csky_setup_incoming_varargs): Update call accordingly.
15317 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15318 function_arg_info instead of a mode, type and named flag.
15319 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15320 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15321 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15322 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15323 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15324 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15325 (ix86_setup_incoming_varargs): Update call accordingly.
15326 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15327 function_arg_info instead of a mode, type and named flag.
15328 (ia64_setup_incoming_varargs): Update call accordingly.
15329 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15330 function_arg_info instead of a mode, type and named flag.
15331 (iq2000_expand_prologue): Update call accordingly.
15332 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15333 function_arg_info instead of a mode, type and named flag.
15334 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15335 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15336 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15337 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15338 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15339 Likewise.
15340 (microblaze_expand_prologue): Update call accordingly.
15341 * config/mips/mips.c (mips_function_arg_advance): Take a
15342 function_arg_info instead of a mode, type and named flag.
15343 (mips_setup_incoming_varargs): Update call accordingly.
15344 (mips_output_args_xfer): Likewise.
15345 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15346 function_arg_info instead of a mode, type and named flag.
15347 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15348 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15349 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15350 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15351 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15352 (nios2_setup_incoming_varargs): Update call accordingly.
15353 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15354 function_arg_info instead of a mode, type and named flag.
15355 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15356 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15357 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15358 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15359 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15360 (riscv_setup_incoming_varargs): Update call accordingly.
15361 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15362 function_arg_info instead of a mode, type and named flag.
15363 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15364 Likewise.
15365 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15366 (rs6000_parm_needs_stack): Update call accordingly.
15367 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15368 instead of a mode, type and named flag.
15369 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15370 (s390_call_saved_register_used): Update call accordingly.
15371 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15372 instead of a mode, type and named flag.
15373 (sh_output_mi_thunk): Update call accordingly.
15374 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15375 function_arg_info instead of a mode, type and named flag.
15376 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15377 (spu_setup_incoming_varargs): Update call accordingly.
15378 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15379 function_arg_info instead of a mode, type and named flag.
15380 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15381 (tilegx_setup_incoming_varargs): Update call accordingly.
15382 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15383 function_arg_info instead of a mode, type and named flag.
15384 (tilegx_setup_incoming_varargs): Update call accordingly.
15385 * config/v850/v850.c (v850_function_arg_advance): Take a
15386 function_arg_info instead of a mode, type and named flag.
15387 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15388 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15389 (visium_setup_incoming_varargs): Update call accordingly.
15390 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15391 function_arg_info instead of a mode, type and named flag.
15392
15393 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15394
15395 * target.def (function_arg, function_incoming_arg): Take a
15396 function_arg_info instead of a mode, tree and named flag.
15397 * doc/tm.texi: Regenerate.
15398 * targhooks.h (default_function_arg): Take a function_arg_info
15399 instead of a mode, tree and named flag.
15400 (default_function_incoming_arg): Likewise.
15401 * targhooks.c (default_function_arg): Likewise.
15402 (default_function_incoming_arg): Likewise.
15403 * calls.h (function_arg_info::end_marker_p): New function.
15404 (function_arg_info::end_marker): Likewise.
15405 * calls.c (prepare_call_address, initialize_argument_information)
15406 (expand_call, emit_library_call_value_1): Update calls to
15407 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15408 * dse.c: Include calls.h.
15409 (get_call_args): Update call to targetm.calls.function_arg.
15410 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15411 * var-tracking.c (prepare_call_arguments): Likewise.
15412 * function.c (assign_parm_find_entry_rtl): Update call to
15413 targetm.calls.function_incoming_arg.
15414 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15415 function_arg_info instead of a mode, tree and named flag.
15416 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15417 * config/arc/arc.c (arc_function_arg): Likewise.
15418 * config/arm/arm.c (arm_function_arg): Likewise.
15419 (cmse_func_args_or_return_in_stack): Update call accordingly.
15420 (arm_function_ok_for_sibcall): Likewise.
15421 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15422 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15423 instead of a mode, tree and named flag.
15424 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15425 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15426 (c6x_call_saved_register_used): Update call accordingly.
15427 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15428 instead of a mode, tree and named flag.
15429 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15430 (cris_function_arg_1): Likewise.
15431 * config/csky/csky.c (csky_function_arg): Likewise.
15432 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15433 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15434 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15435 (frv_function_arg_1): Likewise.
15436 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15437 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15438 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15439 * config/i386/i386.c (ix86_function_arg): Likewise.
15440 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15441 (ia64_function_arg_1): Likewise.
15442 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15443 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15444 accordingly.
15445 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15446 instead of a mode, tree and named flag.
15447 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15448 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15449 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15450 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15451 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15452 (microblaze_expand_prologue): Update call accordingly.
15453 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15454 instead of a mode, tree and named flag.
15455 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15456 (mmix_function_arg_1): Likewise.
15457 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15458 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15459 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15460 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15461 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15462 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15463 (nvptx_function_incoming_arg): Likewise.
15464 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15465 * config/pa/pa.c (pa_function_arg): Likewise.
15466 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15467 * config/pru/pru.c (pru_function_arg): Likewise.
15468 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15469 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15470 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15471 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15472 (rs6000_parm_needs_stack): Update call accordingly.
15473 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15474 instead of a mode, tree and named flag.
15475 * config/s390/s390.c (s390_function_arg): Likewise.
15476 (s390_call_saved_register_used): Update call accordingly.
15477 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15478 instead of a mode, tree and named flag.
15479 (sh_output_mi_thunk): Update call accordingly.
15480 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15481 (sparc_function_incoming_arg): Take a function_arg_info instead of
15482 a mode, tree and named flag.
15483 * config/spu/spu.c (spu_function_arg): Likewise.
15484 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15485 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15486 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15487 * config/v850/v850.c (v850_function_arg): Likewise.
15488 * config/vax/vax.c (vax_function_arg): Likewise.
15489 * config/visium/visium.c (visium_function_arg): Likewise.
15490 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15491 (xtensa_function_incoming_arg): Likewise.
15492
15493 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15494
15495 * target.def (setup_incoming_varargs): Take a function_arg_info
15496 instead of a mode and tree.
15497 * doc/tm.texi: Regenerate.
15498 * targhooks.h (default_setup_incoming_varargs): Take a
15499 function_arg_info instead of a mode and tree.
15500 * targhooks.c (default_setup_incoming_varargs): Likewise.
15501 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15502 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15503 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15504 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15505 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15506 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15507 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15508 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15509 Likewise.
15510 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15511 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15512 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15513 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15514 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15515 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15516 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15517 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15518 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15519 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15520 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15521 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15522 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15523 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15524 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15525 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15526 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15527 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15528 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15529 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15530 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15531 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15532 * function.c (assign_parms_setup_varargs): Update call to
15533 targetm.calls.setup_incoming_varargs.
15534
15535 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15536
15537 * target.def (pass_by_reference): Take a function_arg_info instead
15538 of a mode, type and named flag.
15539 * doc/tm.texi: Regenerate.
15540 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15541 accordingly.
15542 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15543 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15544 function_arg_info instead of a mode, type and named flag.
15545 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15546 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15547 mode, type and named flag.
15548 * calls.c (pass_by_reference): Likewise.
15549 (pass_va_arg_by_reference): Update call accordingly.
15550 (initialize_argument_information): Likewise.
15551 (emit_library_call_value_1): Likewise.
15552 * function.c (assign_parm_find_data_types): Likewise.
15553 * var-tracking.c (prepare_call_arguments): Likewise.
15554 * stor-layout.c: Include calls.h.
15555 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15556 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15557 function_arg_info instead of a mode, type and named flag.
15558 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15559 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15560 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15561 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15562 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15563 (c6x_call_saved_register_used): Update call to pass_by_reference.
15564 * config/cris/cris.c (cris_pass_by_reference): Take a
15565 function_arg_info instead of a mode, type and named flag.
15566 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15567 function_arg_info instead of a mode, type and named flag.
15568 (epiphany_arg_partial_bytes): Update call accordingly.
15569 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15570 function_arg_info instead of a mode, type and named flag.
15571 (ft32_arg_partial_bytes): Update call accordingly.
15572 * config/i386/i386.c (ix86_pass_by_reference): Take a
15573 function_arg_info instead of a mode, type and named flag.
15574 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15575 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15576 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15577 (m32r_return_in_memory): Update call accordingly.
15578 * config/mips/mips.c (mips_pass_by_reference): Take a
15579 function_arg_info instead of a mode, type and named flag.
15580 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15581 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15582 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15583 (moxie_arg_partial_bytes): Update call accordingly.
15584 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15585 function_arg_info instead of a mode, type and named flag.
15586 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15587 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15588 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15589 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15590 (riscv_return_in_memory): Update call accordingly.
15591 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15592 function_arg_info instead of a mode, type and named flag.
15593 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15594 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15595 * config/s390/s390.c (s390_pass_by_reference): Take a
15596 function_arg_info instead of a mode, type and named flag.
15597 (s390_call_saved_register_used): Update call accordingly.
15598 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15599 instead of a mode, type and named flag.
15600 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15601 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15602 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15603 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15604 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15605 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15606
15607 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15608
15609 * target.def (arg_partial_bytes): Take a function_arg_info instead
15610 of a mode, type and named flag.
15611 * doc/tm.texi: Regenerate.
15612 * target.h (function_arg_info): Declare.
15613 * calls.h (function_arg_info): New class.
15614 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15615 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15616 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15617 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15618 * calls.c (initialize_argument_information): Update call to
15619 targetm.calls.partial_bytes.
15620 (emit_library_call_value_1): Likewise.
15621 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15622 * function.c (assign_parm_find_entry_rtl): Likewise.
15623 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15624 function_arg_info instead of a mode, type and named flag.
15625 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15626 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15627 (cmse_func_args_or_return_in_stack): Update accordingly.
15628 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15629 function_arg_info instead of a mode, type and named flag.
15630 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15631 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15632 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15633 * config/fr30/fr30.c: Include calls.h.
15634 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15635 type and named flag.
15636 * config/frv/frv.c: Include calls.h.
15637 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15638 type and named flag.
15639 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15640 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15641 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15642 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15643 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15644 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15645 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15646 Likewise.
15647 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15648 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15649 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15650 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15651 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15652 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15653 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15654 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15655 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15656 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15657 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15658 (rs6000_parm_needs_stack): Update call accordingly.
15659 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15660 function_arg_info instead of a mode, type and named flag.
15661 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15662 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15663
15664 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15665
15666 * calls.h (must_pass_va_arg_in_stack): Declare.
15667 * calls.c (must_pass_va_arg_in_stack): New function.
15668 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15669 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15670 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15671 Likewise.
15672 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15673
15674 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15675
15676 * calls.h (pass_va_arg_by_reference): Declare.
15677 * calls.c (pass_va_arg_by_reference): New function.
15678 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15679 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15680 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15681 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15682 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15683 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15684 (mips_gimplify_va_arg_expr): Likewise.
15685 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15686 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15687 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15688 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15689 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15690 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15691 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15692 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15693 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15694 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15695 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15696
15697 2019-08-20 Richard Biener <rguenther@suse.de>
15698
15699 PR target/91498
15700 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15701 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15702 (convert_scalars_to_vector): Add timode_p parameter and use it
15703 to guard TImode-only operation.
15704 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15705 (pass_stv::execute): Pass down timode_p.
15706
15707 2019-08-20 Lili Cui <lili.cui@intel.com>
15708
15709 * common/config/i386/i386-common.c
15710 (processor_names): Add tigerlake and cooperlake.
15711 (processor_alias_table): Add tigerlake and cooperlake.
15712 * config.gcc: Add -march=tigerlake and cooperlake.
15713 * config/i386/driver-i386.c
15714 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15715 Add "has_avx" to classify processor.
15716 * config/i386/i386-builtins.c (processor_model) :
15717 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15718 (arch_names_table): Add tigerlake and cooperlake.
15719 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15720 and PROCESSOR_COOPERLAKE.
15721 * config/i386/i386-c.c
15722 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15723 * config/i386/i386-options.c
15724 (m_TIGERLAKE): Define.
15725 (m_COOPERLAKE): Ditto.
15726 (m_CORE_AVX512): Ditto.
15727 (processor_cost_table): Add cascadelake.
15728 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15729 * config/i386/i386.h
15730 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15731 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15732 (PTA_MOVDIRI): Ditto.
15733 (PTA_MOVDIR64B): Ditto.
15734 (PTA_COOPERLAKE): Ditto.
15735 (PTA_TIGERLAKE): Ditto.
15736 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15737 * doc/extend.texi: Add tigerlake and cooperlake.
15738 * doc/invoke.texi: Add tigerlake and cooperlake.
15739
15740 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15741
15742 * doc/install.texi (Specific, alpha): Remove note to use
15743 binutils 2.11.2 or later.
15744
15745 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15746
15747 PR middle-end/89544
15748 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15749 when possible.
15750
15751 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15752
15753 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15754 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15755 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15756 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15757 * config/aarch64/constraints.md (Dt): New constraint
15758 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15759
15760 2019-08-19 Richard Biener <rguenther@suse.de>
15761
15762 PR tree-optimization/91403
15763 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15764 cases we can handle with tail-recursion...
15765 (follow_ssa_edge_expr): ... here. Do so.
15766
15767 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15768
15769 PR target/91441
15770 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15771 implemented for -fsanitize=kernel-address, and merge check logic
15772 with -fsanitize=address.
15773
15774 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15775
15776 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15777 for cpu and machine. Factor 64/32b builtins.
15778
15779 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15780
15781 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15782 gone, point to sourceforge.net.
15783
15784 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15785
15786 * doc/ux.texi (User Experience Guidelines): Update reference.
15787
15788 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15789
15790 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15791 not LGPL".
15792
15793 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15794
15795 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15796 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15797
15798 2019-08-16 Martin Sebor <msebor@redhat.com>
15799
15800 * tree.def (TYPE_SIZE): Clarify.
15801 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15802
15803 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15804
15805 PR tree-optimization/91109
15806 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15807 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15808 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15809
15810 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15811
15812 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15813 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15814 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15815 (uavg<mode>3_ceil): New expander.
15816 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15817 mode iterator when creating CONST1_RTX.
15818 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15819 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15820 mode iterator for const1_operand predicate.
15821
15822 2019-08-16 Richard Biener <rguenther@suse.de>
15823
15824 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15825 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15826 follow_ssa_edge.
15827 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15828 (analyze_evolution_in_loop): Likewise.
15829 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15830 (follow_ssa_edge_expr): ... here. Refactor code.
15831
15832 2019-08-16 Richard Biener <rguenther@suse.de>
15833
15834 PR target/91469
15835 * config/i386/i386-features.c
15836 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15837
15838 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15839
15840 PR other/91255
15841 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15842 only if subst_name matches curr_attr string.
15843
15844 2019-08-16 Richard Biener <rguenther@suse.de>
15845
15846 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15847 stmt at gsi_p, instead replace it with a NOP removed later.
15848 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15849 that became dead because of that.
15850
15851 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15852
15853 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15854 for which we can't represent a range.
15855 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15856 set_varying.
15857 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15858 Set VR_UNDEFINED if type is not supported.
15859 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15860 * tree-vrp.c (value_range_base::check): Assert that a varying has
15861 min/max set.
15862 (value_range_base::equal_p): Early bail for undefines.
15863 (value_range_base::set_varying): Accept a type.
15864 (value_range::set_varying): Same.
15865 (value_range_base::type): VARYING can have a type, while UNDEFINE
15866 is typeless.
15867 (value_range_base::dump): Print type for VARYING nodes.
15868 (value_range_base::set): Add type to VARYING.
15869 (extract_range_from_multiplicative_op): Pass type to set_varying.
15870 (extract_range_from_binary_expr): Same.
15871 (value_range_base::intersect_helper): Same.
15872 (value_range_base::union_helper): Same.
15873 (value_range_base::normalize_symbolics): Same.
15874 (determine_value_range_1): Same.
15875 * tree-vrp.h (class value_range_base): Add type to set_varying.
15876 Add prototype for dump(void).
15877 Add prototype for supports_type_p.
15878 (class value_range): Add type to set_varying.
15879 Add prototype for dump(void).
15880 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15881 set_varying.
15882 (vr_values::get_lattice_entry): Set varying even if propagation
15883 finished.
15884 Pass type to set_varying.
15885 (vr_values::get_value_range): Remove vr_const_varying.
15886 Reallocate the lattice if needed.
15887 (vr_values::update_value_range): Pass type to set_varying.
15888 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15889 (vr_values::extract_range_from_binary_expr): Same.
15890 (vr_values::extract_range_from_unary_expr): Same.
15891 (vr_values::extract_range_from_cond_expr): Same.
15892 (vr_values::check_for_binary_op_overflow): Same.
15893 (vr_values::extract_range_basic): Same.
15894 (vr_values::extract_range_from_assignment): Same.
15895 (vr_values::vr_values): Increase size of num_vr_values.
15896 (vr_values::extract_range_from_phi_node): Pass type to
15897 set_varying.
15898
15899 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15900
15901 PR target/90878
15902 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15903 for costs of hard register moves.
15904 (ix86_register_move_cost): Likewise.
15905 * config/i386/i386.h (processor_costs): Move costs of hard
15906 register moves to hard_register. Add int_load, int_store,
15907 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15908 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15909 for costs of RTL expressions.
15910 * config/i386/x86-tune-costs.h: Move costs of hard register
15911 moves to hard_register. Duplicate int_load, int_store,
15912 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15913 sse_load, sse_store for costs of RTL expressions.
15914
15915 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15916
15917 * target.def (setup_incoming_vararg_bounds): Remove.
15918 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15919 * doc/tm.texi: Regenerate.
15920 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15921 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15922 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15923 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15924
15925 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15926
15927 MSP430: Fix lines over 80 characters long in
15928 config/msp430/*.{c,h} files
15929
15930 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15931 specifier in string.
15932 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15933 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15934 redundant old comment.
15935 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15936 Split line more than 80 characters long.
15937 * config/msp430/msp430.c (msp430_option_override): Likewise.
15938 (msp430_return_in_memory): Likewise.
15939 (msp430_gimplify_va_arg_expr): Likewise.
15940 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15941 (msp430_legitimate_constant): Likewise.
15942 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15943 (msp430_attr): Likewise.
15944 (msp430_data_attr): Likewise.
15945 (msp430_start_function): Likewise.
15946 (gen_prefix): Likewise.
15947 (msp430_init_sections): Likewise.
15948 (msp430_select_section): Likewise.
15949 (msp430_function_section): Likewise.
15950 (msp430_unique_section): Likewise.
15951 (msp430_output_aligned_decl_common): Likewise.
15952 (msp430_do_not_relax_short_jumps): Likewise.
15953 (msp430_init_builtins): Likewise.
15954 (msp430_expand_delay_cycles): Likewise.
15955 (msp430_expand_prologue): Likewise.
15956 (msp430_expand_epilogue): Likewise.
15957 (msp430_expand_helper): Likewise.
15958 (msp430_split_movsi): Likewise.
15959 (msp430_print_operand): Likewise.
15960 (msp430_return_addr_rtx): Likewise.
15961 (msp430x_extendhisi): Likewise.
15962 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15963 (ASM_SPEC): Likewise.
15964 Remove very obvious comments.
15965 (LIB_SPEC): Split line more than 80 characters long.
15966 (EH_RETURN_HANDLER_RTX): Likewise.
15967 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15968
15969 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15970
15971 MSP430: Fix whitespace errors and incorrect indentation in
15972 config/msp430/*.{c,h} files
15973
15974 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15975 (msp430_select_hwmult_lib): Likewise.
15976 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15977 (msp430_extract_mcu_data): Likewise.
15978 (struct t_msp430_mcu_data): Likewise.
15979 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15980 before left square bracket.
15981 (msp430_option_override): Fix indentation.
15982 (msp430_hard_regno_nregs_with_padding): Likewise.
15983 (msp430_initial_elimination_offset): Likewise.
15984 (msp430_special_register_convention_p): Remove whitespace before left
15985 square bracket and after exclamation mark.
15986 (msp430_evaluate_arg): Likewise.
15987 (msp430_callee_copies): Fix indentation.
15988 (msp430_gimplify_va_arg_expr): Likewise.
15989 (msp430_function_arg_advance): Remove whitespace before left square
15990 bracket.
15991 (reg_ok_for_addr): Likewise.
15992 (msp430_preserve_reg_p): Likewise.
15993 (msp430_compute_frame_info): Likewise.
15994 (msp430_asm_output_addr_const_extra): Add space between function name
15995 and open parenthesis.
15996 (has_section_name): Fix indentation.
15997 (msp430_attr): Remove trailing whitespace.
15998 (msp430_section_attr): Likewise.
15999 (msp430_data_attr): Likewise.
16000 (struct msp430_attribute_table): Fix comment and whitespace.
16001 (msp430_start_function): Remove whitespace before left square bracket.
16002 Add space between function name and open parenthesis.
16003 (msp430_select_section): Remove trailing whitespace.
16004 (msp430_section_type_flags): Remove trailing whitespace.
16005 (msp430_unique_section): Remove space before closing parenthesis.
16006 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16007 (msp430_builtins): Remove whitespace before left square bracket.
16008 (msp430_init_builtins): Fix indentation.
16009 (msp430_expand_prologue): Remove whitespace before left square bracket.
16010 Remove space before closing parenthesis.
16011 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16012 (msp430_split_movsi): Remove space before closing parenthesis.
16013 (helper_function_name_mappings): Fix indentation.
16014 (msp430_use_f5_series_hwmult): Fix whitespace.
16015 (use_32bit_hwmult): Likewise.
16016 (msp430_no_hwmult): Likewise.
16017 (msp430_output_labelref): Remove whitespace before left square bracket.
16018 (msp430_print_operand_raw): Likewise.
16019 (msp430_print_operand_addr): Likewise.
16020 (msp430_print_operand): Add two spaces after '.' in comment.
16021 Fix trailing whitespace.
16022 (msp430x_extendhisi): Fix indentation.
16023 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16024 tab.
16025 (PC_REGNUM): Likewise.
16026 (STACK_POINTER_REGNUM): Likewise.
16027 (CC_REGNUM): Likewise.
16028
16029 2019-08-15 Richard Biener <rguenther@suse.de>
16030
16031 PR target/91454
16032 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16033 helper.
16034 (general_scalar_chain::make_vector_copies): Use it.
16035
16036 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16037
16038 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16039
16040 2019-08-15 Martin Liska <mliska@suse.cz>
16041
16042 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16043 operators with no arguments.
16044 (eliminate_unnecessary_stmts): Likewise here.
16045
16046 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16047
16048 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16049 <case COMPARE>: Revert 2019-08-14 change.
16050 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16051 for (TARGET_64BIT || mode != DImode).
16052
16053 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16054
16055 * tree-vrp.c (value_range_base::set): Merge in code from
16056 value_range_base::set_and_canonicalize.
16057 Enforce canonicalization at set time.
16058 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16059 (value_range_base::set_undefined): Inline call to set().
16060 (value_range_base::set_varying): Same.
16061 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16062 (vrp_val_max): New argument handle_pointers.
16063 (vrp_val_min): Same.
16064 (ranges_from_anti_range): Same.
16065 (extract_range_into_wide_ints): Use tree argument instead of sign
16066 and precision.
16067 (extract_range_from_multiplicative_op): Take in tree type instead
16068 of precision and sign. Adapt function for canonicalized ranges.
16069 (extract_range_from_binary_expr): Pass type to
16070 extract_range_from_multiplicative_op.
16071 Adapt for canonicalized ranges.
16072 (extract_range_from_unary_expr): Same.
16073 (value_range_base::intersect_helper): Adjust for canonicalized
16074 ranges.
16075 (value_range_base::union_helper): Same.
16076 (value_range_base::normalize_symbolics): New.
16077 * tree-vrp.h (class value_range_base): Remove
16078 set_and_canonicalize.
16079 New prototype for normalize_symbolics.
16080 (class value_range): Remove set_and_canonicalize.
16081 (vrp_val_min): Adjust prototype.
16082 (vrp_val_max): Same.
16083 * vr-values.c
16084 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16085 instead of set_and_canonicalize.
16086
16087 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16088
16089 PR middle-end/91444
16090 * tree-vect-stmts.c (vectorizable_call): Check that the function
16091 is a BUILT_IN_MD function before passing it to
16092 targetm.vectorize.builtin_md_vectorized_function.
16093
16094 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16095
16096 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16097 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16098 (aarch64_select_early_remat_modes): Use it.
16099
16100 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16101
16102 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16103 16 for SVE predicates even if they are fixed-length.
16104
16105 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16106
16107 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16108 operand order match the MOV /Z alias.
16109
16110 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16111
16112 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16113 the vector pattern as an aarch64_svpattern argument. Update the
16114 overloaded caller accordingly.
16115 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16116 (aarch64_output_sve_vector_inc_dec): Likewise.
16117
16118 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16119
16120 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16121 multiplication case, try to compute VG * (lowest set bit) directly
16122 rather than always basing the multiplication on VG. Use
16123 expand_mult for the multiplication if we can.
16124
16125 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16126
16127 * config/aarch64/aarch64-protos.h
16128 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16129 (aarch64_sve_inc_dec_immediate_p): Rename to...
16130 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16131 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16132 (aarch64_output_sve_scalar_inc_dec): Declare.
16133 (aarch64_output_sve_inc_dec_immediate): Rename to...
16134 (aarch64_output_sve_vector_inc_dec): ...this.
16135 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16136 (aarch64_output_sve_scalar_inc_dec): New functions.
16137 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16138 arguments. Only handle true ADDVL and ADDPL instructions;
16139 don't emit an INC or DEC.
16140 (aarch64_sve_inc_dec_immediate_p): Rename to...
16141 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16142 (aarch64_output_sve_inc_dec_immediate): Rename to...
16143 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16144 aarch64_sve_vector_inc_dec_immediate_p.
16145 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16146 (aarch64_sve_plus_immediate): New predicates.
16147 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16148 rather than aarch64_sve_addvl_addpl_immediate.
16149 (aarch64_sve_inc_dec_immediate): Rename to...
16150 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16151 aarch64_sve_vector_inc_dec_immediate_p.
16152 (aarch64_sve_add_operand): Update accordingly.
16153 * config/aarch64/constraints.md (Uai): New constraint.
16154 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16155 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16156 operand into a register if it satisfies aarch64_sve_plus_immediate.
16157 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16158 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16159 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16160 aarch64_output_sve_vector_inc_dec instead of
16161 aarch64_output_sve_inc_dec_immediate.
16162
16163 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16164
16165 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16166 (UNSPEC_REVW): New constants.
16167 (elem_bits): New mode attribute.
16168 (SVE_INT_UNARY): New int iterator.
16169 (optab): Handle UNSPEC_REV[BHW].
16170 (sve_int_op): New int attribute.
16171 (min_elem_bits): Handle VNx16QI and the predicate modes.
16172 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16173 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16174 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16175 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16176 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16177 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16178 unspecs based on the total width of the reversed data.
16179 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16180 reinterpret followed by a subreg on big-endian targets.
16181
16182 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16183 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16184
16185 * config/aarch64/aarch64-sve.md
16186 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16187 alternatives in which one of the inputs is in the same register
16188 as the output.
16189
16190 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16191
16192 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16193 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16194
16195 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16196
16197 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16198 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16199
16200 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16201 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16202
16203 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16204 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16205 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16206
16207 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16208 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16209
16210 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16211 Add an alternative that uses reversed shifts.
16212
16213 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16214
16215 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16216 struct.
16217
16218 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16219
16220 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16221 a commutativity marker.
16222
16223 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16224 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16225
16226 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16227 (aarch64_prepare_sve_cond_int_fma): Declare.
16228 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16229 (aarch64_prepare_sve_int_fma): New functions.
16230 (aarch64_prepare_sve_cond_int_fma): Likewise.
16231 * config/aarch64/aarch64-sve.md
16232 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16233 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16234 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16235 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16236 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16237 (*madd<mode>): Rename to...
16238 (*fma<mode>4): ...this.
16239 (*msub<mode>): Rename to...
16240 (*fnma<mode>4): ...this.
16241
16242 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16243 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16244
16245 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16246 Print 2.0 naturally.
16247 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16248 * config/aarch64/predicates.md
16249 (aarch64_sve_float_negated_arith_immediate): New predicate,
16250 renamed from aarch64_sve_float_arith_with_sub_immediate.
16251 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16252 positive and negative constants.
16253 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16254 or an aarch64_sve_float_arith_with_sub_immediate.
16255 * config/aarch64/constraints.md (vsN): Use
16256 aarch64_sve_float_negated_arith_immediate.
16257 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16258 iterator.
16259 (sve_pred_fp_rhs2_immediate): New int attribute.
16260 * config/aarch64/aarch64-sve.md
16261 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16262 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16263 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16264 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16265 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16266 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16267
16268 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16269 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16270
16271 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16272 (*aarch64_cond_abd<SVE_F:mode>_3)
16273 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16274
16275 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16276 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16277
16278 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16279 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16280
16281 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16282 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16283
16284 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16285 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16286 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16287 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16288 optabs.
16289 * optabs.h (create_convert_operand_from): Expand comment.
16290 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16291 when mapping scalar rtxes to vector operands.
16292 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16293 ashiftrt and lshiftrt.
16294 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16295 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16296 (*cond_<optab><mode>_any_const): New patterns.
16297
16298 2019-08-15 Martin Liska <mliska@suse.cz>
16299
16300 PR ipa/91438
16301 * cgraph.c (cgraph_node::remove): When setting
16302 n->origin = NULL for all nested functions, reset
16303 also next_nested.
16304
16305 2019-08-15 Martin Liska <mliska@suse.cz>
16306
16307 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16308 and next_nested.
16309
16310 2019-08-15 Martin Liska <mliska@suse.cz>
16311
16312 PR ipa/91404
16313 * passes.c (order): Remove.
16314 (uid_hash_t): Likewise).
16315 (remove_cgraph_node_from_order): Remove from set
16316 of pointers (cgraph_node *).
16317 (insert_cgraph_node_to_order): New.
16318 (duplicate_cgraph_node_to_order): New.
16319 (do_per_function_toporder): Register all 3 cgraph hooks.
16320 Skip removed_nodes now as we know about all of them.
16321
16322 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16323
16324 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16325 <case E_V8QImode>: Use vector_set path for
16326 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16327 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16328 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16329
16330 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16331
16332 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16333
16334 2019-08-14 Martin Sebor <msebor@redhat.com>
16335
16336 PR tree-optimization/91294
16337 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16338 source length as exact.
16339
16340 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16341
16342 * doc/extend.texi: Add "noinit" attribute documentation.
16343 * doc/sourcebuild.texi: Add noinit effective target documentation.
16344 * varasm.c (default_section_type_flags): Add support for "noinit"
16345 section.
16346 (default_elf_select_section): Add support for "noinit" attribute.
16347 * config/msp430/msp430.c (msp430_attribute_table): Remove
16348 "noinit" entry.
16349
16350 2019-08-14 Richard Biener <rguenther@suse.de>
16351 Uroš Bizjak <ubizjak@gmail.com>
16352
16353 PR target/91154
16354 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16355 mode arguments.
16356 (scalar_chain::smode): New member.
16357 (scalar_chain::vmode): Likewise.
16358 (dimode_scalar_chain): Rename to...
16359 (general_scalar_chain): ... this.
16360 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16361 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16362 base with TImode and V1TImode.
16363 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16364 (general_scalar_chain::vector_const_cost): Adjust for SImode
16365 chains.
16366 (general_scalar_chain::compute_convert_gain): Likewise. Add
16367 {S,U}{MIN,MAX} support.
16368 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16369 (general_scalar_chain::make_vector_copies): Likewise. Handle
16370 non-DImode chains appropriately.
16371 (general_scalar_chain::convert_reg): Likewise.
16372 (general_scalar_chain::convert_op): Likewise.
16373 (general_scalar_chain::convert_insn): Likewise. Add
16374 fatal_insn_not_found if the result is not recognized.
16375 (convertible_comparison_p): Pass in the scalar mode and use that.
16376 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16377 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16378 (scalar_to_vector_candidate_p): Remove by inlining into single
16379 caller.
16380 (general_remove_non_convertible_regs): Rename from
16381 dimode_remove_non_convertible_regs.
16382 (remove_non_convertible_regs): Remove by inlining into single caller.
16383 (convert_scalars_to_vector): Handle SImode and DImode chains
16384 in addition to TImode chains.
16385 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16386 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16387 (*<maxmin>di3_doubleword): Likewise.
16388
16389 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16390 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16391
16392 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16393 (*cond_bic<mode>_any): New patterns.
16394
16395 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16396
16397 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16398 take the equivalent mask, as well as a bit count.
16399 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16400 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16401 (aarch64_sve_pred_and_operand): New predicates.
16402 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16403 code attribute.
16404 * config/aarch64/aarch64-sve.md
16405 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16406 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16407
16408 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16409
16410 * config/aarch64/aarch64-sve.md
16411 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16412 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16413 New patterns.
16414
16415 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16416 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16417
16418 * config/aarch64/aarch64-sve.md
16419 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16420 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16421
16422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16423 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16424
16425 * config/aarch64/aarch64-sve.md
16426 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16427 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16428
16429 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16430
16431 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16432 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16433 New pattern.
16434
16435 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16436 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16437
16438 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16439
16440 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16441 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16442
16443 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16444 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16445 (aarch64_print_operand): Add support for %I.
16446 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16447 Bitcast floating-point constants to the corresponding integer constant.
16448 (aarch64_float_const_representable_p): Handle vectors as well
16449 as scalars.
16450 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16451 for the new vcond_mask_<mode><vpred> expander.
16452 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16453 test aarch64_float_const_representable_p.
16454 (aarch64_sve_reg_or_dup_imm): New predicate.
16455 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16456 gen_vcond_mask_<mode><vpred> instead of
16457 gen_aarch64_sve_dup<mode>_const.
16458 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16459 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16460 for operands 1 and 2 respectively. Force operand 2 into a
16461 register if operand 1 is a register. Fold old define_insn...
16462 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16463 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16464 floating-point constants that can be moved as integers. Add
16465 alternatives for MOV /M and FMOV /M.
16466 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16467 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16468 1 and 2 respectively.
16469 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16470 as scalars.
16471 (vss): New constraint.
16472
16473 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16474
16475 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16476 (aarch64_sve_float_maxmin_operand): New predicates.
16477 * config/aarch64/constraints.md (vsB): New constraint.
16478 (vsM): Fix typo.
16479 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16480 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16481 UNSPEC_COND_FMINNM.
16482 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16483 Use aarch64_sve_float_maxmin_operand for operand 2.
16484 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16485 Add alternatives for the constant forms.
16486
16487 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16488
16489 * config/aarch64/constraints.md (vsb): New constraint.
16490 (vsm): Generalize description.
16491 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16492 iterator.
16493 (sve_imm_con): Handle smax, smin, umax and umin.
16494 (sve_imm_prefix): New code attribute.
16495 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16496 (aarch64_sve_vsb_operand): New predicates.
16497 (aarch64_sve_mul_immediate): Rename to...
16498 (aarch64_sve_vsm_immediate): ...this.
16499 (aarch64_sve_mul_operand): Rename to...
16500 (aarch64_sve_vsm_operand): ...this.
16501 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16502 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16503 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16504 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16505 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16506 add movprfx support for the immediate alternatives.
16507 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16508 of the above.
16509 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16510 for operand 3.
16511
16512 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16513
16514 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16515 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16516 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16517
16518 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16519
16520 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16521 (optab, sve_int_op): Handle them.
16522 * config/aarch64/aarch64-sve.md: Expand comment.
16523
16524 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16525
16526 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16527 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16528 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16529
16530 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16531
16532 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16533 (aarch64_expand_sve_const_pred_trn): New functions.
16534 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16535 use the above functions when the parameter is true.
16536 (aarch64_expand_sve_const_pred): Update call accordingly.
16537 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16538 Rename to...
16539 (@aarch64_sve_<perm_insn><mode>): ...this.
16540
16541 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16542
16543 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16544 Declare.
16545 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16546 (aarch64_sve_emit_int_cmp): New functions.
16547 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16548 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16549 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16550 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16551 (UNSPEC_PRED_Z): New unspec.
16552 (set_clobber_cc_nzc): Delete.
16553 * config/aarch64/aarch64-sve.md: Add a block comment about
16554 UNSPEC_PRED_Z.
16555 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16556 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16557 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16558 UNSPEC_MERGE_PTRUE.
16559 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16560 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16561 check for compatible predicates.
16562 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16563 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16564 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16565 comparisons above.
16566
16567 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16568
16569 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16570 * config/aarch64/aarch64-sve.md: Add a section describing it.
16571 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16572 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16573 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16574 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16575 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16576 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16577 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16578 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16579 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16580 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16581 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16582 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16583 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16584 (aarch64_evpc_rev_local): Update accordingly.
16585
16586 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16587
16588 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16589 iterators.
16590 (SVE_BHSI, SVE_SDI): Tweak comment.
16591 (SVE_HSDI): Likewise. Fix definition.
16592 (SVE_SDF): New mode iterator.
16593 (elem_bits): New mode attribute.
16594 (SVE_COND_FCVT): New int iterator.
16595 * config/aarch64/aarch64-sve.md
16596 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16597 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16598 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16599 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16600 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16601 ...these new patterns.
16602 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16603 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16604 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16605 Merge into...
16606 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16607 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16608 ...these new patterns.
16609 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16610 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16611 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16612 ...this new pattern.
16613 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16614 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16615 ...this new pattern.
16616 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16617
16618 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16619
16620 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16621 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16622 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16623 unspecs.
16624 (optab, su): Handle them.
16625 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16626 * config/aarch64/aarch64-sve.md
16627 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16628 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16629 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16630 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16631 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16632 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16633 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16634 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16635 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16636 FIXUORS.
16637 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16638 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16639 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16640 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16641 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16642 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16643 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16644 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16645 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16646 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16647 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16648 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16649 of UNSPEC_FLOAT_CONVERT.
16650 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16651 aarch64_sve_extend<mode><Vwide>2.
16652
16653 2019-08-14 Richard Biener <rguenther@suse.de>
16654
16655 PR target/91154
16656 * config/i386/i386-features.c
16657 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16658 individual instruction gain. Fix reg-reg copy GRP cost. Use
16659 ix86_cost->sse_op for vector instruction costs.
16660
16661 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16662
16663 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16664 (cmp_op): Handle it.
16665 (SVE_COND_FP_CMP): Rename to...
16666 (SVE_COND_FP_CMP_I0): ...this.
16667 (SVE_FP_CMP): Remove.
16668 * config/aarch64/aarch64-sve.md
16669 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16670 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16671 using unspecs to represent the comparison.
16672 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16673 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16674 accordingly.
16675 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16676 (aarch64_unspec_cond_code): Move after integer code. Handle
16677 UNORDERED.
16678 (aarch64_emit_sve_predicated_cond): Replace with...
16679 (aarch64_emit_sve_fp_cond): ...this new function.
16680 (aarch64_emit_sve_or_conds): Replace with...
16681 (aarch64_emit_sve_or_fp_conds): ...this new function.
16682 (aarch64_emit_sve_inverted_cond): Replace with...
16683 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16684 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16685
16686 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16687
16688 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16689 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16690 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16691 SVE_HSD instead of SVE_SD.
16692
16693 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16694 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16695
16696 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16697 iterator.
16698 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16699 attributes.
16700 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16701 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16702 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16703 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16704 (*div<SVE_F:mode>3): Generalize to...
16705 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16706
16707 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16708 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16709
16710 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16711 constants.
16712 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16713 predicate.
16714 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16715 Declare.
16716 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16717 function.
16718 * config/aarch64/aarch64-sve.md: Add a block comment about the
16719 handling of predicated FP operations.
16720 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16721 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16722 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16723 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16724 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16725 operand.
16726 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16727 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16728 operand.
16729 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16730 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16731 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16732 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16733 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16734 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16735 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16736 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16737 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16738 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16739 strictness operands. Use aarch64_sve_pred_dominates_p to check
16740 whether the predicate on the conditional operation is suitable
16741 for merging. Split patterns into the canonical equal-predicate form.
16742 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16743 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16744
16745 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16746 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16747
16748 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16749 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16750 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16751 rtx codes.
16752 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16753 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16754 unspecs.
16755
16756 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16757 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16758
16759 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16760 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16761 actually has, rather than relying on REG_EQUAL notes.
16762 Make the insn operand order match the SVE operand order.
16763 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16764 the SVE operand order.
16765
16766 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16767
16768 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16769 (aarch64_emit_set_immediate): Likewise.
16770 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16771 (aarch64_pfalse_reg): Likewise.
16772 (aarch64_convert_sve_data_to_pred): New function.
16773 (aarch64_sve_move_pred_via_while): Take an optional target register
16774 and the required register mode.
16775 (aarch64_expand_sve_const_pred_1): New function.
16776 (aarch64_expand_sve_const_pred): Likewise.
16777 (aarch64_expand_mov_immediate): Build an all-true predicate
16778 if the significant bits of the immediate are all true. Use
16779 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16780 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16781 before register allocation.
16782 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16783 a VNx16BI PTRUE when splitting the memory alternative.
16784 (vec_duplicate<mode>): Update accordingly.
16785 (*pred_cmp<cmp_op><mode>): Rename to...
16786 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16787
16788 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16789
16790 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16791 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16792 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16793 (UNSPEC_PTEST): New unspec.
16794 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16795 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16796 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16797 * config/aarch64/aarch64-sve.md: Add a new section describing the
16798 handling of UNSPEC_PTEST.
16799 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16800 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16801 (ptest_ptrue<mode>): Replace with...
16802 (aarch64_ptest<mode>): ...this new pattern.
16803 (cbranch<mode>4): Update after above changes.
16804 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16805 UNSPEC_PTEST_PTRUE.
16806 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16807 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16808 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16809
16810 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16811
16812 PR lto/91287
16813 * builtins.c (builtin_with_linkage_p): New function.
16814 * builtins.h (builtin_with_linkage_p): New function.
16815 * symtab.c (write_symbol): Remove redundant assert.
16816 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16817 Remove FIXME and use builtin_with_linkage_p.
16818
16819 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16820
16821 PR middle-end/91421
16822 * tree-core.h (function_decl::function_code): Change type to
16823 unsigned int.
16824 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16825 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16826 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16827 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16828 is BUILT_IN_NORMAL.
16829 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16830 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16831 (fndecl_built_in_p): Change the type of the "name" argument to
16832 unsigned int.
16833 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16834 after check for DECL_BUILT_IN_CLASS.
16835 * cgraphclones.c (build_function_decl_skip_args): Use
16836 set_decl_built_in_function.
16837 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16838 * ipa-split.c (split_function): Likewise.
16839 * langhooks.c (add_builtin_function_common): Likewise.
16840 * omp-simd-clone.c (simd_clone_create): Likewise.
16841 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16842 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16843 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16844 DECL_FUNCTION_CODE.
16845 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16846 instead of DECL_FUNCTION_CODE.
16847 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16848 instead of DECL_FUNCTION_CODE.
16849 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16850 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16851 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16852 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16853 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16854 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16855 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16856 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16857 (alpha_gimple_fold_builtin): Likewise.
16858 * config/arc/arc.c (arc_expand_builtin): Likewise.
16859 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16860 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16861 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16862 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16863 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16864 * config/frv/frv.c (frv_expand_builtin): Likewise.
16865 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16866 (gcn_expand_builtin): Likewise.
16867 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16868 (fold_builtin_cpu): Likewise.
16869 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16870 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16871 (ix86_gimple_fold_builtin): Likewise.
16872 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16873 (ia64_expand_builtin): Likewise.
16874 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16875 * config/mips/mips.c (mips_expand_builtin): Likewise.
16876 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16877 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16878 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16879 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16880 * config/pa/pa.c (pa_expand_builtin): Likewise.
16881 * config/pru/pru.c (pru_expand_builtin): Likewise.
16882 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16883 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16884 Likewise.
16885 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16886 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16887 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16888 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16889 (rs6000_builtin_reciprocal): Likewise.
16890 * config/rx/rx.c (rx_expand_builtin): Likewise.
16891 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16892 * config/s390/s390.c (s390_expand_builtin): Likewise.
16893 * config/sh/sh.c (sh_expand_builtin): Likewise.
16894 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16895 (sparc_fold_builtin): Likewise.
16896 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16897 * config/spu/spu.c (spu_expand_builtin): Likewise.
16898 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16899 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16900 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16901 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16902 (xtensa_expand_builtin): Likewise.
16903
16904 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16905
16906 PR middle-end/91421
16907 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16908 before the DECL_FUNCTION_CODE.
16909 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16910 to check for a BUILT_IN_ALLOCA call.
16911 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16912 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16913 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16914 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16915 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16916 for BUILT_IN_NORMAL functions.
16917 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16918 test for BUILT_IN_TM_ABORT.
16919 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16920 to check for a BUILT_IN_STACK_RESTORE call.
16921 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16922 * tree-ssa-threadedge.c
16923 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16924 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16925 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16926 test for a BUILT_IN_NORMAL call instead of a negative test for
16927 an internal function call.
16928
16929 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16930
16931 * tree.h (build_vector_a_then_b): Declare.
16932 * tree.c (build_vector_a_then_b): New function.
16933 * fold-const-call.c (fold_while_ult): Likewise.
16934 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16935 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16936 (aarch64_svpattern): New enum.
16937 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16938 constants through aarch64_expand_mov_immediate.
16939 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16940 than general_operand as the predicate for operand 1.
16941 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16942 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16943 insn_type.
16944 (simd_immediate_info::simd_immediate_info): New overload that
16945 takes a scalar_int_mode and an svpattern.
16946 (simd_immediate_info::u): Add a "pattern" field.
16947 (svpattern_token): New function.
16948 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16949 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16950 (aarch64_sve_move_pred_via_while): New functions.
16951 (aarch64_expand_mov_immediate): Try using
16952 aarch64_sve_move_pred_via_while for predicates that contain N ones
16953 followed by M zeros but that do not correspond to a VLnnn pattern.
16954 (aarch64_sve_pred_valid_immediate): New function.
16955 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16956 with PTRUE and PFALSE.
16957 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16958 forms.
16959
16960 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16961
16962 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16963 flag.
16964 (darwin_override_options): Likewise.
16965 * config/darwin.h: Likewise.
16966 * config/darwin.opt: Likewise.
16967 * config/i386/i386.c (output_pic_addr_const): Likewise.
16968 * config/rs6000/darwin.h: Likewise.
16969 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16970 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16971 ... this TARGET_MACHO_SYMBOL_STUBS.
16972 (FUNCTION_PROFILER):Likewise.
16973 * config/i386/i386.h: Likewise.
16974
16975 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16976
16977 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16978 <case E_V2SImode>: Use vec_extr path for
16979 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16980 <case E_V8QImode>: Ditto.
16981 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16982 Use SWI48 mode iterator. Use %k to output operand 0.
16983 (*mmx_pextrw): New insn pattern.
16984 (*mmx_pextrb): Ditto.
16985 (*mmx_pextrb_zext): Ditto.
16986
16987 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16988
16989 * target.def (libc_has_function, libc_has_fast_function): Improve
16990 documentation strings.
16991 * doc/tm.texi: Regenerate.
16992
16993 2019-08-13 Caroline Tice <cmtice@google.com>
16994
16995 PR other/91396
16996 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16997 vtv_end.o or vtv_end_preinit.o files if !static.
16998
16999 2019-08-13 Olivier Hainque <hainque@adacore.com>
17000
17001 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17002
17003 2019-08-13 Olivier Hainque <hainque@adacore.com>
17004
17005 * rtlanal.c (tablejump_casesi_pattern): New function, to
17006 determine if a tablejump insn is a casesi dispatcher. Extracted
17007 from patch_jump_insn.
17008 * rtl.h (tablejump_casesi_pattern): Declare.
17009 * cfgrtl.c (patch_jump_insn): Use it.
17010 * dwarf2cfi.c (create_trace_edges): Use it.
17011
17012 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17013
17014 PR target/81800
17015 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17016 operand is larger than a long int.
17017
17018 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17019
17020 * machmode.h (opt_mode::else_mode): New function.
17021 (opt_mode::else_blk): Use it.
17022 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17023 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17024 (aarch64_gen_stepped_int_parallel): Likewise.
17025 (aarch64_stepped_int_parallel_p): Likewise.
17026 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17027 argument.
17028 * config/aarch64/aarch64.c
17029 (aarch64_expand_sve_widened_duplicate): Delete.
17030 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17031 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17032 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17033 argument. Use early returns in the !CONST_INT_P handling.
17034 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17035 than handling some inline.
17036 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17037 from...
17038 (aarch64_simd_container_mode): ...here.
17039 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17040 (aarch64_sve_ld1rq_operand_p): New functions.
17041 * config/aarch64/predicates.md (descending_int_parallel)
17042 (aarch64_sve_ld1rq_operand): New predicates.
17043 * config/aarch64/constraints.md (UtQ): New constraint.
17044 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17045 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17046 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17047 (@aarch64_sve_reinterpret<mode>): New expander.
17048 (*aarch64_sve_reinterpret<mode>): New pattern.
17049 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17050 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17051 (*sve_ld1rq<Vesize>): Replace with...
17052 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17053
17054 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17055
17056 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17057 16:12.
17058
17059 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17060
17061 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17062 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17063 (msp430_check_path_for_devices): New.
17064 (parse_devices_csv_1): New.
17065 (parse_devices_csv): New.
17066 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17067 MCU data in devices.csv before using the hard-coded data.
17068 Warn if devices.csv isn't found and the MCU wasn't found in the
17069 hard-coded data either.
17070 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17071 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17072 Search for devices.csv on -I and -L paths.
17073 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17074 msp430_set_driver_var.
17075 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17076 -mdevices-csv-loc=.
17077 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17078 searched for devices.csv.
17079 (mwarn-devices-csv): Document option.
17080
17081 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17082
17083 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17084 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17085 Use a single Dn alternative instead of separate Dz and Dm
17086 alternatives. Use aarch64_output_sve_move_immediate.
17087 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17088 function.
17089 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17090 for predicates too.
17091 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17092 (aarch64_output_ptrue): Delete.
17093
17094 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17095
17096 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17097 INDEX.
17098 (simd_immediate_info::value, simd_immediate_info::step)
17099 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17100 with...
17101 (simd_immediate_info::u): ...this new union.
17102 (simd_immediate_info::simd_immediate_info): Update accordingly.
17103 (aarch64_output_simd_mov_immediate): Likewise.
17104 (aarch64_output_sve_mov_immediate): Likewise.
17105
17106 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17107
17108 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17109 extra_gcc_objs.
17110 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17111 (msp430_select_cpu): New spec function.
17112 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17113 MCU data.
17114 * config/msp430/msp430-devices.c: New file.
17115 * config/msp430/msp430-devices.h: New file.
17116 * config/msp430/msp430.c: Remove msp430_mcu_data.
17117 (msp430_option_override): Use msp430_extract_mcu_data to extract
17118 MCU data.
17119 (msp430_use_f5_series_hwmult): Likewise.
17120 (use_32bit_hwmult): Likewise.
17121 (msp430_no_hwmult): Likewise.
17122 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17123 assembler.
17124 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17125 and -mcpu option.
17126 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17127 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17128 Remove hard-coded MCU multilib data.
17129
17130 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17131
17132 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17133 based on the mode instead of testing properties of it.
17134
17135 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17136
17137 * doc/md.texi: Document the x and y constraints for AArch64.
17138 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17139 (FP_LO8_REGS): New reg_class.
17140 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17141 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17142 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17143 * config/aarch64/predicates.md (aarch64_simd_register): Use
17144 FP_REGNUM_P instead of checking the classes manually.
17145 * config/aarch64/constraints.md (y): New constraint.
17146
17147 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17148
17149 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17150 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17151 * config/aarch64/aarch64-simd.md
17152 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17153 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17154 from the asm template.
17155 * config/aarch64/aarch64-sve.md
17156 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17157 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17158 from the asm template.
17159 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17160 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17161 from the asm template.
17162 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17163
17164 2019-08-13 Martin Liska <mliska@suse.cz>
17165
17166 * value-prof.c (gimple_ic_transform): Add new line.
17167 Print details with MSG_NOTE.
17168
17169 2019-08-13 Martin Liska <mliska@suse.cz>
17170
17171 * doc/invoke.texi: Document automatic detection of jobserver.
17172 * lto-wrapper.c (run_gcc): Detect jobserver always.
17173
17174 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17175
17176 * config/i386/i386-expand.c (ix86_expand_vector_set)
17177 <case E_V2SImode>: Use vec_merge path for
17178 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17179 <case E_V8QImode>: Ditto.
17180 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17181 (*mmx_pinsrb): Ditto.
17182
17183 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17184
17185 PR target/83250
17186 PR target/91340
17187 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17188 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17189 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17190 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17191 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17192
17193 2019-08-12 Richard Biener <rguenther@suse.de>
17194
17195 PR lto/91375
17196 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17197 flag_devirtualize.
17198
17199 2019-08-12 Richard Biener <rguenther@suse.de>
17200
17201 PR driver/91130
17202 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17203 lang_mask option, always use CL_DRIVER.
17204 (get_options_from_collect_gcc_options): Adjust.
17205 (find_and_merge_options): Likewise.
17206 (run_gcc): Likewise.
17207
17208 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17209
17210 * ipa-predicate.c (add_condition): Restore inverted test.
17211
17212 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17213
17214 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17215 (enum omp_clause_device_type_kind): New enum.
17216 (struct tree_omp_clause): Add subcode.device_type_kind.
17217 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17218 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17219 for device_type clause.
17220 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17221 * tree-pretty-print.c (dump_omp_clause): Likewise.
17222
17223 PR target/91408
17224 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17225 vector_operand.
17226
17227 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17228
17229 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17230 handling spilled pseudos.
17231
17232 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17233
17234 PR target/91386
17235 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17236 to preserve the contents of the original insns.
17237
17238 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17239
17240 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17241 (addsi3_compare_op2): Likewise.
17242
17243 2019-08-09 Martin Liska <mliska@suse.cz>
17244
17245 * alias.c (alias_ptr_types_compatible_p): Strengten
17246 type comparison in LTO mode.
17247
17248 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17249
17250 PR middle-end/90313
17251 * tree-tailcall.c (find_tail_calls): Reject calls that might
17252 read from an escaped RESULT_DECL.
17253
17254 2019-08-09 Martin Liska <mliska@suse.cz>
17255
17256 * doc/invoke.texi: Document the option value.
17257 * lto-wrapper.c (run_gcc): Set auto_parallel
17258 only with -flto=auto.
17259
17260 2019-08-09 Martin Liska <mliska@suse.cz>
17261
17262 * opts.c (common_handle_option): Error for an invalid argument
17263 to -flto=.
17264
17265 2019-08-09 Martin Liska <mliska@suse.cz>
17266
17267 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17268 use dump_printf to report optimization.
17269 (sem_variable::merge): Likwise.
17270 (sem_item_optimizer::merge_classes): Use dump_printf to report
17271 ICF hits.
17272
17273 2019-08-09 Martin Liska <mliska@suse.cz>
17274
17275 * value-prof.c (gimple_divmod_fixed_value_transform):
17276 Use dump_printf_loc.
17277 (gimple_mod_pow2_value_transform): Likewise.
17278 (gimple_mod_subtract_transform): Likewise.
17279 (init_node_map): Likewise.
17280 (gimple_ic_transform): Likewise.
17281 (gimple_stringops_transform): Likewise.
17282
17283 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17284
17285 * doc/extend.texi: Add const qualifier to ld intrinsics.
17286
17287 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17288
17289 * config/rs6000/dfp.md (D64_D128): Rename to ...
17290 (DDTD): ... this, throughout.
17291 (dfp_suffix): Rename to ...
17292 (q): ... this, throughout.
17293
17294 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17295
17296 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17297 (dfp_suffix): Ditto.
17298 (adddd3, addtd3): Merge to ...
17299 (add<mode>3 for D64_D128): ... this.
17300 (subdd3, subtd3): Merge to ...
17301 (sub<mode>3 for D64_D128): ... this.
17302 (muldd3, multd3): Merge to ...
17303 (mul<mode>3 for D64_D128): ... this.
17304 (divdd3, divtd3): Merge to ...
17305 (div<mode>3 for D64_D128): ... this.
17306 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17307 (*cmp<mode>_internal1 for D64_D128): ... this.
17308 (ftruncdd2, ftrunctd2): Merge to ...
17309 (ftrunc<mode>2 for D64_D128): ... this.
17310 (fixdddi2, fixtddi2): Merge to ...
17311 (fix<mode>di2 for D64_D128): ... this.
17312
17313 2019-08-08 Jim Wilson <jimw@sifive.com>
17314
17315 PR target/91229
17316 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17317 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17318 Pass into recursive call.
17319 (riscv_flatten_aggregate_argument): New arg. Pass to
17320 riscv_flatten_aggregate_field.
17321 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17322 riscv_flatten_aggregate_argument twice, with false and true as last
17323 arg. Process result twice. Compare results and warn if different.
17324 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17325
17326 2019-08-08 Martin Liska <mliska@suse.cz>
17327
17328 PR bootstrap/91352
17329 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17330 * lto-wrapper.c (jobserver_active_p): Likewise.
17331
17332 2019-08-08 Martin Liska <mliska@suse.cz>
17333
17334 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17335 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17336 (create_version_clone_with_body): Likewise.
17337
17338 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17339
17340 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17341 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17342 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17343 GOVD_EXPLICIT flags.
17344 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17345 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17346 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17347 call install_var_field with mask 11 instead of 3.
17348 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17349 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17350
17351 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17352
17353 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17354 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17355
17356 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17357
17358 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17359 MOVPRFX alternatives. Make the GPR alternatives more expensive
17360 than the FPR ones.
17361
17362 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17363
17364 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17365 Disparage the GPR alternative relative to the FPR one.
17366 Fix handling of 8-bit and 16-bit FPR values.
17367
17368 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17369
17370 * config/aarch64/iterators.md (BITWISEV): Delete.
17371 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17372 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17373 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17374 UNSPEC_FMINNMV, UNSPEC_FMINV.
17375 (bit_reduc_op): Delete.
17376 (sve_int_op): New int attribute.
17377 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17378 UNSPEC_FMINNMV, UNSPEC_FMINV.
17379 * config/aarch64/aarch64-sve.md
17380 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17381 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17382 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17383 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17384 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17385 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17386 new patterns.
17387 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17388 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17389 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17390 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17391 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17392 new patterns.
17393
17394 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17395
17396 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17397 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17398 (fms<mode>4, *fms<mode>4): Replace with...
17399 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17400 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17401 Use unspecs instead of rtx codes.
17402 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17403 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17404
17405 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17406
17407 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17408 int iterator.
17409 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17410 * config/aarch64/aarch64-sve.md
17411 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17412 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17413 use a single unspec for the rhs.
17414 (*<su><maxmin><mode>3): Delete.
17415 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17416
17417 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17418
17419 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17420 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17421 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17422 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17423 (optab, sve_fp_op): Handle them.
17424 (SVE_FP_UNARY): Delete.
17425 (optab): Remove sqrt entry.
17426 (sve_fp_op): Remove neg, abs and sqrt entries.
17427 (SVE_COND_FP_UNARY): New int iterator.
17428 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17429 (*<frint_pattern><mode>2): Delete.
17430 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17431 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17432 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17433 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17434
17435 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17436
17437 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17438
17439 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17440
17441 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17442 (UNSPEC_COND_FADD): ...this.
17443 (UNSPEC_COND_SUB): Rename to...
17444 (UNSPEC_COND_FSUB): ...this.
17445 (UNSPEC_COND_MUL): Rename to...
17446 (UNSPEC_COND_FMUL): ...this.
17447 (UNSPEC_COND_DIV): Rename to...
17448 (UNSPEC_COND_FDIV): ...this.
17449 (UNSPEC_COND_MAX): Rename to...
17450 (UNSPEC_COND_FMAXNM): ...this.
17451 (UNSPEC_COND_MIN): Rename to...
17452 (UNSPEC_COND_FMINNM): ...this.
17453 (UNSPEC_COND_LT): Rename to...
17454 (UNSPEC_COND_FCMLT): ...this.
17455 (UNSPEC_COND_LE): Rename to...
17456 (UNSPEC_COND_FCMLE): ...this.
17457 (UNSPEC_COND_EQ): Rename to...
17458 (UNSPEC_COND_FCMEQ): ...this.
17459 (UNSPEC_COND_NE): Rename to...
17460 (UNSPEC_COND_FCMNE): ...this.
17461 (UNSPEC_COND_GE): Rename to...
17462 (UNSPEC_COND_FCMGE): ...this.
17463 (UNSPEC_COND_GT): Rename to...
17464 (UNSPEC_COND_FCMGT): ...this.
17465 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17466 (sve_fp_op_rev): Update accordingly.
17467 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17468
17469 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17470
17471 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17472 banner comments.
17473 * config/aarch64/check-sve-md.awk: New file.
17474 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17475 (insn-conditions.md): Depend on it.
17476
17477 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17478
17479 PR target/91385
17480 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17481 (*negsi2_cmpz_zext): Ditto.
17482
17483 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17484
17485 * config/aarch64/iterators.md (commutative): Remove.
17486
17487 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17488
17489 PR driver/91130
17490 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17491 processing COLLECT_GCC_OPTIONS.
17492 (run_gcc): Likewise.
17493
17494 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17495
17496 PR tree-optimization/91109
17497 * lra-remat.c (update_scratch_ops): Remove assignment of the
17498 hard register.
17499
17500 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17501
17502 * data-streamer.h (streamer_write_poly_uint64): Declare.
17503 (streamer_read_poly_uint64): Likewise.
17504 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17505 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17506 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17507 (add_condition): Take a poly_int64 size.
17508 * ipa-predicate.c (add_condition): Likewise.
17509 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17510 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17511 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17512 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17513 condition::size as a poly_int64.
17514 (unmodified_parm_1): Take a poly_int64 size pointer.
17515 (unmodified_parm): Likewise.
17516 (unmodified_parm_or_parm_agg_item): Likewise.
17517 (set_cond_stmt_execution_predicate): Update accordingly.
17518 (set_switch_stmt_execution_predicate): Likewise.
17519 (will_be_nonconstant_expr_predicate): Likewise.
17520 (will_be_nonconstant_predicate): Likewise.
17521 (inline_read_section): Stream condition::size as a poly_int.
17522 (ipa_fn_summary_write): Likewise.
17523
17524 2019-08-07 Martin Liska <mliska@suse.cz>
17525
17526 * fold-const.c (twoval_comparison_p): Replace int
17527 with bool as a return type.
17528 (simple_operand_p): Likewise.
17529 (operand_equal_p): Replace int with bool as a return type.
17530 * fold-const.h (operand_equal_p): Likewise.
17531
17532 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17533
17534 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17535 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17536 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17537 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17538 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17539 * tree-pretty-print.c (dump_omp_clause): Likewise.
17540 * tree-nested.c (convert_nonlocal_omp_clauses,
17541 convert_local_omp_clauses): Likewise.
17542 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17543 Likewise.
17544 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17545 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17546 clause with array or reference to array types, no matter what type
17547 except for reference it has.
17548
17549 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17550
17551 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17552
17553 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17554
17555 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17556 (arch_canonicalize): Support rv32g and rv64g and fix error
17557 handling.
17558
17559 2019-08-06 Martin Liska <mliska@suse.cz>
17560
17561 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17562 and DECL_IS_OPERATOR_DELETE_P.
17563
17564 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17565
17566 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17567 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17568 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17569 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17570 (gimplify_omp_for): Don't do C++ random access iterator clause
17571 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17572 don't predetermine the artificial iterator in case of C++ random
17573 access iterators as lastprivate, but private. For OMP_LOOP, force
17574 bind expr around simd body and force for_pre_body before the
17575 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17576 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17577 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17578 diff var of C++ random access iterators. Handle
17579 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17580 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17581 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17582 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17583 * omp-low.c (lower_rec_input_clauses): For
17584 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17585 variables instead of default constructing them.
17586 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17587 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17588 is_taskloop_ctx check from the assert to the guarding condition.
17589
17590 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17591
17592 * config/riscv/multilib-generator: (canonical_order): New.
17593 (arch_canonicalize): Dito.
17594 Apply arch_canonicalize for alts.
17595
17596 2019-08-05 Martin Sebor <msebor@redhat.com>
17597
17598 * doc/extend.texi (Common Variable Attributes): Document alias
17599 attribute.
17600
17601 2019-08-05 Marek Polacek <polacek@redhat.com>
17602
17603 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17604 * doc/invoke.texi: Document -Wcomma-subscript.
17605
17606 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17607
17608 * tree-core.h (tree_function_decl): Make function_code an
17609 independent field. Group the remaining bitfields into bytes
17610 and move decl_type so that it contines to be at a byte boundary.
17611 Leave 12 bits for future expansion.
17612
17613 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17614
17615 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17616 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17617 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17618 IFN_MASK_STORE.
17619
17620 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17621
17622 * gimple.h (gimple_move_vops): Declare.
17623 * gimple.c (gimple_move_vops): New function
17624 * gimple-fold.c (replace_call_with_call_and_fold)
17625 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17626 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17627 (gimple_fold_call): Use it.
17628 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17629 * tree-call-cdce.c (use_internal_fn): Likewise.
17630 * tree-if-conv.c (predicate_load_or_store): Likewise.
17631 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17632 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17633 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17634 (update_call_from_tree): Likewise.
17635 * tree-vect-stmts.c (vectorizable_load): Likewise.
17636 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17637
17638 2019-08-05 Martin Liska <mliska@suse.cz>
17639
17640 PR c++/91334
17641 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17642 with not arguments.
17643 (eliminate_unnecessary_stmts): Likewise.
17644
17645 2019-08-05 Richard Biener <rguenther@suse.de>
17646
17647 PR middle-end/91169
17648 * fold-const.c (get_array_ctor_element_at_index): Create
17649 offset_ints according to the sign of the index type and treat
17650 that as signed if it is obviously so.
17651
17652 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17653
17654 PR target/91341
17655 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17656 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17657 _mm256_storeu2_m128i): New function.
17658
17659 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17660
17661 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17662 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17663
17664 2019-08-05 Alan Modra <amodra@gmail.com>
17665
17666 PR target/91349
17667 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17668 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17669
17670 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17671
17672 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17673 bug that was fixed in Tcl 8.6.1.
17674
17675 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17676
17677 * config/rs6000/future.md: New file.
17678 * config/rs6000/rs6000.md: Include future.md.
17679 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17680
17681 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17682
17683 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17684 check to use targetm.slow_unaligned_access instead.
17685
17686 * function.c (assign_param_data_one): Remove unused data members.
17687
17688 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17689
17690 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17691 build_distinct_type_copy.
17692 (simd_clone_adjust_argument_types): Ditto.
17693 (simd_clone_adjust): Call build_distinct_type_copy here.
17694 (expand_simd_clones): Ditto.
17695
17696 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17697
17698 PR target/91201
17699 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17700
17701 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17702
17703 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17704 from 'const void *'.
17705 (sort_locs_in_loop_postorder_cmp): Likewise.
17706
17707 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17708
17709 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17710 (hot-bb-count-ws-permille): Likewise.
17711 (hot-bb-frequency-fraction): Likewise.
17712 (unlikely-bb-count-fraction): Likewise.
17713 * params.def (hot-bb-count-fraction): Rework description.
17714 (hot-bb-count-ws-permille): Likewise.
17715 (hot-bb-frequency-fraction): Likewise.
17716 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17717 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17718
17719 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17720
17721 PR target/91323
17722 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17723 Return false.
17724
17725 2019-08-02 Richard Biener <rguenther@suse.de>
17726
17727 * vec.h (vec::sort): Add gcc_qsort_r support.
17728 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17729 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17730 to gcc_qsort_r style callback.
17731 (sort_locs_in_loop_postorder_cmp): Likewise.
17732 (analyze_memory_references): Use gcc_sort_r interfaces.
17733 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17734
17735 2019-08-02 Martin Liska <mliska@suse.cz>
17736
17737 PR lto/91313
17738 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17739 to detect working job server.
17740 (driver::detect_jobserver): Test whether jobserver
17741 is active from GCC driver. That will prevent situation where
17742 GCC is invoked from a LD plugin and the linker already uses
17743 file descriptors suggested by make. That leads to a wrong
17744 detection.
17745 * gcc.h (driver): Add detect_jobserver.
17746 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17747 not scanning for --jobserver-auth prefix.
17748
17749 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17750
17751 PR tree-optimization/91201
17752 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17753 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17754 extraction.
17755
17756 2019-08-01 Martin Sebor <msebor@redhat.com>
17757
17758 PR c++/90947
17759 * tree.c (type_initializer_zero_p): Define.
17760 * tree.h (type_initializer_zero_p): New function.
17761
17762 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17763
17764 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17765
17766 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17767
17768 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17769 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17770 * predict.c (maybe_hot_count_p): Likewise.
17771 (maybe_hot_bb_p): Tweak comment.
17772 (maybe_hot_edge_p): Likewise.
17773 (probably_never_executed): Likewise. Minor tweak.
17774 (probably_never_executed_bb_p): Likewise.
17775 (unlikely_executed_edge_p): Likewise.
17776 (probably_never_executed_edge_p): Likewise.
17777 (optimize_function_for_size_p): Likewise.
17778 (optimize_function_for_speed_p): Likewise.
17779 (function_optimization_type): Likewise.
17780 (optimize_bb_for_size_p): Likewise.
17781 (optimize_bb_for_speed_p): Likewise.
17782 (bb_optimization_type): Likewise.
17783 (optimize_edge_for_size_p): Likewise.
17784 (optimize_edge_for_speed_p): Likewise.
17785 (optimize_insn_for_size_p): Likewise.
17786 (optimize_insn_for_speed_p): Likewise.
17787 (optimize_loop_for_size_p): Likewise.
17788 (optimize_loop_for_speed_p): Likewise.
17789 (optimize_loop_nest_for_speed_p): Likewise.
17790 (optimize_loop_nest_for_size_p): Likewise.
17791 (predictable_edge_p): Likewise.
17792 (handle_missing_profiles): Minor tweak.
17793
17794 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17795
17796 * config/rs6000/predicates.md (pcrel_external_address): Update
17797 comment.
17798
17799 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17800
17801 PR target/85693
17802 * config/i386/mmx.md (usadv8qi): New expander.
17803
17804 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17805
17806 PR c++/90590
17807 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17808 with reserved names that are in a system header.
17809
17810 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17811
17812 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17813 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17814 (*vec_extractv2si_0_zext): Ditto.
17815 (*vec_extractv2si_1): Add (rm,x) alternative.
17816 (*vec_extractv2si_1_zext): New insn pattern.
17817 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17818 insn constraint.
17819
17820 2019-08-01 Richard Biener <rguenther@suse.de>
17821
17822 * domwalk.c (bb_postorder): Remove static variable.
17823 (cmp_bb_postorder): Adjust.
17824 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17825 (dom_walker::walk): Adjust.
17826
17827 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17828
17829 * sort.cc (sort_r_ctx): New struct.
17830 (reorder23): Make templated on context type.
17831 (reorder45): Ditto.
17832 (cmp1): Ditto. Adjust signature.
17833 (netsort): Ditto.
17834 (mergesort): Ditto.
17835 [CHECKING_P] (cmp2to3): New static function. Use it...
17836 (gcc_qsort) [CHECKING_P]: ...here.
17837 (gcc_sort_r): New function.
17838 * system.h (sort_r_cmp_fn): New function typedef.
17839 (qsort_chk): Adjust signature.
17840 (gcc_sort_r): Declare.
17841 * vec.c (qsort_chk_error): Adjust.
17842 (qsort_chk): Adjust.
17843
17844 2019-08-01 Richard Biener <rguenther@suse.de>
17845
17846 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17847 (compute_antic): Localize it here.
17848
17849 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17850
17851 * common/config/riscv/riscv-common.c: Check -march string ends
17852 with null.
17853
17854 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17855
17856 * ipa-devirt.c (type_warning_cmp): Make static.
17857 (decl_warning_cmp): Ditto.
17858
17859 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17860
17861 PR target/91050
17862 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17863 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17864 use of deleted rs6000_dejagnu_cpu_index variable.
17865 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17866 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17867 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17868 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17869 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17870 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17871
17872 2019-07-31 Richard Biener <rguenther@suse.de>
17873
17874 PR tree-optimization/91280
17875 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17876 Decompose MEM_REF manually for offset handling.
17877
17878 2019-07-31 Richard Biener <rguenther@suse.de>
17879
17880 PR tree-optimization/91293
17881 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17882 of reduction stmts.
17883
17884 2019-07-31 Matt Thomas <matt@3am-software.com>
17885 Nick Hudson <nick@nthcliff.demon.co.uk>
17886 Matthew Green <mrg@eterna.com.au>
17887 Maya Rashish <coypu@sdf.org>
17888
17889 * config.gcc (hppa*-*-netbsd*): New target.
17890 * config/pa/pa-netbsd.h: New file.
17891 * config/pa/pa32-netbsd.h: New file.
17892
17893 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17894
17895 PR tree-optimization/91201
17896 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17897
17898 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17899
17900 * config/gcn/gcn-valu.md
17901 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17902 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17903 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17904 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17905 struct ilist. Add nops for delayeduse insns.
17906 * config/gcn/gcn.md (delayeduse): New attribute.
17907 (*movbi): Remove s_waitcnt from stores.
17908 (*mov<mode>_insn): Likewise.
17909 (*movti_insn): Likewise. Add delayeduse attribute.
17910 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17911 (atomic_store<mode>): Remove or adjust s_waitcnt.
17912
17913 2019-07-31 Richard Biener <rguenther@suse.de>
17914
17915 * vr-values.h (vr_values::swap_vr_value): New.
17916 (vr_values::free_value_range): likewise.
17917 * vr-values.c (vr_values::swap_vr_value): Implement.
17918 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17919 Do not return a range or take a var.
17920 (evrp_range_analyzer::stack): Change back to recording a non-const
17921 value_range *.
17922 * gimple-ssa-evrp-analyze.c
17923 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17924 value-range.
17925 (evrp_range_analyzer::pop_to_marker): Adjust.
17926 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17927 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17928 no longer needed value-range.
17929
17930 2019-07-31 Martin Liska <mliska@suse.cz>
17931
17932 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17933 have size and (or) alignment as 2nd and later arguments.
17934 Mark all of them as necessary.
17935
17936 2019-07-31 Richard Biener <rguenther@suse.de>
17937
17938 PR tree-optimization/91178
17939 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17940 Use tail-recursion.
17941
17942 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17943
17944 PR tree-optimization/91201
17945 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17946 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17947 TARGET_AVX512F.
17948 (reduc_plus_scal_<mode>): Improve formatting by introducing
17949 a temporary.
17950
17951 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17952
17953 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17954 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17955 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17956 (aarch64_init_tme_builtins): New.
17957 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17958 (aarch64_expand_builtin_tme): New.
17959 (aarch64_expand_builtin): Handle TME builtins.
17960 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17961 __ARM_FEATURE_TME when enabled.
17962 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17963 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17964 (TARGET_TME): New.
17965 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17966 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17967 UNSPECV_TCANCEL.
17968 (tstart, ttest, tcommit, tcancel): New instructions.
17969 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17970 (__tcancel, __ttest): New.
17971 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17972 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17973 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17974 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17975 * config/arm/types.md: Add new tme type attr.
17976 * doc/invoke.texi: Document "tme".
17977
17978 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17979
17980 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17981 warn_unused_result attribute.
17982 (cmse_check_address_range): Add warn_unused_result attribute.
17983
17984 2019-07-31 Richard Biener <rguenther@suse.de>
17985
17986 PR tree-optimization/91257
17987 * tree-vrp.c (union_ranges): Unify equality and less tests
17988 by using compare_values. Re-order cheap tests first.
17989
17990 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17991
17992 PR middle-end/91301
17993 * gimplify.c (gimplify_omp_for): If for class iterator on
17994 distribute parallel for there is no data sharing clause
17995 on inner_for_stmt, look for private clause on combined
17996 parallel too and if found, move it to inner_for_stmt.
17997
17998 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17999
18000 * lra-int.h (lra_operand_data): Remove early_clobber field.
18001 (lra_insn_reg): Likewise.
18002 * lra.c (debug_operand_data): Update accordingly.
18003 (setup_operand_alternative): Likewise.
18004 (new_insn_reg): Likewise. Remove early_clobber parameter.
18005 (collect_non_operand_hard_regs): Update call accordingly.
18006 Don't assign to lra_insn_reg::early_clobber.
18007 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18008 and update calls to new_insn_reg.
18009 (lra_update_insn_regno_info): Update calls accordingly.
18010 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18011 alternative number as a parameter and test whether the operand
18012 is earlyclobbered in that particular alternative.
18013 (process_alt_operands): Update call accordingly. Use per-alternative
18014 checks for earyclobber here too.
18015 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18016 against zero for IRA_UNKNOWN_ALT.
18017
18018 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18019
18020 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18021
18022 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18023
18024 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18025 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18026
18027 2019-07-30 Martin Liska <mliska@suse.cz>
18028
18029 PR ipa/89330
18030 * cgraph.c (cgraph_edge::make_direct): Use
18031 edge->indirect_unknown_callee as edge->resolve_speculation can
18032 deallocate edge which is this pointer.
18033
18034 2019-07-30 Richard Biener <rguenther@suse.de>
18035
18036 PR tree-optimization/91257
18037 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18038
18039 2019-07-30 Martin Liska <mliska@suse.cz>
18040
18041 * doc/invoke.texi: Document new behavior.
18042 * lto-wrapper.c (cpuset_popcount): New function
18043 is a copy of libgomp/config/linux/proc.c.
18044 (init_num_threads): Likewise.
18045 (run_gcc): Automatically detect core count for -flto.
18046 (jobserver_active_p): New function.
18047
18048 2019-07-30 Richard Biener <rguenther@suse.de>
18049
18050 PR tree-optimization/91257
18051 * bitmap.h (bitmap_ior_into_and_free): Declare.
18052 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18053 whether to add the unliked element to the freelist.
18054 (bitmap_list_insert_element_after): Add defaulted param for
18055 an already allocated element.
18056 (bitmap_ior_into_and_free): New function.
18057 * tree-ssa-structalias.c (condense_visit): Reduce the
18058 ponts-to and edge bitmaps of the SCC members in a
18059 logarithmic fashion rather than all to one.
18060
18061 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18062
18063 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18064 parameter. When nonnull, make sure that the addition or subtraction
18065 has the same condition.
18066 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18067 for CFN_COND_MUL too.
18068
18069 2019-07-30 Richard Biener <rguenther@suse.de>
18070
18071 PR tree-optimization/91291
18072 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18073 constant values.
18074
18075 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18076
18077 PR middle-end/91216
18078 * omp-low.c (global_nonaddressable_vars): New variable.
18079 (use_pointer_for_field): For global decls, if they are non-addressable,
18080 remember it in the global_nonaddressable_vars bitmap, if they are
18081 addressable and in the global_nonaddressable_vars bitmap, ignore their
18082 TREE_ADDRESSABLE bit.
18083 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18084 vars in global_nonaddressable_vars bitmap.
18085 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18086
18087 PR target/91150
18088 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18089 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18090 comparison to unsigned HOST_WIDE_INT before shifting it left.
18091
18092 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18093
18094 * config/i386/i386.md (movstrict<mode>): Use register_operand
18095 predicate for operand 0. Add expander condition. Assert that
18096 operand 0 is a SUBREG RTX.
18097 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18098 Update operand constraints and insn condition.
18099 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18100 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18101 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18102 Update operand 0 constraints.
18103 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18104
18105 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18106
18107 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18108 when -m{code,data}-region are used without -mlarge.
18109 * config/msp430/msp430.c (msp430_option_override): Error when a
18110 non-default code or data region is used without -mlarge.
18111 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18112 attributes when they are used without -mlarge.
18113
18114 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18115
18116 PR target/70320
18117 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18118
18119 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18120
18121 PR middle-end/91242
18122 * wide-int.h (generic_wide_int::sext_elt): New function.
18123 * inchash.h (hash::add_wide_int): Use it instead of elt.
18124
18125 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18126
18127 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18128 CODE_FOR_arm_##.
18129 * config/arm/arm.md (<crc_variant>): Rename to...
18130 (arm_<crc_variant>): ... This.
18131 (<cdp>): Rename to...
18132 (arm_<cdp>): ... This.
18133 (<ldc>): Rename to...
18134 (arm_<ldc>): ... This.
18135 (<stc>): Rename to...
18136 (arm_<stc>): ... This.
18137 (<mcr>): Rename to...
18138 (arm_<mcr>): ... This.
18139 (<mrc>): Rename to...
18140 (arm_<mrc>): ... This.
18141 (<mcrr>): Rename to...
18142 (arm_<mcrr>): ... This.
18143 (<mrrc>): Rename to...
18144 (arm_<mrrc>): ... This.
18145
18146 2019-07-29 Richard Biener <rguenther@suse.de>
18147
18148 PR tree-optimization/91257
18149 * tree-ssa-sccvn.h (struct vn_avail): New.
18150 (struct vn_ssa_aux): Add avail member.
18151 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18152 member, add m_avail_freelist one.
18153 (rpo_elim::~rpo_elim): Remove.
18154 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18155 data structure.
18156 (rpo_elim::eliminate_push_avail): Likewise.
18157 (do_unwind): Likewise.
18158 (do_rpo_vn): Likewise.
18159
18160 2019-07-29 Richard Biener <rguenther@suse.de>
18161
18162 PR tree-optimization/91257
18163 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18164 most cases, instead call compare_values which handles the
18165 symbolic ranges we handle specially.
18166 (compare_values_warnv): Do not call operand_less_p but open-code
18167 the effective fold calls. Avoid converting so much.
18168
18169 2019-07-29 Martin Liska <mliska@suse.cz>
18170
18171 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18172 remove LHS of operator new call. It's handled latter.
18173
18174 2019-07-29 Richard Biener <rguenther@suse.de>
18175
18176 PR tree-optimization/91267
18177 * vr-values.c (vr_values::update_value_range): Add early return
18178 for effectively VARYING lattice entry.
18179
18180 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18181
18182 PR debug/86638
18183 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18184 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18185 necessary if keep_all_vdefs_p is true.
18186 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18187 that keep_all_vdefs_p is false.
18188 (mark_all_reaching_defs_necessary): Likewise.
18189 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18190
18191 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18192
18193 * common.opt (Og): Change the initial value of flag_dse to 0.
18194 * opts.c (default_options_table): Move OPT_ftree_dse from
18195 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18196 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18197 entry before the OPT_ftree_sra entry.
18198 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18199 of flags disabled by Og.
18200
18201 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18202
18203 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18204 variables for -Og.
18205
18206 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18207
18208 * doc/sourcebuild.texi (check-function-bodies): Document.
18209
18210 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18211
18212 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18213 VEC_DUPLICATE of a fixed-length vector even if the result
18214 is variable-length. Likewise fold a duplicate of a
18215 variable-length vector if the variable-length vector is
18216 itself a duplicate of a fixed-length sequence.
18217 (test_vector_ops_duplicate): Test more cases.
18218
18219 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18220
18221 * vector-builder.h (vector_builder): Add a shape template parameter.
18222 (vector_builder::new_unary_operation): New function, generalizing
18223 the old tree_vector_builder function.
18224 (vector_builder::new_binary_operation): Likewise.
18225 (vector_builder::binary_encoded_nelts): Likewise.
18226 * int-vector-builder.h (int_vector_builder): Update template
18227 parameters to vector_builder.
18228 (int_vector_builder::shape_nelts): New function.
18229 * rtx-vector-builder.h (rtx_vector_builder): Update template
18230 parameters to vector_builder.
18231 (rtx_vector_builder::shape_nelts): New function.
18232 (rtx_vector_builder::nelts_of): Likewise.
18233 (rtx_vector_builder::npatterns_of): Likewise.
18234 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18235 * tree-vector-builder.h (tree_vector_builder): Update template
18236 parameters to vector_builder.
18237 (tree_vector_builder::shape_nelts): New function.
18238 (tree_vector_builder::nelts_of): Likewise.
18239 (tree_vector_builder::npatterns_of): Likewise.
18240 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18241 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18242 (tree_vector_builder::new_binary_operation): Delete.
18243 (tree_vector_builder::binary_encoded_nelts): Likewise.
18244 * simplify-rtx.c: Include rtx-vector-builder.h.
18245 (distributes_over_addition_p): New function.
18246 (simplify_const_unary_operation)
18247 (simplify_const_binary_operation): Generalize handling of vector
18248 constants to include variable-length vectors.
18249 (test_vector_ops_series): Add more tests.
18250
18251 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18252
18253 PR lto/91222
18254 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18255 than INDENTIFIER_POINTER.
18256
18257 2019-07-28 Martin Liska <mliska@suse.cz>
18258
18259 PR ipa/89330
18260 * cgraph.c (symbol_table::create_edge): Always allocate
18261 a cgraph_edge.
18262 (symbol_table::free_edge): Store summary_id to
18263 edge_released_summary_ids if != -1;
18264 * cgraph.h (NEXT_FREE_NODE): Remove.
18265 (SET_NEXT_FREE_NODE): Likewise.
18266 (NEXT_FREE_EDGE): Likewise.
18267 (symbol_table::release_symbol): Store summary_id to
18268 cgraph_released_summary_ids if != -1;
18269 (symbol_table::allocate_cgraph_symbol): Always allocate
18270 a cgraph_node.
18271
18272 2019-07-28 Alan Modra <amodra@gmail.com>
18273
18274 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18275 gen_sibcall.
18276
18277 2019-07-28 Alan Modra <amodra@gmail.com>
18278
18279 PR target/91135
18280 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18281 define.
18282 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18283 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18284 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18285
18286 2019-07-28 Alan Modra <amodra@gmail.com>
18287
18288 PR target/91050
18289 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18290 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18291 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18292 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18293 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18294 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18295 in asm_default spec.
18296 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18297 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18298
18299 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18300
18301 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18302
18303 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18304
18305 PR target/89517
18306 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18307 * config/aarch64/aarch64-option-extensions.def: Add new comments
18308 and restore easier to read options.
18309
18310 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18311
18312 * convert.c (convert_to_real_1): Move part of conversion code...
18313 * match.pd: ...To here.
18314
18315 2019-07-26 Martin Jambor <mjambor@suse.cz>
18316
18317 PR ipa/89330
18318 * ipa-inline-transform.c (check_speculations_1): New function.
18319 (push_all_edges_in_set_to_vec): Likewise.
18320 (check_speculations): Use check_speculations_1, new parameter
18321 new_edges.
18322 (inline_call): Pass new_edges to check_speculations.
18323 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18324 NULL.
18325 (speculation_useful_p): Early return true if edge is inlined, remove
18326 later checks for inline_failed.
18327
18328 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18329
18330 PR rtl-optimization/91223
18331 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18332 matching with INOUT operand.
18333
18334 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18335
18336 * stmt.c (expand_case): Try to narrow the index type if it's larger
18337 than a word. Tidy up.
18338
18339 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18340
18341 * cif-code.def (NEVER_CALL): New code.
18342 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18343 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18344
18345 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18346
18347 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18348 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18349
18350 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18351
18352 * ipa-devirt.c (add_type_duplicate): Fix return value.
18353
18354 2019-07-25 Richard Biener <rguenther@suse.de>
18355
18356 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18357 type parameter and use it instead of guessing expression
18358 type from the first operand.
18359 (extract_range_from_binary_expr): Pass expr_type down.
18360
18361 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18362
18363 * config/arm/arm.md (SATrev): Change to code attribute.
18364 (*satsi_<SAT:code>): Adjust for the above.
18365 (*satsi_<SAT:code>_shift): Likewise.
18366
18367 2019-07-25 Richard Biener <rguenther@suse.de>
18368
18369 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18370 Make value_range * temporary const.
18371 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18372 Likewise.
18373 (evrp_range_analyzer::record_ranges_from_): Likewise.
18374 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18375 deal with having recorded a const one.
18376 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18377 Return a const value_range *.
18378 (evrp_range_analyzer::pop_value_range): Likewise.
18379 (evrp_range_analyzer::stack): Record const value_range *s.
18380 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18381 Adjust.
18382 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18383 (format_integer): Likewise.
18384 (sprintf_dom_walker::handle_gimple_call): Likewise.
18385 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18386 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18387 (vrp_prop::get_value_range): Adjust.
18388 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18389 modifying the lattice in-place.
18390 (vrp_prop::visit_stmt): Likewise.
18391 * vr-values.c (vr_values::get_lattice_entry): New private method.
18392 (vr_values::get_value_range): Wrap it and return a const
18393 value_range *.
18394 (vr_values::set_def_to_varying): New.
18395 (vr_values::set_defs_to_varying): Use it.
18396 (vr_values::update_value_range): Likewise.
18397 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18398 (values::op_with_constant_singleton_va): Likewise.
18399 (vr_values::extract_range_for_var_from_co): Likewise.
18400 (vr_values::extract_range_from_ssa_name): Likewise.
18401 (vr_values::extract_range_from_cond_expr): Likewise.
18402 (vr_values::extract_range_basic): Likewise.
18403 (compare_ranges): Take const value_range *, adjust.
18404 (compare_range_with_value): Likewise.
18405 (vrp_valueize): Adjust.
18406 (vrp_valueize_1): Likewise.
18407 (vr_values::get_vr_for_comparison): Return a const value_range *.
18408 (vr_values::compare_name_with_value): Adjust.
18409 (vr_values::compare_names): Likewise.
18410 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18411 Likewise.
18412 (vr_values::vrp_evaluate_conditional): Likewise.
18413 (find_case_label_ranges): Take a const value_range *.
18414 (vr_values::vrp_visit_switch_stmt): Adjust.
18415 (vr_values::extract_range_from_phi_node): Likewise.
18416 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18417 (vr_values::simplify_abs_using_ranges): Likewise.
18418 (test_for_singularity): Take a const value_range *.
18419 (range_fits_type_p): Likewise.
18420 (vr_values::simplify_cond_using_ranges_1): Adjust.
18421 (vr_values::simplify_cond_using_ranges_2): Likewise.
18422 (vr_values::simplify_switch_using_ranges): Likewise.
18423 (vr_values::simplify_float_conversion_usi): Likewise.
18424 (vr_values::two_valued_val_range_p): Likewise.
18425 * vr-values.h (vr_values::get_value_range): Return a const
18426 value_range *.
18427 (vr_values::set_def_to_varying): New.
18428 (vr_values::get_lattice_entry): New private method.
18429 (vr_values::get_vr_for_comparison): Return a const value_range *.
18430
18431 2019-07-25 Martin Liska <mliska@suse.cz>
18432 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18433
18434 PR c++/23383
18435 * common.opt: Add -fallocation-dce
18436 * gimple.c (gimple_call_operator_delete_p): New.
18437 * gimple.h (gimple_call_operator_delete_p): Likewise.
18438 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18439 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18440 DECL_IS_OPERATOR_DELETE_P.
18441 (mark_all_reaching_defs_necessary_1): Likewise.
18442 (propagate_necessity): Likewise.
18443 (eliminate_unnecessary_stmts): Handle
18444 gimple_call_operator_delete_p.
18445 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18446 Add packing of OPERATOR_DELETE.
18447 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18448 Similarly here.
18449 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18450 (DECL_SET_IS_OPERATOR_DELETE): New.
18451 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18452
18453 2019-07-25 Martin Liska <mliska@suse.cz>
18454
18455 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18456 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18457 * coverage.c (coverage_begin_function): Likewise.
18458 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18459 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18460 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18461 (sem_item::hash_referenced_symbol_properties): Likewise.
18462 * lto-streamer-out.c (hash_tree): Likewise.
18463 * predict.c (expr_expected_value_1): Likewise.
18464 * tree-inline.c (expand_call_inline): Likewise.
18465 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18466 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18467 * tree-core.h (enum function_decl_type): New enum.
18468 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18469 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18470 (set_function_decl_type): Likewise.
18471 (DECL_IS_OPERATOR_NEW_P): New.
18472 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18473 (DECL_LAMBDA_FUNCTION): Likewise.
18474 (DECL_LAMBDA_FUNCTION_P): Likewise.
18475 (DECL_IS_OPERATOR_NEW): Remove.
18476 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18477
18478 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18479
18480 * ipa-profile.c (get_most_common_single_value): Use
18481 get_nth_most_common_value.
18482 * profile.c (sort_hist_value): New function.
18483 (compute_value_histograms): Call sort_hist_value to sort the
18484 values after loading from disk.
18485 * value-prof.c (get_most_common_single_value): Rename to ...
18486 get_nth_most_common_value. Add input params n, return
18487 the n_th value and count.
18488 (gimple_divmod_fixed_value_transform): Use
18489 get_nth_most_common_value.
18490 (gimple_ic_transform): Likewise.
18491 (gimple_stringops_transform): Likewise.
18492 * value-prof.h (get_most_common_single_value): Add input params
18493 n, default to 0.
18494
18495 2019-07-25 Richard Biener <rguenther@suse.de>
18496
18497 PR tree-optimization/91236
18498 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18499 size of CONSTRUCTOR write. Fix buffer size we pass to
18500 native_encode_expr.
18501
18502 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18503
18504 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18505 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18506 r273773.
18507
18508 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18509
18510 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18511 explicitly disabled with --disable-initfini-array.
18512
18513 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18514
18515 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18516 if-exists.
18517
18518 2019-07-24 Martin Sebor <msebor@redhat.com>
18519
18520 PR tree-optimization/91183
18521 PR tree-optimization/86688
18522 * builtins.c (compute_objsize): Handle MEM_REF.
18523 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18524 (get_min_string_length): Remove.
18525 (count_nonzero_bytes): New function.
18526 (handle_char_store): Rename...
18527 (handle_store): to this. Handle multibyte stores via integer types.
18528 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18529 function name.
18530
18531 2019-07-24 Martin Sebor <msebor@redhat.com>
18532
18533 PR driver/80545
18534 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18535 (diagnostic_report_diagnostic): Same.
18536 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18537 (diagnostic_context::lang_mask): New data member.
18538 * ipa-pure-const.c (suggest_attribute): Use
18539 lang_hooks.option_lang_mask ().
18540 * opts-common.c (option_enabled): Handle new argument.
18541 (get_option_state): Pass an additional argument.
18542 * opts.c (print_filtered_help): Print supported languages for
18543 unsupported options. Adjust printing of current state.
18544 * opts.h (option_enabled): Add argument.
18545 * toplev.c (print_switch_values): Use lang_mask.
18546 (general_init): Set global_dc->lang_mask.
18547
18548 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18549
18550 PR bootstrap/87030
18551 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18552
18553 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18554
18555 * cgraphunit.c (symbol_table::compile): Start and stop
18556 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18557 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18558
18559 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18560
18561 * gimplify.c (flag_instrument_functions_exclude_p): Include
18562 namespace/class information in the printable name.
18563 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18564 to tokens entered into the vector.
18565
18566 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18567
18568 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18569 (get_static_chain): Call it instead of build_simple_mem_ref.
18570 (get_frame_field): Likewise.
18571 (get_nonlocal_debug_decl): Likewise.
18572 (convert_nonlocal_reference_op): Likewise.
18573
18574 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18575
18576 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18577 declaration.
18578 (arc_compute_frame_size): Millicode is disabled when compiling
18579 ISR.
18580 (arc_return_address_register): Likewise.
18581 (arc_compute_function_type): Likewise.
18582 (arc_compute_frame_size): Likewise.
18583 (secondary_reload_info): Likewise.
18584 (arc_get_unalign): Likewise.
18585 (arc_can_use_return_insn): Declare.
18586 * config/arc/arc.c (AUX_LP_START): Define
18587 (AUX_LP_END): Likewise.
18588 (arc_frame_info): Update gmask member to 64-bit datum.
18589 (GMASK_LEN): Update.
18590 (arc_compute_function_type): Make it static, move it forward.
18591 (arc_must_save_register): Update, consider the extra regs.
18592 (arc_compute_millicode_save_restore_regs): Update to use the 64
18593 bit gmask.
18594 (arc_compute_frame_size): Likewise.
18595 (arc_enter_leave_p): Likewise.
18596 (arc_save_callee_saves): Likewise.
18597 (arc_restore_callee_saves): Likewise.
18598 (arc_save_callee_enter): Likewise.
18599 (arc_restore_callee_leave): Likewise.
18600 (arc_save_callee_milli): Likewise.
18601 (arc_restore_callee_milli): Likewise.
18602 (arc_expand_prologue): Add new interrupt handling.
18603 (arc_return_address_register): Make it static, move it forward.
18604 (arc_expand_epilogue): Add new interrupt handling.
18605 (arc_get_unalign): Delete.
18606 (arc_epilogue_uses): Make sure we do not remove the extra
18607 saved/restored registers when interrupt.
18608 (arc_can_use_return_insn): New function.
18609 (push_reg): Likewise.
18610 (pop_reg): Likewise.
18611 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18612 procedures.
18613 (arc_restore_callee_saves): Likewise, but restoring.
18614 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18615 (R33_REG): Likewise.
18616 (R34_REG): Likewise.
18617 (R35_REG): Likewise.
18618 (R36_REG): Likewise.
18619 (R37_REG): Likewise.
18620 (R38_REG): Likewise.
18621 (R39_REG): Likewise.
18622 (R45_REG): Likewise.
18623 (R46_REG): Likewise.
18624 (R47_REG): Likewise.
18625 (R48_REG): Likewise.
18626 (R49_REG): Likewise.
18627 (R50_REG): Likewise.
18628 (R51_REG): Likewise.
18629 (R52_REG): Likewise.
18630 (R53_REG): Likewise.
18631 (R54_REG): Likewise.
18632 (R55_REG): Likewise.
18633 (R56_REG): Likewise.
18634 (R58_REG): Likewise.
18635 (type): Add rtie attribute.
18636 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18637 (movsi_insn): Accept moves to lp_count.
18638 (rtie): Update pattern.
18639 (simple_return): Simplify it, don't use this pattern as a return
18640 from an interrupt.
18641 (arc600_rtie): New pattern.
18642 (p_return_i): Clean up.
18643 (return): Likewise.
18644 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18645 family CPUs.
18646 * config/arc/predicates.md (move_src_operand): Consider lp_count
18647 as a register.
18648
18649 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18650
18651 * config/s390/predicates.md (addv_const_operand): New predicate.
18652 * config/s390/s390-modes.def (CCO): New condition code mode.
18653 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18654 (s390_branch_condition_mask): Likewise.
18655 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18656 ("mulv<mode>4"): New expanders.
18657 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18658 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18659 pattern definitions.
18660
18661 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18662
18663 PR middle-end/91166
18664 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18665 (define_predicates): Add entry for uniform_vector_p.
18666 (vec_same_elem_p): New match pattern.
18667
18668 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18669
18670 PR bootstrap/87030
18671 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18672 * config/i386/darwin32-biarch.h .. to here.
18673 * config/i386/darwin64-biarch.h: Adjust comments.
18674 * config/rs6000/darwin32-biarch.h: Likewise.
18675 * config/rs6000/darwin64-biarch.h: Likewise.
18676 * config.gcc: Missed commit from r273746
18677 (*-*-darwin*): Don't include CPU t-darwin here.
18678 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18679 an error message if i686-darwin configuration is attempted for
18680 Darwin >= 18.
18681
18682 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18683
18684 PR bootstrap/87030
18685 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18686 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18687 an error message if i686-darwin configuration is attempted for
18688 Darwin >= 18.
18689 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18690 (powerpc-*-darwin*): Use biarch files where needed.
18691 (powerpc64-*-darwin*): Likewise.
18692 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18693 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18694 arch case.
18695 * config/i386/darwin32-biarch.h: New.
18696 * config/i386/darwin64.h: Rename.
18697 * config/i386/darwin64-biarch.h: To this.
18698 * config/i386/t-darwin: Rename.
18699 * config/i386/t-darwin32-biarch: To this.
18700 * config/i386/t-darwin64: Rename.
18701 * config/i386/t-darwin64-biarch: To this.
18702 * config/rs6000/darwin32-biarch.h: New.
18703 * config/rs6000/darwin64.h: Rename.
18704 * config/rs6000/darwin64-biarch.h: To this.
18705 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18706 arch case.
18707 * config/rs6000/t-darwin8: Rename.
18708 * config/rs6000/t-darwin32-biarch: To this.
18709 * config/rs6000/t-darwin64 Rename.
18710 * config/rs6000/t-darwin64-biarch: To this.
18711
18712 2019-07-23 Martin Sebor <msebor@redhat.com>
18713
18714 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18715
18716 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18717
18718 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18719 (rh): New alias for it.
18720
18721 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18722
18723 * gdbhooks.py: Pass replace=True to
18724 gdb.printing.register_pretty_printer.
18725
18726 2019-07-23 Richard Biener <rguenther@suse.de>
18727
18728 PR debug/91231
18729 * lto-streamer-in.c (input_function): Drop inline-entry markers
18730 that ended up with an unknown location block.
18731
18732 2019-07-23 Richard Biener <rguenther@suse.de>
18733
18734 PR tree-optimization/83518
18735 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18736 init from a constant even when partial defs are already recorded.
18737
18738 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18739
18740 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18741 * config/i386/znver1.md: Enable patterns for znver2 and add store
18742 variants which use extra AGU unit.
18743
18744 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18745
18746 * config/i386/i386-options.c (ix86_option_override_internal): Default
18747 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18748 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18749 for ZNVER2.
18750
18751 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18752
18753 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18754 (znver2_costs): Update 256 bit SSE costs and multiplication.
18755
18756 2019-07-23 Jan Beulich <jbeulich@suse.com>
18757
18758 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18759 Require only AVX512F.
18760 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18761 alternative expanding to vpternlog.
18762
18763 2019-07-23 Martin Liska <mliska@suse.cz>
18764
18765 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18766 to -flto in dwarf producer string.
18767
18768 2019-07-23 Richard Biener <rguenther@suse.de>
18769
18770 * tree-cfg.c (label_for_bb): Remove global var.
18771 (main_block_label): Take label_for_bb as argument.
18772 (cleanup_dead_labels_eh): Likewise, adjust.
18773 (cleanup_dead_labels): Adjust.
18774
18775 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18776
18777 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18778 Configurations): Add documentation for __builtin_mtfsf.
18779
18780 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18781
18782 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18783 * config/riscv/riscv.c (riscv_constant_alignment): Use
18784 riscv_align_data_type.
18785 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18786 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18787 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18788 * config/riscv/riscv.opt (malign-data): New.
18789 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18790
18791 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18792
18793 * cgraph.c (dump_graphviz): New function.
18794 * cgraph.h (dump_graphviz): New function.
18795 * symtab.c (dump_graphviz): New function.
18796
18797 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18798
18799 * config/aarch64/aarch64-simd.md
18800 (*aarch64_simd_sra<mode>): New.
18801 * config/aarch64/iterators.md
18802 (SHIFTRT): New iterator.
18803 (sra_op): New attribute.
18804
18805 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18806
18807 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18808 callee-saved regs R4->R10 in an interrupt function that calls another
18809 function.
18810
18811 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18812
18813 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18814 (_mm_blendv_epi8): New.
18815
18816 2019-07-22 Richard Biener <rguenther@suse.de>
18817
18818 PR tree-optimization/91221
18819 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18820 restrict partial-def handling of empty constructors and
18821 memset to refs with known offset.
18822
18823 2019-07-22 Jan Beulich <jbeulich@suse.com>
18824
18825 * config/i386/sse.md (ternlogsuffix): New.
18826 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18827 AVX512F is in use.
18828 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18829
18830 2019-07-22 Martin Liska <mliska@suse.cz>
18831
18832 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18833 comment.
18834 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18835
18836 2019-07-22 Martin Liska <mliska@suse.cz>
18837
18838 * lto-section-in.c (lto_get_section_data):
18839 Use new function get_compression.
18840 * lto-streamer-out.c (produce_lto_section): Use
18841 set_compression to encode compression algorithm.
18842 * lto-streamer.h (struct lto_section): Do not
18843 use bitfields in the format.
18844
18845 2019-07-22 Martin Liska <mliska@suse.cz>
18846
18847 PR driver/91172
18848 * opts-common.c (decode_cmdline_option): Decode
18849 argument of -Werror and check it for a wrong language.
18850 * opts-global.c (complain_wrong_lang): Remove such case.
18851
18852 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18853
18854 * config/arc/arc.c (prepare_move_operands): Always use an
18855 intermediate register when storing a TLS symbols.
18856
18857 2019-07-22 Stafford Horne <shorne@gmail.com>
18858
18859 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18860 force_reg.
18861
18862 2019-07-22 Stafford Horne <shorne@gmail.com>
18863
18864 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18865 and munordered-float validations.
18866 * config/or1k/constraints.md (d): New register constraint.
18867 * config/or1k/predicates.md (fp_comparison_operator): New.
18868 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18869 operands.
18870 (or1k_expand_compare): Normalize unordered comparisons.
18871 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18872 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18873 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18874 * config/or1k/or1k.md (type): Add fpu.
18875 (fpu): New instruction reservation.
18876 (F, f, fr, fi, FI, FOP, fop): New.
18877 (<fop><F:mode>3): New ALU instruction definition.
18878 (float<fi><F:mode>2): New conversion instruction definition.
18879 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18880 (fpcmpcc): New code iterator.
18881 (*sf_fp_insn): New instruction definition.
18882 (cstore<F:mode>4): New expand definition.
18883 (cbranch<F:mode>4): New expand definition.
18884 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18885 munordered-float): New options.
18886 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18887 munordered-float.
18888
18889 2019-07-22 Stafford Horne <shorne@gmail.com>
18890
18891 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18892 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18893 documenation to be more clear.
18894 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18895 more clear.
18896 * config/or1k/or1k.opt (mrori): New option.
18897 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18898 msfimm, mshftimm): Rewrite documentation to be more clear.
18899 * config/or1k/or1k.md (insn_support): Add ror and rori.
18900 (enabled): Add conditions for ror and rori.
18901 (rotrsi3): Replace condition for shftimm with ror and rori.
18902
18903 2019-07-22 Stafford Horne <shorne@gmail.com>
18904
18905 PR target/90363
18906 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18907 (extend<mode>si2): Update predicate.
18908 * config/or1k/predicates.md (volatile_mem_operand): New.
18909 (reg_or_mem_operand): New.
18910
18911 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18912
18913 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18914 * config/rs6000/rs6000-call.c: ... to here.
18915
18916 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18917
18918 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18919 memory.
18920
18921 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18922
18923 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18924
18925 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18926
18927 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18928
18929 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18930
18931 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18932 (any_memory_operand): New predicate.
18933 (reg_or_mem_operand): Use it.
18934
18935 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18936
18937 PR target/91204
18938 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18939
18940 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18941
18942 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18943 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18944
18945 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18946
18947 * tree.def (OMP_LOOP): New tree code.
18948 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18949 (enum omp_clause_bind_kind): New enum.
18950 (struct tree_omp_clause): Add subcode.bind_kind.
18951 * tree.h (OMP_LOOP_CHECK): Rename to ...
18952 (OMP_LOOPING_CHECK): ... this.
18953 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18954 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18955 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18956 (OMP_CLAUSE_BIND_KIND): Define.
18957 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18958 bind clause entries.
18959 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18960 * tree-pretty-print.c (dump_omp_clause): Likewise.
18961 (dump_generic_node): Handle OMP_LOOP.
18962 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18963 (in_omp_construct): New variable.
18964 (is_gimple_stmt): Handle OMP_LOOP.
18965 (gimplify_scan_omp_clauses): For lastprivate don't set
18966 check_non_private if code == OMP_LOOP. For reduction clause
18967 on OMP_LOOP combined with parallel or teams propagate as shared
18968 on the combined construct. Handle OMP_CLAUSE_BIND.
18969 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18970 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18971 for constructs from a loop construct to gimplify_scan_omp_clauses.
18972 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18973 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18974 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18975 to match the implicit ORT_TARGET construct around whole body.
18976 Temporarily clear in_omp_construct when processing body.
18977 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18978 etc. temporarily set in_omp_construct when processing body.
18979 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18980 * omp-low.c (struct omp_context): Add loop_p.
18981 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18982 in that the original var might be private.
18983 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18984 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18985 addition of loop construct.
18986 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18987
18988 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18989 lastprivate non-addressable iterator of a collapse(1) simd.
18990
18991 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18992
18993 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18994 as in rs6000.c.
18995
18996 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18997
18998 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18999 refer to default conditions. Warn for the 'y' spec which is ignored
19000 by current linkers.
19001
19002 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19003
19004 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19005 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19006 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19007 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19008 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19009 init_cumulative_args, rs6000_promote_function_mode,
19010 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19011 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19012 rs6000_function_arg_boundary, rs6000_parm_offset,
19013 rs6000_parm_start, rs6000_arg_size,
19014 rs6000_darwin64_record_arg_advance_flush,
19015 rs6000_darwin64_record_arg_advance_recurse,
19016 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19017 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19018 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19019 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19020 rs6000_finish_function_arg, rs6000_function_arg,
19021 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19022 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19023 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19024 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19025 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19026 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19027 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19028 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19029 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19030 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19031 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19032 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19033 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19034 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19035 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19036 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19037 get_element_number, altivec_expand_vec_set_builtin,
19038 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19039 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19040 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19041 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19042 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19043 rs6000_expand_builtin, rs6000_vector_type,
19044 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19045 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19046 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19047 to rs6000-call.c.
19048 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19049 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19050 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19051 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19052 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19053 init_cumulative_args, rs6000_promote_function_mode,
19054 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19055 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19056 rs6000_function_arg_boundary, rs6000_parm_offset,
19057 rs6000_parm_start, rs6000_arg_size,
19058 rs6000_darwin64_record_arg_advance_flush,
19059 rs6000_darwin64_record_arg_advance_recurse,
19060 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19061 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19062 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19063 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19064 rs6000_finish_function_arg, rs6000_function_arg,
19065 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19066 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19067 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19068 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19069 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19070 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19071 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19072 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19073 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19074 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19075 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19076 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19077 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19078 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19079 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19080 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19081 get_element_number, altivec_expand_vec_set_builtin,
19082 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19083 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19084 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19085 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19086 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19087 rs6000_expand_builtin, rs6000_vector_type,
19088 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19089 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19090 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19091 to here from rs6000.c.
19092 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19093 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19094 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19095 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19096 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19097 rs6000_return_in_memory, rs6000_return_in_msb,
19098 rs6000_pass_by_reference, setup_incoming_varargs,
19099 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19100 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19101 rs6000_function_arg_padding, rs6000_function_arg,
19102 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19103 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19104 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19105 rs6000_passes_long_double, rs6000_passes_vector,
19106 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19107 altivec_builtin_mask_for_load) Add declarations.
19108 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19109 * config/config.gcc: Add new source file rs6000-call.c to garbage
19110 collector and extra_objs.
19111
19112 2019-07-19 Jeff Law <law@redhat.com>
19113
19114 PR tree-optimization/86061
19115 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19116 strncpy. Drop some trivial dead code.
19117 (maybe_trim_memstar_call): Handle strncpy.
19118
19119 2019-07-19 Richard Biener <rguenther@suse.de>
19120
19121 PR tree-optimization/91211
19122 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19123 memset encoding size.
19124
19125 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19126
19127 PR target/91204
19128 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19129
19130 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19131
19132 PR ipa/91194
19133 * ipa-inline.c (recursive_inlining): Fix limits check.
19134
19135 2019-07-19 Richard Biener <rguenther@suse.de>
19136
19137 PR tree-optimization/91200
19138 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19139 no PHI nodes in middle-bb.
19140
19141 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19142
19143 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19144 to +sve-bitperm.
19145 * config/aarch64/aarch64-option-extensions.def: Likewise.
19146
19147 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19148
19149 PR middle-end/91190
19150 * function.c (insert_temp_slot_address): Store into the hash table
19151 a copy of address to avoid RTL sharing issues.
19152
19153 2019-07-19 Richard Biener <rguenther@suse.de>
19154
19155 PR tree-optimization/91207
19156 Revert
19157 2019-07-17 Richard Biener <rguenther@suse.de>
19158
19159 PR tree-optimization/91178
19160 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19161 loads with a gap larger than the vector size always use
19162 VMAT_STRIDED_SLP.
19163 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19164 avoid loading vectors that are only contained in the gap
19165 and thus are not needed.
19166
19167 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19168
19169 * config/i386/i386.md (*addqi_2_slp): Remove.
19170 (*<code>qi_2_slp): Ditto.
19171
19172 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19173
19174 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19175 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19176 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19177 Rename function from rs6000_prefixed_address.
19178 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19179 TARGET_HAS_TOC.
19180 (TARGET_TOC): Likewise.
19181 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19182 rs6000.h.
19183 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19184 TARGET_HAS_TOC.
19185 (TARGET_TOC): Likewise.
19186 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19187 rs6000.h.
19188 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19189 TARGET_HAS_TOC.
19190 (TARGET_TOC): Likewise.
19191 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19192 check to require -mcmodel=medium for pc-relative addressing.
19193 (create_TOC_reference): Add assertion for TARGET_TOC.
19194 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19195 TARGET_NO_TOC.
19196 (rs6000_emit_move): Likewise.
19197 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19198 to 'TOC_alias_set'.
19199 (get_TOC_alias_set): Likewise.
19200 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19201 TARGET_NO_TOC.
19202 (rs6000_can_eliminate): Likewise.
19203 (rs6000_prefixed_address_mode_p): Rename function from
19204 rs6000_prefixed_address.
19205 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19206 TARGET_HAS_TOC and not pc-relative.
19207 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19208 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19209 TARGET_HAS_TOC.
19210 (TARGET_TOC): Likewise.
19211 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19212 rs6000.h.
19213
19214 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19215
19216 PR target/91188
19217 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19218 for operand 0. Do not use (match_dup) to match operand 1 with
19219 operand 0. Add check in insn constraint that either input operand
19220 matches operand 0. Use SWI12 mode iterator to also handle
19221 HImode operands.
19222 (*and<mode>_1_slp): Ditto.
19223 (*<code>qi_1_slp): Ditto.
19224 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19225 Do not use (match_dup) to match operand 1 with operand 0. Add
19226 check in insn constraint that operand 1 matches operand 0.
19227 Use SWI12 mode iterator to also handle HImode operands.
19228 (*ashl<mode>3_1_slp): Ditto.
19229 (*<shift_insn><mode>3_1_slp): Ditto.
19230 (*<rotate_insn><mode>3_1_slp): Ditto.
19231
19232 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19233
19234 * config/arm/arm-builtins.c
19235 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19236 (arm_expand_unop_builtin): Likewise.
19237 * config/arm/crypto.md
19238 (crypto_sha1h): Convert from define_insn to define_expand.
19239 (crypto_<crypto_pattern>): Likewise.
19240 (crypto_sha1h_lb): New define_insn.
19241 (crypto_<crypto_pattern>_lb): Likewise.
19242
19243 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19244
19245 PR target/90317
19246 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19247 (vsha1cq_u32): Likewise.
19248 (vsha1pq_u32): Likewise.
19249 (vsha1mq_u32): Likewise.
19250 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19251 vec select.
19252 (crypto_sha1c): Correct vec select.
19253 (crypto_sha1m): Likewise.
19254 (crypto_sha1p): Likewise.
19255
19256 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19257
19258 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19259 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19260 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19261 (subdi_zesidi_zesidi): Likewise.
19262 (negdi2_compare, negdi2_insn): Likewise.
19263 (negdi_extensidi): Likewise.
19264 (negdi_zero_extendsidi): Likewise.
19265 (arm_cmpdi_insn): Likewise.
19266 (subsi3_carryin): Use arm_borrow_operation.
19267 (subsi3_carryin_const): Likewise.
19268 (subsi3_carryin_const0): Likewise.
19269 (subsi3_carryin_compare): Likewise.
19270 (subsi3_carryin_compare_const): Likewise.
19271 (subsi3_carryin_compare_const0): Likewise.
19272 (subsi3_carryin_shift): Likewise.
19273 (rsbsi3_carryin_shift): Likewise.
19274 (negsi2_carryin_compare): Likewise.
19275
19276 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19277
19278 PR tree-optimization/91137
19279 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19280 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19281 Init, use and fini the above new field.
19282 (determine_base_object_1): New function.
19283 (determine_base_object): Reimplement using walk_tree.
19284
19285 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19286
19287 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19288 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19289 CLEANUP_FORCE_FAST_DCE is set.
19290 * ifcvt.c (rest_of_handle_if_conversion): Pass
19291 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19292 if-conversion succeeded.
19293
19294 2019-07-18 Richard Biener <rguenther@suse.de>
19295
19296 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19297 branches to make code less indented.
19298
19299 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19300
19301 PR middle-end/81824
19302 * attribs.c (decls_mismatched_attributes): Simplify the logic
19303 that avoids duplicates and false positives.
19304
19305 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19306
19307 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19308 data into data section when generating PIC code.
19309 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19310 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19311 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19312 return 2 for SOM and 0 for other targets.
19313
19314 2019-07-17 Jeff Law <law@redhat.com>
19315
19316 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19317 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19318 avoid unexpected switch statement fallthru.
19319
19320 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19321
19322 * config/i386/i386.md (*add<dwi>3_doubleword):
19323 Remove redundant constraints.
19324 (*add<mode>_1): Ditto.
19325 (*addhi_1): Ditto.
19326 (*addqi_1): Ditto.
19327 (*addqi_1_slp): Ditto.
19328 (*add<mode>_2): Ditto.
19329 (*addv<mode>4): Ditto.
19330 (*sub<dwi>3_doubleword): Ditto.
19331 (*sub<mode>_1): Ditto.
19332 (*subqi_1_slp): Ditto.
19333 (*sub<mode>_2): Ditto.
19334 (*subv<mode>4): Ditto.
19335 (*sub<mode>_3): Ditto.
19336 (@add<mode>3_carry): Ditto.
19337 (@sub<mode>3_carry): Ditto.
19338 (*add<mode>3_cc_overflow_1): Ditto.
19339 (*add<mode>3_zext_cc_overflow_2): Ditto.
19340 (*anddi_1): Ditto.
19341 (*and<mode>_1): Ditto.
19342 (*andqi_1): Ditto.
19343 (*andqi_1_slp): Ditto.
19344 (*anddi_2): Ditto.
19345 (*andqi_2_maybe_si): Ditto.
19346 (*and<mode>_2): Ditto.
19347 (*andqi_2_slp): Ditto.
19348 (*<code><mode>_1): Ditto.
19349 (*<code>qi_1): Ditto.
19350 (*<code>qi_1_slp): Ditto.
19351 (*<code><mode>_2): Ditto.
19352 (*<code>qi_2_slp): Ditto.
19353
19354 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19355
19356 * alias.c (record_component_aliases): Do not simplify pointed-to
19357 types of ODR types.
19358
19359 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19360
19361 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19362 partial reg stall on alternative 2.
19363
19364 2019-07-17 Richard Biener <rguenther@suse.de>
19365
19366 PR tree-optimization/91178
19367 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19368 lower SSA names to avoid quadratic behavior in the common case.
19369 * tree-data-ref.c (split_constant_offset): Add limit argument
19370 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19371 (split_constant_offset_1): Add limit argument and use it to
19372 limit SSA def walking. Optimize the common plus/minus case.
19373
19374 2019-07-17 Richard Biener <rguenther@suse.de>
19375
19376 PR tree-optimization/91178
19377 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19378 loads with a gap larger than the vector size always use
19379 VMAT_STRIDED_SLP.
19380 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19381 avoid loading vectors that are only contained in the gap
19382 and thus are not needed.
19383
19384 2019-07-17 Richard Biener <rguenther@suse.de>
19385
19386 PR tree-optimization/91180
19387 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19388 computation for memset partial defs.
19389
19390 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19391
19392 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19393 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19394 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19395 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19396 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19397 * omp-grid.c (grid_process_grid_body,
19398 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19399 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19400 == GF_OMP_FOR_KIND_SIMD.
19401 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19402 check_omp_nesting_restrictions, scan_omp_1_stmt,
19403 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19404 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19405 omp_find_scan): Likewise.
19406 * omp-expand.c (expand_omp_for): Likewise.
19407 * omp-general.c (omp_extract_for_data): Likewise.
19408
19409 PR tree-optimization/91157
19410 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19411 a vector boolean with scalar mode.
19412 (expand_vector_condition): Handle first operand being a vector boolean
19413 with scalar mode.
19414 (expand_vector_operations_1): For comparisons, don't bail out early
19415 if the return type is vector boolean with scalar mode, but comparison
19416 operand type is not.
19417
19418 2019-07-17 Richard Biener <rguenther@suse.de>
19419
19420 PR tree-optimization/91181
19421 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19422 IFN_LOADs as calls.
19423
19424 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19425
19426 * config/i386/i386.md (*testdi_1): Match CCZmode for
19427 constants that might have the SImode sign bit set.
19428 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19429 Use correct constraints for pentium pairing.
19430 (*test<mode>_1): Ditto.
19431
19432 2019-07-16 Jeff Law <law@redhat.com>
19433
19434 PR rtl-optimization/91173
19435 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19436 SSA_NAME with a constant value, fold its value into the offset
19437 and clear the base before calling gen_addr_rtx.
19438
19439 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19440
19441 PR rtl-optimization/91164
19442 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19443 invalidate dominance info.
19444
19445 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19446
19447 * read-md.h (md_reader::record_potential_iterator_use): Add a
19448 file_location parameter.
19449 * read-rtl.c (attribute_use::loc): New field.
19450 (map_attr_string): Take a file_location parameter. Report cases
19451 in which attributes map to multiple distinct values.
19452 (apply_attribute_uses): Update call accordingly.
19453 (md_reader::handle_overloaded_name): Likewise.
19454 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19455 nonnull strings.
19456 (record_attribute_use): Take a file_location parameter.
19457 Initialize attribute_use::loc.
19458 (md_reader::record_potential_iterator_use): Take a file_location
19459 parameter. Update call to record_attribute_use.
19460 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19461 (rtx_reader::read_rtx_code): Likewise.
19462 (rtx_reader::read_rtx_operand): Likewise. Record a location
19463 for implicitly-expanded empty strings.
19464
19465 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19466
19467 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19468 Use file_location instead of separate fields.
19469 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19470 separate filename and line number.
19471 * read-md.c (ptr_loc): As above.
19472 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19473 (md_reader::fprint_md_ptr_loc): Likewise.
19474 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19475 instead of a separate filename and line number.
19476 (md_reader::read_string): Update call accordingly.
19477
19478 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19479
19480 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19481 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19482 leaving the choice between SFDF and P implicit.
19483 (*mov<mode>_update2): Likewise.
19484 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19485 rather than leaving the choice betweem IBM128 and GPR implicit.
19486 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19487 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19488 QHSI implicit.
19489 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19490 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19491 * config/rs6000/vsx.md
19492 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19493 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19494 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19495 and VSX_EXTRACT_I implicit.
19496
19497 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19498
19499 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19500 Explicitly use <MOVEP1:MODE> for the mode attribute.
19501
19502 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19503
19504 PR bootstrap/91176
19505 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19506
19507 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19508
19509 PR target/91050
19510 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19511 .machine directive.
19512
19513 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19514
19515 * config/i386/i386.md (@test<mode>_ccno_1):
19516 Rename from test<mode>_ccno_1.
19517 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19518 (*testqi_1_maybe_si): Remove modrm attribute.
19519 (*test<mode>_1): Ditto.
19520 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19521 gen_test_ccno_1 and gen_extend_insn.
19522
19523 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19524
19525 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19526 to 0.
19527
19528 2019-07-15 Richard Biener <rguenther@suse.de>
19529
19530 PR middle-end/91162
19531 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19532 node make sure to replace all uses with something valid.
19533
19534 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19535
19536 PR tree-optimization/88497
19537 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19538 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19539 function undistribute_bitref_for_vector.
19540 (undistribute_bitref_for_vector): New function.
19541 (cleanup_vinfo_map): Likewise.
19542 (sort_by_mach_mode): Likewise.
19543
19544 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19545
19546 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19547 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19548 and testdi_ccno_1 using SWI48 mode attribute.
19549 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19550 x86_64_szext_general_operand.
19551 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19552 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19553 instead of genera_operand mode attribute.
19554
19555 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19556
19557 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19558 fopen and fclose to their respective types.
19559 (DotFn.invoke): Ditto.
19560
19561 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19562
19563 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19564 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19565 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19566 (array_index_predicate): Remove.
19567 (analyze_function_body): Account cost for variable ofsetted array
19568 indexing.
19569 (estimate_node_size_and_time): Do not compute array index hint.
19570 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19571 (inline_read_section): Do not read array index hint.
19572 (ipa_fn_summary_write): Do not write array index hint.
19573 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19574 * ipa-cp.c (hint_time_bonus): Remove.
19575 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19576 (ipa_fnsummary): Remove array_index.
19577 * ipa-inline.c (want_inline_small_function_p): Do not use
19578 array_index.
19579 (edge_badness): Likewise.
19580 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19581
19582 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19583
19584 PR target/91148
19585 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19586 superfluous "builtin function" phrasing.
19587
19588 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19589
19590 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19591 Break out from ...
19592 (aliasing_component_refs_walk): Break out from ...
19593 (aliasing_component_refs_p): ... here.
19594
19595 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19596
19597 PR target/91148
19598 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19599 "builtin function" phrasing.
19600
19601 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19602
19603 PR target/90723
19604 * recog.h (temporary_volatile_ok): New class.
19605 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19606 volatile_ok temporarily to true using temporary_volatile_ok.
19607 * expr.c (emit_block_move_via_cpymem): Likewise.
19608 * optabs.c (maybe_legitimize_operand): Likewise.
19609
19610 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19611
19612 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19613 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19614 uses inside of order(concurrent) constructs.
19615 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19616 OMP_CLAUSE_ORDER is seen.
19617 * omp-low.c (struct omp_context): Add order_concurrent member.
19618 (scan_sharing_clauses): Set ctx->order_concurrent if
19619 OMP_CLAUSE_ORDER is seen.
19620 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19621 of simd order(concurrent). Diagnose constructs not allowed inside of
19622 for order(concurrent).
19623 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19624 complaining about static double setjmp (double); or class static
19625 methods or non-global namespace setjmps.
19626 (omp_runtime_api_call): New function.
19627 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19628 order(concurrent) loops.
19629
19630 2019-07-12 Martin Sebor <msebor@redhat.com>
19631
19632 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19633 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19634 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19635 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19636
19637 2019-07-12 Jan Hubicka <jh@suse.cz>
19638
19639 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19640 (indirect_refs_may_alias_p): ... here.
19641 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19642 mem refs in the access paths.
19643
19644 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19645
19646 PR tree-optimization/89430
19647 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19648 store elimination for local variable without address escape.
19649
19650 2019-07-12 Jeff Law <law@redhat.com>
19651
19652 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19653 for the ".far" section.
19654
19655 2019-07-12 Richard Biener <rguenther@suse.de>
19656
19657 PR tree-optimization/91145
19658 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19659 chain check.
19660
19661 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19662
19663 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19664 rather than this_state as the lowering context for the ELSE
19665 seq in a GIMPLE_EH_ELSE.
19666
19667 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19668
19669 * vector-builder.h (vector_builder::elt): Allow already-supplied
19670 elements to be read back before building is complete.
19671
19672 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19673
19674 PR rtl-optimization/91136
19675 * df-core.c (ACCESSING REFS): Fix typos in comment.
19676 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19677 the beginning of the block to the initial set of live registers.
19678
19679 2019-07-12 Richard Biener <rguenther@suse.de>
19680
19681 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19682 * fold-const.c (get_array_ctor_element_at_index): Add
19683 ctor_idx output parameter informing the caller where in
19684 the constructor the element was (not) found. Add early exit
19685 for when the ctor is sorted.
19686 * gimple-fold.c (fold_array_ctor_reference): Support constant
19687 folding across multiple array elements.
19688
19689 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19690
19691 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19692 doesn't have location, set the current location to the function's end.
19693
19694 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19695
19696 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19697 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19698 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19699 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19700 * config/aarch64/aarch64-simd.md
19701 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19702 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19703 * config/aarch64/aarch64-sve.md
19704 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19705 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19706
19707 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19708
19709 * doc/md.texi: Document that @ patterns can have different
19710 numbers of operands.
19711 * genemit.c (handle_overloaded_gen): Handle this case.
19712 * genopinit.c (handle_overloaded_gen): Likewise.
19713 * gensupport.c (replace_operands_with_dups): Iterate over
19714 the new rtx's format rather than the old one's.
19715
19716 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19717
19718 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19719 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19720 order clause entries.
19721 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19722 * tree-pretty-print.c (dump_omp_clause): Likewise.
19723 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19724 Likewise.
19725 * omp-low.c (scan_sharing_clauses): Likewise.
19726 * tree-nested.c (convert_nonlocal_omp_clauses,
19727 convert_local_omp_clauses): Likewise.
19728
19729 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19730
19731 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19732 fallthrough target of current basic block isn't the placed
19733 right next.
19734
19735 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19736
19737 PR target/90980
19738 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19739 (_mm512_storeu_epi64): Likewise.
19740 (_mm512_loadu_epi32): Likewise.
19741 (_mm512_storeu_epi32): Likewise.
19742 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19743 (_mm_storeu_epi64): Likewise.
19744 (_mm256_storeu_epi32): Likewise.
19745 (_mm_storeu_epi32): Likewise.
19746
19747 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19748
19749 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19750
19751 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19752
19753 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19754 Handle Modula-2.
19755
19756 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19757
19758 PR target/91124
19759 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19760 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19761 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19762 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19763 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19764 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19765 define_insns.
19766 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19767 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19768 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19769 define_insns.
19770 (sse2_cvttpd2dq<mask_name>): Change into ...
19771 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19772 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19773 (*sse2_cvtpd2dq<mask_name>): Change into ...
19774 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19775 Add "C" constraint to const0_operand.
19776 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19777 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19778 changes.
19779
19780 PR target/91124
19781 * config/i386/i386-builtin-types.def
19782 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19783 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19784 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19785 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19786 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19787 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19788 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19789 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19790 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19791 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19792 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19793 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19794 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19795 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19796 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19797 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19798 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19799 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19800 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19801 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19802 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19803 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19804 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19805 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19806 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19807 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19808 __builtin_ia32_vpdpbusd_v4si_maskz,
19809 __builtin_ia32_vpdpbusds_v16si_mask,
19810 __builtin_ia32_vpdpbusds_v16si_maskz,
19811 __builtin_ia32_vpdpbusds_v8si_mask,
19812 __builtin_ia32_vpdpbusds_v8si_maskz,
19813 __builtin_ia32_vpdpbusds_v4si_mask,
19814 __builtin_ia32_vpdpbusds_v4si_maskz,
19815 __builtin_ia32_vpdpwssd_v16si_mask,
19816 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19817 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19818 __builtin_ia32_vpdpwssd_v4si_maskz,
19819 __builtin_ia32_vpdpwssds_v16si_mask,
19820 __builtin_ia32_vpdpwssds_v16si_maskz,
19821 __builtin_ia32_vpdpwssds_v8si_mask,
19822 __builtin_ia32_vpdpwssds_v8si_maskz,
19823 __builtin_ia32_vpdpwssds_v4si_mask,
19824 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19825 suffixed types rather than *_INT.
19826 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19827 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19828 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19829 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19830 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19831 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19832
19833 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19834
19835 * tree-vrp.c (intersect_ranges): If we know the intersection is
19836 empty, there is no need to conservatively add anything else to
19837 the set.
19838
19839 2019-07-11 Richard Biener <rguenther@suse.de>
19840
19841 PR middle-end/91131
19842 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19843 when the object is volatile and we have not cleared it even though
19844 there are no nonzero elements.
19845
19846 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19847
19848 * config/rs6000/predicates.md (cint34_operand): Update
19849 SIGNED_34BIT_OFFSET_P call.
19850 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19851 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19852 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19853 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19854 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19855 argument.
19856 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19857 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19858 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19859 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19860 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19861
19862 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19863
19864 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19865 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19866 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19867 (DEF_MIN_OSX_VERSION): New.
19868
19869 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19870
19871 * fold-const.c (fold_relational_const): Fix folding of
19872 vector-to-scalar NE_EXPRs.
19873 (test_vector_folding): Add more tests.
19874
19875 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19876
19877 PR target/91060
19878 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19879 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19880 (vec_setv2di_internal): Reexpress as...
19881 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19882 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19883 rather than gen_neon_vset_lane<mode>.
19884
19885 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19886
19887 PR target/91102
19888 * lra-constraints.c (process_alt_operands): Don't match user
19889 defined regs only if they are early clobbers.
19890
19891 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19892
19893 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19894
19895 2019-07-10 Richard Biener <rguenther@suse.de>
19896
19897 PR tree-optimization/91126
19898 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19899 native encoding offset for BYTES_BIG_ENDIAN.
19900 (vn_reference_lookup_3): Likewise.
19901
19902 2019-07-10 Richard Biener <rguenther@suse.de>
19903
19904 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19905 LHS whenever possible.
19906
19907 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19908
19909 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19910 from ...; work also on duplicated types.
19911 (nonoverlapping_component_refs_since_match): ... here
19912 (ncr_type_uid): Break out from ...
19913 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19914 available.
19915 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19916 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19917
19918 2019-07-09 Martin Sebor <msebor@redhat.com>
19919
19920 PR tree-optimization/90989
19921 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19922 optimization to just single character stores.
19923
19924 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19925
19926 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19927 Swap operands only once.
19928
19929 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19930
19931 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19932 for both call instructions.
19933
19934 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19935
19936 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19937 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19938
19939 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19940
19941 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19942 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19943 function from rs6000-logue.c back to rs6000.c.
19944 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19945
19946 2019-07-09 Martin Sebor <msebor@redhat.com>
19947
19948 PR c++/61339
19949 * auto-profile.c: Change class-key of PODs to struct and others
19950 to class.
19951 * basic-block.h: Same.
19952 * bitmap.c (bitmap_alloc): Same.
19953 * bitmap.h: Same.
19954 * builtins.c (expand_builtin_prefetch): Same.
19955 (expand_builtin_interclass_mathfn): Same.
19956 (expand_builtin_strlen): Same.
19957 (expand_builtin_mempcpy_args): Same.
19958 (expand_cmpstr): Same.
19959 (expand_builtin___clear_cache): Same.
19960 (expand_ifn_atomic_bit_test_and): Same.
19961 (expand_builtin_thread_pointer): Same.
19962 (expand_builtin_set_thread_pointer): Same.
19963 * caller-save.c (setup_save_areas): Same.
19964 (replace_reg_with_saved_mem): Same.
19965 (insert_restore): Same.
19966 (insert_save): Same.
19967 (add_used_regs): Same.
19968 * cfg.c (get_bb_copy): Same.
19969 (set_loop_copy): Same.
19970 * cfg.h: Same.
19971 * cfganal.h: Same.
19972 * cfgexpand.c (alloc_stack_frame_space): Same.
19973 (add_stack_var): Same.
19974 (add_stack_var_conflict): Same.
19975 (add_scope_conflicts_1): Same.
19976 (update_alias_info_with_stack_vars): Same.
19977 (expand_used_vars): Same.
19978 * cfghooks.c (redirect_edge_and_branch_force): Same.
19979 (delete_basic_block): Same.
19980 (split_edge): Same.
19981 (make_forwarder_block): Same.
19982 (force_nonfallthru): Same.
19983 (duplicate_block): Same.
19984 (lv_flush_pending_stmts): Same.
19985 * cfghooks.h: Same.
19986 * cfgloop.c (flow_loops_cfg_dump): Same.
19987 (flow_loop_nested_p): Same.
19988 (superloop_at_depth): Same.
19989 (get_loop_latch_edges): Same.
19990 (flow_loop_dump): Same.
19991 (flow_loops_dump): Same.
19992 (flow_loops_free): Same.
19993 (flow_loop_nodes_find): Same.
19994 (establish_preds): Same.
19995 (flow_loop_tree_node_add): Same.
19996 (flow_loop_tree_node_remove): Same.
19997 (flow_loops_find): Same.
19998 (find_subloop_latch_edge_by_profile): Same.
19999 (find_subloop_latch_edge_by_ivs): Same.
20000 (mfb_redirect_edges_in_set): Same.
20001 (form_subloop): Same.
20002 (merge_latch_edges): Same.
20003 (disambiguate_multiple_latches): Same.
20004 (disambiguate_loops_with_multiple_latches): Same.
20005 (flow_bb_inside_loop_p): Same.
20006 (glb_enum_p): Same.
20007 (get_loop_body_with_size): Same.
20008 (get_loop_body): Same.
20009 (fill_sons_in_loop): Same.
20010 (get_loop_body_in_dom_order): Same.
20011 (get_loop_body_in_custom_order): Same.
20012 (release_recorded_exits): Same.
20013 (get_loop_exit_edges): Same.
20014 (num_loop_branches): Same.
20015 (remove_bb_from_loops): Same.
20016 (find_common_loop): Same.
20017 (delete_loop): Same.
20018 (cancel_loop): Same.
20019 (verify_loop_structure): Same.
20020 (loop_preheader_edge): Same.
20021 (loop_exit_edge_p): Same.
20022 (single_exit): Same.
20023 (loop_exits_to_bb_p): Same.
20024 (loop_exits_from_bb_p): Same.
20025 (get_loop_location): Same.
20026 (record_niter_bound): Same.
20027 (get_estimated_loop_iterations_int): Same.
20028 (max_stmt_executions_int): Same.
20029 (likely_max_stmt_executions_int): Same.
20030 (get_estimated_loop_iterations): Same.
20031 (get_max_loop_iterations): Same.
20032 (get_max_loop_iterations_int): Same.
20033 (get_likely_max_loop_iterations): Same.
20034 * cfgloop.h (simple_loop_desc): Same.
20035 (get_loop): Same.
20036 (loop_depth): Same.
20037 (loop_outer): Same.
20038 (loop_iterator::next): Same.
20039 (loop_outermost): Same.
20040 * cfgloopanal.c (mark_irreducible_loops): Same.
20041 (num_loop_insns): Same.
20042 (average_num_loop_insns): Same.
20043 (expected_loop_iterations_unbounded): Same.
20044 (expected_loop_iterations): Same.
20045 (mark_loop_exit_edges): Same.
20046 (single_likely_exit): Same.
20047 * cfgloopmanip.c (fix_bb_placement): Same.
20048 (fix_bb_placements): Same.
20049 (remove_path): Same.
20050 (place_new_loop): Same.
20051 (add_loop): Same.
20052 (scale_loop_frequencies): Same.
20053 (scale_loop_profile): Same.
20054 (create_empty_if_region_on_edge): Same.
20055 (create_empty_loop_on_edge): Same.
20056 (loopify): Same.
20057 (unloop): Same.
20058 (fix_loop_placements): Same.
20059 (copy_loop_info): Same.
20060 (duplicate_loop): Same.
20061 (duplicate_subloops): Same.
20062 (loop_redirect_edge): Same.
20063 (can_duplicate_loop_p): Same.
20064 (duplicate_loop_to_header_edge): Same.
20065 (mfb_keep_just): Same.
20066 (has_preds_from_loop): Same.
20067 (create_preheader): Same.
20068 (create_preheaders): Same.
20069 (lv_adjust_loop_entry_edge): Same.
20070 (loop_version): Same.
20071 * cfgloopmanip.h: Same.
20072 * cgraph.h: Same.
20073 * cgraphbuild.c: Same.
20074 * combine.c (make_extraction): Same.
20075 * config/i386/i386-features.c: Same.
20076 * config/i386/i386-features.h: Same.
20077 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20078 (ix86_emit_outlined_ms2sysv_restore): Same.
20079 (ix86_noce_conversion_profitable_p): Same.
20080 (ix86_init_cost): Same.
20081 (ix86_simd_clone_usable): Same.
20082 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20083 Wstruct-not-pod.
20084 * coretypes.h: Same.
20085 * data-streamer-in.c (string_for_index): Change class-key of PODs
20086 to struct and others to class.
20087 (streamer_read_indexed_string): Same.
20088 (streamer_read_string): Same.
20089 (bp_unpack_indexed_string): Same.
20090 (bp_unpack_string): Same.
20091 (streamer_read_uhwi): Same.
20092 (streamer_read_hwi): Same.
20093 (streamer_read_gcov_count): Same.
20094 (streamer_read_wide_int): Same.
20095 * data-streamer.h (streamer_write_bitpack): Same.
20096 (bp_unpack_value): Same.
20097 (streamer_write_char_stream): Same.
20098 (streamer_write_hwi_in_range): Same.
20099 (streamer_write_record_start): Same.
20100 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20101 (add_cross_iteration_register_deps): Same.
20102 (build_intra_loop_deps): Same.
20103 * df-core.c (df_analyze): Same.
20104 (loop_post_order_compute): Same.
20105 (loop_inverted_post_order_compute): Same.
20106 * df-problems.c (df_rd_alloc): Same.
20107 (df_rd_simulate_one_insn): Same.
20108 (df_rd_local_compute): Same.
20109 (df_rd_init_solution): Same.
20110 (df_rd_confluence_n): Same.
20111 (df_rd_transfer_function): Same.
20112 (df_rd_free): Same.
20113 (df_rd_dump_defs_set): Same.
20114 (df_rd_top_dump): Same.
20115 (df_lr_alloc): Same.
20116 (df_lr_reset): Same.
20117 (df_lr_local_compute): Same.
20118 (df_lr_init): Same.
20119 (df_lr_confluence_n): Same.
20120 (df_lr_free): Same.
20121 (df_lr_top_dump): Same.
20122 (df_lr_verify_transfer_functions): Same.
20123 (df_live_alloc): Same.
20124 (df_live_reset): Same.
20125 (df_live_init): Same.
20126 (df_live_confluence_n): Same.
20127 (df_live_finalize): Same.
20128 (df_live_free): Same.
20129 (df_live_top_dump): Same.
20130 (df_live_verify_transfer_functions): Same.
20131 (df_mir_alloc): Same.
20132 (df_mir_reset): Same.
20133 (df_mir_init): Same.
20134 (df_mir_confluence_n): Same.
20135 (df_mir_free): Same.
20136 (df_mir_top_dump): Same.
20137 (df_word_lr_alloc): Same.
20138 (df_word_lr_reset): Same.
20139 (df_word_lr_init): Same.
20140 (df_word_lr_confluence_n): Same.
20141 (df_word_lr_free): Same.
20142 (df_word_lr_top_dump): Same.
20143 (df_md_alloc): Same.
20144 (df_md_simulate_one_insn): Same.
20145 (df_md_reset): Same.
20146 (df_md_init): Same.
20147 (df_md_free): Same.
20148 (df_md_top_dump): Same.
20149 * df-scan.c (df_insn_delete): Same.
20150 (df_insn_rescan): Same.
20151 (df_notes_rescan): Same.
20152 (df_sort_and_compress_mws): Same.
20153 (df_install_mws): Same.
20154 (df_refs_add_to_chains): Same.
20155 (df_ref_create_structure): Same.
20156 (df_ref_record): Same.
20157 (df_def_record_1): Same.
20158 (df_find_hard_reg_defs): Same.
20159 (df_uses_record): Same.
20160 (df_get_conditional_uses): Same.
20161 (df_get_call_refs): Same.
20162 (df_recompute_luids): Same.
20163 (df_get_entry_block_def_set): Same.
20164 (df_entry_block_defs_collect): Same.
20165 (df_get_exit_block_use_set): Same.
20166 (df_exit_block_uses_collect): Same.
20167 (df_mws_verify): Same.
20168 (df_bb_verify): Same.
20169 * df.h (df_scan_get_bb_info): Same.
20170 * doc/tm.texi: Same.
20171 * dse.c (record_store): Same.
20172 * dumpfile.h: Same.
20173 * emit-rtl.c (const_fixed_hasher::equal): Same.
20174 (set_mem_attributes_minus_bitpos): Same.
20175 (change_address): Same.
20176 (adjust_address_1): Same.
20177 (offset_address): Same.
20178 * emit-rtl.h: Same.
20179 * except.c (dw2_build_landing_pads): Same.
20180 (sjlj_emit_dispatch_table): Same.
20181 * explow.c (allocate_dynamic_stack_space): Same.
20182 (emit_stack_probe): Same.
20183 (probe_stack_range): Same.
20184 * expmed.c (store_bit_field_using_insv): Same.
20185 (store_bit_field_1): Same.
20186 (store_integral_bit_field): Same.
20187 (extract_bit_field_using_extv): Same.
20188 (extract_bit_field_1): Same.
20189 (emit_cstore): Same.
20190 * expr.c (emit_block_move_via_cpymem): Same.
20191 (expand_cmpstrn_or_cmpmem): Same.
20192 (set_storage_via_setmem): Same.
20193 (emit_single_push_insn_1): Same.
20194 (expand_assignment): Same.
20195 (store_constructor): Same.
20196 (expand_expr_real_2): Same.
20197 (expand_expr_real_1): Same.
20198 (try_casesi): Same.
20199 * flags.h: Same.
20200 * function.c (try_fit_stack_local): Same.
20201 (assign_stack_local_1): Same.
20202 (assign_stack_local): Same.
20203 (cut_slot_from_list): Same.
20204 (insert_slot_to_list): Same.
20205 (max_slot_level): Same.
20206 (move_slot_to_level): Same.
20207 (temp_address_hasher::equal): Same.
20208 (remove_unused_temp_slot_addresses): Same.
20209 (assign_temp): Same.
20210 (combine_temp_slots): Same.
20211 (update_temp_slot_address): Same.
20212 (preserve_temp_slots): Same.
20213 * function.h: Same.
20214 * fwprop.c: Same.
20215 * gcc-rich-location.h: Same.
20216 * gcov.c: Same.
20217 * genattrtab.c (check_attr_test): Same.
20218 (check_attr_value): Same.
20219 (convert_set_attr_alternative): Same.
20220 (convert_set_attr): Same.
20221 (check_defs): Same.
20222 (copy_boolean): Same.
20223 (get_attr_value): Same.
20224 (expand_delays): Same.
20225 (make_length_attrs): Same.
20226 (min_fn): Same.
20227 (make_alternative_compare): Same.
20228 (simplify_test_exp): Same.
20229 (tests_attr_p): Same.
20230 (get_attr_order): Same.
20231 (clear_struct_flag): Same.
20232 (gen_attr): Same.
20233 (compares_alternatives_p): Same.
20234 (gen_insn): Same.
20235 (gen_delay): Same.
20236 (find_attrs_to_cache): Same.
20237 (write_test_expr): Same.
20238 (walk_attr_value): Same.
20239 (write_attr_get): Same.
20240 (eliminate_known_true): Same.
20241 (write_insn_cases): Same.
20242 (write_attr_case): Same.
20243 (write_attr_valueq): Same.
20244 (write_attr_value): Same.
20245 (write_dummy_eligible_delay): Same.
20246 (next_comma_elt): Same.
20247 (find_attr): Same.
20248 (make_internal_attr): Same.
20249 (copy_rtx_unchanging): Same.
20250 (gen_insn_reserv): Same.
20251 (check_tune_attr): Same.
20252 (make_automaton_attrs): Same.
20253 (handle_arg): Same.
20254 * genextract.c (gen_insn): Same.
20255 (VEC_char_to_string): Same.
20256 * genmatch.c (print_operand): Same.
20257 (lower): Same.
20258 (parser::parse_operation): Same.
20259 (parser::parse_capture): Same.
20260 (parser::parse_c_expr): Same.
20261 (parser::parse_simplify): Same.
20262 (main): Same.
20263 * genoutput.c (output_operand_data): Same.
20264 (output_get_insn_name): Same.
20265 (compare_operands): Same.
20266 (place_operands): Same.
20267 (process_template): Same.
20268 (validate_insn_alternatives): Same.
20269 (validate_insn_operands): Same.
20270 (gen_expand): Same.
20271 (note_constraint): Same.
20272 * genpreds.c (write_one_predicate_function): Same.
20273 (add_constraint): Same.
20274 (process_define_register_constraint): Same.
20275 (write_lookup_constraint_1): Same.
20276 (write_lookup_constraint_array): Same.
20277 (write_insn_constraint_len): Same.
20278 (write_reg_class_for_constraint_1): Same.
20279 (write_constraint_satisfied_p_array): Same.
20280 * genrecog.c (optimize_subroutine_group): Same.
20281 * gensupport.c (process_define_predicate): Same.
20282 (queue_pattern): Same.
20283 (remove_from_queue): Same.
20284 (process_rtx): Same.
20285 (is_predicable): Same.
20286 (change_subst_attribute): Same.
20287 (subst_pattern_match): Same.
20288 (alter_constraints): Same.
20289 (alter_attrs_for_insn): Same.
20290 (shift_output_template): Same.
20291 (alter_output_for_subst_insn): Same.
20292 (process_one_cond_exec): Same.
20293 (subst_dup): Same.
20294 (process_define_cond_exec): Same.
20295 (mnemonic_htab_callback): Same.
20296 (gen_mnemonic_attr): Same.
20297 (read_md_rtx): Same.
20298 * ggc-page.c: Same.
20299 * gimple-loop-interchange.cc (dump_reduction): Same.
20300 (dump_induction): Same.
20301 (loop_cand::~loop_cand): Same.
20302 (free_data_refs_with_aux): Same.
20303 (tree_loop_interchange::interchange_loops): Same.
20304 (tree_loop_interchange::map_inductions_to_loop): Same.
20305 (tree_loop_interchange::move_code_to_inner_loop): Same.
20306 (compute_access_stride): Same.
20307 (compute_access_strides): Same.
20308 (proper_loop_form_for_interchange): Same.
20309 (tree_loop_interchange_compute_ddrs): Same.
20310 (prune_datarefs_not_in_loop): Same.
20311 (prepare_data_references): Same.
20312 (pass_linterchange::execute): Same.
20313 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20314 (unroll_jam_possible_p): Same.
20315 (fuse_loops): Same.
20316 (adjust_unroll_factor): Same.
20317 (tree_loop_unroll_and_jam): Same.
20318 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20319 (loop_versioning::expensive_stmt_p): Same.
20320 (loop_versioning::version_for_unity): Same.
20321 (loop_versioning::dump_inner_likelihood): Same.
20322 (loop_versioning::find_per_loop_multiplication): Same.
20323 (loop_versioning::analyze_term_using_scevs): Same.
20324 (loop_versioning::record_address_fragment): Same.
20325 (loop_versioning::analyze_expr): Same.
20326 (loop_versioning::analyze_blocks): Same.
20327 (loop_versioning::prune_conditions): Same.
20328 (loop_versioning::merge_loop_info): Same.
20329 (loop_versioning::add_loop_to_queue): Same.
20330 (loop_versioning::decide_whether_loop_is_versionable): Same.
20331 (loop_versioning::make_versioning_decisions): Same.
20332 (loop_versioning::implement_versioning_decisions): Same.
20333 * gimple-ssa-evrp-analyze.c
20334 (evrp_range_analyzer::record_ranges_from_phis): Same.
20335 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20336 (count_multiple_uses): Same.
20337 (split_group): Same.
20338 (imm_store_chain_info::output_merged_store): Same.
20339 (pass_store_merging::process_store): Same.
20340 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20341 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20342 (is_max): Same.
20343 (alloca_call_type): Same.
20344 (pass_walloca::execute): Same.
20345 * gimple-streamer-in.c (input_phi): Same.
20346 (input_gimple_stmt): Same.
20347 * gimple-streamer.h: Same.
20348 * godump.c (go_force_record_alignment): Same.
20349 (go_format_type): Same.
20350 (go_output_type): Same.
20351 (go_output_fndecl): Same.
20352 (go_output_typedef): Same.
20353 (keyword_hash_init): Same.
20354 (find_dummy_types): Same.
20355 * graph.c (draw_cfg_nodes_no_loops): Same.
20356 (draw_cfg_nodes_for_loop): Same.
20357 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20358 * hsa-brig.c: Same.
20359 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20360 * hsa-dump.c (dump_hsa_cfun): Same.
20361 * hsa-gen.c (gen_function_def_parameters): Same.
20362 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20363 * input.c (dump_line_table_statistics): Same.
20364 (test_lexer): Same.
20365 * input.h: Same.
20366 * internal-fn.c (get_multi_vector_move): Same.
20367 (expand_load_lanes_optab_fn): Same.
20368 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20369 (expand_GOMP_SIMT_EXIT): Same.
20370 (expand_GOMP_SIMT_LAST_LANE): Same.
20371 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20372 (expand_GOMP_SIMT_VOTE_ANY): Same.
20373 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20374 (expand_GOMP_SIMT_XCHG_IDX): Same.
20375 (expand_addsub_overflow): Same.
20376 (expand_neg_overflow): Same.
20377 (expand_mul_overflow): Same.
20378 (expand_call_mem_ref): Same.
20379 (expand_mask_load_optab_fn): Same.
20380 (expand_scatter_store_optab_fn): Same.
20381 (expand_gather_load_optab_fn): Same.
20382 * ipa-cp.c (ipa_get_parm_lattices): Same.
20383 (print_all_lattices): Same.
20384 (ignore_edge_p): Same.
20385 (build_toporder_info): Same.
20386 (free_toporder_info): Same.
20387 (push_node_to_stack): Same.
20388 (ipcp_lattice<valtype>::set_contains_variable): Same.
20389 (set_agg_lats_to_bottom): Same.
20390 (ipcp_bits_lattice::meet_with): Same.
20391 (set_single_call_flag): Same.
20392 (initialize_node_lattices): Same.
20393 (ipa_get_jf_ancestor_result): Same.
20394 (ipcp_verify_propagated_values): Same.
20395 (propagate_scalar_across_jump_function): Same.
20396 (propagate_context_across_jump_function): Same.
20397 (propagate_bits_across_jump_function): Same.
20398 (ipa_vr_operation_and_type_effects): Same.
20399 (propagate_vr_across_jump_function): Same.
20400 (set_check_aggs_by_ref): Same.
20401 (set_chain_of_aglats_contains_variable): Same.
20402 (merge_aggregate_lattices): Same.
20403 (agg_pass_through_permissible_p): Same.
20404 (propagate_aggs_across_jump_function): Same.
20405 (call_passes_through_thunk_p): Same.
20406 (propagate_constants_across_call): Same.
20407 (devirtualization_time_bonus): Same.
20408 (good_cloning_opportunity_p): Same.
20409 (context_independent_aggregate_values): Same.
20410 (gather_context_independent_values): Same.
20411 (perform_estimation_of_a_value): Same.
20412 (estimate_local_effects): Same.
20413 (value_topo_info<valtype>::add_val): Same.
20414 (add_all_node_vals_to_toposort): Same.
20415 (value_topo_info<valtype>::propagate_effects): Same.
20416 (ipcp_propagate_stage): Same.
20417 (ipcp_discover_new_direct_edges): Same.
20418 (same_node_or_its_all_contexts_clone_p): Same.
20419 (cgraph_edge_brings_value_p): Same.
20420 (gather_edges_for_value): Same.
20421 (create_specialized_node): Same.
20422 (find_more_scalar_values_for_callers_subset): Same.
20423 (find_more_contexts_for_caller_subset): Same.
20424 (copy_plats_to_inter): Same.
20425 (intersect_aggregates_with_edge): Same.
20426 (find_aggregate_values_for_callers_subset): Same.
20427 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20428 (decide_about_value): Same.
20429 (decide_whether_version_node): Same.
20430 (spread_undeadness): Same.
20431 (identify_dead_nodes): Same.
20432 (ipcp_store_vr_results): Same.
20433 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20434 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20435 (redirect_to_unreachable): Same.
20436 (edge_set_predicate): Same.
20437 (evaluate_conditions_for_known_args): Same.
20438 (evaluate_properties_for_edge): Same.
20439 (ipa_fn_summary_t::duplicate): Same.
20440 (ipa_call_summary_t::duplicate): Same.
20441 (dump_ipa_call_summary): Same.
20442 (ipa_dump_fn_summary): Same.
20443 (eliminated_by_inlining_prob): Same.
20444 (set_cond_stmt_execution_predicate): Same.
20445 (set_switch_stmt_execution_predicate): Same.
20446 (compute_bb_predicates): Same.
20447 (will_be_nonconstant_expr_predicate): Same.
20448 (phi_result_unknown_predicate): Same.
20449 (analyze_function_body): Same.
20450 (compute_fn_summary): Same.
20451 (estimate_edge_devirt_benefit): Same.
20452 (estimate_edge_size_and_time): Same.
20453 (estimate_calls_size_and_time): Same.
20454 (estimate_node_size_and_time): Same.
20455 (remap_edge_change_prob): Same.
20456 (remap_edge_summaries): Same.
20457 (ipa_merge_fn_summary_after_inlining): Same.
20458 (ipa_fn_summary_generate): Same.
20459 (inline_read_section): Same.
20460 (ipa_fn_summary_read): Same.
20461 (ipa_fn_summary_write): Same.
20462 * ipa-fnsummary.h: Same.
20463 * ipa-hsa.c (ipa_hsa_read_section): Same.
20464 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20465 * ipa-icf.c (sem_function::param_used_p): Same.
20466 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20467 * ipa-inline.c (edge_badness): Same.
20468 (inline_small_functions): Same.
20469 * ipa-polymorphic-call.c
20470 (ipa_polymorphic_call_context::stream_out): Same.
20471 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20472 (predicate::remap_after_inlining): Same.
20473 (predicate::stream_out): Same.
20474 * ipa-predicate.h: Same.
20475 * ipa-profile.c (ipa_profile_read_summary): Same.
20476 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20477 (count_formal_params): Same.
20478 (ipa_dump_param): Same.
20479 (ipa_alloc_node_params): Same.
20480 (ipa_print_node_jump_functions_for_edge): Same.
20481 (ipa_print_node_jump_functions): Same.
20482 (ipa_load_from_parm_agg): Same.
20483 (get_ancestor_addr_info): Same.
20484 (ipa_compute_jump_functions_for_edge): Same.
20485 (ipa_analyze_virtual_call_uses): Same.
20486 (ipa_analyze_stmt_uses): Same.
20487 (ipa_analyze_params_uses_in_bb): Same.
20488 (update_jump_functions_after_inlining): Same.
20489 (try_decrement_rdesc_refcount): Same.
20490 (ipa_impossible_devirt_target): Same.
20491 (update_indirect_edges_after_inlining): Same.
20492 (combine_controlled_uses_counters): Same.
20493 (ipa_edge_args_sum_t::duplicate): Same.
20494 (ipa_write_jump_function): Same.
20495 (ipa_write_indirect_edge_info): Same.
20496 (ipa_write_node_info): Same.
20497 (ipa_read_edge_info): Same.
20498 (ipa_prop_read_section): Same.
20499 (read_replacements_section): Same.
20500 * ipa-prop.h (ipa_get_param_count): Same.
20501 (ipa_get_param): Same.
20502 (ipa_get_type): Same.
20503 (ipa_get_param_move_cost): Same.
20504 (ipa_set_param_used): Same.
20505 (ipa_get_controlled_uses): Same.
20506 (ipa_set_controlled_uses): Same.
20507 (ipa_get_cs_argument_count): Same.
20508 * ipa-pure-const.c (analyze_function): Same.
20509 (pure_const_read_summary): Same.
20510 * ipa-ref.h: Same.
20511 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20512 * ipa-split.c (test_nonssa_use): Same.
20513 (dump_split_point): Same.
20514 (dominated_by_forbidden): Same.
20515 (split_part_set_ssa_name_p): Same.
20516 (find_split_points): Same.
20517 * ira-build.c (finish_loop_tree_nodes): Same.
20518 (low_pressure_loop_node_p): Same.
20519 * ira-color.c (ira_reuse_stack_slot): Same.
20520 * ira-int.h: Same.
20521 * ira.c (setup_reg_equiv): Same.
20522 (print_insn_chain): Same.
20523 (ira): Same.
20524 * loop-doloop.c (doloop_condition_get): Same.
20525 (add_test): Same.
20526 (record_reg_sets): Same.
20527 (doloop_optimize): Same.
20528 * loop-init.c (loop_optimizer_init): Same.
20529 (fix_loop_structure): Same.
20530 * loop-invariant.c (merge_identical_invariants): Same.
20531 (compute_always_reached): Same.
20532 (find_exits): Same.
20533 (may_assign_reg_p): Same.
20534 (find_invariants_bb): Same.
20535 (find_invariants_body): Same.
20536 (replace_uses): Same.
20537 (can_move_invariant_reg): Same.
20538 (free_inv_motion_data): Same.
20539 (move_single_loop_invariants): Same.
20540 (change_pressure): Same.
20541 (mark_ref_regs): Same.
20542 (calculate_loop_reg_pressure): Same.
20543 * loop-iv.c (biv_entry_hasher::equal): Same.
20544 (iv_extend_to_rtx_code): Same.
20545 (check_iv_ref_table_size): Same.
20546 (clear_iv_info): Same.
20547 (latch_dominating_def): Same.
20548 (iv_get_reaching_def): Same.
20549 (iv_constant): Same.
20550 (iv_subreg): Same.
20551 (iv_extend): Same.
20552 (iv_neg): Same.
20553 (iv_add): Same.
20554 (iv_mult): Same.
20555 (get_biv_step): Same.
20556 (record_iv): Same.
20557 (analyzed_for_bivness_p): Same.
20558 (record_biv): Same.
20559 (iv_analyze_biv): Same.
20560 (iv_analyze_expr): Same.
20561 (iv_analyze_def): Same.
20562 (iv_analyze_op): Same.
20563 (iv_analyze): Same.
20564 (iv_analyze_result): Same.
20565 (biv_p): Same.
20566 (eliminate_implied_conditions): Same.
20567 (simplify_using_initial_values): Same.
20568 (shorten_into_mode): Same.
20569 (canonicalize_iv_subregs): Same.
20570 (determine_max_iter): Same.
20571 (check_simple_exit): Same.
20572 (find_simple_exit): Same.
20573 (get_simple_loop_desc): Same.
20574 * loop-unroll.c (report_unroll): Same.
20575 (decide_unrolling): Same.
20576 (unroll_loops): Same.
20577 (loop_exit_at_end_p): Same.
20578 (decide_unroll_constant_iterations): Same.
20579 (unroll_loop_constant_iterations): Same.
20580 (compare_and_jump_seq): Same.
20581 (unroll_loop_runtime_iterations): Same.
20582 (decide_unroll_stupid): Same.
20583 (unroll_loop_stupid): Same.
20584 (referenced_in_one_insn_in_loop_p): Same.
20585 (reset_debug_uses_in_loop): Same.
20586 (analyze_iv_to_split_insn): Same.
20587 * lra-eliminations.c (lra_debug_elim_table): Same.
20588 (setup_can_eliminate): Same.
20589 (form_sum): Same.
20590 (lra_get_elimination_hard_regno): Same.
20591 (lra_eliminate_regs_1): Same.
20592 (eliminate_regs_in_insn): Same.
20593 (update_reg_eliminate): Same.
20594 (init_elimination): Same.
20595 (lra_eliminate): Same.
20596 * lra-int.h: Same.
20597 * lra-lives.c (initiate_live_solver): Same.
20598 * lra-remat.c (create_remat_bb_data): Same.
20599 * lra-spills.c (lra_spill): Same.
20600 * lra.c (lra_set_insn_recog_data): Same.
20601 (lra_set_used_insn_alternative_by_uid): Same.
20602 (init_reg_info): Same.
20603 (expand_reg_info): Same.
20604 * lto-cgraph.c (output_symtab): Same.
20605 (read_identifier): Same.
20606 (get_alias_symbol): Same.
20607 (input_node): Same.
20608 (input_varpool_node): Same.
20609 (input_ref): Same.
20610 (input_edge): Same.
20611 (input_cgraph_1): Same.
20612 (input_refs): Same.
20613 (input_symtab): Same.
20614 (input_offload_tables): Same.
20615 (output_cgraph_opt_summary): Same.
20616 (input_edge_opt_summary): Same.
20617 (input_cgraph_opt_section): Same.
20618 * lto-section-in.c (lto_free_raw_section_data): Same.
20619 (lto_create_simple_input_block): Same.
20620 (lto_free_function_in_decl_state_for_node): Same.
20621 * lto-streamer-in.c (lto_tag_check_set): Same.
20622 (lto_location_cache::revert_location_cache): Same.
20623 (lto_location_cache::input_location): Same.
20624 (lto_input_location): Same.
20625 (stream_input_location_now): Same.
20626 (lto_input_tree_ref): Same.
20627 (lto_input_eh_catch_list): Same.
20628 (input_eh_region): Same.
20629 (lto_init_eh): Same.
20630 (make_new_block): Same.
20631 (input_cfg): Same.
20632 (fixup_call_stmt_edges): Same.
20633 (input_struct_function_base): Same.
20634 (input_function): Same.
20635 (lto_read_body_or_constructor): Same.
20636 (lto_read_tree_1): Same.
20637 (lto_read_tree): Same.
20638 (lto_input_scc): Same.
20639 (lto_input_tree_1): Same.
20640 (lto_input_toplevel_asms): Same.
20641 (lto_input_mode_table): Same.
20642 (lto_reader_init): Same.
20643 (lto_data_in_create): Same.
20644 * lto-streamer-out.c (output_cfg): Same.
20645 * lto-streamer.h: Same.
20646 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20647 (generate_prolog_epilog): Same.
20648 (mark_loop_unsched): Same.
20649 (dump_insn_location): Same.
20650 (loop_canon_p): Same.
20651 (sms_schedule): Same.
20652 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20653 (expand_omp_for_generic): Same.
20654 (expand_omp_for_static_nochunk): Same.
20655 (expand_omp_for_static_chunk): Same.
20656 (expand_omp_simd): Same.
20657 (expand_omp_taskloop_for_inner): Same.
20658 (expand_oacc_for): Same.
20659 (expand_omp_atomic_pipeline): Same.
20660 (mark_loops_in_oacc_kernels_region): Same.
20661 * omp-offload.c (oacc_xform_loop): Same.
20662 * omp-simd-clone.c (simd_clone_adjust): Same.
20663 * optabs-query.c (get_traditional_extraction_insn): Same.
20664 * optabs.c (expand_vector_broadcast): Same.
20665 (expand_binop_directly): Same.
20666 (expand_twoval_unop): Same.
20667 (expand_twoval_binop): Same.
20668 (expand_unop_direct): Same.
20669 (emit_indirect_jump): Same.
20670 (emit_conditional_move): Same.
20671 (emit_conditional_neg_or_complement): Same.
20672 (emit_conditional_add): Same.
20673 (vector_compare_rtx): Same.
20674 (expand_vec_perm_1): Same.
20675 (expand_vec_perm_const): Same.
20676 (expand_vec_cond_expr): Same.
20677 (expand_vec_series_expr): Same.
20678 (maybe_emit_atomic_exchange): Same.
20679 (maybe_emit_sync_lock_test_and_set): Same.
20680 (expand_atomic_compare_and_swap): Same.
20681 (expand_atomic_load): Same.
20682 (expand_atomic_store): Same.
20683 (maybe_emit_op): Same.
20684 (valid_multiword_target_p): Same.
20685 (create_integer_operand): Same.
20686 (maybe_legitimize_operand_same_code): Same.
20687 (maybe_legitimize_operand): Same.
20688 (create_convert_operand_from_type): Same.
20689 (can_reuse_operands_p): Same.
20690 (maybe_legitimize_operands): Same.
20691 (maybe_gen_insn): Same.
20692 (maybe_expand_insn): Same.
20693 (maybe_expand_jump_insn): Same.
20694 (expand_insn): Same.
20695 * optabs.h (create_expand_operand): Same.
20696 (create_fixed_operand): Same.
20697 (create_output_operand): Same.
20698 (create_input_operand): Same.
20699 (create_convert_operand_to): Same.
20700 (create_convert_operand_from): Same.
20701 * optinfo.h: Same.
20702 * poly-int.h: Same.
20703 * predict.c (optimize_insn_for_speed_p): Same.
20704 (optimize_loop_for_size_p): Same.
20705 (optimize_loop_for_speed_p): Same.
20706 (optimize_loop_nest_for_speed_p): Same.
20707 (get_base_value): Same.
20708 (predicted_by_loop_heuristics_p): Same.
20709 (predict_extra_loop_exits): Same.
20710 (predict_loops): Same.
20711 (predict_paths_for_bb): Same.
20712 (predict_paths_leading_to): Same.
20713 (propagate_freq): Same.
20714 (pass_profile::execute): Same.
20715 * predict.h: Same.
20716 * profile-count.c (profile_count::differs_from_p): Same.
20717 (profile_probability::differs_lot_from_p): Same.
20718 * profile-count.h: Same.
20719 * profile.c (branch_prob): Same.
20720 * regrename.c (free_chain_data): Same.
20721 (mark_conflict): Same.
20722 (create_new_chain): Same.
20723 (merge_overlapping_regs): Same.
20724 (init_rename_info): Same.
20725 (merge_chains): Same.
20726 (regrename_analyze): Same.
20727 (regrename_do_replace): Same.
20728 (scan_rtx_reg): Same.
20729 (record_out_operands): Same.
20730 (build_def_use): Same.
20731 * regrename.h: Same.
20732 * reload.h: Same.
20733 * reload1.c (init_reload): Same.
20734 (maybe_fix_stack_asms): Same.
20735 (copy_reloads): Same.
20736 (count_pseudo): Same.
20737 (count_spilled_pseudo): Same.
20738 (find_reg): Same.
20739 (find_reload_regs): Same.
20740 (select_reload_regs): Same.
20741 (spill_hard_reg): Same.
20742 (fixup_eh_region_note): Same.
20743 (set_reload_reg): Same.
20744 (allocate_reload_reg): Same.
20745 (compute_reload_subreg_offset): Same.
20746 (reload_adjust_reg_for_icode): Same.
20747 (emit_input_reload_insns): Same.
20748 (emit_output_reload_insns): Same.
20749 (do_input_reload): Same.
20750 (inherit_piecemeal_p): Same.
20751 * rtl.h: Same.
20752 * sanopt.c (maybe_get_dominating_check): Same.
20753 (maybe_optimize_ubsan_ptr_ifn): Same.
20754 (can_remove_asan_check): Same.
20755 (maybe_optimize_asan_check_ifn): Same.
20756 (sanopt_optimize_walker): Same.
20757 * sched-deps.c (add_dependence_list): Same.
20758 (chain_to_prev_insn): Same.
20759 (add_insn_mem_dependence): Same.
20760 (create_insn_reg_set): Same.
20761 (maybe_extend_reg_info_p): Same.
20762 (sched_analyze_reg): Same.
20763 (sched_analyze_1): Same.
20764 (get_implicit_reg_pending_clobbers): Same.
20765 (chain_to_prev_insn_p): Same.
20766 (deps_analyze_insn): Same.
20767 (deps_start_bb): Same.
20768 (sched_free_deps): Same.
20769 (init_deps): Same.
20770 (init_deps_reg_last): Same.
20771 (free_deps): Same.
20772 * sched-ebb.c: Same.
20773 * sched-int.h: Same.
20774 * sched-rgn.c (add_branch_dependences): Same.
20775 (concat_insn_mem_list): Same.
20776 (deps_join): Same.
20777 (sched_rgn_compute_dependencies): Same.
20778 * sel-sched-ir.c (reset_target_context): Same.
20779 (copy_deps_context): Same.
20780 (init_id_from_df): Same.
20781 (has_dependence_p): Same.
20782 (change_loops_latches): Same.
20783 (bb_top_order_comparator): Same.
20784 (make_region_from_loop_preheader): Same.
20785 (sel_init_pipelining): Same.
20786 (get_loop_nest_for_rgn): Same.
20787 (make_regions_from_the_rest): Same.
20788 (sel_is_loop_preheader_p): Same.
20789 * sel-sched-ir.h (inner_loop_header_p): Same.
20790 (get_all_loop_exits): Same.
20791 * selftest.h: Same.
20792 * sese.c (sese_build_liveouts): Same.
20793 (sese_insert_phis_for_liveouts): Same.
20794 * sese.h (defined_in_sese_p): Same.
20795 * sreal.c (sreal::stream_out): Same.
20796 * sreal.h: Same.
20797 * streamer-hooks.h: Same.
20798 * target-globals.c (save_target_globals): Same.
20799 * target-globals.h: Same.
20800 * target.def: Same.
20801 * target.h: Same.
20802 * targhooks.c (default_has_ifunc_p): Same.
20803 (default_empty_mask_is_expensive): Same.
20804 (default_init_cost): Same.
20805 * targhooks.h: Same.
20806 * toplev.c: Same.
20807 * tree-affine.c (aff_combination_mult): Same.
20808 (aff_combination_expand): Same.
20809 (aff_combination_constant_multiple_p): Same.
20810 * tree-affine.h: Same.
20811 * tree-cfg.c (build_gimple_cfg): Same.
20812 (replace_loop_annotate_in_block): Same.
20813 (replace_uses_by): Same.
20814 (remove_bb): Same.
20815 (dump_cfg_stats): Same.
20816 (gimple_duplicate_sese_region): Same.
20817 (gimple_duplicate_sese_tail): Same.
20818 (move_block_to_fn): Same.
20819 (replace_block_vars_by_duplicates): Same.
20820 (move_sese_region_to_fn): Same.
20821 (print_loops_bb): Same.
20822 (print_loop): Same.
20823 (print_loops): Same.
20824 (debug): Same.
20825 (debug_loops): Same.
20826 * tree-cfg.h: Same.
20827 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20828 (chrec_fold_multiply_poly_poly): Same.
20829 (chrec_evaluate): Same.
20830 (chrec_component_in_loop_num): Same.
20831 (reset_evolution_in_loop): Same.
20832 (is_multivariate_chrec): Same.
20833 (chrec_contains_symbols): Same.
20834 (nb_vars_in_chrec): Same.
20835 (chrec_convert_1): Same.
20836 (chrec_convert_aggressive): Same.
20837 * tree-chrec.h: Same.
20838 * tree-core.h: Same.
20839 * tree-data-ref.c (dump_data_dependence_relation): Same.
20840 (canonicalize_base_object_address): Same.
20841 (data_ref_compare_tree): Same.
20842 (prune_runtime_alias_test_list): Same.
20843 (get_segment_min_max): Same.
20844 (create_intersect_range_checks): Same.
20845 (conflict_fn_no_dependence): Same.
20846 (object_address_invariant_in_loop_p): Same.
20847 (analyze_ziv_subscript): Same.
20848 (analyze_siv_subscript_cst_affine): Same.
20849 (analyze_miv_subscript): Same.
20850 (analyze_overlapping_iterations): Same.
20851 (build_classic_dist_vector_1): Same.
20852 (add_other_self_distances): Same.
20853 (same_access_functions): Same.
20854 (build_classic_dir_vector): Same.
20855 (subscript_dependence_tester_1): Same.
20856 (subscript_dependence_tester): Same.
20857 (access_functions_are_affine_or_constant_p): Same.
20858 (get_references_in_stmt): Same.
20859 (loop_nest_has_data_refs): Same.
20860 (graphite_find_data_references_in_stmt): Same.
20861 (find_data_references_in_bb): Same.
20862 (get_base_for_alignment): Same.
20863 (find_loop_nest_1): Same.
20864 (find_loop_nest): Same.
20865 * tree-data-ref.h (dr_alignment): Same.
20866 (ddr_dependence_level): Same.
20867 * tree-if-conv.c (fold_build_cond_expr): Same.
20868 (add_to_predicate_list): Same.
20869 (add_to_dst_predicate_list): Same.
20870 (phi_convertible_by_degenerating_args): Same.
20871 (idx_within_array_bound): Same.
20872 (all_preds_critical_p): Same.
20873 (pred_blocks_visited_p): Same.
20874 (predicate_bbs): Same.
20875 (build_region): Same.
20876 (if_convertible_loop_p_1): Same.
20877 (is_cond_scalar_reduction): Same.
20878 (predicate_scalar_phi): Same.
20879 (remove_conditions_and_labels): Same.
20880 (combine_blocks): Same.
20881 (version_loop_for_if_conversion): Same.
20882 (versionable_outer_loop_p): Same.
20883 (ifcvt_local_dce): Same.
20884 (tree_if_conversion): Same.
20885 (pass_if_conversion::gate): Same.
20886 * tree-if-conv.h: Same.
20887 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20888 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20889 (free_rdg): Same.
20890 (stmt_has_scalar_dependences_outside_loop): Same.
20891 (copy_loop_before): Same.
20892 (create_bb_after_loop): Same.
20893 (const_with_all_bytes_same): Same.
20894 (generate_memset_builtin): Same.
20895 (generate_memcpy_builtin): Same.
20896 (destroy_loop): Same.
20897 (build_rdg_partition_for_vertex): Same.
20898 (compute_access_range): Same.
20899 (data_ref_segment_size): Same.
20900 (latch_dominated_by_data_ref): Same.
20901 (compute_alias_check_pairs): Same.
20902 (fuse_memset_builtins): Same.
20903 (finalize_partitions): Same.
20904 (find_seed_stmts_for_distribution): Same.
20905 (prepare_perfect_loop_nest): Same.
20906 * tree-parloops.c (lambda_transform_legal_p): Same.
20907 (loop_parallel_p): Same.
20908 (reduc_stmt_res): Same.
20909 (add_field_for_name): Same.
20910 (create_call_for_reduction_1): Same.
20911 (replace_uses_in_bb_by): Same.
20912 (transform_to_exit_first_loop_alt): Same.
20913 (try_transform_to_exit_first_loop_alt): Same.
20914 (transform_to_exit_first_loop): Same.
20915 (num_phis): Same.
20916 (gen_parallel_loop): Same.
20917 (gather_scalar_reductions): Same.
20918 (get_omp_data_i_param): Same.
20919 (try_create_reduction_list): Same.
20920 (oacc_entry_exit_single_gang): Same.
20921 (parallelize_loops): Same.
20922 * tree-pass.h: Same.
20923 * tree-predcom.c (determine_offset): Same.
20924 (last_always_executed_block): Same.
20925 (split_data_refs_to_components): Same.
20926 (suitable_component_p): Same.
20927 (valid_initializer_p): Same.
20928 (find_looparound_phi): Same.
20929 (insert_looparound_copy): Same.
20930 (add_looparound_copies): Same.
20931 (determine_roots_comp): Same.
20932 (predcom_tmp_var): Same.
20933 (initialize_root_vars): Same.
20934 (initialize_root_vars_store_elim_1): Same.
20935 (initialize_root_vars_store_elim_2): Same.
20936 (finalize_eliminated_stores): Same.
20937 (initialize_root_vars_lm): Same.
20938 (remove_stmt): Same.
20939 (determine_unroll_factor): Same.
20940 (execute_pred_commoning_cbck): Same.
20941 (base_names_in_chain_on): Same.
20942 (combine_chains): Same.
20943 (pcom_stmt_dominates_stmt_p): Same.
20944 (try_combine_chains): Same.
20945 (prepare_initializers_chain_store_elim): Same.
20946 (prepare_initializers_chain): Same.
20947 (prepare_initializers): Same.
20948 (prepare_finalizers_chain): Same.
20949 (prepare_finalizers): Same.
20950 (insert_init_seqs): Same.
20951 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20952 (compute_overall_effect_of_inner_loop): Same.
20953 (add_to_evolution_1): Same.
20954 (add_to_evolution): Same.
20955 (follow_ssa_edge_binary): Same.
20956 (follow_ssa_edge_expr): Same.
20957 (backedge_phi_arg_p): Same.
20958 (follow_ssa_edge_in_condition_phi_branch): Same.
20959 (follow_ssa_edge_in_condition_phi): Same.
20960 (follow_ssa_edge_inner_loop_phi): Same.
20961 (follow_ssa_edge): Same.
20962 (analyze_evolution_in_loop): Same.
20963 (analyze_initial_condition): Same.
20964 (interpret_loop_phi): Same.
20965 (interpret_condition_phi): Same.
20966 (interpret_rhs_expr): Same.
20967 (interpret_expr): Same.
20968 (interpret_gimple_assign): Same.
20969 (analyze_scalar_evolution_1): Same.
20970 (analyze_scalar_evolution): Same.
20971 (analyze_scalar_evolution_for_address_of): Same.
20972 (get_instantiated_value_entry): Same.
20973 (loop_closed_phi_def): Same.
20974 (instantiate_scev_name): Same.
20975 (instantiate_scev_poly): Same.
20976 (instantiate_scev_binary): Same.
20977 (instantiate_scev_convert): Same.
20978 (instantiate_scev_not): Same.
20979 (instantiate_scev_r): Same.
20980 (instantiate_scev): Same.
20981 (resolve_mixers): Same.
20982 (initialize_scalar_evolutions_analyzer): Same.
20983 (scev_reset_htab): Same.
20984 (scev_reset): Same.
20985 (derive_simple_iv_with_niters): Same.
20986 (simple_iv_with_niters): Same.
20987 (expression_expensive_p): Same.
20988 (final_value_replacement_loop): Same.
20989 * tree-scalar-evolution.h (block_before_loop): Same.
20990 * tree-ssa-address.h: Same.
20991 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20992 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20993 (record_edge_info): Same.
20994 * tree-ssa-live.c (var_map_base_fini): Same.
20995 (remove_unused_locals): Same.
20996 * tree-ssa-live.h: Same.
20997 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20998 (pass_ch_vect::execute): Same.
20999 (pass_ch::process_loop_p): Same.
21000 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21001 (movement_possibility): Same.
21002 (outermost_invariant_loop): Same.
21003 (stmt_cost): Same.
21004 (determine_max_movement): Same.
21005 (invariantness_dom_walker::before_dom_children): Same.
21006 (move_computations): Same.
21007 (may_move_till): Same.
21008 (force_move_till_op): Same.
21009 (force_move_till): Same.
21010 (memref_free): Same.
21011 (record_mem_ref_loc): Same.
21012 (set_ref_stored_in_loop): Same.
21013 (mark_ref_stored): Same.
21014 (sort_bbs_in_loop_postorder_cmp): Same.
21015 (sort_locs_in_loop_postorder_cmp): Same.
21016 (analyze_memory_references): Same.
21017 (mem_refs_may_alias_p): Same.
21018 (find_ref_loc_in_loop_cmp): Same.
21019 (rewrite_mem_ref_loc::operator): Same.
21020 (first_mem_ref_loc_1::operator): Same.
21021 (sm_set_flag_if_changed::operator): Same.
21022 (execute_sm_if_changed_flag_set): Same.
21023 (execute_sm): Same.
21024 (hoist_memory_references): Same.
21025 (ref_always_accessed::operator): Same.
21026 (refs_independent_p): Same.
21027 (record_dep_loop): Same.
21028 (ref_indep_loop_p_1): Same.
21029 (ref_indep_loop_p): Same.
21030 (can_sm_ref_p): Same.
21031 (find_refs_for_sm): Same.
21032 (loop_suitable_for_sm): Same.
21033 (store_motion_loop): Same.
21034 (store_motion): Same.
21035 (fill_always_executed_in): Same.
21036 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21037 (estimated_unrolled_size): Same.
21038 (loop_edge_to_cancel): Same.
21039 (remove_exits_and_undefined_stmts): Same.
21040 (remove_redundant_iv_tests): Same.
21041 (unloop_loops): Same.
21042 (estimated_peeled_sequence_size): Same.
21043 (try_peel_loop): Same.
21044 (canonicalize_loop_induction_variables): Same.
21045 (canonicalize_induction_variables): Same.
21046 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21047 (name_info): Same.
21048 (stmt_after_inc_pos): Same.
21049 (contains_abnormal_ssa_name_p): Same.
21050 (niter_for_exit): Same.
21051 (find_bivs): Same.
21052 (mark_bivs): Same.
21053 (find_givs_in_bb): Same.
21054 (find_induction_variables): Same.
21055 (find_interesting_uses_cond): Same.
21056 (outermost_invariant_loop_for_expr): Same.
21057 (idx_find_step): Same.
21058 (add_candidate_1): Same.
21059 (add_iv_candidate_derived_from_uses): Same.
21060 (alloc_use_cost_map): Same.
21061 (prepare_decl_rtl): Same.
21062 (generic_predict_doloop_p): Same.
21063 (computation_cost): Same.
21064 (determine_common_wider_type): Same.
21065 (get_computation_aff_1): Same.
21066 (get_use_type): Same.
21067 (determine_group_iv_cost_address): Same.
21068 (iv_period): Same.
21069 (difference_cannot_overflow_p): Same.
21070 (may_eliminate_iv): Same.
21071 (determine_set_costs): Same.
21072 (cheaper_cost_pair): Same.
21073 (compare_cost_pair): Same.
21074 (iv_ca_cand_for_group): Same.
21075 (iv_ca_recount_cost): Same.
21076 (iv_ca_set_remove_invs): Same.
21077 (iv_ca_set_no_cp): Same.
21078 (iv_ca_set_add_invs): Same.
21079 (iv_ca_set_cp): Same.
21080 (iv_ca_add_group): Same.
21081 (iv_ca_cost): Same.
21082 (iv_ca_compare_deps): Same.
21083 (iv_ca_delta_reverse): Same.
21084 (iv_ca_delta_commit): Same.
21085 (iv_ca_cand_used_p): Same.
21086 (iv_ca_delta_free): Same.
21087 (iv_ca_new): Same.
21088 (iv_ca_free): Same.
21089 (iv_ca_dump): Same.
21090 (iv_ca_extend): Same.
21091 (iv_ca_narrow): Same.
21092 (iv_ca_prune): Same.
21093 (cheaper_cost_with_cand): Same.
21094 (iv_ca_replace): Same.
21095 (try_add_cand_for): Same.
21096 (get_initial_solution): Same.
21097 (try_improve_iv_set): Same.
21098 (find_optimal_iv_set_1): Same.
21099 (create_new_iv): Same.
21100 (rewrite_use_compare): Same.
21101 (remove_unused_ivs): Same.
21102 (determine_scaling_factor): Same.
21103 * tree-ssa-loop-ivopts.h: Same.
21104 * tree-ssa-loop-manip.c (create_iv): Same.
21105 (compute_live_loop_exits): Same.
21106 (add_exit_phi): Same.
21107 (add_exit_phis): Same.
21108 (find_uses_to_rename_use): Same.
21109 (find_uses_to_rename_def): Same.
21110 (find_uses_to_rename_in_loop): Same.
21111 (rewrite_into_loop_closed_ssa): Same.
21112 (check_loop_closed_ssa_bb): Same.
21113 (split_loop_exit_edge): Same.
21114 (ip_end_pos): Same.
21115 (ip_normal_pos): Same.
21116 (copy_phi_node_args): Same.
21117 (gimple_duplicate_loop_to_header_edge): Same.
21118 (can_unroll_loop_p): Same.
21119 (determine_exit_conditions): Same.
21120 (scale_dominated_blocks_in_loop): Same.
21121 (niter_for_unrolled_loop): Same.
21122 (tree_transform_and_unroll_loop): Same.
21123 (rewrite_all_phi_nodes_with_iv): Same.
21124 * tree-ssa-loop-manip.h: Same.
21125 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21126 (number_of_iterations_ne): Same.
21127 (assert_no_overflow_lt): Same.
21128 (assert_loop_rolls_lt): Same.
21129 (number_of_iterations_lt): Same.
21130 (adjust_cond_for_loop_until_wrap): Same.
21131 (tree_simplify_using_condition): Same.
21132 (simplify_using_initial_conditions): Same.
21133 (simplify_using_outer_evolutions): Same.
21134 (loop_only_exit_p): Same.
21135 (ssa_defined_by_minus_one_stmt_p): Same.
21136 (number_of_iterations_popcount): Same.
21137 (number_of_iterations_exit): Same.
21138 (find_loop_niter): Same.
21139 (finite_loop_p): Same.
21140 (chain_of_csts_start): Same.
21141 (get_val_for): Same.
21142 (loop_niter_by_eval): Same.
21143 (derive_constant_upper_bound_ops): Same.
21144 (do_warn_aggressive_loop_optimizations): Same.
21145 (record_estimate): Same.
21146 (get_cst_init_from_scev): Same.
21147 (record_nonwrapping_iv): Same.
21148 (idx_infer_loop_bounds): Same.
21149 (infer_loop_bounds_from_ref): Same.
21150 (infer_loop_bounds_from_array): Same.
21151 (infer_loop_bounds_from_pointer_arith): Same.
21152 (infer_loop_bounds_from_signedness): Same.
21153 (bound_index): Same.
21154 (discover_iteration_bound_by_body_walk): Same.
21155 (maybe_lower_iteration_bound): Same.
21156 (estimate_numbers_of_iterations): Same.
21157 (estimated_loop_iterations): Same.
21158 (estimated_loop_iterations_int): Same.
21159 (max_loop_iterations): Same.
21160 (max_loop_iterations_int): Same.
21161 (likely_max_loop_iterations): Same.
21162 (likely_max_loop_iterations_int): Same.
21163 (estimated_stmt_executions_int): Same.
21164 (max_stmt_executions): Same.
21165 (likely_max_stmt_executions): Same.
21166 (estimated_stmt_executions): Same.
21167 (stmt_dominates_stmt_p): Same.
21168 (nowrap_type_p): Same.
21169 (loop_exits_before_overflow): Same.
21170 (scev_var_range_cant_overflow): Same.
21171 (scev_probably_wraps_p): Same.
21172 (free_numbers_of_iterations_estimates): Same.
21173 * tree-ssa-loop-niter.h: Same.
21174 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21175 (idx_analyze_ref): Same.
21176 (analyze_ref): Same.
21177 (gather_memory_references_ref): Same.
21178 (mark_nontemporal_store): Same.
21179 (emit_mfence_after_loop): Same.
21180 (may_use_storent_in_loop_p): Same.
21181 (mark_nontemporal_stores): Same.
21182 (should_unroll_loop_p): Same.
21183 (volume_of_dist_vector): Same.
21184 (add_subscript_strides): Same.
21185 (self_reuse_distance): Same.
21186 (insn_to_prefetch_ratio_too_small_p): Same.
21187 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21188 (patch_loop_exit): Same.
21189 (find_or_create_guard_phi): Same.
21190 (easy_exit_values): Same.
21191 (connect_loop_phis): Same.
21192 (connect_loops): Same.
21193 (compute_new_first_bound): Same.
21194 (split_loop): Same.
21195 (tree_ssa_split_loops): Same.
21196 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21197 (is_maybe_undefined): Same.
21198 (tree_may_unswitch_on): Same.
21199 (simplify_using_entry_checks): Same.
21200 (tree_unswitch_single_loop): Same.
21201 (tree_unswitch_loop): Same.
21202 (tree_unswitch_outer_loop): Same.
21203 (empty_bb_without_guard_p): Same.
21204 (used_outside_loop_p): Same.
21205 (get_vop_from_header): Same.
21206 (hoist_guard): Same.
21207 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21208 (get_lsm_tmp_name): Same.
21209 * tree-ssa-loop.h: Same.
21210 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21211 (build_and_add_sum): Same.
21212 (no_side_effect_bb): Same.
21213 (get_ops): Same.
21214 (linearize_expr): Same.
21215 (should_break_up_subtract): Same.
21216 (linearize_expr_tree): Same.
21217 * tree-ssa-scopedtables.c: Same.
21218 * tree-ssa-scopedtables.h: Same.
21219 * tree-ssa-structalias.c (condense_visit): Same.
21220 (label_visit): Same.
21221 (dump_pred_graph): Same.
21222 (perform_var_substitution): Same.
21223 (move_complex_constraints): Same.
21224 (remove_preds_and_fake_succs): Same.
21225 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21226 (determine_bb_domination_status): Same.
21227 (duplicate_thread_path): Same.
21228 (thread_through_all_blocks): Same.
21229 * tree-ssa-threadupdate.h: Same.
21230 * tree-streamer-in.c (streamer_read_string_cst): Same.
21231 (input_identifier): Same.
21232 (unpack_ts_type_common_value_fields): Same.
21233 (unpack_ts_block_value_fields): Same.
21234 (unpack_ts_translation_unit_decl_value_fields): Same.
21235 (unpack_ts_omp_clause_value_fields): Same.
21236 (streamer_read_tree_bitfields): Same.
21237 (streamer_alloc_tree): Same.
21238 (lto_input_ts_common_tree_pointers): Same.
21239 (lto_input_ts_vector_tree_pointers): Same.
21240 (lto_input_ts_poly_tree_pointers): Same.
21241 (lto_input_ts_complex_tree_pointers): Same.
21242 (lto_input_ts_decl_minimal_tree_pointers): Same.
21243 (lto_input_ts_decl_common_tree_pointers): Same.
21244 (lto_input_ts_decl_non_common_tree_pointers): Same.
21245 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21246 (lto_input_ts_field_decl_tree_pointers): Same.
21247 (lto_input_ts_function_decl_tree_pointers): Same.
21248 (lto_input_ts_type_common_tree_pointers): Same.
21249 (lto_input_ts_type_non_common_tree_pointers): Same.
21250 (lto_input_ts_list_tree_pointers): Same.
21251 (lto_input_ts_vec_tree_pointers): Same.
21252 (lto_input_ts_exp_tree_pointers): Same.
21253 (lto_input_ts_block_tree_pointers): Same.
21254 (lto_input_ts_binfo_tree_pointers): Same.
21255 (lto_input_ts_constructor_tree_pointers): Same.
21256 (lto_input_ts_omp_clause_tree_pointers): Same.
21257 (streamer_read_tree_body): Same.
21258 * tree-streamer.h: Same.
21259 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21260 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21261 (vect_analyze_possibly_independent_ddr): Same.
21262 (vect_analyze_data_ref_dependence): Same.
21263 (vect_compute_data_ref_alignment): Same.
21264 (vect_enhance_data_refs_alignment): Same.
21265 (vect_analyze_data_ref_access): Same.
21266 (vect_check_gather_scatter): Same.
21267 (vect_find_stmt_data_reference): Same.
21268 (vect_create_addr_base_for_vector_ref): Same.
21269 (vect_setup_realignment): Same.
21270 (vect_supportable_dr_alignment): Same.
21271 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21272 (adjust_phi_and_debug_stmts): Same.
21273 (vect_set_loop_mask): Same.
21274 (add_preheader_seq): Same.
21275 (vect_maybe_permute_loop_masks): Same.
21276 (vect_set_loop_masks_directly): Same.
21277 (vect_set_loop_condition_masked): Same.
21278 (vect_set_loop_condition_unmasked): Same.
21279 (slpeel_duplicate_current_defs_from_edges): Same.
21280 (slpeel_add_loop_guard): Same.
21281 (slpeel_can_duplicate_loop_p): Same.
21282 (create_lcssa_for_virtual_phi): Same.
21283 (iv_phi_p): Same.
21284 (vect_update_ivs_after_vectorizer): Same.
21285 (vect_gen_vector_loop_niters_mult_vf): Same.
21286 (slpeel_update_phi_nodes_for_loops): Same.
21287 (slpeel_update_phi_nodes_for_guard1): Same.
21288 (find_guard_arg): Same.
21289 (slpeel_update_phi_nodes_for_guard2): Same.
21290 (slpeel_update_phi_nodes_for_lcssa): Same.
21291 (vect_do_peeling): Same.
21292 (vect_create_cond_for_alias_checks): Same.
21293 (vect_loop_versioning): Same.
21294 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21295 (vect_inner_phi_in_double_reduction_p): Same.
21296 (vect_analyze_scalar_cycles_1): Same.
21297 (vect_fixup_scalar_cycles_with_patterns): Same.
21298 (vect_get_loop_niters): Same.
21299 (bb_in_loop_p): Same.
21300 (vect_get_max_nscalars_per_iter): Same.
21301 (vect_verify_full_masking): Same.
21302 (vect_compute_single_scalar_iteration_cost): Same.
21303 (vect_analyze_loop_form_1): Same.
21304 (vect_analyze_loop_form): Same.
21305 (vect_active_double_reduction_p): Same.
21306 (vect_analyze_loop_operations): Same.
21307 (neutral_op_for_slp_reduction): Same.
21308 (vect_is_simple_reduction): Same.
21309 (vect_model_reduction_cost): Same.
21310 (get_initial_def_for_reduction): Same.
21311 (get_initial_defs_for_reduction): Same.
21312 (vect_create_epilog_for_reduction): Same.
21313 (vectorize_fold_left_reduction): Same.
21314 (vectorizable_reduction): Same.
21315 (vectorizable_induction): Same.
21316 (vectorizable_live_operation): Same.
21317 (loop_niters_no_overflow): Same.
21318 (vect_get_loop_mask): Same.
21319 (vect_transform_loop_stmt): Same.
21320 (vect_transform_loop): Same.
21321 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21322 (vect_determine_precisions): Same.
21323 (vect_pattern_recog_1): Same.
21324 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21325 * tree-vect-stmts.c (stmt_vectype): Same.
21326 (process_use): Same.
21327 (vect_init_vector_1): Same.
21328 (vect_truncate_gather_scatter_offset): Same.
21329 (get_group_load_store_type): Same.
21330 (vect_build_gather_load_calls): Same.
21331 (vect_get_strided_load_store_ops): Same.
21332 (vectorizable_simd_clone_call): Same.
21333 (vectorizable_store): Same.
21334 (permute_vec_elements): Same.
21335 (vectorizable_load): Same.
21336 (vect_transform_stmt): Same.
21337 (supportable_widening_operation): Same.
21338 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21339 (vec_info::free_stmt_vec_info): Same.
21340 (vect_free_loop_info_assumptions): Same.
21341 (vect_loop_vectorized_call): Same.
21342 (set_uid_loop_bbs): Same.
21343 (vectorize_loops): Same.
21344 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21345 * tree.c (add_tree_to_fld_list): Same.
21346 (fld_type_variant_equal_p): Same.
21347 (fld_decl_context): Same.
21348 (fld_incomplete_type_of): Same.
21349 (free_lang_data_in_binfo): Same.
21350 (need_assembler_name_p): Same.
21351 (find_decls_types_r): Same.
21352 (get_eh_types_for_runtime): Same.
21353 (find_decls_types_in_eh_region): Same.
21354 (find_decls_types_in_node): Same.
21355 (assign_assembler_name_if_needed): Same.
21356 * value-prof.c (stream_out_histogram_value): Same.
21357 * value-prof.h: Same.
21358 * var-tracking.c (use_narrower_mode): Same.
21359 (prepare_call_arguments): Same.
21360 (vt_expand_loc_callback): Same.
21361 (resolve_expansions_pending_recursion): Same.
21362 (vt_expand_loc): Same.
21363 * varasm.c (const_hash_1): Same.
21364 (compare_constant): Same.
21365 (tree_output_constant_def): Same.
21366 (simplify_subtraction): Same.
21367 (get_pool_constant): Same.
21368 (output_constant_pool_2): Same.
21369 (output_constant_pool_1): Same.
21370 (mark_constants_in_pattern): Same.
21371 (mark_constant_pool): Same.
21372 (get_section_anchor): Same.
21373 * vr-values.c (compare_range_with_value): Same.
21374 (vr_values::extract_range_from_phi_node): Same.
21375 * vr-values.h: Same.
21376 * web.c (unionfind_union): Same.
21377 * wide-int.h: Same.
21378
21379 2019-07-09 Martin Sebor <msebor@redhat.com>
21380
21381 PR c++/61339
21382 * align.h: Change class-key from class to struct and vice versa
21383 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21384 * alloc-pool.h: Same.
21385 * asan.c (shadow_mem_size): Same.
21386 * auto-profile.c: Same.
21387 * basic-block.h: Same.
21388 * bitmap.h: Same.
21389 * cfgexpand.c (set_rtl): Same.
21390 (expand_one_stack_var_at): Same.
21391 * cfghooks.h: Same.
21392 * cfgloop.h: Same.
21393 * cgraph.h: Same.
21394 * config/i386/i386.h: Same.
21395 * df-problems.c (df_print_bb_index): Same.
21396 * df-scan.c: Same.
21397 * df.h (df_single_use): Same.
21398 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21399 (layout::annotation_line_showed_range_p): Same.
21400 (get_printed_columns): Same.
21401 (correction::ensure_terminated): Same.
21402 (line_corrections::~line_corrections): Same.
21403 * dojump.h: Same.
21404 * dse.c: Same.
21405 * dump-context.h: Same.
21406 * dumpfile.h: Same.
21407 * dwarf2out.c: Same.
21408 * edit-context.c: Same.
21409 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21410 * flags.h: Same.
21411 * function.c (assign_stack_local): Same.
21412 * function.h: Same.
21413 * gcc.c: Same.
21414 * gcov.c (block_info::block_info): Same.
21415 * genattrtab.c: Same.
21416 * genextract.c: Same.
21417 * genmatch.c (comparison_code_p): Same.
21418 (id_base::id_base): Same.
21419 (decision_tree::print): Same.
21420 * genoutput.c: Same.
21421 * genpreds.c (write_one_predicate_function): Same.
21422 * genrecog.c (validate_pattern): Same.
21423 (find_operand_positions): Same.
21424 (optimize_subroutine_group): Same.
21425 (merge_pattern_transition::merge_pattern_transition): Same.
21426 (merge_pattern_info::merge_pattern_info): Same.
21427 (merge_state_result::merge_state_result): Same.
21428 (merge_into_state): Same.
21429 * gensupport.c: Same.
21430 * gensupport.h: Same.
21431 * ggc-common.c (init_ggc_heuristics): Same.
21432 * ggc-tests.c (test_union): Same.
21433 * gimple-loop-interchange.cc (dump_induction): Same.
21434 * gimple-loop-versioning.cc: Same.
21435 * gimple-match.h (gimple_match_cond::any_else): Same.
21436 * gimple-ssa-backprop.c: Same.
21437 * gimple-ssa-sprintf.c: Same.
21438 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21439 Same.
21440 (store_immediate_info::store_immediate_info): Same.
21441 (merged_store_group::apply_stores): Same.
21442 (get_location_for_stmts): Same.
21443 * gimple-ssa-strength-reduction.c: Same.
21444 * gimple-ssa-warn-alloca.c: Same.
21445 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21446 * godump.c (go_type_decl): Same.
21447 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21448 * hash-map.h: Same.
21449 * hash-set-tests.c (test_set_of_strings): Same.
21450 * hsa-brig.c: Same.
21451 * hsa-common.h: Same.
21452 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21453 * input.c (assert_loceq): Same.
21454 * input.h: Same.
21455 * ipa-cp.c: Same.
21456 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21457 * ipa-fnsummary.h: Same.
21458 * ipa-inline.h: Same.
21459 * ipa-prop.h: Same.
21460 * ipa-split.c (visit_bb): Same.
21461 * ira-int.h (minmax_set_iter_next): Same.
21462 * loop-invariant.c: Same.
21463 * loop-iv.c: Same.
21464 * lra-eliminations.c: Same.
21465 * lra-int.h: Same.
21466 * lra-lives.c (mark_regno_dead): Same.
21467 * lra-remat.c: Same.
21468 * lra-spills.c: Same.
21469 * lto-streamer.h: Same.
21470 * mem-stats.h: Same.
21471 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21472 * omp-low.c (omp_clause_aligned_alignment): Same.
21473 * optabs-query.h (get_vcond_eq_icode): Same.
21474 * optabs.h: Same.
21475 * opts.c (wrap_help): Same.
21476 * poly-int.h: Same.
21477 * predict.c (predict_paths_leading_to_edge): Same.
21478 * pretty-print.h: Same.
21479 * profile-count.h: Same.
21480 * read-md.h: Same.
21481 * read-rtl-function.c: Same.
21482 * ree.c: Same.
21483 * reginfo.c: Same.
21484 * regrename.c: Same.
21485 * regrename.h: Same.
21486 * reload.h: Same.
21487 * rtl-iter.h: Same.
21488 * rtl.h (costs_add_n_insns): Same.
21489 * sanopt.c: Same.
21490 * sched-int.h: Same.
21491 * sel-sched-ir.h: Same.
21492 * selftest.h: Same.
21493 * sese.h (vec_find): Same.
21494 * stmt.c: Same.
21495 * target-globals.h: Same.
21496 * tree-affine.c (aff_combination_find_elt): Same.
21497 * tree-affine.h: Same.
21498 * tree-data-ref.h: Same.
21499 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21500 * tree-predcom.c: Same.
21501 * tree-scalar-evolution.c (find_var_scev_info): Same.
21502 * tree-ssa-alias.h: Same.
21503 * tree-ssa-ccp.c: Same.
21504 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21505 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21506 (rewrite_mem_refs): Same.
21507 (execute_sm_if_changed): Same.
21508 (hoist_memory_references): Same.
21509 * tree-ssa-loop-ivopts.c (operator<=): Same.
21510 * tree-ssa-loop.h: Same.
21511 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21512 * tree-ssa-structalias.c: Same.
21513 * tree-switch-conversion.h (cluster::cluster): Same.
21514 (simple_cluster::simple_cluster): Same.
21515 * tree-vect-patterns.c (type_conversion_p): Same.
21516 * tree-vectorizer.c (dump_stmt_cost): Same.
21517 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21518 * tree.c (protected_set_expr_location): Same.
21519 * tree.h (desired_pro_or_demotion_p): Same.
21520 (fndecl_built_in_p): Same.
21521 * unique-ptr-tests.cc: Same.
21522 * var-tracking.c (delete_variable_part): Same.
21523 * varasm.c (assemble_real): Same.
21524 (tree_output_constant_def): Same.
21525 * vec.c: Same.
21526 * wide-int-bitmask.h: Same.
21527 * wide-int.h (decompose): Same.
21528
21529 2019-07-09 Richard Biener <rguenther@suse.de>
21530
21531 PR tree-optimization/91114
21532 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21533 find a vector type isn't fatal.
21534
21535 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21536
21537 * config/aarch64/aarch64-simd.md
21538 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21539 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21540 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21541 (*aarch64_crypto_aese_fused,
21542 *aarch64_crypto_aesd_fused): Update to new definition.
21543 * config/aarch64/aarch64.c
21544 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21545
21546 2019-07-09 Richard Biener <rguenther@suse.de>
21547
21548 * gimple-match.h (gimple_match_op::resimplify): New.
21549 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21550 gimple_resimplify4, gimple_resimplify5): Remove.
21551 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21552 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21553 Make static.
21554 (gimple_match_op::resimplify): New.
21555 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21556 according to availability. Use gimple_match_op::resimplify.
21557
21558 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21559
21560 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21561
21562 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21563
21564 * config/arm/crypto.md:
21565 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21566 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21567 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21568 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21569 * config/arm/arm.c
21570 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21571 * config/arm/aarch-common-protos.h
21572 (aarch_crypto_can_dual_issue): Remove.
21573 * config/arm/aarch-common.c
21574 (aarch_crypto_can_dual_issue): Likewise.
21575 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21576 * config/arm/cortex-a53.md: Likewise.
21577 * config/arm/cortex-a57.md: Likewise.
21578 * config/arm/iterators.md:
21579 (CRYPTO_BINARY): Redefine.
21580 (CRYPTO_UNARY): Removed.
21581 (CRYPTO_AES, CRYPTO_AESMC): New.
21582
21583 2019-07-09 Richard Biener <rguenther@suse.de>
21584
21585 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21586 (vn_reference_lookup_3): If the main ref has no access path recorded
21587 but orig_ref has use it to do access-path based disambiguation.
21588 (vn_reference_lookup_pieces): Adjust.
21589 (vn_reference_lookup): Pass down original ref if we valueized.
21590
21591 2019-07-09 Martin Liska <mliska@suse.cz>
21592
21593 * doc/extend.texi: Document influence on loop
21594 optimizers.
21595
21596 2019-07-09 Martin Liska <mliska@suse.cz>
21597
21598 * lto-compress.c (lto_normalized_zstd_level): Do not use
21599 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21600 of libzstd. One can use 0 as a default compression level.
21601
21602 2019-07-09 Martin Liska <mliska@suse.cz>
21603
21604 * doc/invoke.texi: Add link from -fprofile-dir option.
21605 Use better wording for 'gcno filename'.
21606
21607 2019-07-08 Martin Sebor <msebor@redhat.com>
21608
21609 PR middle-end/71924
21610 PR middle-end/90549
21611 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21612 comment.
21613 (args_loc_t): New type.
21614 (args_loc_t, locmap_t): same.
21615 (diag_returned_locals): New function.
21616 (is_addr_local): Same.
21617 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21618 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21619 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21620
21621 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21622
21623 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21624 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21625 and casts in offset when different, both through gimple stmts
21626 and through trees. Rewritten using loops to minimize code duplication
21627 for each operand.
21628
21629 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21630
21631 * emit-rtl.c (set_insn_locations): New function moved from...
21632 * function.c (set_insn_locations): ...here.
21633 * ira-emit.c (emit_moves): Propagate location of the first instruction
21634 to the inserted move instructions.
21635 * reg-stack.c (compensate_edge): Set the location if the sequence is
21636 inserted on the edge.
21637 * rtl.h (set_insn_locations): Declare.
21638
21639 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21640
21641 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21642 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21643 .machine string.
21644
21645 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21646
21647 PR rtl-optimization/88233
21648 * common.opt (fsplit-wide-types-early): New option.
21649 * common/config/rs6000/rs6000-common.c
21650 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21651 OPT_LEVELS_ALL.
21652 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21653 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21654 flag_split_wide_types_early.
21655 (pass_data_lower_subreg3): New.
21656 (pass_lower_subreg3): New.
21657 (make_pass_lower_subreg3): New.
21658 * passes.def (pass_lower_subreg2): Move after the loop passes.
21659 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21660 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21661 the pass pipeline; its previous place is taken by ...
21662 (make_pass_lower_subreg3): ... this.
21663
21664 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21665
21666 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21667 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21668
21669 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21670
21671 * config/s390/constraints.md: Add new jsc constraint.
21672 * config/s390/predicates.md: New predicates.
21673 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21674 * config/s390/s390.c (s390_valid_shift_count): New function.
21675 (print_shift_count_operand): Use s390_valid_shift_count.
21676 (print_operand): Likewise.
21677 * config/s390/s390.md: Use new predicate.
21678 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21679 * config/s390/vector.md: Use new predicate.
21680
21681 2019-07-08 Andrew Waterman <andrew@sifive.com>
21682 Jim Wilson <jimw@sifive.com>
21683
21684 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21685 bitsize instead of BITS_PER_WORD.
21686
21687 2019-07-08 Martin Liska <mliska@suse.cz>
21688
21689 * collect2.c (defined): Revert to before r254460.
21690 (scan_prog_file): Revert to before r254460.
21691
21692 2019-07-08 Richard Biener <rguenther@suse.de>
21693
21694 PR tree-optimization/83518
21695 * tree-ssa-sccvn.c: Include splay-tree.h.
21696 (struct pd_range, struct pd_data): New.
21697 (struct vn_walk_cb_data): Add data to track partial definitions.
21698 (vn_walk_cb_data::~vn_walk_cb_data): New.
21699 (vn_walk_cb_data::push_partial_def): New.
21700 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21701 (vn_reference_lookup_2): When partial defs are registered give up.
21702 (vn_reference_lookup_3): Track partial defs for memset and
21703 constructor zeroing and for defs from constants.
21704
21705 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21706
21707 * doc/install.texi (bootstrap-Og): Document.
21708
21709 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21710
21711 * config/riscv/pic.md (*local_pic_load_s<mode>)
21712 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21713 referenced by <mode>, giving...
21714 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21715 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21716 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21717 use <X:MODE> for the mode attribute.
21718
21719 2019-07-07 Jeff Law <law@redhat.com>
21720
21721 PR tree-optimization/91090
21722 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21723 in handling of ranges to simplify switch statements.
21724
21725 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21726
21727 * config/darwin.c (darwin_override_options): Make a final check on PIC
21728 options.
21729
21730 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21731
21732 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21733 on for kernel code.
21734
21735 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21736
21737 PR target/91068
21738 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21739 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21740 instead of matching them to "l" output operands.
21741
21742 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21743
21744 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21745 and check whether addr.reg is nonnull before using it.
21746
21747 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21748
21749 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21750 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21751 variable(s). For conditional lastprivate look through outer
21752 GIMPLE_OMP_SCAN context.
21753 (lower_omp_1): For conditional lastprivate look through outer
21754 GIMPLE_OMP_SCAN context.
21755
21756 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21757 member to combined_into_simd_safelen1.
21758 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21759 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21760 clauses if ctx->combined_into_simd_safelen1 put statements after the
21761 predicate conditionalized block rather than into it.
21762
21763 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21764
21765 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21766 operand 1.
21767 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21768 Make the choice of <mode> explicit, giving...
21769 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21770
21771 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21772
21773 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21774 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21775 of .md attributes.
21776 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21777 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21778 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21779 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21780 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21781 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21782 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21783 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21784 (*avx512f_scatterdi<mode>): Likewise.
21785 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21786
21787 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21788
21789 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21790 specify the mode iterator referenced by <mode>, giving...
21791 (*push1_h8300hs_<QHI:mode>): ...this.
21792
21793 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21794
21795 * config/gcn/gcn-valu.md
21796 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21797 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21798 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21799 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21800 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21801 but using the _exec comparison patterns.
21802 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21803 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21804 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21805 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21806 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21807 but using the _exec comparison patterns.
21808
21809 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21810
21811 * config/arm/sync.md
21812 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21813 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21814 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21815 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21816 <SIDI:cas_cmp_str>.
21817
21818 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21819
21820 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21821 (maybe_lookup_ctx): Add forward declaration.
21822 (omp_find_scan): Likewise. Walk into body of simd if composited
21823 with worksharing loop.
21824 (scan_omp_simd_scan): New function.
21825 (scan_omp_1_stmt): Call it.
21826 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21827 ctx->for_simd_scan_phase.
21828 (lower_rec_input_clauses): Do much less work for inscan reductions
21829 in ctx->for_simd_scan_phase is_simd regions.
21830 (lower_omp_scan): Set is_simd also on simd constructs composited
21831 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21832 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21833 emit their body after in simd constructs composited with worksharing
21834 loop.
21835 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21836
21837 * omp-low.c (omp_find_scan): Make static.
21838 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21839 the second loop, var2 represents the first partial sum and so needs
21840 to go before rprivb[ivar].
21841
21842 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21843
21844 * config/rs6000/rs6000-logue.c: Remove unused code.
21845
21846 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21847
21848 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21849
21850 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21851
21852 PR target/90712
21853 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21854 check with a frame laid out check.
21855
21856 2019-07-05 Richard Biener <rguenther@suse.de>
21857
21858 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21859 when comparing against a store with possibly the same value.
21860
21861 2019-07-05 Richard Biener <rguenther@suse.de>
21862
21863 PR tree-optimization/91091
21864 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21865 (walk_non_aliased_vuses): Likewise.
21866 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21867 (get_continuation_for_phi): New tbaa_p parameter and pass
21868 it down.
21869 (walk_non_aliased_vuses): Likewise.
21870 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21871 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21872 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21873 Likewise.
21874 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21875 (adjust_offsets_for_equal_base_address): New function.
21876 (vn_reference_lookup_3): Use it to catch more base equivalences.
21877 Handle and pass down tbaa_p flag.
21878 (vn_reference_lookup_pieces): Adjust.
21879 (vn_reference_lookup): Remove alias-set altering, instead pass
21880 down false as tbaa_p.
21881
21882 2019-07-05 Richard Biener <rguenther@suse.de>
21883
21884 PR tree-optimization/91091
21885 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21886 accesses can happen with -fno-strict-aliasing.
21887
21888 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21889
21890 * tree-ssa-alias.c (alias_stats): Add
21891 nonoverlapping_component_refs_since_match_p_must_overlap.
21892 (dump_alias_stats): Print it.
21893 (nonoverlapping_component_refs_since_match_p): Add early exit.
21894 (nonoverlapping_component_refs_p): Do not account early exit.
21895
21896 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21897
21898 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21899 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21900 (emit_eh_dispatch): Delete.
21901 (lower_catch): Emit the eh_dispatch manually and set the location of
21902 the first catch statement onto it.
21903 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21904 (lower_eh_dispatch): Propagate location.
21905 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21906 (eliminate_build): Likewise.
21907
21908 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21909
21910 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21911 phi nodes if possible.
21912 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21913 location info on the newly created statement.
21914 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21915 newly created increment if needed.
21916
21917 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21918
21919 PR middle-end/78884
21920 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21921 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21922 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21923 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21924 ctx->add_safelen1 is set.
21925
21926 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21927 GOMP_loop_start at the start of second worksharing loop in a scan.
21928 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21929 worksharing loop in a scan even if there are conditional lastprivates,
21930 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21931
21932 2019-07-04 Jan Hubicka <jh@suse.cz>
21933
21934 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21935 Fix check for match in the ref walk.
21936
21937 2019-07-04 Martin Liska <mliska@suse.cz>
21938
21939 * tree-ssa-loop-niter.c
21940 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21941 (estimate_numbers_of_iterations):
21942 Support __builtin_expect_with_probability for analysis
21943 of # of loop iterations.
21944
21945 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21946
21947 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21948 * except.c: Likewise.
21949 * expr.c (expand_expr_real_1): Reject it.
21950 * gimplify.c (gimplify_expr): Gimplify it, within
21951 TRY_FINALLY_EXPR.
21952 * tree-dump.c (dequeue_and_dump): Dump it.
21953 * tree-pretty-print.c (dump_generic_node): Likewise.
21954 * tree.c (block_may_fallthru): Handle it.
21955 * tree.def (EH_ELSE_EXPR): Introduce it.
21956 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21957 with GIMPLE_EH_ELSE as try/finally/else.
21958
21959 2019-07-04 Richard Biener <rguenther@suse.de>
21960
21961 PR ipa/91062
21962 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21963 parameter whether to disable GC collection.
21964 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21965 honor it.
21966 (execute_all_ipa_transforms): Likewise and pass it down.
21967 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21968 collection from applying IPA transforms.
21969 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21970 from applying IPA transforms.
21971
21972 2019-07-04 Richard Biener <rguenther@suse.de>
21973
21974 PR tree-optimization/90911
21975 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21976 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21977 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21978 scalar_loop_scaling.
21979 (vect_transform_loop): Scale scalar loop profile if needed.
21980 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21981 the loop copy from if-conversion adjust edge probabilities
21982 and scale the vectorized loop body profile, queue the scalar
21983 profile for updating after peeling.
21984
21985 2019-07-04 Jan Hubicka <jh@suse.cz>
21986
21987 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21988 parameters; return early for must-alias.
21989 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21990 outer types match, try nonoverlapping_component_refs
21991 if must-alias is not obvious.
21992 (indirect_refs_may_alias_p): Likewise.
21993 (refs_may_alias_p_2): Likewise.
21994
21995 2019-07-04 Richard Biener <rguenther@suse.de>
21996
21997 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21998 argument.
21999 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22000 globals into...
22001 (struct vn_walk_cb_data): New callback data struct.
22002 (vn_reference_lookup_2): Adjust.
22003 (vn_reference_lookup_3): Likewise.
22004 (vn_reference_lookup_pieces): Likewise.
22005 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22006 (visit_reference_op_load): Adjust.
22007
22008 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22009
22010 PR tree-optimization/91063
22011 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22012 stmt from stmts sequence before calling vect_init_vector_1.
22013 Formatting fix.
22014
22015 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22016
22017 PR target/88833
22018 * fwprop.c (reg_single_def_p): New function.
22019 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22020 (forward_propagate_into): New parameter reg_prop_only
22021 with default value false.
22022 Propagate def's src into loop only if SET_SRC and SET_DEST
22023 of def_set have single definitions.
22024 Likewise if reg_prop_only is set to true.
22025 (fwprop): New param fwprop_addr_p.
22026 Integrate fwprop_addr into fwprop.
22027 (fwprop_addr): Remove.
22028 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22029 to true.
22030 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22031 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22032 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22033
22034 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22035
22036 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22037 in worksharing loop scans.
22038
22039 PR tree-optimization/91074
22040 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22041 temporary.
22042
22043 PR rtl-optimization/90756
22044 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22045 for VECTOR_TYPE_P.
22046
22047 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22048
22049 * config/aarch64/aarch64.md: Remove redundant constraints from
22050 define_expand but keep some patterns untouched if they are
22051 specially selected by TARGET_SECONDARY_RELOAD hook.
22052 * config/aarch64/aarch64-sve.md: Likewise.
22053 * config/aarch64/atomics.md: Remove redundant constraints from
22054 define_expand.
22055 * config/aarch64/aarch64-simd.md: Likewise.
22056
22057 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22058
22059 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22060 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22061 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22062 clauses.
22063 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22064 DARWIN_NOPIE_SPEC.
22065
22066 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22067
22068 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22069 (STARTFILE_SPEC): Split crt3 into a separate spec.
22070 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22071 (DARWIN_CRT2_SPEC): New.
22072 (DARWIN_CRT3_SPEC): New.
22073 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22074 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22075 (DARWIN_CRT3_SPEC): New.
22076
22077 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22078
22079 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22080 Change the RTL attribute "length" from "4" to "*" to allow the
22081 length attribute to be adjusted automatically for prefixed load,
22082 store, and add immediate instructions.
22083 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22084 Likewise.
22085 (extendsi<mode>2, EXTSI iterator): Likewise.
22086 (movsi_internal1): Likewise.
22087 (movsi_from_sf): Likewise.
22088 (movdi_from_sf_zero_ext): Likewise.
22089 (mov<mode>_internal): Likewise.
22090 (movcc_internal1, QHI iterator): Likewise.
22091 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22092 (movsf_from_si): Likewise.
22093 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22094 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22095 (mov<mode>, FMOVE128 iterator): Likewise.
22096 (movdi_internal64): Likewise.
22097 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22098 Likewise.
22099 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22100 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22101 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22102 (vsx_splat_v4sf): Likewise.
22103
22104 2019-07-03 Mark Wielaard <mark@klomp.org>
22105
22106 PR debug/90981
22107 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22108 DW_AT_addr_base if there is actually a .debug_addr section with
22109 addresses.
22110 (output_addr_table): Add DWARF5 table header generation here after
22111 checking there are actually any addresses from...
22112 (dwarf2out_finish): ...here.
22113
22114 2019-07-03 Richard Biener <rguenther@suse.de>
22115
22116 PR middle-end/91069
22117 * match.pd (vec_perm -> bit_insert): Fix element read from
22118 first vector.
22119
22120 2019-07-03 Martin Liska <mliska@suse.cz>
22121
22122 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22123 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22124 condition.
22125 * generic-match-head.c: Include dbgcnt.h.
22126 * gimple-match-head.c: Likewise.
22127
22128 2019-07-03 Martin Liska <mliska@suse.cz>
22129
22130 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22131 (GCOV_COUNTER_V_TOPN): New.
22132 (GCOV_COUNTER_V_INDIR): Use _topn.
22133 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22134 (GCOV_TOPN_VALUES): New.
22135 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22136 (GCOV_TOPN_VALUES_COUNTERS): New.
22137 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22138 * tree-profile.c:
22139 (gimple_init_gcov_profiler): Rename variables from one_value
22140 to topn_values.
22141 (gimple_gen_one_value_profiler): Remove.
22142 (gimple_gen_topn_values_profiler): New function.
22143 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22144 names instead of SINGLE_VALUE.
22145 (stream_out_histogram_value): Likewise.
22146 (stream_in_histogram_value): Likewise.
22147 (get_most_common_single_value): Likewise.
22148 (gimple_divmod_fixed_value_transform): Likewise.
22149 (gimple_stringops_transform): Likewise.
22150 (gimple_divmod_values_to_profile): Likewise.
22151 (gimple_stringops_values_to_profile): Likewise.
22152 (gimple_find_values_to_profile): Likewise.
22153 * value-prof.h (enum hist_type): Rename to TOPN.
22154 (gimple_gen_one_value_profiler): Remove.
22155 (gimple_gen_topn_values_profiler): New.
22156
22157 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22158
22159 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22160 if it has the DW_AT_data_member_location attribute.
22161
22162 2019-07-03 Richard Biener <rguenther@suse.de>
22163
22164 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22165 dumping.
22166
22167 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22168
22169 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22170 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22171 (tlsdesc_small_sve_<mode>): Likewise.
22172
22173 2019-07-03 Martin Liska <mliska@suse.cz>
22174
22175 * Makefile.in: Define ZSTD_LIB.
22176 * common.opt: Adjust compression level
22177 to support also zstd levels.
22178 * config.in: Regenerate.
22179 * configure: Likewise.
22180 * configure.ac: Add --with-zstd and --with-zstd-include options
22181 and detect ZSTD.
22182 * doc/install.texi: Mention zstd dependency.
22183 * gcc.c: Print supported LTO compression algorithms.
22184 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22185 (lto_compression_zstd): Likewise.
22186 (lto_uncompression_zstd): Likewise.
22187 (lto_end_compression): Dispatch in between zlib and zstd.
22188 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22189 (lto_uncompression_zlib): Make it static.
22190 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22191 * lto-section-in.c (lto_get_section_data): Pass info
22192 about used compression.
22193 * lto-streamer-out.c: By default use zstd when possible.
22194 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22195 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22196
22197 2019-07-03 Martin Liska <mliska@suse.cz>
22198
22199 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22200 * lto-section-out.c (lto_destroy_simple_output_block): Never
22201 compress LTO_section_lto section.
22202 * lto-streamer-out.c (produce_asm): Do not set major_version
22203 and minor_version.
22204 (lto_output_toplevel_asms): Likewise.
22205 (produce_lto_section): New function.
22206 (lto_output): Call produce_lto_section.
22207 (lto_write_mode_table): Do not set major_version and
22208 minor_version.
22209 (produce_asm_for_decls): Likewise.
22210 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22211 type.
22212 (struct lto_header): Remove.
22213 (struct lto_section): New struct.
22214 (struct lto_simple_header): Do not inherit from lto_header.
22215 (struct lto_file_decl_data): Add lto_section_header field.
22216
22217 2019-07-03 Martin Liska <mliska@suse.cz>
22218
22219 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22220 dead assignemts.
22221 * reg-stack.c (check_asm_stack_operands): Likewise.
22222 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22223 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22224 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22225 force_expand_binop.
22226
22227 2019-07-03 Martin Liska <mliska@suse.cz>
22228
22229 PR tree-optimization/90892
22230 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22231 in string constants.
22232
22233 2019-07-03 Martin Liska <mliska@suse.cz>
22234
22235 PR middle-end/90899
22236 * multiple_target.c (create_dispatcher_calls): Add to comdat
22237 group only if set for ifunc.
22238
22239 2019-07-03 Martin Liska <mliska@suse.cz>
22240
22241 PR target/88056
22242 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22243 Define local_object_name in outer scope in order to handle
22244 use-after-scope issue.
22245
22246 2019-07-03 Martin Liska <mliska@suse.cz>
22247
22248 * common.opt: Add fprofile-note.
22249 * coverage.c (coverage_init): Append the option
22250 to bbg_file_name.
22251 * doc/invoke.texi: Document -fprofile-note.
22252
22253 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22254
22255 PR tree-optimization/91033
22256 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22257 vect_analyze_data_refs): Add bool * arguments.
22258 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22259 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22260 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22261 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22262 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22263 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22264 vect_analyze_data_refs caller.
22265
22266 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22267 clause.
22268 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22269 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22270 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22271 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22272 OMP_CLAUSE__SCANTEMP_ entry.
22273 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22274 * tree-pretty-print.c (dump_omp_clause): Likewise.
22275 * tree-nested.c (convert_nonlocal_omp_clauses,
22276 convert_local_omp_clauses): Likewise.
22277 * omp-general.h (struct omp_for_data): Add have_scantemp and
22278 have_nonctrl_scantemp members.
22279 * omp-general.c (omp_extract_for_data): Initialize them.
22280 * omp-low.c (struct omp_context): Add scan_exclusive member.
22281 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22282 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22283 ctx->scan_exclusive.
22284 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22285 of !ctx->scan_inclusive.
22286 (lower_rec_input_clauses): Simplify gimplification of dtors using
22287 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22288 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22289 loops. Don't add barrier for reduction_omp_orig_ref if
22290 ctx->scan_??xclusive.
22291 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22292 (lower_omp_scan): Use ctx->scan_exclusive instead
22293 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22294 reductions. Use new_vard != new_var instead of repeated
22295 omp_is_reference calls.
22296 (omp_find_scan, lower_omp_for_scan): New functions.
22297 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22298 inscan reductions.
22299 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22300 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22301 and fd->have_scantemp.
22302
22303 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22304 on worksharing loop propagate it as shared clause to containing
22305 combined parallel.
22306
22307 * omp-expand.c (expand_omp_for_static_nochunk,
22308 expand_omp_for_static_chunk): For nowait worksharing loop with
22309 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22310 at the end.
22311
22312 2019-07-02 qing zhao <qing.zhao@oracle.com>
22313
22314 PR preprocessor/90581
22315 * doc/cppopts.texi: Add document for -fmax-include-depth.
22316 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22317
22318 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22319
22320 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22321 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22322 (mmx_packssdw): Ditto.
22323 (mmx_punpckhbw): Ditto.
22324 (mmx_punpcklbw): Ditto.
22325 (mmx_punpckhwd): Ditto.
22326 (mmx_punpcklwd): Ditto.
22327 (mmx_punpckhdq): Ditto.
22328 (mmx_punpckldq): Ditto.
22329 (*vec_dupv4hi): Ditto.
22330 (*vec_dupv2si): Ditto.
22331 (mmx_pmovmskb): Ditto.
22332 * config/i386/sse.md (sse_cvtpi2ps): Use
22333 TARGET_SSE2 && SSE_REG_P in split condition.
22334 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22335 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22336 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22337 (ssse3_pshufbv8qi3): Ditto.
22338 (ssse3_palignrdi): Ditto.
22339
22340 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22341
22342 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22343 with inlined save and restore.
22344
22345 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22346
22347 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22348 to be inserted on single successor edge of the entry block. Then call
22349 commit_edge_insertions instead of inserting the instructions manually.
22350 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22351 RTL expansion and rebuild jump labels chain.
22352
22353 2019-07-02 Richard Biener <rguenther@suse.de>
22354
22355 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22356 TI_CHREC_KNOWN.
22357 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22358 Define here.
22359 * tree.c (build_common_tree_nodes): Initialize them.
22360 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22361 Make declarations comments.
22362 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22363 chrec_known): Remove definitions.
22364 (initialize_scalar_evolutions_analyzer): Remove.
22365 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22366 * tree-streamer.c (preload_common_nodes): Do not preload
22367 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22368
22369 2019-07-02 Jan Hubicka <jh@suse.cz>
22370
22371 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22372 sanity check.
22373
22374 2019-07-02 Jan Hubicka <jh@suse.cz>
22375
22376 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22377 to ..
22378 (nonoverlapping_component_refs_since_match_p): ... this one;
22379 handle also non-decl bases; return -1 if search gave up.
22380 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22381 nonoverlapping_component_refs_of_decl_p_no_alias to
22382 nonoverlapping_component_refs_since_match_p_may_alias,
22383 nonoverlapping_component_refs_since_match_p_no_alias.
22384 (dump_alias_stats): Update dumping.
22385 (aliasing_matching_component_refs_p): Break out from ...;
22386 dispatch to nonoverlapping_component_refs_for_decl_p
22387 and nonoverlapping_component_refs_since_match_p.
22388 (aliasing_component_refs_p): ... here; call
22389 nonoverlapping_component_refs_p in scenarios where we can not
22390 precisely determine base match.
22391 (decl_refs_may_alias_p): Use
22392 nonoverlapping_component_refs_since_match_p.
22393 (indirect_ref_may_alias_decl_p): Do not call
22394 nonoverlapping_component_refs_p.
22395 (indirect_refs_may_alias_p): Likewise.
22396
22397 2019-07-02 Jan Hubicka <jh@suse.cz>
22398
22399 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22400 to clobber of return value.
22401
22402 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22403
22404 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22405 for is_neon_type instructions that have not already been categorized.
22406
22407 2019-07-02 Richard Biener <rguenther@suse.de>
22408
22409 PR tree-optimization/58483
22410 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22411 for MEM_REF base hashing.
22412 (equal_mem_array_ref_p): Likewise for base comparison.
22413
22414 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22415
22416 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22417 parameterized name.
22418 (signbit<mode>2): Use that name. Simplify.
22419
22420 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22421
22422 PR middle-end/66726
22423 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22424 Tune heuristic from PR71016 to allow MIN / MAX.
22425
22426 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22427
22428 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22429 parameterized name.
22430 (abs<mode>2): Use that name. Simplify.
22431
22432 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22433
22434 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22435 parameterized name.
22436 (neg<mode>2): Use that name. Simplify.
22437
22438 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22439
22440 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22441 name.
22442 (abs<mode>2): Use that name. Simplify.
22443
22444 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22445
22446 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22447 name.
22448 (neg<mode>2): Use that name. Simplify.
22449
22450 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22451
22452 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22453 ("enabled" attribute): Handle sse_noavx isa attribute.
22454 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22455 Use TARGET_SSE && SSE_REGNO_P in split condition.
22456 (*vec_dupv2sf): Ditto.
22457
22458 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22459
22460 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22461 name.
22462 (floatsi<mode>2): Use that name. Simplify.
22463
22464 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22465
22466 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22467 parameterized name.
22468 (extenddf<mode>2_vsx): Make this a parameterized name.
22469 (extenddf<mode>2): Use those names. Simplify.
22470
22471 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22472
22473 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22474 name.
22475 (eh_return): Use that name. Simplify.
22476
22477 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22478
22479 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22480 (doloop_end): Use that name. Simplify.
22481
22482 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22483
22484 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22485 parameterized name.
22486 (indirect_jump): Use that name. Simplify.
22487
22488 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22489
22490 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22491 parameterized name.
22492 (abs<mode>2): Use that name. Simplify.
22493
22494 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22495
22496 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22497 parameterized name.
22498 (fix_trunc<mode>si2): Use that name. Simplify.
22499
22500 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22501
22502 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22503 (allocate_stack): Use that name. Simplify.
22504
22505 2019-07-01 Martin Sebor <msebor@redhat.com>
22506
22507 PR middle-end/90923
22508 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22509 (hash_map::get_or_insert): Same. Reformat comment.
22510 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22511 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22512 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22513 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22514 (hash_table::hash_table (const hash_table&)): Use copy ctor
22515 instead of assignment to copy elements.
22516
22517 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22518 John David Anglin <danglin@gcc.gnu.org>
22519
22520 PR target/90963
22521 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22522 using saved frame pointer.
22523
22524 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22525
22526 PR middle-end/64242
22527 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22528 Add frame clobber and schedule blockage.
22529
22530 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22531
22532 * doc/invoke.texi (Link Options): Further editorial changes to
22533 -flinker-output docs.
22534
22535 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22536
22537 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22538 Load both operands of a PLUS into registers separately.
22539
22540 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22541
22542 * config/s390/vector.md: Fix shift count operand printing.
22543
22544 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22545
22546 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22547
22548 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22549
22550 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22551 Use recog_data to test for an output operand.
22552
22553 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22554
22555 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22556 exclude any others that are disparaged or that are bound to need
22557 a reload or spill.
22558 (ira_get_dup_out_num): Expand comment.
22559
22560 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22561
22562 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22563 constraint string for each operand/alternative combo. Only handle
22564 '%' at the start of constraint strings, and look for it outside
22565 the main loop.
22566
22567 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22568
22569 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22570 alternative_mask instead of HARD_REG_SET to represent a
22571 bitmask of alternatives.
22572 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22573 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22574
22575 2019-07-01 Martin Liska <mliska@suse.cz>
22576
22577 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22578 use () for a constructor call.
22579 (test_applying_fixits_line_out_of_range): Likewise.
22580 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22581 argument.
22582 (free_page): Likewise.
22583
22584 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22585
22586 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22587 parameter names to match usage (no functional change).
22588 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22589
22590 2019-07-01 Richard Biener <rguenther@suse.de>
22591
22592 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22593 pass parameter.
22594 (pass_fre::execute): Honor it.
22595 * passes.def: Adjust pass_fre invocations to allow iterating,
22596 add non-iterating pass_fre before late threading/dom.
22597
22598 2019-07-01 Richard Biener <rguenther@suse.de>
22599
22600 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22601 TARGET_MEM_REF handling to also handle address-taken ones.
22602
22603 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22604
22605 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22606 hardware attributes): Document avx512vp2intersect.
22607
22608 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22609
22610 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22611 (abs<mode>2): New expander.
22612 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22613 Use CODE_FOR_ssse3_absv8qi2.
22614 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22615 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22616
22617 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22618
22619 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22620 to sse, sse_noavx and avx. Update all uses.
22621
22622 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22623
22624 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22625 (*mmx_<plusminus_insn><mode>3): Ditto.
22626 (*mmx_mulv4hi3"): Ditto.
22627 (*mmx_smulv4hi3_highpart): Ditto.
22628 (*mmx_umulv4hi3_highpart): Ditto.
22629 (*mmx_pmaddwd): Ditto.
22630 (*sse2_umulv1siv1di3): Ditto.
22631 (*mmx_<code>v4hi3): Ditto.
22632 (*mmx_<code>v8qi3): Ditto.
22633 (mmx_ashr<mode>3): Ditto.
22634 ("mmx_<shift_insn><mode>3): Ditto.
22635 (*mmx_eq<mode>3): Ditto.
22636 (mmx_gt<mode>3): Ditto.
22637 (mmx_andnot<mode>3): Ditto.
22638 (*mmx_<code><mode>3): Ditto.
22639 (*mmx_pinsrw): Ditto.
22640 (*mmx_pextrw): Ditto.
22641 (mmx_pshufw_1): Ditto.
22642 (*mmx_uavgv8qi3): Ditto.
22643 (*mmx_uavgv4hi3): Ditto.
22644 ("mmx_psadbw): Ditto.
22645 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22646 (sse_cvttps2pi): Ditto.
22647 (ssse3_pmaddubsw): Ditto.
22648 (*ssse3_pmulhrswv4hi3): Ditto.
22649 (ssse3_psign<mode>3): Ditto.
22650
22651 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22652
22653 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22654 adjustment for bit-fields to all aggregate types.
22655
22656 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22657
22658 * config/rs6000/predicates.md (pcrel_address): Use
22659 SYMBOL_REF_LOCAL_P to determine if a label is local.
22660 (pcrel_external_address): New predicate.
22661 (non_prefixed_mem_operand): Delete, predicate not used.
22662 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22663 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22664 addressing.
22665 (SYMBOL_REF_PCREL_P): Likewise.
22666
22667 PR target/91009
22668 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22669 alternative.
22670 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22671 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22672 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22673
22674 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22675
22676 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22677 override on extra_headers.
22678
22679 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22680
22681 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22682 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22683 from warning.
22684 (darwin_driver_init): Likewise.
22685
22686 2019-06-28 Jan Beulich <jbeulich@suse.com>
22687
22688 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22689 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22690 Eliminate redundant alternative.
22691
22692 2019-06-28 Jan Beulich <jbeulich@suse.com>
22693
22694 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22695 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22696 Use vector_operand.
22697
22698 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22699
22700 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22701 having a lower cost regardless of the speed option.
22702
22703 2019-06-28 Jan Beulich <jbeulich@suse.com>
22704
22705 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22706 vector_operand plus, on both alternatives, "Bm" constraint.
22707
22708 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22709
22710 * config/arm/arm.md: Remove redundant constraints from
22711 define_expand but leave reload_inm and reload_outm patterns
22712 untouched since they need special constraints to work.
22713 * config/arm/arm-fixed.md: Remove redundant constraints from
22714 define_expand.
22715 * config/arm/iwmmxt.md: Likewise.
22716 * config/arm/neon.md: Likewise.
22717 * config/arm/sync.md: Likewise.
22718 * config/arm/thumb1.md: Likewise.
22719 * config/arm/vec-common.md: Likewise.
22720
22721 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22722
22723 * doc/install.texi: Document --disable-tm-clone-registry.
22724
22725 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22726
22727 PR c++/91024
22728 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22729 statements.
22730
22731 PR tree-optimization/91010
22732 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22733 return true. Otherwise, don't call operand_equal_p if offset1 or
22734 offset2 is NULL and just return false.
22735
22736 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22737
22738 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22739 user-specified float mode choice for kernel mode code.
22740
22741 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22742
22743 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22744 spec.
22745
22746 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22747
22748 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22749 use longcall for 64b code.
22750
22751 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22752
22753 * builtins.c (get_memory_rtx): Fix comment.
22754 * optabs.def (movmem_optab): Change to cpymem_optab.
22755 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22756 (emit_block_move_hints): Change movmem to cpymem.
22757 * defaults.h: Change movmem to cpymem.
22758 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22759 (default_use_by_pieces_infrastructure_p): Ditto.
22760 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22761 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22762 to cpymem.
22763 * config/aarch64/aarch64.h: Change movmem to cpymem.
22764 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22765 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22766 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22767 movmem to cpymem.
22768 * config/arc/arc-protos.h: Change movmem to cpymem.
22769 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22770 * config/arc/arc.h: Change movmem to cpymem in comment.
22771 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22772 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22773 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22774 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22775 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22776 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22777 * config/avr/avr-protos.h: Change movmem to cpymem.
22778 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22779 avr_out_movmem): Change movmem to cpymem.
22780 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22781 Change movmem to cpymem.
22782 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22783 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22784 Change movmem to cpymem.
22785 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22786 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22787 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22788 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22789 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22790 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22791 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22792 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22793 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22794 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22795 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22796 expand_small_cpymem_or_setmem,
22797 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22798 expand_set_or_cpymem_constant_prologue,
22799 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22800 * config/i386/i386-protos.h: Change movmem to cpymem.
22801 * config/i386/i386.h: Change movmem to cpymem in comment.
22802 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22803 (setmem<mode>): Change expansion function name.
22804 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22805 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22806 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22807 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22808 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22809 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22810 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22811 to cpymem.
22812 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22813 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22814 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22815 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22816 Change movmem to cpymem.
22817 * config/mips/mips.h: Change movmem to cpymem.
22818 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22819 * config/nds32/nds32-memory-manipulation.c
22820 (nds32_expand_movmemsi_loop_unknown_size,
22821 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22822 nds32_expand_movmemsi_unroll,
22823 nds32_expand_movmemsi): Change movmem to cpymem.
22824 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22825 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22826 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22827 (pa_adjust_insn_length): Change call to compute_movmem_length.
22828 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22829 movmemdi, movmemdi_prereload,
22830 movmemdi_postreload): Change movmem to cpymem.
22831 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22832 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22833 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22834 * config/riscv/riscv.h: Change movmem to cpymem.
22835 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22836 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22837 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22838 movmem to cpymem.
22839 * config/s390/s390-protos.h: Change movmem to cpymem.
22840 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22841 s390_expand_insv): Change movmem to cpymem.
22842 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22843 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22844 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22845 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22846 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22847 for nonexistent function.
22848 * config/vax/vax.h: Change movmem to cpymem in comment.
22849 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22850 * config/visium/visium.h: Change movmem to cpymem in comment.
22851 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22852 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22853 * doc/md.texi: Change movmem to cpymem and update description to match.
22854 * doc/rtl.texi: Change movmem to cpymem.
22855 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22856 * doc/tm.texi: Regenerate.
22857
22858 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22859
22860 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22861 -fvariable-expansion-in-unroller by default.
22862 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22863 default for Power.
22864
22865 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22866
22867 Revert
22868 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22869 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22870
22871 * config.gcc(rs6000-*-*): Define target_gtfiles.
22872
22873 2019-06-27 Jan Hubicka <jh@suse.cz>
22874
22875 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22876 (add_type_duplicate): When odr hash is not allocated, to nothing.
22877 (odr_based_tbaa_p): New function.
22878 (set_type_canonical_for_odr_type): New function.
22879 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22880 set_type_canonical_for_odr_type): New.
22881 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22882 ODR based TBAA are not equivalent to non-ODR types.
22883
22884 2019-06-27 Martin Liska <mliska@suse.cz>
22885
22886 PR tree-optimization/90974
22887 PR rtl-optimization/90975
22888 PR rtl-optimization/90976
22889 PR target/91016
22890 PR tree-optimization/91017
22891 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22892 unused tmp.
22893 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22894 initial commit of IRA.
22895 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22896 of op0 and op1.
22897 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22898 Remove unused mode1.
22899 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22900 to new_stmt_info.
22901
22902 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22903
22904 PR target/90991
22905 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22906 instead of register_operand for operands[1], add m to its constraints
22907 if operands[2] uses "C" constraint. Ensure in condition that if
22908 operands[2] is not 0, then operands[1] is not a MEM. For last two
22909 alternatives, use unaligned loads instead of aligned if operands[1] is
22910 misaligned_operand.
22911
22912 2019-06-27 Martin Liska <mliska@suse.cz>
22913
22914 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22915 dead assignments.
22916 * bt-load.c (move_btr_def): Likewise.
22917 * builtins.c (expand_builtin_apply_args_1): Likewise.
22918 (expand_builtin_apply): Likewise.
22919 * cfgexpand.c (expand_asm_stmt): Likewise.
22920 (construct_init_block): Likewise.
22921 * cfghooks.c (verify_flow_info): Likewise.
22922 * cfgloopmanip.c (remove_path): Likewise.
22923 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22924 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22925 * combine.c (simplify_if_then_else): Likewise.
22926 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22927 (choose_basereg): Likewise.
22928 (ix86_expand_prologue): Likewise.
22929 (ix86_preferred_output_reload_class): Likewise.
22930 * cselib.c (cselib_record_sets): Likewise.
22931 * df-scan.c (df_scan_alloc): Likewise.
22932 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22933 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22934 * emit-rtl.c (try_split): Likewise.
22935 * graphite-scop-detection.c (assign_parameter_index_in_region):
22936 Likewise.
22937 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22938 * ira-color.c (setup_profitable_hard_regs): Likewise.
22939 * ira.c (rtx_moveable_p): Likewise.
22940 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22941 * read-rtl.c (read_subst_mapping): Likewise.
22942 * regrename.c (scan_rtx): Likewise.
22943 * reorg.c (fill_slots_from_thread): Likewise.
22944 * tree-inline.c (tree_function_versioning): Likewise.
22945 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22946 * tree-ssa-sink.c (statement_sink_location): Likewise.
22947 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22948 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22949 (vect_create_epilog_for_reduction): Likewise.
22950 * tree.c (build_nonstandard_integer_type): Likewise.
22951
22952 2019-06-27 Richard Biener <rguenther@suse.de>
22953
22954 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22955
22956 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22957
22958 PR tree-optimization/89772
22959 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22960 out-of-bound accesses checking.
22961
22962 2019-06-27 Martin Liska <mliska@suse.cz>
22963
22964 PR tree-optimization/91014
22965 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22966 when LHS is NULL_TREE.
22967
22968 2019-06-27 Martin Liska <mliska@suse.cz>
22969
22970 * symbol-summary.h (traverse): Pass
22971 argument a to the call of callback.
22972 (gt_ggc_mx): Mark arguments as unused.
22973 (gt_pch_nx): Likewise.
22974
22975 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22976
22977 PR target/62147
22978 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22979 finiteness.
22980
22981 2019-06-26 Jeff Law <law@redhat.com>
22982
22983 PR tree-optimization/90883
22984 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22985 (delete_dead_or_redundant_assignment): Likewise.
22986
22987 PR tree-optimization/90883
22988 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22989 * tree-ssa-dse.c: Update various comments to distinguish between
22990 dead and redundant stores.
22991 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22992 (dse_optimize_redundant_stores): New function.
22993 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22994 Distinguish between dead and redundant calls in dump output. All
22995 callers updated.
22996 (delete_dead_or_redundant_assignment): Similarly for assignments.
22997 (dse_optimize_stmt): Handle _CHK variants. For statements which
22998 store 0 into multiple memory locations, try to prove a subsequent
22999 store is redundant.
23000
23001 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23002
23003 PR target/89021
23004 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23005 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23006
23007 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23008
23009 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23010 (branch_islands): New extern.
23011 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23012 * config/rs6000/rs6000.c: .. here.
23013
23014 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23015
23016 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23017 (powerpc*-*-*) ... to here.
23018
23019 2019-06-26 Jeff Law <law@redhat.com>
23020
23021 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23022 memcpy, memmove and memset builtins.
23023 (maybe_trim_memstar_call): Likewise.
23024
23025 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23026
23027 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23028
23029 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23030
23031 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23032
23033 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23034
23035 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23036 declaration.
23037 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23038 "static".
23039 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23040 declaration.
23041
23042 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23043
23044 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23045
23046 2019-06-26 Richard Biener <rguenther@suse.de>
23047
23048 PR ipa/90982
23049 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23050
23051 2019-06-26 Richard Biener <rguenther@suse.de>
23052
23053 * lto-streamer.h (lto_bitmap_alloc): Remove.
23054 (lto_bitmap_free): Likewise.
23055 * lto-streamer.c (lto_bitmap_alloc): Remove.
23056 (lto_bitmap_free): Likewise.
23057 (lto_obstack): Likewise.
23058 (lto_obstack_initialized): Likewise.
23059 * lto-streamer-out.c (lto_output): Use own obstack for local
23060 bitmap, free it consistently.
23061
23062 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23063
23064 PR target/90991
23065 * config/i386/sse.md
23066 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23067 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23068 insns if operands[2] is misaligned_operand.
23069
23070 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23071
23072 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23073 TARGET_POWERPC64.
23074 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23075 to GPR.
23076
23077 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23078
23079 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23080
23081 2019-06-26 Martin Liska <mliska@suse.cz>
23082
23083 PR tree-optimization/90973
23084 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23085 epilogue_cost_vec instead of prologue_cost_vec for
23086 a epilogue cost.
23087
23088 2019-06-26 Martin Liska <mliska@suse.cz>
23089
23090 * bb-reorder.c (connect_better_edge_p): Add missing else
23091 statement in the middle of if-else statements.
23092
23093 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23094 H.J. Lu <hongjiu.lu@intel.com>
23095 Olga Makhotina <olga.makhotina@intel.com>
23096
23097 * common/config/i386/i386-common.c
23098 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23099 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23100 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23101 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23102 (ix86_handle_option): Handle -mavx512vp2intersect.
23103 * config/i386/avx512vp2intersectintrin.h: New.
23104 * config/i386/avx512vp2intersectvlintrin.h: New.
23105 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23106 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23107 AVX512VP2INTERSECT.
23108 * config/i386/i386-builtin-types.def: Add new types.
23109 * config/i386/i386-builtin.def: Add new builtins.
23110 * config/i386/i386-builtins.c: (enum processor_features): Add
23111 F_AVX512VP2INTERSECT.
23112 (static const _isa_names_table isa_names_table): Ditto.
23113 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23114 __AVX512VP2INTERSECT__.
23115 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23116 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23117 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23118 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23119 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23120 * config/i386/i386-options.c (ix86_target_string): Add
23121 -mavx512vp2intersect.
23122 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23123 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23124 P2HImode and P2QImode.
23125 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23126 number for P2QImode and P2HImode.
23127 (ix86_regmode_natural_size): New function.
23128 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23129 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23130 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23131 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23132 * config/i386/i386.opt: Add -mavx512vp2intersect.
23133 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23134 avx512vp2intersectvlintrin.h.
23135 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23136 (define_mode_iterator VI48_AVX512VP2VL): New.
23137 (avx512vp2intersect_2intersect<mode>,
23138 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23139 * config.gcc: Add avx512vp2intersectvlintrin.h and
23140 avx512vp2intersectintrin.h to extra_headers.
23141 * doc/invoke.texi: Document -mavx512vp2intersect.
23142
23143 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23144
23145 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23146
23147 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23148
23149 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23150 savres_routine_syms, savres_routine_name, morestack_ref,
23151 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23152 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23153 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23154 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23155 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23156 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23157 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23158 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23159 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23160 get_stack_clash_protection_probe_interval,
23161 get_stack_clash_protection_guard_size,
23162 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23163 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23164 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23165 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23166 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23167 gen_frame_mem_offset, rs6000_savres_routine_name,
23168 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23169 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23170 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23171 rs6000_global_entry_point_prologue_needed_p,
23172 rs6000_get_separate_components, rs6000_components_for_bb,
23173 rs6000_disqualify_components, rs6000_emit_prologue_components,
23174 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23175 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23176 rs6000_output_savres_externs, rs6000_output_function_prologue,
23177 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23178 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23179 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23180 rs6000_output_function_epilogue, gen_add3_const,
23181 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23182 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23183 to rs6000-logue.c.
23184 (machine_function): Moved to rs6000.h.
23185 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23186 rs6000-internal.h.
23187 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23188 savres_routine_syms, savres_routine_name, morestack_ref,
23189 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23190 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23191 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23192 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23193 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23194 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23195 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23196 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23197 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23198 get_stack_clash_protection_probe_interval,
23199 get_stack_clash_protection_guard_size,
23200 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23201 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23202 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23203 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23204 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23205 gen_frame_mem_offset, rs6000_savres_routine_name,
23206 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23207 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23208 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23209 rs6000_global_entry_point_prologue_needed_p,
23210 rs6000_get_separate_components, rs6000_components_for_bb,
23211 rs6000_disqualify_components, rs6000_emit_prologue_components,
23212 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23213 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23214 rs6000_output_savres_externs, rs6000_output_function_prologue,
23215 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23216 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23217 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23218 rs6000_output_function_epilogue, gen_add3_const,
23219 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23220 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23221 to here from rs6000.c.
23222 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23223 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23224 quad_address_offset_p) Moved to here from rs6000.c.
23225 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23226 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23227 collector.
23228
23229 2019-06-25 Martin Liska <mliska@suse.cz>
23230
23231 * hash-table.c (hashtab_chk_error): Move here from ...
23232 * hash-table.h (hashtab_chk_error): ... here.
23233
23234 2019-06-25 Martin Liska <mliska@suse.cz>
23235
23236 PR tree-optimization/90978
23237 * df-scan.c (df_update_entry_block_defs): Remove dead else
23238 branch.
23239 (df_update_exit_block_uses): Likewise.
23240
23241 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23242 Andrew Stubbs <ams@codesourcery.com>
23243
23244 * config.gcc (thread_file): Set to gcn for AMD GCN.
23245 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23246 (TARGET_EMUTLS_VAR_INIT): New hook.
23247
23248 2019-06-25 Martin Jambor <mjambor@suse.cz>
23249
23250 PR ipa/90939
23251 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23252
23253 2019-06-25 Richard Biener <rguenther@suse.de>
23254
23255 PR tree-optimization/90930
23256 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23257 into parallel form in the last pass instance.
23258
23259 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23260
23261 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23262 (arc_legitimize_pic_address): Simplify and cleanup the function.
23263 (SYMBOLIC_CONST): Remove.
23264 (prepare_pic_move): Likewise.
23265 (prepare_move_operands): Handle complex mov cases here.
23266 (arc_legitimize_address_0): Remove call to
23267 arc_legitimize_pic_address.
23268 (arc_legitimize_address): Remove call to
23269 arc_legitimize_tls_address.
23270 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23271 (movhi_insn): Likewise.
23272
23273 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23274
23275 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23276 PTRDIFF_TYPE.
23277 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23278 format of "__intN" types for UINTMAX_TYPE.
23279 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23280 format of "__intN" types for SIZETYPE.
23281 * tree.c (build_common_tree_nodes): Accept "__intN__"
23282 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23283 * doc/invoke.texi: Document that __intN__ disables pedantic
23284 warnings.
23285
23286 2019-06-25 Jan Hubicka <jh@suse.cz>
23287
23288 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23289 base2_alias_set is non-zero before doing TBAA based disambiguation.
23290
23291 2019-06-25 Martin Liska <mliska@suse.cz>
23292
23293 PR tree-optimization/90973
23294 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23295 of prologue and epilogue.
23296
23297 2019-06-24 Jan Hubicka <jh@suse.cz>
23298
23299 * ipa-utils.h (type_with_linkage_p): Verify that type is
23300 CXX_ODR_P.
23301 (odr_type_p): Remove extra return.
23302 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23303 hash STRING_FLAG only for arrays and integers.
23304 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23305 Update analogously.
23306 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23307 Likewise.
23308 * print-tree.c (print_node): Print cxx-odr-p
23309 and string-flag.
23310 * tree.c (need_assembler_name_p): Also check that type
23311 is CXX_ODR_TYPE_P
23312 (verify_type_variant): Update verification of SRING_FLAG;
23313 also check CXX_ODR_P.
23314 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23315 (TYPE_STRING_FLAG): Use it.
23316 (TYPE_CXX_ODR_P): New macro.
23317 * dwarf2out.c (gen_array_type_die): First check that type
23318 is an array and then test string flag.
23319
23320 2019-06-24 Richard Biener <rguenther@suse.de>
23321
23322 PR tree-optimization/90972
23323 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23324 in common code, dealing with STRING_CST properly.
23325
23326 2019-06-24 Richard Biener <rguenther@suse.de>
23327
23328 PR tree-optimization/90930
23329 PR tree-optimization/90316
23330 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23331 decrement of limit.
23332
23333 2019-06-24 Martin Sebor <msebor@redhat.com>
23334
23335 * tree-pretty-print.h: Remove unnecessary punctuation characters
23336 from a diagnostic.
23337 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23338
23339 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23340
23341 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23342 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23343 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23344
23345 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23346
23347 * config/rs6000/darwin.h: Handle GCC target pragma.
23348
23349 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23350
23351 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23352
23353 2019-06-22 Jeff Law <law@redhat.com>
23354
23355 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23356
23357 2019-06-22 Jan Hubicka <jh@suse.cz>
23358
23359 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23360 give up on bitfields; continue searching for different refs
23361 appearing later.
23362
23363 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23364
23365 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23366 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23367 containing the offset as possible simd lane access. Look through
23368 widening conversion. Move the
23369 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23370
23371 2019-06-21 Richard Biener <rguenther@suse.de>
23372
23373 PR tree-optimization/90930
23374 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23375 flag on new stmts to avoid re-processing them.
23376
23377 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23378
23379 PR c++/90875 - added -Wswitch-outside-range option
23380 * doc/invoke.texi (Wswitch-outside-range): Document.
23381
23382 2019-06-21 Jeff Law <law@redhat.com>
23383
23384 PR tree-optimization/90949
23385 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23386 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23387
23388 2019-06-21 Richard Biener <rguenther@suse.de>
23389
23390 PR debug/90914
23391 * dwarf2out.c (prune_unused_types_walk): Always consider
23392 function-local extern declarations as used.
23393
23394 2019-06-21 Richard Biener <rguenther@suse.de>
23395
23396 PR tree-optimization/90913
23397 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23398 the scalar variant of if-conversion versioning.
23399
23400 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23401
23402 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23403 create another "omp scan inscan exclusive" array if
23404 !ctx->scan_inclusive.
23405 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23406 (lower_omp_scan): Likewise.
23407 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23408 2-bit bitfield for simd_lane_access_p member.
23409 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23410 aux == (void *)-4 as simd lane access.
23411 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23412 comment with permutations to show the canonical permutation order.
23413 (vectorizable_scan_store): Handle exclusive scan.
23414 (vectorizable_store): Call vectorizable_scan_store even for
23415 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23416
23417 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23418 "omp simd array" arrays with one byte elements.
23419
23420 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23421
23422 * config/alpha/alpha.md (@unaligned_store<mode>):
23423 Rename from unaligned_store<mode>.
23424 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23425 * config/alpha/sync.md (@load_locked_<mode>): Rename
23426 from load_locked_<mode>.
23427 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23428 (@atomic_compare_and_swap<mode>_1): Rename
23429 from atomic_compare_and_swap<mode>_1.
23430 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23431 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23432 Use gen_reload_in_aligned and gen_unaligned_store.
23433 (emit_load_locked): Remove.
23434 (emit_store_conditional): Ditto.
23435 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23436 (alpha_split_compare_and_swap): Ditto.
23437 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23438 (alpha_split_compare_and_swap_12): Use gen_load_locked
23439 and gen_store_conditional.
23440 (alpha_split_atomic_exchange): Ditto.
23441 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23442 (alpha_split_atomic_exchange_12): Use gen_load_locked
23443 and gen_store_conditional.
23444
23445 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23446
23447 * config/aarch64/aarch64-errata.h: New file.
23448 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23449 (CA53_ERR_843419_SPEC): Delete.
23450 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23451 * config/aarch64/aarch64-linux.h: Likewise.
23452 * config/aarch64/aarch64-netbsd.h: Likewise.
23453 * config/aarch64/aarch64-freebsd.h: Likewise.
23454
23455 2019-06-20 Marek Polacek <polacek@redhat.com>
23456
23457 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23458
23459 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23460
23461 * config/rs6000/rs6000.md (isa attribute): Add support for
23462 for a future processor.
23463
23464 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23465
23466 PR target/54855
23467 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23468 standard scalar operation pattern for V2DF.
23469 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23470 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23471 (*ieee_<ieee_maxmin><mode>3): Likewise.
23472 (vec_setv2df_0): Likewise.
23473
23474 2019-06-20 Jan Hubicka <jh@suse.cz>
23475
23476 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23477 parameter; it has no use in gimple memory model.
23478 (indirect_ref_may_alias_decl_p): Update.
23479
23480 2019-06-20 Martin Liska <mliska@suse.cz>
23481
23482 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23483 to 10.
23484
23485 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23486
23487 * tree-vect-stmts.c (enum scan_store_kind): New type.
23488 (scan_store_can_perm_p): Change last argument from int * to
23489 vec<enum scan_store_kind> *, record precisely which permutations
23490 need whole vector left shift or that plus VEC_COND_EXPR.
23491 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23492 and additional VEC_COND_EXPR only for those iterations that need it.
23493
23494 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23495
23496 * config.gcc: Fix ARM --with-fpu checking and error message.
23497
23498 2019-06-19 Marek Polacek <polacek@redhat.com>
23499
23500 PR c++/60364 - noreturn after first decl not diagnosed.
23501 * attribs.c (get_attribute_namespace): No longer static.
23502 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23503 attributes.
23504 (attr_noreturn_exclusions): Make it extern.
23505 * attribs.h (get_attribute_namespace): Declare.
23506 * tree-inline.c (function_attribute_inlinable_p): Use
23507 get_attribute_name.
23508
23509 2019-06-19 Martin Sebor <msebor@redhat.com>
23510
23511 PR tree-optimization/90626
23512 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23513
23514 PR tree-optimization/90626
23515 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23516 (handle_builtin_string_cmp): Call it.
23517
23518 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23519
23520 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23521 and DARWIN_NOPIE_SPEC.
23522 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23523 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23524 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23525 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23526 (DARWIN_EXPORT_DYNAMIC): Delete.
23527 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23528 and pie options processing to darwin.h.
23529 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23530
23531 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23532
23533 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23534 in computing the number of options to be moved.
23535
23536 2019-06-19 Maya Rashish <coypu@sdf.org>
23537
23538 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23539 (CLEAR_INSN_CACHE) Use it.
23540
23541 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23542
23543 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23544
23545 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23546
23547 PR middle-end/84521
23548 * builtins.c (expand_builtin_setjmp_setup): Save
23549 hard_frame_pointer_rtx.
23550 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23551 restore fp.
23552 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23553 non-local goto.
23554 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23555 elimination code.
23556 (remove_reg_equal_offset_note): Remove unused function.
23557 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23558 code.
23559 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23560 (arc_builtin_setjmp_frame_value): Remove function.
23561 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23562 (avr_builtin_setjmp_frame_value): Remove function.
23563 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23564 (ix86_builtin_setjmp_frame_value): Remove function.
23565 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23566 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23567 (sparc_builtin_setjmp_frame_value): Remove function.
23568 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23569 (vax_builtin_setjmp_frame_value): Remove function.
23570 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23571 pointer if has_nonlocal_label.
23572
23573 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23574
23575 * doc/md.texi: Document vec_shl_<mode> pattern.
23576 * optabs.def (vec_shl_optab): New optab.
23577 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23578 argument, if == vec_shl_optab, check for left whole vector shift
23579 pattern rather than right shift.
23580 (expand_vec_perm_const): Add vec_shl_optab support.
23581 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23582 in the comment.
23583 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23584 can be handled by vec_shl_optab.
23585 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23586 (check_scan_store): Use it.
23587 (vectorizable_scan_store): If target can't do normal permutations,
23588 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23589 after it.
23590 * config/i386/sse.md (vec_shl_<mode>): New expander.
23591
23592 * omp-low.c (lower_rec_input_clauses): Handle references properly
23593 in inscan clauses.
23594 (lower_omp_scan): Likewise.
23595
23596 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23597
23598 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23599 mem_mode is BLKmode.
23600
23601 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23602
23603 PR target/90922
23604 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23605 pointer adjustment for the case of no callee-saved registers and
23606 stack frame bigger than 128 bytes.
23607
23608 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23609
23610 PR middle-end/90862
23611 * omp-low.c (check_omp_nesting_restrictions): Handle
23612 GF_OMP_TARGET_KIND_OACC_DECLARE.
23613
23614 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23615
23616 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23617 (@add<mode>3_carry): Rename from add<mode>3_carry.
23618 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23619 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23620 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23621 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23622 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23623 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23624 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23625 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23626 (cmpstrnsi): Use gen_cmp_1.
23627 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23628 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23629 (@umonitor_<mode>): Rename from umonitor_<mode>.
23630 * config/i386/i386-expand.c (ix86_expand_copysign):
23631 Use gen_copysign3_const and gen_copysign3_var.
23632 (ix86_expand_xorsign): Use gen_xorsign3_1.
23633 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23634 gen_sub3_carry_ccgz and gen_cmp1.
23635 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23636 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23637 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23638 (ix86_split_lshr): Ditto.
23639 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23640
23641 2019-06-18 Jason Merrill <jason@redhat.com>
23642
23643 * tree.c (build_constructor): Add MEM_STAT_DECL.
23644
23645 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23646
23647 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23648 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23649 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23650 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23651 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23652 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23653 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23654 Use CC_NZC instead of CC.
23655 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23656 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23657 (aarch64_print_operand): Handle E_CC_NZCmode.
23658 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23659 of gen_set_clobber_cc.
23660
23661 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23662
23663 * config/aarch64/aarch64-sve.md: Tabify file.
23664
23665 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23666
23667 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23668 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23669 * config/aarch64/aarch64-sve.md: Use it.
23670
23671 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23672
23673 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23674 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23675 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23676 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23677 (aarch64_expand_sve_vec_cmp_int): Use it.
23678 (aarch64_expand_sve_vec_cmp_float): Likewise.
23679 * config/aarch64/aarch64-sve.md: Likewise throughout.
23680
23681 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23682 Kugan Vivekanandarajah <kuganv@linaro.org>
23683
23684 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23685 (*cond_<optab><mode>_z): Fold into...
23686 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23687 operand 4 can be tied to operand 0 (either inherently or via RA).
23688
23689 2019-06-18 Richard Biener <rguenther@suse.de>
23690
23691 PR debug/90900
23692 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23693 as if optimized away.
23694
23695 2019-06-18 Tom de Vries <tdevries@suse.de>
23696
23697 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23698 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23699 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23700 Rename to ...
23701 (define_insn "@set_softstack_<mode>"): ... this.
23702 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23703 (define_insn "@omp_simt_enter_<mode>"): ... this.
23704 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23705 (define_insn "@omp_simt_exit_<mode>"): ... this.
23706
23707 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23708
23709 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23710 vf parameter. Restore the previous iv step of nscalars_step,
23711 but give it iv_type rather than compare_type. Tweak code order
23712 to match the comments.
23713 (vect_set_loop_condition_masked): Update accordingly.
23714 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23715 for iv_precision. Tweak comment formatting.
23716
23717 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23718
23719 * config/darwin.c: Strip trailing whitespace.
23720
23721 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23722
23723 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23724 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23725
23726 2019-06-18 Martin Jambor <mjambor@suse.cz>
23727
23728 PR ipa/90889
23729 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23730 caller does not have flag_ipa_cp set.
23731
23732 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23733
23734 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23735 from "*fold_left_plus_<mode>", updated operands order.
23736 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23737 * internal-fn.c (mask_fold_left_direct): New define.
23738 (expand_mask_fold_left_optab_fn): Likewise.
23739 (direct_mask_fold_left_optab_supported_p): Likewise.
23740 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23741 * optabs.def (mask_fold_left_plus_optab): New optab.
23742 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23743 masked internal_fn for a reduction ifn.
23744 (vectorize_fold_left_reduction): Add support for masking reductions.
23745
23746 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23747
23748 PR middle-end/80791
23749 * target.def (predict_doloop_p): New hook.
23750 * targhooks.h (default_predict_doloop_p): New declaration.
23751 * targhooks.c (default_predict_doloop_p): New function.
23752 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23753 * doc/tm.texi: Regenerate.
23754 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23755 (TARGET_PREDICT_DOLOOP_P): New macro.
23756 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23757
23758 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23759
23760 * omp-low.c (struct omp_context): Add scan_inclusive field.
23761 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23762 if inclusive scan.
23763 (struct omplow_simd_context): Add lastlane member.
23764 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23765 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23766 1 or 2 argument.
23767 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23768 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23769 (lower_omp_scan): New function.
23770 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23771 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23772 check 3rd argument if present rather than 2nd.
23773 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23774 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23775 2-bit bitfield.
23776 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23777 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23778 than 2nd.
23779 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23780 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23781 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23782 init.
23783 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23784 IFN_GOMP_SIMD_LANE argument.
23785 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23786 encoded ->aux value.
23787 * tree-vect-stmts.c: Include attribs.h.
23788 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23789 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23790 functions.
23791 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23792 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23793
23794 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23795
23796 PR target/62055
23797 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23798 (*nabs<mode>2_1): Ditto.
23799 (nabs sse-reg splitter): New splitter.
23800 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23801
23802 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23803
23804 PR bootstrap/90873.
23805 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23806 TMR index check.
23807
23808 2019-06-17 Tom de Vries <tdevries@suse.de>
23809
23810 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23811 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23812 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23813 ...
23814 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23815 match_operand 0.
23816 (define_insn "omp_simt_enter_insn"): Rename to ...
23817 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23818 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23819 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23820 gen_omp_simt_enter_si.
23821 (define_expand "omp_simt_exit"): New.
23822 (define_insn "omp_simt_exit"): Rename to ...
23823 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23824 match_operand 0.
23825
23826 2019-06-17 Matthew Green <mrg@eterna.com.au>
23827 Maya Rashish <coypu@sdf.org>
23828
23829 * config.gcc (aarch64*-*-netbsd*): New target.
23830 * config/aarch64/aarch64-netbsd.h: New file.
23831 * config/aarch64/t-aarch64-netbsd: Likewise.
23832
23833 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23834
23835 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23836 the access path from base to first VIEW_CONVERT_EXPR or
23837 BIT_FIELD_REF.
23838
23839 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23840
23841 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23842 access path on BIT_FIELD_REFs.
23843
23844 2019-06-17 Martin Liska <mliska@suse.cz>
23845
23846 PR ipa/90874
23847 * ipa-utils.h (odr_type_p): Remove dead code.
23848
23849 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23850
23851 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23852 alternative Solaris 11.4 format.
23853 * configure: Regenerate.
23854
23855 2019-06-17 Tom de Vries <tdevries@suse.de>
23856
23857 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23858 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23859 match_operand 0.
23860 (define_insn "call_value_insn"): Rename to ...
23861 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23862 match_operand 0.
23863 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23864 DI.
23865
23866 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23867
23868 PR middle-end/64242
23869 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23870 frame clobbers and schedule block.
23871 (builtin_longjmp): Likewise.
23872
23873 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23874
23875 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23876 describe how to perform MSPABI compliant 64-bit shift.
23877 * config/msp430/msp430.md (ashldi3): New define_expand.
23878 (ashrdi3): New define_expand.
23879 (lshrdi3): New define_expand.
23880
23881 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23882
23883 * doc/sourcebuild.texi: Document new effective target keyword
23884 longlong64.
23885
23886 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23887
23888 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23889 indirect_refs_may_alias_p): Revert accidental commits.
23890
23891 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23892 at the end of structures.
23893
23894 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23895
23896 * config/darwin.c (machopic_indirect_call_target): Use renamed
23897 darwin_picsymbol_stubs to decide on output.
23898 (darwin_override_options): Handle darwin_picsymbol_stubs.
23899 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23900 (LD64_VERSION): Revise default.
23901 * config/darwin.opt: (mpic-symbol-stubs): New option.
23902 (darwin_picsymbol_stubs): New variable.
23903 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23904 rename to TARGET_MACHO_PICSYM_STUBS.
23905 * config/i386/i386.c (output_pic_addr_const): Likewise.
23906 * config/i386/i386.h Likewise.
23907 * config/rs6000/darwin.h: Likewise.
23908 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23909 darwin_picsymbol_stubs.
23910
23911 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23912
23913 * config/darwin.opt (prebind, noprebind, seglinkedit,
23914 noseglinkedit): Add RejectNegative.
23915
23916 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23917
23918 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23919 in my previous patch.
23920
23921 2019-06-16 Tom de Vries <tdevries@suse.de>
23922
23923 PR tree-optimization/89376
23924 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23925
23926 2019-06-15 Maya Rashish <coypu@sdf.org>
23927
23928 * doc/invoke.texi (Spec Files): Update location of the
23929 Fortran spec file.
23930
23931 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23932
23933 * doc/extend.texi (Common Function Attributes): Clarify
23934 no_sanitize. Fix grammar.
23935
23936 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23937
23938 * tree-ssa-alias.c (alias_stats): Add
23939 nonoverlapping_component_refs_p_may_alias,
23940 nonoverlapping_component_refs_p_no_alias,
23941 nonoverlapping_component_refs_of_decl_p_may_alias,
23942 nonoverlapping_component_refs_of_decl_p_no_alias.
23943 (dump_alias_stats): Dump them.
23944 (nonoverlapping_component_refs_of_decl_p): Add stats.
23945 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23946 ARRAY_REF.
23947
23948 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23949
23950 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23951 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23952 only.
23953 (*anddi3_doubleword): Split before reload. Merge with
23954 anddi->zext pre-reload splitter.
23955 (*andndi3_doubleword): Split before reload.
23956 (*<code>di3_doubleword): Ditto.
23957 (*one_cmpldi2_doubleword): Ditto.
23958
23959 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23960
23961 PR middle-end/90779
23962 * gimplify.c: Include omp-offload.h and context.h.
23963 (gimplify_bind_expr): Add "omp declare target" attributes
23964 to static block scope variables inside of target region or target
23965 functions.
23966
23967 2019-06-15 Tom de Vries <tdevries@suse.de>
23968
23969 PR tree-optimization/90009
23970 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23971 Return NULL if bb contains IFN_UNIQUE.
23972
23973 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23974
23975 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23976 (un): New define_mode_attr.
23977 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23978 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23979 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23980 merge into ...
23981 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23982
23983 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23984
23985 * config/darwin.opt: Add RejectNegative where needed, reorder
23986 and add minimal functional descriptions.
23987
23988 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23989
23990 PR rtl-optimization/90765
23991 * calls.c (update_stack_alignment_for_call): New function.
23992 (expand_call): Call update_stack_alignment_for_call when
23993 outgoing parameter is passed in the stack.
23994 (emit_library_call_value_1): Likewise.
23995 * function.c (locate_and_pad_parm): Don't update
23996 stack_alignment_needed and preferred_stack_boundary.
23997
23998 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23999
24000 PR target/90877
24001 * config/i386/i386-features.c
24002 (dimode_scalar_chain::compute_convert_gain): Replace
24003 mmxsse_to_integer with sse_to_integer.
24004 * config/i386/i386.c (ix86_register_move_cost): Verify that
24005 moves between MMX and non-MMX units require secondary memory.
24006 Correct costs of moves between SSE and integer units.
24007 * config/i386/i386.h (processor_costs): Rename cost of moving
24008 SSE register to integer to sse_to_integer. Rename cost of
24009
24010 2019-06-14 Matt Thomas <matt@3am-software.com>
24011 Matthew Green <mrg@eterna.com.au>
24012 Nick Hudson <skrll@netbsd.org>
24013 Maya Rashish <coypu@sdf.org>
24014 Richard Earnshaw <rearnsha@arm.com>
24015
24016 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24017 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24018 * config/arm/netbsd-eabi.h: New file.
24019 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24020 redefining.
24021 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24022 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24023 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24024 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24025
24026 2019-06-14 Richard Biener <rguenther@suse.de>
24027
24028 * tree-loop-distribution.c (classify_partition): Return
24029 whether a reduction appeared in all partitions and do not
24030 stop builtin detection because of this.
24031 (distribute_loop): Sort a non-builtin partition last if
24032 there's a reduction in all partitions and make sure the
24033 partition prevailing as last is not a builtin.
24034
24035 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24036
24037 PR ipa/90401
24038 * ipa-prop.c (add_to_agg_contents_list): New function.
24039 (clobber_by_agg_contents_list_p): Likewise.
24040 (extract_mem_content): Likewise.
24041 (get_place_in_agg_contents_list): Delete.
24042 (determine_known_aggregate_parts): Renamed from
24043 determine_locally_known_aggregate_parts. New parameter
24044 aa_walk_budget_p.
24045
24046 2019-06-13 Martin Sebor <msebor@redhat.com>
24047
24048 PR tree-optimization/90662
24049 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24050 to the same type.
24051
24052 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24053
24054 PR bootstrap/90873
24055 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24056 dbase is not TARGET_MEM_REF.
24057
24058 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24059
24060 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24061 Update all uses.
24062 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24063 Do not generate DImode extends for 32bit targets.
24064 (and->zext post-reload splitter): Use gen_extend_insn
24065 instead of indirect functions.
24066 (anddi->zext pre-reload splitter): New.
24067 (*zext<mode>_doubleword_and): Remove.
24068 (*zext<mode>_doubleword): Ditto.
24069 (*zextsi_doubleword): Dittto.
24070
24071 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24072
24073 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24074 Use gen_sub3_insn instead of indirect function.
24075 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24076 indirect function.
24077 (ix86_adjust_counter): Ditto.
24078
24079 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24080 Lijia He <helijia@linux.ibm.com>
24081
24082 PR tree-optimization/77820
24083 * tree-ssa-threadedge.c
24084 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24085 function.
24086 (thread_across_edge): Add call to
24087 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24088
24089 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24090
24091 * config/darwin-driver.c (validate_macosx_version_min): New.
24092 (darwin_default_min_version): Cleanup and validate supplied version.
24093 (darwin_driver_init): Likewise and push cleaned version into opts.
24094
24095 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24096
24097 PR tree-optimization/90869
24098 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24099 converts in MEM_REF referencing decl rather than view converts
24100 from decl type to MEM_REF type.
24101
24102 2019-06-13 Richard Biener <rguenther@suse.de>
24103
24104 PR tree-optimization/90856
24105 * tree-sra.c (build_ref_for_model): Only use
24106 build_reconstructed_reference when address-spaces are the same.
24107
24108 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24109
24110 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24111 wrap ei variable name in the declaration in ()s.
24112 (nvptx_single): Actually use mode_label variable. Formatting fix.
24113
24114 2019-06-13 Richard Biener <rguenther@suse.de>
24115
24116 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24117 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24118 also return the condition stmt.
24119 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24120 loop we can version and version that, reusing the loop version
24121 created by if-conversion instead of versioning again.
24122
24123 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24124
24125 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24126 may_contain_p.
24127 * tree-vrp (value_range_base::may_contain_p): Call into
24128 value_inside_range.
24129 (value_inside_range): Make private inside value_range_base class.
24130 Take min/max from *this.
24131 (range_includes_p): Remove.
24132 * tree-vrp.h (value_range_base): Add value_inside_range.
24133 (range_includes_p): Remove.
24134 (range_includes_zero_p): Call may_contain_p.
24135 * vr-values.c (compare_range_with_value): Same.
24136
24137 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24138
24139 * doc/extend.texi (ARC Function Attributes): Update info.
24140
24141 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24142
24143 PR tree-optimization/89713
24144 * doc/invoke.texi (-ffinite-loops): Document new option.
24145 * common.opt (-ffinite-loops): New option.
24146 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24147 IFN_GOACC_LOOP calls as necessary.
24148 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24149 is finite.
24150 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24151 IFN_GOACC_LOOP call is not used.
24152 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24153
24154 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24155
24156 PR target/88838
24157 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24158 compare_type is not with Pmode size, we will create an IV with
24159 Pmode size with truncated use (i.e. converted to the correct type).
24160 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24161 (vect_iv_limit_for_full_masking): New. Factored out of
24162 vect_set_loop_condition_masked.
24163 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24164 (vect_iv_limit_for_full_masking): Declare.
24165
24166 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24167
24168 PR target/88834
24169 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24170 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24171 (get_alias_ptr_type_for_ptr_address): Likewise.
24172 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24173 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24174 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24175 allow_reg_index_p.
24176
24177 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24178
24179 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24180
24181 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24182
24183 * common/config/pru/pru-common.c: New file.
24184 * config.gcc: Add PRU target.
24185 * config/pru/alu-zext.md: New file.
24186 * config/pru/constraints.md: New file.
24187 * config/pru/predicates.md: New file.
24188 * config/pru/pru-opts.h: New file.
24189 * config/pru/pru-passes.c: New file.
24190 * config/pru/pru-pragma.c: New file.
24191 * config/pru/pru-protos.h: New file.
24192 * config/pru/pru.c: New file.
24193 * config/pru/pru.h: New file.
24194 * config/pru/pru.md: New file.
24195 * config/pru/pru.opt: New file.
24196 * config/pru/t-pru: New file.
24197 * doc/extend.texi: Document PRU pragmas.
24198 * doc/invoke.texi: Document PRU-specific options.
24199 * doc/md.texi: Document PRU asm constraints.
24200
24201 2019-06-12 Martin Sebor <msebor@redhat.com>
24202
24203 PR middle-end/90676
24204 * tree-pretty-print.c (dump_mem_ref): New function. Include
24205 MEM_REF type in output when different size than operand.
24206 (dump_generic_node): Move code to dump_mem_ref and call it.
24207
24208 2019-06-12 Martin Sebor <msebor@redhat.com>
24209
24210 PR tree-optimization/90662
24211 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24212 to arrays.
24213
24214 2019-06-12 Tom de Vries <tdevries@suse.de>
24215
24216 PR tree-optimization/90009
24217 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24218
24219 2019-06-12 Martin Liska <mliska@suse.cz>
24220
24221 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24222 the created map.
24223 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24224 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24225 Do not sanitize created maps.
24226
24227 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24228
24229 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24230 value_range::singleton_p.
24231 * tree-vrp.c (value_range_constant_singleton): Remove.
24232 * tree-vrp.h (value_range_constant_singleton): Remove.
24233 * vr-values.c (vr_values::singleton): Use
24234 value_range::singleton_p.
24235
24236 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24237
24238 PR target/90811
24239 * cfgexpand.c (align_local_variable): Add really_expand argument,
24240 don't SET_DECL_ALIGN if it is false.
24241 (add_stack_var): Add really_expand argument, pass it through to
24242 align_local_variable.
24243 (expand_one_stack_var_1): Pass true as really_expand to
24244 align_local_variable.
24245 (expand_one_ssa_partition): Pass true as really_expand to
24246 add_stack_var.
24247 (expand_one_var): Pass really_expand through to add_stack_var.
24248
24249 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24250
24251 * config/arm/iterators.md (VABAL): New int iterator.
24252 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24253 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24254 UNSPEC_VABAL_U values.
24255
24256 2019-06-12 Martin Liska <mliska@suse.cz>
24257
24258 * value-prof.c (stream_out_histogram_value): Only first value
24259 can't be negative.
24260
24261 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24262
24263 PR c/90760
24264 * symtab.c (symtab_node::set_section): Allow being called on aliases
24265 as long as they aren't analyzed yet.
24266
24267 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24268
24269 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24270 to `mips_set_text_contents_type' to indicate whether a
24271 non-debug insn follows.
24272
24273 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24274
24275 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24276 enabling -mpcrel by default.
24277 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24278 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24279 that the test against -mcpu=future is done first. Then test if
24280 -mprefixed-addr is on for -mpcrel.
24281 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24282
24283 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24284
24285 PR target/90811
24286 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24287 instead of and.u%d.
24288
24289 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24290
24291 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24292
24293 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24294
24295 PR c++/90449 - add -Winaccessible-base option.
24296 * doc/invoke.texi (Winaccessible-base): Document.
24297
24298 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24299
24300 PR tree-optimization/62041
24301 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24302
24303 2019-06-11 Jason Merrill <jason@redhat.com>
24304
24305 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24306 * tree.c (get_tree_code_name): Likewise.
24307 * print-tree.c (print_node): Only briefly print a node with an
24308 invalid code.
24309
24310 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24311
24312 PR bootstrap/90819
24313 * trans-mem.c (tm_memopt_compute_available): Add assertion
24314 that blocks is not empty. Formatting fix.
24315
24316 2019-06-11 Martin Liska <mliska@suse.cz>
24317
24318 PR c++/87847
24319 * hash-table.h: Extend create_gcc, add one parameter
24320 that is passed into hash_table::hash_table.
24321
24322 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24323
24324 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24325 New prototype.
24326 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24327 Emit clobber also for non-sse operations.
24328 (ix86_split_fp_absneg_operator): New function.
24329 * config/i386/i386.md (SSEMODEF): New mode iterator.
24330 (ssevecmodef): New mode attribute.
24331 (<code>tf2): Use absneg code iterator.
24332 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24333 Add three-operand AVX alternatives.
24334 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24335 Use absneg code iterator and X87MODEF mode iterator.
24336 (absneg fp_reg non-sse splitter): Call absneg code iterator
24337 and X87MODEF mode iterator.
24338 (absneg general_reg non-sse splitter): Use absneg code iterator
24339 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24340 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24341 code iterator. Add three-operand AVX alternative.
24342 (absneg sse_reg splitter): Use absneg code iterator
24343 and SSEMODEF mode iterator. Handle AVX operands.
24344 (absneg fp_reg splitter): Use absneg code iterator
24345 and MODEF mode iterator.
24346 (absneg general_reg splitter): Merge splitters using MODEF mode
24347 iterator. Use absneg code iterator. Call
24348 ix86_split_fp_absneg_operator.
24349 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24350 Do not enable for non-sse modes before reload.
24351 (CSGNMODE): Remove.
24352 (CSGNVMODE): Ditto.
24353 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24354 ssevecmodef mode attribute instaed of CSGNVMODE.
24355 (copysign<mode>3_const): Ditto.
24356 (copysign<mode>3_var): Ditto.
24357 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24358 Use absneg code iterator. Simplify code using std::swap.
24359 * config/i386/predicates.md (absneg_operator): Remove.
24360
24361 2019-06-10 Martin Sebor <msebor@redhat.com>
24362
24363 * gimple-fold.c (get_range_strlen): Update comment that didn't
24364 make it into r267503 or related commits.
24365
24366 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24367
24368 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24369 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24370
24371 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24372
24373 * tree.def (OMP_SCAN): New tree code.
24374 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24375 OMP_CLAUSE_EXCLUSIVE.
24376 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24377 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24378 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24379 OMP_CLAUSE_{IN,EX}CLUSIVE.
24380 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24381 * tree-nested.c (convert_nonlocal_reference_stmt,
24382 convert_local_reference_stmt, convert_gimple_call): Handle
24383 GIMPLE_OMP_SCAN.
24384 * tree-pretty-print.c (dump_omp_clause): Handle
24385 OMP_CLAUSE_{IN,EX}CLUSIVE.
24386 (dump_generic_node): Handle OMP_SCAN.
24387 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24388 * gimple.h (gomp_scan): New type.
24389 (is_a_helper <gomp_scan *>::test,
24390 is_a_helper <const gomp_scan *>::test): New templates.
24391 (gimple_build_omp_scan): Declare.
24392 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24393 gimple_omp_scan_set_clauses): New inline functions.
24394 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24395 * gimple.c (gimple_build_omp_scan): New function.
24396 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24397 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24398 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24399 GIMPLE_OMP_TASKGROUP.
24400 (dump_gimple_omp_scan): New function.
24401 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24402 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24403 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24404 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24405 (is_gimple_stmt): Handle OMP_SCAN.
24406 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24407 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24408 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24409 mentioned in nested #pragma omp scan. Handle
24410 OMP_CLAUSE_{IN,EX}CLUSIVE.
24411 (gimplify_expr): Handle OMP_SCAN.
24412 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24413 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24414 simd constructs.
24415 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24416 GIMPLE_OMP_SCAN.
24417
24418 2019-06-10 Martin Liska <mliska@suse.cz>
24419
24420 * ipa-cp.c (ignore_edge_p): New function.
24421 (build_toporder_info): Use it.
24422 * ipa-inline.c (ignore_edge_p): New function.
24423 (inline_small_functions): Use it.
24424 * ipa-pure-const.c (ignore_edge_for_nothrow):
24425 Verify opt_for_fn for caller and callee.
24426 (ignore_edge_for_pure_const): Likewise.
24427 * ipa-reference.c (ignore_edge_p): Extend to check
24428 for opt_for_fn.
24429 * ipa-utils.c (searchc): Refactor.
24430 * ipa-utils.h: Fix coding style.
24431
24432 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24433
24434 * config/arc/arc.c (arc_rtx_costs): Update costs.
24435
24436 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24437
24438 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24439 (arc_split_ior): Likewise.
24440 (arc_check_mov_const): Likewise.
24441 (arc_split_mov_const): Likewise.
24442 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24443 (arc_rtx_costs): Replace check Crr with Cax constraint.
24444 (prepare_move_operands): Cleanup, remove unused code.
24445 (arc_split_ior): New function.
24446 (arc_check_ior_const): Likewise.
24447 (arc_split_mov_const): Likewise.
24448 (arc_check_mov_const): Likewise.
24449 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24450 in define_insn_and_split pattern.
24451 (iorsi3): Likewise.
24452 (mulsi3_v2): Add new matching variant.
24453 (andsi3_i): Cleanup pattern.
24454 (rotrsi3_cnt1): Update pattern.
24455 (rotrsi3_cnt8): New pattern.
24456 (ashlsi2_cnt8): Likewise.
24457 (ashlsi2_cnt16): Likewise.
24458 * config/arc/constraints.md (C0p): Update constraint.
24459 (Crr): Remove it.
24460 (C0x): New pattern.
24461 (Cax): New pattern.
24462
24463 2019-06-10 Martin Liska <mliska@suse.cz>
24464
24465 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24466 Update coding style.
24467 (sem_item_optimizer::dump_cong_classes):
24468 Print how many items are in a non-singular class. Improve
24469 coding style.
24470
24471 2019-06-10 Martin Liska <mliska@suse.cz>
24472
24473 * value-prof.c (dump_histogram_value): Change dump format.
24474 (gimple_mod_subtract_transform): Remove legacy comment.
24475
24476 2019-06-10 Martin Liska <mliska@suse.cz>
24477
24478 * value-prof.c (dump_histogram_value): Print histogram values
24479 only if present.
24480
24481 2019-06-10 Martin Liska <mliska@suse.cz>
24482
24483 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24484 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24485 * ipa-profile.c (ipa_profile_generate_summary):
24486 Use get_most_common_single_value.
24487 * tree-profile.c (gimple_init_gcov_profiler):
24488 Instrument with __gcov_one_value_profiler_v2
24489 and __gcov_indirect_call_profiler_v4.
24490 * value-prof.c (dump_histogram_value):
24491 Print all values for HIST_TYPE_SINGLE_VALUE.
24492 (stream_out_histogram_value): Update assert for
24493 N values.
24494 (stream_in_histogram_value): Set number of
24495 counters for HIST_TYPE_SINGLE_VALUE.
24496 (get_most_common_single_value): New.
24497 (gimple_divmod_fixed_value_transform):
24498 Use get_most_common_single_value.
24499 (gimple_ic_transform): Likewise.
24500 (gimple_stringops_transform): Likewise.
24501 (gimple_find_values_to_profile): Set number
24502 of counters for HIST_TYPE_SINGLE_VALUE.
24503 * value-prof.h (get_most_common_single_value): New.
24504
24505 2019-06-10 Martin Liska <mliska@suse.cz>
24506
24507 * hash-map.h: Pass default value to hash_table ctor.
24508 * hash-table.h: Add default value to call of a ctor.
24509
24510 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24511
24512 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24513 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24514
24515 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24516
24517 PR target/90751
24518 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24519 Call pa_output_function_label.
24520 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24521 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24522 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24523 to declaration.
24524 (pa_linux_output_function_prologue): Declare.
24525 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24526 (pa_output_function_label): New.
24527 (pa_output_function_prologue): Revise to use pa_output_function_label.
24528 (pa_linux_output_function_prologue): New.
24529 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24530
24531 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24532
24533 * tree-vrp.h (value_range_base::intersect): New.
24534 (value_range::intersect_helper): Move from here...
24535 (value_range_base::intersect_helper): ...to here.
24536 * tree-vrp.c (value_range::intersect_helper): Rename to...
24537 (value_range_base::intersect_helper): ...this, and rewrite to
24538 return a value instead of modifying THIS in place.
24539 Also, move equivalence handling...
24540 (value_range::intersect): ...here, while calling intersect_helper.
24541 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24542 calling intersect.
24543 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24544 Same.
24545 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24546
24547 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24548
24549 * Makefile.in (genprogerr): Add condmd.
24550 (genprog): Remove it here.
24551
24552 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24553
24554 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24555
24556 2019-06-07 Richard Biener <rguenther@suse.de>
24557
24558 PR debug/90574
24559 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24560 that appear after user labels.
24561
24562 2019-06-07 Martin Liska <mliska@suse.cz>
24563
24564 * cselib.c (cselib_init): Disable hash table
24565 sanitization.
24566 * hash-set.h: Pass new default argument to m_table.
24567 * hash-table.c: Add global variable with hash table
24568 sanitization limit.
24569 * hash-table.h (Allocator>::hash_table): Add new argument
24570 to ctor.
24571 (hashtab_chk_error): New.
24572 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24573 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24574 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24575
24576 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24577
24578 * common.opt (flto-odr-type-merging): Ignore.
24579 * invoke.texi (-flto-odr-type-merging): Remove.
24580 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24581 (can_be_vtable_hashed_p): Remove.
24582 (hash_odr_vtable): Remove.
24583 (odr_vtable_hasher::hash): Remove.
24584 (types_same_for_odr): Remove.
24585 (types_odr_comparable): Remove.
24586 (odr_vtable_hasher::equal): Remove.
24587 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24588 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24589 (get_odr_type): Do not use vtable hash.
24590 (dump_odr_type): Remove commented out code.
24591 (build_type_inheritance_graph): Do not allocate vtable hash.
24592 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24593 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24594 (odr_type_p): Likewise.
24595 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24596 test.
24597
24598 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24599
24600 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24601 immediately after same_types_for_tbaa_p returns -1 and continue
24602 looking for possible exact match; if matching types are arrays
24603 watch for partial overlaps.
24604 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24605 (indirect_refs_may_alias_p): Do type based disambiguation first;
24606 update comment.
24607
24608 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24609
24610 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24611
24612 2019-06-07 Martin Liska <mliska@suse.cz>
24613
24614 * doc/invoke.texi: Remove param.
24615 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24616 Remove.
24617 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24618 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24619 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24620 * profile.c (instrument_values): Remove
24621 HIST_TYPE_INDIR_CALL_TOPN.
24622 * tree-profile.c (init_ic_make_global_vars):
24623 Always build __gcov_indirect_call only.
24624 (gimple_init_gcov_profiler): Remove usage
24625 of PARAM_INDIR_CALL_TOPN_PROFILE.
24626 (gimple_gen_ic_profiler): Likewise.
24627 * value-prof.c (dump_histogram_value): Likewise.
24628 (stream_in_histogram_value): Likewise.
24629 (gimple_indirect_call_to_profile): Likewise.
24630 (gimple_find_values_to_profile): Likewise.
24631 * value-prof.h (enum hist_type): Likewise.
24632
24633 2019-06-07 Martin Liska <mliska@suse.cz>
24634
24635 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24636 function.
24637
24638 2019-06-07 Martin Liska <mliska@suse.cz>
24639
24640 PR tree-optimization/78902
24641 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24642 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24643 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24644 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24645 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24646 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24647 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24648 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24649 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24650 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24651 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24652 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24653 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24654 New.
24655 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24656 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24657 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24658 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24659 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24660 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24661 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24662 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24663 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24664 warn_unused_result attribute.
24665 (BUILT_IN_STRDUP): Likewise.
24666 (BUILT_IN_STRNDUP): Likewise.
24667 (BUILT_IN_ALLOCA): Likewise.
24668 (BUILT_IN_CALLOC): Likewise.
24669 (BUILT_IN_MALLOC): Likewise.
24670 (BUILT_IN_REALLOC): Likewise.
24671
24672 2019-06-06 Jim Wilson <jimw@sifive.com>
24673
24674 PR target/89955
24675 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24676 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24677 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24678
24679 2019-06-06 Martin Sebor <msebor@redhat.com>
24680
24681 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24682 (handle_builtin_malloc): Remove trailing spaces.
24683 (handle_builtin_memset): Same.
24684 (handle_builtin_memcmp): Same.
24685 (compute_string_length): Same.
24686 (determine_min_objsize): Same.
24687 (handle_builtin_string_cmp): Same.
24688 (handle_char_store): Same. Break up excessively long line.
24689
24690 2019-06-06 Martin Jambor <mjambor@suse.cz>
24691
24692 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24693 check.
24694
24695 2019-06-06 Martin Jambor <mjambor@suse.cz>
24696
24697 * tree-sra.c (struct access): New field grp_same_access_path.
24698 (dump_access): Dump it.
24699 (build_reconstructed_reference): New function.
24700 (build_ref_for_model): Use it if possible.
24701 (path_comparable_for_same_access): New function.
24702 (same_access_path_p): Likewise.
24703 (sort_and_splice_var_accesses): Set the new flag.
24704 (analyze_access_subtree): Likewise.
24705 (propagate_subaccesses_across_link): Propagate zero value of the new
24706 flag down the access tree.
24707
24708 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24709
24710 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24711 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24712 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24713 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24714 Add gfx906.
24715
24716 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24717
24718 PR tree-optimization/90332
24719 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24720 Handle VALS containing two vectors.
24721 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24722 to...
24723 (@aarch64_combinez<mode>): ... This.
24724 (*aarch64_combinez_be<mode>): Rename to...
24725 (@aarch64_combinez_be<mode>): ... This.
24726 (vec_init<mode><Vhalf>): New define_expand.
24727 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24728
24729 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24730
24731 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24732 library functions only when not optimizing for size.
24733 (ashlsi3): Likewise.
24734 (ashrhi3): Likewise.
24735 (ashrsi3): Likewise.
24736 (lshrhi3): Likewise.
24737 (lshrsi3): Likewise.
24738
24739 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24740
24741 PR rtl-optimization/88751
24742 * ira.c (ira): Use the number of the actually referenced registers
24743 when calculating the threshold.
24744
24745 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24746
24747 * configure: Regenerate.
24748
24749 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24750
24751 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24752 register if it is in memory, so the shift can be emulated with a rotate
24753 instruction.
24754 (ashrhi3): Likewise.
24755 (lshrhi3): Likewise.
24756
24757 2019-06-06 Martin Liska <mliska@suse.cz>
24758
24759 PR tree-optimization/87954
24760 * match.pd: Simplify mult where both arguments are 0 or 1.
24761
24762 2019-06-06 Richard Biener <rguenther@suse.de>
24763
24764 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24765 put equivalences on UNDEFINED ranges.
24766 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24767 Make sure to drop defs of stmts added during simplification
24768 to VARYING.
24769
24770 2019-06-06 Richard Biener <rguenther@suse.de>
24771
24772 * tree-ssa-structalias.c: Include tree-cfg.h.
24773 (make_heapvar): Do not make heap vars artificial.
24774 (find_func_aliases_for_builtin_call): Handle stack allocation
24775 functions.
24776 (find_func_aliases): Delay processing of simple enough returns
24777 in non-IPA mode.
24778 (set_uids_in_ptset): Adjust.
24779 (find_what_var_points_to): Likewise.
24780 (solve_constraints): Do not dump points-to sets here.
24781 (compute_points_to_sets): Post-process return statements,
24782 amending the escaped solution. Dump points-to sets afterwards.
24783 (ipa_pta_execute): Dump points-to sets.
24784
24785 2019-06-06 Martin Liska <mliska@suse.cz>
24786
24787 PR web/87933
24788 * doc/install.texi: Fix HTML headers and
24789 titles for 'Installing GCC' pages.
24790
24791 2019-06-06 Martin Liska <mliska@suse.cz>
24792
24793 * ipa-icf-gimple.h (dump_message_1): Remove.
24794 (dump_message): Likewise.
24795 (return_false_with_message_1): Print also file.
24796 (return_false_with_msg): Likewise.
24797 (return_with_result): Likewise.
24798 (return_with_debug): Likewise.
24799 * ipa-icf.c (sem_function::equals_private): Remove call
24800 to dump_message.
24801
24802 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24803
24804 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24805 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24806 memory operand for it.
24807 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24808
24809 2019-06-05 Martin Sebor <msebor@redhat.com>
24810
24811 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24812 Adjust quoting and hyphenation.
24813 * convert.c (convert_to_real_1): Same.
24814 * gcc.c (driver_wrong_lang_callback): Same.
24815 (driver::handle_unrecognized_options): Same.
24816 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24817 * opts-common.c (cmdline_handle_error): Same.
24818 (read_cmdline_option): Same.
24819 * opts-global.c (complain_wrong_lang): Same.
24820 (print_ignored_options): Same.
24821 (handle_common_deferred_options): Same.
24822 * pretty-print.h: Same.
24823 * print-rtl.c (debug_bb_n_slim): Same.
24824 * sched-rgn.c (make_pass_sched_fusion): Same.
24825 * tree-cfg.c (verify_gimple_assign_unary): Same.
24826 (verify_gimple_label): Same.
24827 * tree-ssa-operands.c (verify_ssa_operands): Same.
24828 * varasm.c (do_assemble_alias): Same.
24829 (assemble_alias): Same.
24830
24831 2019-06-05 Richard Henderson <rth@twiddle.net>
24832
24833 * config/alpha/alpha.c (direct_return): Move down after
24834 struct machine_function definition; use saved frame_size;
24835 return bool.
24836 (struct machine_function): Add sa_mask, sa_size, frame_size.
24837 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24838 (alpha_compute_frame_layout): ... new function.
24839 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24840 (alpha_initial_elimination_offset): Use saved sa_size.
24841 (alpha_vms_initial_elimination_offset): Likewise.
24842 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24843 (alpha_expand_prologue): Use saved frame data. Merge integer
24844 and fp register save loops.
24845 (alpha_expand_epilogue): Likewise.
24846 (alpha_start_function): Use saved frame data.
24847 * config/alpha/alpha-protos.h (direct_return): Update.
24848 (alpha_sa_size): Remove.
24849
24850 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24851
24852 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24853 multiplication by a power-of-two value.
24854 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24855 and turn the modulo operation into a masking operation.
24856
24857 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24858
24859 PR debug/90733
24860 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24861 with VOIDmode inner operands.
24862
24863 2019-06-05 Richard Biener <rguenther@suse.de>
24864
24865 PR middle-end/90726
24866 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24867 turn an expression graph into a tree.
24868
24869 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24870
24871 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24872 member.
24873 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24874 treat it like explicit monotonic schedule modifier.
24875 (expand_omp_for): Initialize has_lastprivate_conditional.
24876 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24877 schedule modifier.
24878
24879 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24880 references, lookup in in hash map MEM_REF operand instead of the
24881 MEM_REF itself.
24882 (lower_omp_1): When looking for lastprivate conditional assignments,
24883 handle MEM_REFs with REFERENCE_TYPE operands.
24884
24885 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24886 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24887 and references a VLA. Handle references to non-VLAs if is_simd
24888 all privatization clauses like reductions.
24889 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24890 If omp_is_reference, use always omp simd arrays and set
24891 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24892 fails, emit reference initialization.
24893
24894 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24895
24896 PR target/89803
24897 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24898 _mm_mask_fpclass_sd_mask): New intrinsics.
24899 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24900 * config/i386/i386-builtin.def
24901 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24902 New builtins.
24903 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24904 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24905 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24906 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24907 case QI_FTYPE_V2SF_INT): Ditto.
24908 * config/i386/sse.md
24909 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24910 Extended to insnstructions with mask operands.
24911
24912 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24913
24914 * config/rs6000/constraints.md (define_register_constraint "wp"):
24915 Delete.
24916 (define_register_constraint "wq"): Delete.
24917 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24918 (rs6000_init_hard_regno_mode_ok): Adjust.
24919 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24920 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24921 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24922 (define_mode_attr VSa): Delete.
24923 (define_mode_attr VSisa): New.
24924 (rest of file): Adjust.
24925 * doc/md.texi (Machine Constraints): Adjust.
24926
24927 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24928
24929 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24930 (define_attr "enabled"): Handle those new isa values.
24931
24932 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24933
24934 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24935 (define_mode_attr VSr5): Delete.
24936 (define_mode_attr VStype_sqrt): Delete.
24937 (define_mode_iterator VSX_SPDP): Delete.
24938 (define_mode_attr VS_spdp_res): Delete.
24939 (define_mode_attr VS_spdp_insn): Delete.
24940 (define_mode_attr VS_spdp_type): Delete.
24941 (*vsx_sqrt<mode>2): Adjust.
24942 (vsx_<VS_spdp_insn>): Delete, split to...
24943 (vsx_xscvdpsp): ... this. New. And...
24944 (vsx_xvcvspdp): ... this. New. And...
24945 (vsx_xvcvdpsp): ... this. New.
24946
24947 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24948
24949 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24950 and V2DF.
24951 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24952 (rest of file): Adjust.
24953
24954 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24955
24956 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24957 (vsx_extract_<mode>_var): Ditto.
24958
24959 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24960
24961 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24962 with just "wa".
24963
24964 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24965
24966 * config/rs6000/constraints.md (define_register_constraint "ww"):
24967 Delete.
24968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24969 (rs6000_init_hard_regno_mode_ok): Adjust.
24970 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24971 RS6000_CONSTRAINT_ww.
24972 * config/rs6000/rs6000.md: Adjust.
24973 * config/rs6000/vsx.md: Adjust.
24974 * doc/md.texi (Machine Constraints): Adjust.
24975
24976 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24977
24978 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24979 (define_mode_attr sd): New.
24980 (define_mode_attr s): New.
24981 (define_mode_attr Ftrad): Delete.
24982 (define_mode_attr Fvsx): Delete.
24983 (define_mode_attr Fs): Delete.
24984 (rest of file): Use the new mode attributes.
24985 * config.rs6000/vsx.md: Use the new mode attributes.
24986
24987 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24988
24989 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24990 with just "wa".
24991
24992 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24993
24994 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24995 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24996 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24997
24998 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24999
25000 PR target/78263
25001 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25002 C++ with strict ANSI requirements.
25003
25004 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25005
25006 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25007 computations when step is 1.
25008
25009 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25010
25011 * config/rs6000/constraints.md (define_register_constraint "wf"):
25012 Delete.
25013 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25014 (rs6000_init_hard_regno_mode_ok): Adjust.
25015 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25016 RS6000_CONSTRAINT_wf.
25017 * config/rs6000/rs6000.md: Adjust.
25018 * config/rs6000/vsx.md: Adjust.
25019 * doc/md.texi (Machine Constraints): Adjust.
25020
25021 2019-06-04 Andrew Pinski <apinski@marvell.com>
25022
25023 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25024 Fix ILP32 value.
25025
25026 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25027
25028 * config/rs6000/constraints.md (define_register_constraint "wd"):
25029 Delete.
25030 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25031 (rs6000_init_hard_regno_mode_ok): Adjust.
25032 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25033 RS6000_CONSTRAINT_wd.
25034 * config/rs6000/rs6000.md: Adjust.
25035 * config/rs6000/vsx.md: Adjust.
25036 * doc/md.texi (Machine Constraints): Adjust.
25037
25038 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25039
25040 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25041 (rest of file): Adjust.
25042
25043 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25044
25045 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25046 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25047 (vsx_splat_<mode>_reg): Adjust.
25048
25049 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25050
25051 * config/rs6000/constraints.md (define_register_constraint "ws"):
25052 Delete.
25053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25054 (rs6000_init_hard_regno_mode_ok): Adjust.
25055 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25056 RS6000_CONSTRAINT_ws.
25057 * config/rs6000/rs6000.md: Adjust.
25058 * config/rs6000/vsx.md: Adjust.
25059 * doc/md.texi (Machine Constraints): Adjust.
25060
25061 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25062
25063 * config/rs6000/constraints.md (define_register_constraint "wv"):
25064 Delete.
25065 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25066 (rs6000_init_hard_regno_mode_ok): Adjust.
25067 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25068 RS6000_CONSTRAINT_wv.
25069 * config/rs6000/rs6000.md: Adjust.
25070 * config/rs6000/vsx.md: Adjust.
25071 * doc/md.texi (Machine Constraints): Adjust.
25072
25073 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25074
25075 * config/rs6000/constraints.md (define_register_constraint "wi"):
25076 Delete.
25077 (define_register_constraint "wt"): Delete.
25078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25079 (rs6000_init_hard_regno_mode_ok): Adjust.
25080 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25081 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25082 * config/rs6000/rs6000.md: Adjust.
25083 * config/rs6000/vsx.md: Adjust.
25084 * doc/md.texi (Machine Constraints): Adjust.
25085
25086 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25087
25088 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25089 const.
25090 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25091 default_elf_asm_output_external.
25092
25093 2019-06-04 Martin Liska <mliska@suse.cz>
25094
25095 * ipa-icf.c (INCLUDE_LIST): Remove.
25096 (sem_item_optimizer::execute): Remove call to init_wpa.
25097 * ipa-icf.h (init_wpa): Remove.
25098
25099 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25100
25101 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25102 conditional on combined for simd.
25103 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25104 member.
25105 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25106 constructs, don't remove lastprivate_conditional_map, but instead set
25107 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25108 to parent construct temporaries.
25109 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25110 like !ctx->lastprivate_conditional_map.
25111 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25112 use up->outer context instead of up.
25113 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25114 gimple_omp_for_combined_p.
25115 (expand_omp_for_static_nochunk): Likewise.
25116 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25117 probably moved over into expand_omp_for_generic rather than being copied
25118 there.
25119
25120 2019-06-04 Martin Liska <mliska@suse.cz>
25121
25122 * value-prof.c (dump_histogram_value): Fix typo.
25123 (gimple_mod_subtract_transform): Likewise.
25124
25125 2019-06-04 Richard Biener <rguenther@suse.de>
25126
25127 PR middle-end/90726
25128 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25129 (tree_contains_chrecs): Likewise.
25130 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25131 exponential behaivor from ...
25132 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25133 ... here.
25134 (expression_expensive_p): Avoid exponential behavior and compute
25135 expanded size, rejecting any expansion.
25136 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25137 (idx_contains_abnormal_ssa_name_p): Likewise.
25138 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25139 (contains_abnormal_ssa_name_p): Simplify and use
25140 walk_tree_without_duplicates.
25141
25142 2019-06-04 Richard Biener <rguenther@suse.de>
25143
25144 PR tree-optimization/90738
25145 Revert
25146 2019-06-03 Richard Biener <rguenther@suse.de>
25147
25148 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25149 full reference tree and record in ref->ref.
25150 (vn_reference_lookup_3): Pass in original ref to
25151 ao_ref_init_from_vn_reference.
25152 (vn_reference_lookup): Likewise.
25153 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25154 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25155 Handle non-decl bases in the original reference.
25156
25157 2019-06-04 Martin Liska <mliska@suse.cz>
25158
25159 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25160 number of references.
25161 (sem_item_optimizer::do_congruence_step):
25162 (sem_item_optimizer::worklist_push): Dump how references
25163 a class has.
25164 (sem_item_optimizer::worklist_pop): Use heap.
25165 (sem_item_optimizer::process_cong_reduction): Likewise.
25166 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25167
25168 2019-06-04 Martin Liska <mliska@suse.cz>
25169
25170 * ipa-icf.h (struct sem_usage_pair_hash): New.
25171 (sem_usage_pair_hash::hash): Likewise.
25172 (sem_usage_pair_hash::equal): Likewise.
25173 (struct sem_usage_hash): Likewise.
25174 * ipa-icf.c (sem_item::sem_item): Initialize
25175 referenced_by_count.
25176 (sem_item::add_reference): Register a reference
25177 in ref_map and not in target->usages.
25178 (sem_item::setup): Remove initialization of
25179 dead vectors.
25180 (sem_item::~sem_item): Remove usage of dead vectors.
25181 (sem_item::dump): Remove dump of references.
25182 (sem_item_optimizer::sem_item_optimizer): Initialize
25183 m_references.
25184 (sem_item_optimizer::read_section): Remove useless
25185 dump.
25186 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25187 (sem_item_optimizer::build_graph): Pass m_references
25188 to ::add_reference.
25189 (sem_item_optimizer::verify_classes): Remove usage of dead
25190 vectors.
25191 (sem_item_optimizer::traverse_congruence_split): Return true
25192 when a class is split.
25193 (sem_item_optimizer::do_congruence_step_for_index): Use
25194 hash_map for look up of (sem_item *, index). That brings
25195 significant speed up.
25196 (sem_item_optimizer::do_congruence_step): Return true
25197 when a split is done.
25198 (congruence_class::is_class_used): Use referenced_by_count.
25199
25200 2019-06-04 Alan Modra <amodra@gmail.com>
25201
25202 PR target/90689
25203 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25204 error.
25205
25206 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25207
25208 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25209 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25210 (rs6000_secondary_reload_simple_move): Adjust.
25211 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25212 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25213 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25214 comment.
25215 (power6x): Adjust.
25216 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25217 (floatunssi<mode>2_lfiwzx): Adjust.
25218 (fix_trunc<mode>si2_stfiwx): Adjust.
25219 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25220 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25221 (mfpgpr): Mark as deprecated.
25222 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25223 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25224 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25225
25226 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25227
25228 * config/rs6000/constraints.md (define_register_constraint "wg"):
25229 Delete.
25230 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25231 RS6000_CONSTRAINT_wg.
25232 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25233 (rs6000_init_hard_regno_mode_ok): Adjust.
25234 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25235 Delete "wg" alternatives.
25236 * doc/md.texi (Machine Constraints): Adjust.
25237
25238 2019-06-03 Alan Modra <amodra@gmail.com>
25239
25240 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25241 (get_uncond_jump_length): Assert length less than INT_MAX and
25242 non-negative.
25243
25244 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25245
25246 PR middle-end/64242
25247 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25248 block.
25249 (expand_builtin_nonlocal_goto): Likewise.
25250
25251 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25252
25253 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25254 (aarch64_asm_output_external): Declare.
25255 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25256 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25257 (aarch64_asm_output_alias): New.
25258 (aarch64_asm_output_external): New.
25259 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25260 (ASM_OUTPUT_EXTERNAL): Define.
25261
25262 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25263 * tree-vrp.h (value_range_base::nonzero_p): New.
25264 (value_range_base::set_nonnull): Rename to...
25265 (value_range_base::set_nonzero): ...this.
25266 (value_range_base::set_null): Rename to...
25267 (value_range_base::set_zero): ...this.
25268 (value_range::set_nonnull): Remove.
25269 (value_range::set_null): Remove.
25270 * tree-vrp.c (range_is_null): Remove.
25271 (range_is_nonnull): Remove.
25272 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25273 instead of range_is_*null.
25274 (extract_range_from_unary_expr): Same.
25275 (value_range_base::set_nonnull): Rename to...
25276 (value_range_base::set_nonzero): ...this.
25277 (value_range::set_nonnull): Remove.
25278 (value_range_base::set_null): Rename to...
25279 (value_range_base::set_zero): ...this.
25280 (value_range::set_null): Remove.
25281 (extract_range_from_binary_expr): Rename set_*null uses to
25282 set_*zero.
25283 (extract_range_from_unary_expr): Same.
25284 (union_helper): Same.
25285 * vr-values.c (get_value_range): Use set_*zero instead of
25286 set_*null.
25287 (vr_values::extract_range_from_binary_expr): Same.
25288 (vr_values::extract_range_basic): Same.
25289
25290 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25291
25292 PR driver/90684
25293 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25294
25295 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25296
25297 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25298 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25299 Rename to...
25300 (aarch64_<su>abd<mode>_3): ... This.
25301 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25302
25303 2019-06-03 Richard Biener <rguenther@suse.de>
25304
25305 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25306 full reference tree and record in ref->ref.
25307 (vn_reference_lookup_3): Pass in original ref to
25308 ao_ref_init_from_vn_reference.
25309 (vn_reference_lookup): Likewise.
25310 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25311 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25312 Handle non-decl bases in the original reference.
25313
25314 2019-06-03 Martin Liska <mliska@suse.cz>
25315
25316 * doc/generic.texi: Remove Java Trees.
25317
25318 2019-06-03 Martin Liska <mliska@suse.cz>
25319
25320 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25321 returns 0 when operands are equal.
25322
25323 2019-06-03 Richard Biener <rguenther@suse.de>
25324
25325 PR tree-optimization/90716
25326 * tree-loop-distribution.c (destroy_loop): Process blocks in
25327 correct order.
25328
25329 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25330
25331 PR target/88837
25332 * vector-builder.h (vector_builder::count_dups): New method.
25333 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25334 Declare prototype.
25335 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25336 (vec_init<mode><Vel>): New pattern.
25337 * config/aarch64/aarch64.c (emit_insr): New function.
25338 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25339 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25340 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25341 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25342
25343 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25344
25345 PR tree-optimization/90681
25346 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25347 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25348 special case for SLP, but fail on non-groupped loads.
25349
25350 2019-06-03 Martin Liska <mliska@suse.cz>
25351
25352 * cfg.c (debug): Use TDF_DETAILS for debug and
25353 print edge info only once.
25354
25355 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25356
25357 PR fortran/90539
25358 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25359
25360 2019-06-01 Martin Sebor <msebor@redhat.com>
25361
25362 PR middle-end/90694
25363 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25364
25365 2019-05-31 Jan Hubicka <jh@suse.cz>
25366
25367 * alias.c: Include ipa-utils.h.
25368 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25369 * ipa-devirt.c (prevailing_odr_type): New.
25370 * ipa-utils.h (previaling_odr_type): Declare.
25371
25372 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25373 Hongtao Liu <hongtao.liu@intel.com>
25374
25375 PR target/89355
25376 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25377 NOTE_INSN_DELETED_LABEL check.
25378
25379 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25380 Robert Suchanek <robert.suchanek@mips.com>
25381
25382 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25383 and 3rd operands of the fmadd/fmsub/maddv builtin.
25384
25385 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25386
25387 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25388 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25389 on OMP_SIMD if not nested inside of worksharing loop that also has
25390 lastprivate conditional clause for the same decl.
25391 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25392 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25393 on simd.
25394 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25395 on simd construct.
25396 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25397 on simd construct.
25398 (lower_lastprivate_clauses): Likewise.
25399 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25400 calling lower_rec_input_clauses.
25401 (lower_omp_for): Likewise.
25402 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25403 clause on simd construct.
25404 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25405 OMP_CLAUSE__CONDTEMP_ clause is present.
25406
25407 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25408 ivar and lvar.
25409
25410 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25411
25412 PR c/43673
25413 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25414 TEX_D32, TEX_D64 or TEX_D128.
25415
25416 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25417
25418 * match.pd (~(vec?cst1:cst2)): New transformation.
25419
25420 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25421
25422 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25423 ((size_t)(A /[ex] B) CMP C): New transformation.
25424
25425 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25426
25427 * doc/md.texi: Document define_insn_and_rewrite.
25428 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25429 * gensupport.c (queue_elem): Update comment.
25430 (replace_operands_with_dups): New function.
25431 (gen_rewrite_sequence): Likewise.
25432 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25433 * read-rtl.c (apply_subst_iterator): Likewise.
25434 (add_condition_to_rtx, named_rtx_p): Likewise.
25435 (rtx_reader::read_rtx_operand): Likewise.
25436 * config/aarch64/aarch64-sve.md
25437 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25438 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25439 define_insn_and_rewrite.
25440 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25441 Remove separate define_split.
25442
25443 2019-05-31 Jan Hubicka <jh@suse.cz>
25444
25445 * tree-ssa-alias.c (type_has_components_p): New function.
25446 (aliasing_component_refs_p): Use it.
25447
25448 2019-05-31 Martin Liska <mliska@suse.cz>
25449
25450 * gdbhooks.py: Add const_tree to TreePrinter.
25451
25452 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25453
25454 PR debug/86964
25455 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25456 * doc/invoke.texi (Debugging Options): Document new default of
25457 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25458
25459 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25460
25461 PR tree-optimization/90671
25462 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25463 template_block used to be empty on the first call, don't use
25464 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25465 seq with bb_seq and set it with set_bb_seq.
25466
25467 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25468
25469 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25470
25471 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25472 Michael Meissner <meissner@linux.ibm.com>
25473
25474 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25475 (prefixed_mem_operand): Likewise.
25476 (non_prefixed_mem_operand): Likewise.
25477 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25478 prototype.
25479 * config/rs6000/rs6000.c (print_operand_address): Handle
25480 PC-relative addresses.
25481 (mode_supports_prefixed_address_p): New function.
25482 (rs6000_prefixed_address): New function.
25483 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25484 (SYMBOL_REF_PCREL_P): Likewise.
25485
25486 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25487
25488 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25489 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25490 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25491 is nested inside of parallel region, add _condtemp_ clause to both.
25492 * tree-nested.c (convert_nonlocal_omp_clauses,
25493 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25494 assertion failure.
25495 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25496 member.
25497 * omp-general.c (omp_extract_for_data): Compute it.
25498 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25499 (lower_rec_input_clauses): Likewise.
25500 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25501 clause is already present, just add one further one after it.
25502 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25503 (lower_send_shared_vars): Clear _condtemp_ vars.
25504 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25505 or section or taskgroup.
25506 * omp-expand.c (determine_parallel_type): Disallow combining only if
25507 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25508 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25509 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25510 expand_omp_for_static_chunk, expand_omp_for): Use
25511 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25512 determine if a special set of API routines are needed and if condtemp
25513 needs to be initialized, while always initialize cond_var if
25514 fd->lastprivate_conditional is non-zero.
25515
25516 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25517 Michael Meissner <meissner@linux.ibm.com>
25518
25519 * config/rs6000/constraints.md (eI): New constraint.
25520 * config/rs6000/predicates.md (cint34_operand): New predicate.
25521 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25522 (SIGNED_34BIT_OFFSET_P): Likewise.
25523 * doc/md.texi (eI): Document constraint.
25524
25525 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25526
25527 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25528
25529 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25530 Michael Meissner <meissner@linux.ibm.com>
25531
25532 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25533 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25534 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25535 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25536 (OTHER_FUTURE_MASKS): Likewise.
25537 (POWERPC_MASKS): Likewise.
25538 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25539 specified without -mprefixed-addr or -mcpu=future. Error if
25540 -mprefixed-addr is specified without -mcpu=future.
25541 (rs6000_opt_masks): Add entry for prefixed-addr.
25542 * rs6000.opt (mprefixed-addr): New option.
25543
25544 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25545
25546 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25547 cfun->is_thunk check.
25548
25549 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25550
25551 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25552 to length.
25553
25554 2019-05-30 Martin Liska <mliska@suse.cz>
25555
25556 * gdbinit.in: Fix 'ptc' command. Add trt
25557 that prints TREE_TYPE($).
25558
25559 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25560 Alan Modra <amodra@gmail.com>
25561
25562 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25563 calls here...
25564 (rs6000_indirect_call_template_1): ...and here.
25565 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25566 plt16_ha, plt16_lo, mtctr indirect calls. Use
25567 rs6000_pltseq_enum.
25568 (rs6000_decl_ok_for_sibcall): New function.
25569 (rs6000_function_ok_for_sibcall): Refactor.
25570 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25571 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25572 when pcrel. Reorganize.
25573 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25574 * rs6000.h (rs6000_pltseq_enum): New enum.
25575 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25576 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25577 (*pltseq_plt16_ha): Likewise.
25578 (*pltseq_plt16_lo): Likewise.
25579 (*pltseq_mtctr): Likewise.
25580 (*pltseq_plt_pcrel): New insn.
25581 (*call_local_aix): Handle @notoc calls.
25582 (*call_value_local_aix): Likewise.
25583 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25584 (*call_value_nonlocal_aix): Likewise.
25585 (*call_indirect_pcrel): New insn.
25586 (*call_value_indirect_pcrel): Likewise.
25587
25588 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25589
25590 * config/i386/sse.md (*save_multiple<mode>): Rename from
25591 save_multiple<mode>.
25592 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25593 (*restore_multiple_and_return<mode>): Rename from
25594 restore_multiple_and_return<mode>.
25595 (*restore_multiple_leave_return<mode>): Rename from
25596 restore_multiple_leave_return<mode>.
25597
25598 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25599
25600 * config.gcc (rx-*-linux*): New target.
25601 * config/rx/elf.opt: New file.
25602 * config/rx/linux.h: Likewise.
25603 * config/rx/t-linux: Likewise.
25604 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25605 make it zero.
25606 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25607 (ASM_APP_OFF): Likewise.
25608 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25609 moved elsewhere.
25610
25611 2019-05-29 Jan Hubicka <jh@suse.cz>
25612
25613 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25614 variants are pointer equivalent.
25615
25616 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25617
25618 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25619 * config/aarch64/aarch64-sve2.md: New file.
25620 (<u>avg<mode>3_floor): New pattern.
25621 (<u>avg<mode>3_ceil): Likewise.
25622 (*<sur>h<addsub><mode>): Likewise.
25623 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25624 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25625
25626 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25627
25628 PR bootstrap/90543
25629 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25630 for var_opt_string printing. In cl_optimization_print_diff, print
25631 (null) instead of invoking undefined behavior if one of the
25632 var_opt_string pointers is NULL and use && instead of first || in the
25633 guarding condition. For var_target_other options, handle const char *
25634 target variables similarly to const char * optimize node variables.
25635
25636 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25637
25638 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25639 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25640 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25641 Add autib1716 and pacib1716 initialisation.
25642 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25643 for autib1716 and pacib1716.
25644 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25645 aarch64_post_cfi_startproc): Define.
25646 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25647 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25648 aarch64_handle_pac_ret_protection): Set default sign key to A.
25649 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25650 aarch64_expand_prologue): Add check for b-key.
25651 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25652 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25653 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25654 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25655 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25656 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25657 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25658 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25659 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25660 pauth_hint_num_a with pauth_hint_num.
25661 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25662 pauth_hint_num_a with pauth_hint_num.
25663 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25664 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25665 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25666 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25667 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25668 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25669 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25670 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25671 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25672 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25673 UNSPEC_AUTIA1716 respectively.
25674 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25675 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25676 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25677 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25678 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25679 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25680
25681 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25682
25683 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25684 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25685 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25686 explicit clause on combined parallel into implicit shared clause.
25687 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25688 and firstprivate if the decl has one too from combined parallel to
25689 the worksharing construct.
25690
25691 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25692 Michael Meissner <meissner@linux.ibm.com>
25693
25694 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25695
25696 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25697
25698 * rtl.h (LABEL_REF_P): New #define.
25699
25700 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25701
25702 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25703
25704 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25705
25706 * internal-fn.c: Marked mask_load_direct as vectorizable.
25707 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25708 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25709 combined even if masks different with allow_slp_p param.
25710 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25711 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25712 dissolve SLP-only vectorizable groups when SLP has been discarded.
25713 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25714 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25715 masks.
25716 (vect_build_slp_tree_1): Fixed comment typo.
25717 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25718 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25719 loads for SLP only.
25720 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25721 vectorizable.
25722 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25723
25724 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25725
25726 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25727 Remove obsolete use_thunk reference.
25728 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25729 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25730 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25731 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25732 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25733 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25734 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25735 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25736 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25737
25738 2019-05-28 Nathan Sidwell <nathan@acm.org>
25739
25740 * tree.h (IDENTIFIER_ANON_P): New.
25741 (anon_aggrname_format, anon_aggname_p): Don't declare.
25742 (make_anon_name): Declare.
25743 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25744 (hash_tree): Likewise.
25745 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25746 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25747 (anon_cnt, make_anon_name): New.
25748
25749 2019-05-28 Martin Liska <mliska@suse.cz>
25750
25751 PR other/90315
25752 * opts-global.c (decode_options): Print help for all
25753 help_option_arguments.
25754 * opts.c (print_help): Add new argument.
25755 (common_handle_option): Remember all values into
25756 help_option_arguments.
25757 * opts.h (print_help): Add new argument.
25758
25759 2019-05-28 Martin Liska <mliska@suse.cz>
25760
25761 PR ipa/90555
25762 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25763 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25764 (func_checker::compare_bb): Call compare_loops.
25765
25766 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25767
25768 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25769 on sections construct.
25770 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25771 construct.
25772 (lower_omp_sections): Handle lastprivate conditional.
25773 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25774 lastprivate_conditional_map.
25775 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25776
25777 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25778 critical, taskgroup and section regions when looking for a region
25779 with non-NULL lastprivate_conditional_map.
25780
25781 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25782
25783 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25784 (*ix86_gen_sub3): Ditto.
25785 (*ix86_gen_sub3_carry): Ditto.
25786 (*ix86_gen_one_cmpl2): Ditto.
25787 (*ix86_gen_andsp): Ditto.
25788 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25789 (gen_and2_insn): New static function.
25790 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25791 Use gen_add3_insn instead of ix86_gen_add3.
25792 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25793 instead of ix86_gen_add3.
25794 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25795 Use gen_sub3_insn instead of ix86_gen_sub3.
25796 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25797 instead of ix86_gen_add3.
25798 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25799 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25800 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25801 * config/i386/i386-options.c (ix86_option_override_internal):
25802 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25803 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25804
25805 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25806
25807 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25808 and DW_OP_GNU_const_index opcodes.
25809
25810 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25811
25812 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25813
25814 2019-05-27 Richard Biener <rguenther@suse.de>
25815
25816 PR tree-optimization/90637
25817 * tree-ssa-sink.c (statement_sink_location): Honor the
25818 computed sink location for single-uses.
25819
25820 2019-05-27 Richard Biener <rguenther@suse.de>
25821
25822 PR middle-end/90610
25823 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25824 a bit-insert.
25825
25826 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25827
25828 * config/i386/i386.md (@sub<mode>3_carry): Rename
25829 from sub<mode>3_carry.
25830 (@leave_<mode>): New expander.
25831 (*leave): Rename from leave.
25832 (*leave_rex64): Rename from leave_rex64.
25833 (@monitorx_<mode>): Rename from monitorx_<mode>.
25834 (@clzero_<mode>): Rename from clzero_<mode>.
25835 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25836 from sse3_monitor_<mode>.
25837 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25838 (*ix86_gen_leave): Ditto.
25839 (*ix86_gen_monitor): Ditto.
25840 (*ix86_gen_monitorx): Ditto.
25841 (*ix86_gen_clzero): Ditto.
25842 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25843 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25844 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25845 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25846 Use gen_sse3_monitor instead of ix86_gen_monitor.
25847 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25848 instead of ix86_gen_monitorx.
25849 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25850 instead of ix86_gen_clzero.
25851 * config/i386/i386-options.c (ix86_option_override_internal):
25852 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25853 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25854
25855 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25856
25857 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25858 Rename from tls_global_dynamic_64_<mode>.
25859 (@tls_local_dynamic_base_64_<mode>): Rename from
25860 tls_local_dynamic_base_64_<mode>.
25861 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25862 Remove indirect function.
25863 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25864 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25865 instead of ix86_gen_tls_global_dynamic_64.
25866 Use gen_tls_local_dynamic_base_64 instead of
25867 ix86_gen_tls_local_dynamic_base_64.
25868 * config/i386/i386-options.c (ix86_option_override_internal):
25869 Do not initialize ix86_gen_tls_global_dynamic_64 and
25870 ix86_gen_tls_local_dynamic_base_64.
25871
25872 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25873
25874 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25875 Rename from pro_epilogue_adjust_stack_<mode>_add.
25876 (@pro_epilogue_adjust_stack_sub_<mode>)
25877 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25878 (@allocate_stack_worker_probe_<mode>):
25879 Rename from allocate_stack_worker_probe_<mode>.
25880 (allocate_stack): Use gen_allocate_stack_worker_probe.
25881 (probe_stack): Use gen_probe_stack_1.
25882 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25883 (@adjust_stack_and_probe_<mode>): Rename from
25884 adjust_stack_and_probe<mode>.
25885 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25886 (stack_protect_set): Use gen_stack_protect_set_1.
25887 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25888 (stack_protect_test): Use gen_stack_protect_test_1.
25889 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25890 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25891 Remove indirect function.
25892 (*ix86_gen_adjust_stack_and_probe): Ditto.
25893 (*ix86_gen_probe_stack_range): Ditto.
25894 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25895 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25896 (ix86_adjust_stack_and_probe_stack_clash): Use
25897 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25898 (ix86_adjust_stack_and_probe): Ditto.
25899 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25900 of ix86_gen_probe_stack_range.
25901 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25902 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25903 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25904 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25905 CODE_FOR_stack_protect_test_{si,di}.
25906 * config/i386/i386-options.c (ix86_option_override_internal):
25907 Do not initialize ix86_gen_allocate_stack_worker,
25908 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25909
25910 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25911
25912 * doc/invoke.texi (Link Options): Many editorial changes around
25913 -flinker-output.
25914
25915 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25916
25917 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25918 pre-Solaris 11 referene and most Studio compiler details.
25919
25920 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25921
25922 PR target/90530
25923 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25924 DImode to SImode in floating-point registers on 64-bit target.
25925 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25926 register_operand in xmpyu patterns.
25927
25928 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25929
25930 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25931 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25932 OMP_CLAUSE__REDUCTEMP_.
25933 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25934 OMP_CLAUSE__CONDTEMP_.
25935 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25936 * tree-pretty-print.c (dump_omp_clause): Likewise.
25937 * tree-nested.c (convert_nonlocal_omp_clauses,
25938 convert_local_omp_clauses): Likewise.
25939 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25940 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25941 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25942 on OMP_FOR.
25943 (gimplify_omp_for): Warn and disable conditional modifier from
25944 lastprivate on loop iterators.
25945 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25946 member.
25947 * omp-general.c (omp_extract_for_data): Initialize it.
25948 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25949 member.
25950 (delete_omp_context): Delete it.
25951 (lower_lastprivate_conditional_clauses): New function.
25952 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25953 handle lastprivate conditional clauses.
25954 (lower_reduction_clauses): Add CLIST argument, emit it into
25955 the critical section if any.
25956 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25957 lower_reduction_clauses callers.
25958 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25959 to lower_lastprivate_clauses.
25960 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25961 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25962 clist into a critical section if not emitted there already by
25963 lower_reduction_clauses.
25964 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25965 callers.
25966 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25967 conditional variables.
25968 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25969 clause is present.
25970 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25971 expand_omp_for_static_chunk): Handle lastprivate conditional.
25972 (expand_omp_for): Handle fd.lastprivate_conditional like
25973 fd.have_reductemp.
25974
25975 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25976
25977 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25978 kernel does not exit cleanly.
25979 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25980
25981 2019-05-24 Jason Merrill <jason@redhat.com>
25982
25983 Revert:
25984 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25985
25986 2019-05-24 Richard Biener <rguenther@suse.de>
25987
25988 PR testsuite/90607
25989 * tree-loop-distribution.c (struct partition): Add location
25990 member.
25991 (partition_alloc): Initialize all fields.
25992 (generate_memset_builtin): Use the location recorded in the
25993 partition for the generated call.
25994 (generate_memcpy_builtin): Likewise.
25995 (classify_partition): Record the location of a single store
25996 as location for the partition.
25997
25998 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25999
26000 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26001 for lo-part.
26002
26003 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26004
26005 PR target/90588
26006 * common/config/aarch64/aarch64-common.c
26007 (aarch64_rewrite_selected_cpu): Change local temporary variable
26008 type from unsigned long to uint64_t.
26009 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26010 aarch64_get_extension_string_for_isa_flags): Change declaration to
26011 match new definition by replacing unsigned long with uint64_t.
26012
26013 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26014
26015 PR target/90568
26016 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26017 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26018 Handle stack_protect_test_<mode> codegen similarly to corresponding
26019 sub instruction.
26020
26021 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26022
26023 * config/i386/darwin.h: Reject -mfentry*.
26024 * doc/sourcebuild.texi: Document mfentry target support.
26025
26026 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26027
26028 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26029 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26030 false for PC-relative functions.
26031 (rs6000_output_function_prologue): Change called function name to
26032 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26033 name,1" for PC-relative functions.
26034 (rs6000_elf_declare_function_name): Change called function name to
26035 rs6000_global_entry_point_prologue_needed_p.
26036
26037 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26038
26039 PR target/90552
26040 * config/i386/i386.c (gen_rtx_cost):
26041 Use ix86_tune_cost instead of ix86_cost.
26042
26043 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26044 Michael Meissner <meissner@linux.ibm.com>
26045 Segher Boessenkool <segher@kernel.crashing.org>
26046
26047 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26048 OPTION_MASK_PCREL.
26049 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26050 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26051 (rs6000_fndecl_pcrel_p): Likewise.
26052 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26053 error if -mpcrel is requested without -mcpu=future.
26054 (rs6000_opt_masks): Add entry for pcrel.
26055 (rs6000_fndecl_pcrel_p): New function.
26056 (rs6000_pcrel_p): Likewise.
26057 * config/rs6000/rs6000.opt (mpcrel): New option.
26058 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26059
26060 2019-05-23 Jan Hubicka <jh@suse.cz>
26061 Martin Liska <mliska@suse.cz>
26062
26063 PR tree-optimization/90576
26064 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26065 poly_int_tree_p.
26066 (aliasing_component_refs_p): Fix three way size compare conditional;
26067 give up earlier in case we can not decide on equivalence.
26068
26069 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26070 Michael Meissner <meissner@linux.ibm.com>
26071 Segher Boessenkool <segher@kernel.crashing.org>
26072
26073 * config.gcc: Add future cpu.
26074 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26075 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26076 #define.
26077 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26078 (RS6000_CPU): New instantiation for future cpu.
26079 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26080 PROCESSOR_FUTURE.
26081 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26082 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26083 * config/rs6000/rs6000-tables.opt: Regenerate.
26084 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26085 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26086 (rs6000_machine_from_flags): Handle future cpu.
26087 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26088 PROCESSOR_POWER9 for now.
26089 (rs6000_adjust_cost): Likewise.
26090 (rs6000_issue_rate): Likewise.
26091 (rs6000_register_move_cost): Likewise.
26092 (rs6000_opt_masks): Add entry for future.
26093 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26094 (MASK_FUTURE): New #define.
26095 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26096 * config/rs6000/rs6000.opt (mfuture): New target option.
26097 * doc/invoke.texi (mcpu): Add future cpu.
26098
26099 2019-05-23 Martin Liska <mliska@suse.cz>
26100
26101 PR c++/90587
26102 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26103 operation points to a temporary (pointed via tree_to_wide_ref)
26104 that is out of scope after the &.
26105
26106 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26107
26108 PR c++/90592
26109 * doc/extend.texi (Function Names): Add missing word.
26110
26111 2019-05-23 Richard Biener <rguenther@suse.de>
26112
26113 PR tree-optimization/88440
26114 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26115 at -O[2s]+.
26116 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26117 generated call.
26118 (generate_memcpy_builtin): Likewise.
26119 (distribute_loop): Pass in whether to only distribute patterns.
26120 (prepare_perfect_loop_nest): Also allow size optimization.
26121 (pass_loop_distribution::execute): When optimizing a loop
26122 nest for size allow pattern replacement.
26123
26124 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26125
26126 PR target/90568
26127 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26128 of xor.
26129
26130 2019-05-23 Martin Liska <mliska@suse.cz>
26131
26132 PR sanitizer/90570
26133 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26134 expression similarly to gimplify_decl_expr.
26135
26136 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26137
26138 * cse.c (cse_dump_path): s/dump_file/f.
26139
26140 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26141
26142 PR c++/90462
26143 * diagnostic-format-json.cc: Include "selftest.h".
26144 (json_from_expanded_location): Only add "file" key for non-NULL
26145 file strings.
26146 (json_from_location_range): Don't add "start" and "finish"
26147 children if they are UNKNOWN_LOCATION.
26148 (selftest::test_unknown_location): New selftest.
26149 (selftest::test_bad_endpoints): New selftest.
26150 (selftest::diagnostic_format_json_cc_tests): New function.
26151 * json.cc (json::object::get): New function.
26152 (selftest::test_object_get): New selftest.
26153 (selftest::json_cc_tests): Call it.
26154 * json.h (json::object::get): New decl.
26155 * selftest-run-tests.c (selftest::run_tests): Call
26156 selftest::diagnostic_format_json_cc_tests.
26157 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26158 decl.
26159
26160 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26161 Andrew Stubbs <amd@codesourcery.com>
26162
26163 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26164 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26165 (kernel): Rename to...
26166 (main_kernel): ... this.
26167 (load_image): Load _init_array and _fini_array kernels.
26168 (run): Add argument for kernel to run.
26169 (main): Run init_array_kernel before main_kernel, and
26170 fini_array_kernel after.
26171 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26172 amdgpu_hsa_kernel attribute on functions.
26173 (gcn_disable_constructors): Delete.
26174 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26175 * config/gcn/crt0.c (size_t): Define.
26176 (_init_array, _fini_array): New.
26177 (__preinit_array_start, __preinit_array_end,
26178 __init_array_start, __init_array_end,
26179 __fini_array_start, __fini_array_end): Declare weak references.
26180
26181 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26182
26183 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26184
26185 2019-05-22 Jason Merrill <jason@redhat.com>
26186
26187 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26188
26189 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26190
26191 PR target/88483
26192 * config/i386/i386-options.c (ix86_init_machine_status): Set
26193 stack_frame_required to true.
26194 * config/i386/i386.c (ix86_get_frame_size): New function.
26195 (ix86_frame_pointer_required): Replace get_frame_size with
26196 ix86_get_frame_size.
26197 (ix86_compute_frame_layout): Likewise.
26198 (ix86_find_max_used_stack_alignment): Changed to void. Set
26199 stack_frame_required.
26200 (ix86_finalize_stack_frame_flags): Always call
26201 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26202 ix86_get_frame_size.
26203 * config/i386/i386.h (machine_function): Add stack_frame_required.
26204
26205 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26206
26207 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26208
26209 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26210
26211 * common/config/aarch64/aarch64-common.c
26212 (struct aarch64_option_extension, struct processor_name_to_arch,
26213 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26214 aarch64_contains_opt,
26215 aarch64_get_extension_string_for_isa_flags): Change type of
26216 variables storing flags to uint64_t.
26217 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26218 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26219 * config/aarch64/aarch64.c (struct processor,
26220 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26221 aarch64_validate_march, aarch64_override_options,
26222 aarch64_option_print, aarch64_handle_attr_isa_flags,
26223 aarch64_declare_function_name, aarch64_start_file): Make flag
26224 variables uint64_t.
26225 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26226 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26227 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26228 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26229 * config/aarch64/driver-aarch64.c
26230 (struct aarch64_arch_extension, struct aarch64_core_data,
26231 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26232 flag variables uint64_t.
26233 * doc/invoke.texi: Add documentation for new arguments.
26234
26235 2019-05-22 Richard Biener <rguenther@suse.de>
26236
26237 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26238 rewrite ...
26239 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26240
26241 2019-05-22 Martin Liska <mliska@suse.cz>
26242
26243 PR lto/90500
26244 * doc/extend.texi: Document the change.
26245
26246 2019-05-22 Richard Biener <rguenther@suse.de>
26247
26248 PR tree-optimization/90450
26249 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26250 (mem_ref_hasher::equal): Check it.
26251 (mem_ref_alloc): Initialize it.
26252 (gather_mem_refs_stmt): Set it.
26253
26254 2019-05-22 Richard Biener <rguenther@suse.de>
26255
26256 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26257 Add ABS_EXPR.
26258 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26259 as ABSU_EXPR.
26260
26261 2019-05-22 Alan Modra <amodra@gmail.com>
26262
26263 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26264 (ASM_CPU_SPEC): Conditionally add -many.
26265 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26266 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26267 (rs6000_file_start): ..extracted from here, and modified to
26268 test all ISA bits.
26269 (rs6000_output_function_prologue): Emit .machine as necessary.
26270
26271 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26272
26273 PR middle-end/90553
26274 * ira-lives.c (process_bb_node_lives): Consider defs
26275 for a call insn to be die before the call, not after.
26276
26277 * function.c (assign_parm_setup_block): Raise alignment of
26278 stacked parameter only for STRICT_ALIGNMENT targets.
26279
26280 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26281
26282 * config/rs6000/constraints.md (define_register_constraint "wz"):
26283 Delete.
26284 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26285 RS6000_CONSTRAINT_wz.
26286 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26287 (rs6000_init_hard_regno_mode_ok): Adjust.
26288 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26289 * doc/md.texi (Machine Constraints): Adjust.
26290
26291 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26292
26293 * config/rs6000/constraints.md (define_register_constraint "wl"):
26294 Delete.
26295 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26296 RS6000_CONSTRAINT_wl.
26297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26298 (rs6000_init_hard_regno_mode_ok): Adjust.
26299 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26300 * doc/md.texi (Machine Constraints): Adjust.
26301
26302 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26303
26304 * config/rs6000/constraints.md (define_register_constraint "wm"):
26305 Delete.
26306 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26307 RS6000_CONSTRAINT_wm.
26308 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26309 (rs6000_init_hard_regno_mode_ok): Adjust.
26310 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26311 * doc/md.texi (Machine Constraints): Adjust.
26312
26313 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26314
26315 * config/rs6000/constraints.md (define_register_constraint "wk"):
26316 Delete.
26317 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26318 RS6000_CONSTRAINT_wk.
26319 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26320 (rs6000_init_hard_regno_mode_ok): Adjust.
26321 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26322 * doc/md.texi (Machine Constraints): Adjust.
26323
26324 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26325
26326 * config/rs6000/constraints.md (define_register_constraint "wj"):
26327 Delete.
26328 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26329 RS6000_CONSTRAINT_wj.
26330 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26331 (rs6000_init_hard_regno_mode_ok): Adjust.
26332 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26333 (VS_64dm): Delete.
26334 * config/rs6000/vsx.md: Ditto.
26335 * doc/md.texi (Machine Constraints): Adjust.
26336
26337 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26338
26339 * config/rs6000/constraints.md (define_register_constraint "wh"):
26340 Delete.
26341 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26342 RS6000_CONSTRAINT_wh.
26343 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26344 (rs6000_init_hard_regno_mode_ok): Adjust.
26345 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26346 * doc/md.texi (Machine Constraints): Adjust.
26347
26348 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26349
26350 PR target/90547
26351 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26352 Avoid calling gen_lowpart with CONST operand.
26353
26354 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26355
26356 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26357 field template_last_to_copy.
26358 (ssa_create_duplicates): Set it, and use it. Attempt to
26359 preserve more debug stmts.
26360
26361 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26362
26363 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26364 (signbit<mode>2): New expander
26365
26366 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26367
26368 PR bootstrap/87338
26369 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26370 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26371
26372 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26373
26374 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26375 %ebx and %ecx bafore calling cpuid with leaf 1 or
26376 non-constant leaf argument.
26377
26378 2019-05-21 Alan Modra <amodra@gmail.com>
26379
26380 PR target/90545
26381 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26382 power9 direct move cost.
26383
26384 2019-05-21 Richard Biener <rguenther@suse.de>
26385
26386 PR middle-end/90510
26387 * fold-const.c (fold_read_from_vector): New function.
26388 * fold-const.h (fold_read_from_vector): Declare.
26389 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26390 single-element insert permutations. Canonicalize selector
26391 further and fix issue with last commit.
26392
26393 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26394
26395 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26396 parameter with default value false to declaration.
26397 (split_edges_for_insertion): New inline function. Wrapper for
26398 split_critical_edges with for_edge_insertion_p = true.
26399 * tree-cfg.c (split_critical_edges): Don't split non-critical
26400 edges if for_edge_insertion_p is false. Fix whitespace.
26401 * tree-ssa-pre.c (pass_pre::execute): Call
26402 split_edges_for_insertion instead of split_critical_edges.
26403 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26404 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26405 (pass_data_sink_code): Update function name in the comment.
26406
26407 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26408
26409 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26410 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26411 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26412 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26413 positives.
26414
26415 2019-05-21 Martin Liska <mliska@suse.cz>
26416
26417 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26418 an extra newline.
26419 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26420 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26421 vec_lvsr.
26422 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26423 Quote a C type.
26424 (rs6000_function_arg): Likewise.
26425 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26426 (rs6000_expand_ternop_builtin): Use interval syntax.
26427 (get_element_number): Likewise.
26428 (altivec_expand_builtin): Likewise.
26429 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26430
26431 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26432
26433 PR c++/59813
26434 PR target/90418
26435 * function.h (struct function): Add calls_eh_return member.
26436 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26437 gimplifying __builtin_eh_return call.
26438 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26439 to cfun.
26440 (expand_call_inline): Or in src_cfun->calls_eh_return into
26441 dst_cfun->calls_eh_return.
26442 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26443 cfun->calls_eh_return.
26444 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26445 * lto-streamer-out.c (output_struct_function_base): Write
26446 calls_eh_return.
26447
26448 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26449
26450 PR rtl-optimization/43147
26451 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26452 IX86_BUILTIN_SHUFPD.
26453
26454 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26455
26456 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26457 (refs_may_alias_p_1): ... here; update stats.
26458 (refs_may_alias_p): Do not update stats here.
26459
26460 2019-05-20 Richard Biener <rguenther@suse.de>
26461
26462 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26463 doesn't produce pointers.
26464 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26465 the first operand points to.
26466
26467 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26468
26469 * tree-ssa-alias.c (compare_sizes): New function.
26470 (sompare_type_sizes): New function
26471 (aliasing_component_refs_p): Use it.
26472 (indirect_ref_may_alias_decl_p): Likewise.
26473
26474 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26475
26476 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26477
26478 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26479
26480 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26481 (LIBLSAN_EARLY_SPEC): Likewise.
26482 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26483
26484 2019-05-20 Martin Liska <mliska@suse.cz>
26485
26486 * config/i386/i386.c (ix86_libc_has_fast_function):
26487 Add ATTRIBUTE_UNUSED for the argument.
26488
26489 2019-05-20 Richard Biener <rguenther@suse.de>
26490
26491 * gimple-match-head.c: Include vec-perm-indices.h.
26492 * generic-match-head.c: Likewise.
26493 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26494 is included.
26495 * fold-const.c (fold_vec_perm): Export.
26496 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26497 (match.pd): ...here.
26498
26499 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26500
26501 * cfgloop.h (struct loop): Add simdlen member.
26502 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26503 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26504 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26505 as new argument to autovectorize_vector_sizes target hook. If
26506 loop->simdlen, pick up vector size where the vectorization factor
26507 is equal to loop->simd, and if there is none, fall back to the first
26508 successful one.
26509 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26510 caller.
26511 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26512 * omp-general.c (omp_max_vf): Likewise.
26513 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26514 * tree-vect-slp.c (vect_slp_bb): Likewise.
26515 * target.def (autovectorize_vector_sizes): Add ALL argument and
26516 document it.
26517 * doc/tm.texi: Adjust documentation.
26518 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26519 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26520 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26521 bool argument.
26522 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26523 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26524 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26525 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26526 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26527 preferred vector size is not 512-bit or 256-bit, just put those
26528 unpreferred ones last.
26529
26530 2019-05-20 Martin Liska <mliska@suse.cz>
26531
26532 * targhooks.c (default_libc_has_fast_function): New function.
26533 * targhooks.h (default_libc_has_fast_function): Likewise.
26534
26535 2019-05-20 Martin Liska <mliska@suse.cz>
26536
26537 PR middle-end/90263
26538 * builtins.c (expand_builtin_memory_copy_args): When having a
26539 target with fast mempcpy implementation do now use memcpy.
26540 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26541 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26542 * doc/tm.texi: Likewise.
26543 * doc/tm.texi.in: Likewise.
26544 * target.def:
26545 * expr.c (emit_block_move_hints): Add 2 new arguments.
26546 * expr.h (emit_block_move_hints): Bail out when libcall
26547 to memcpy would be used.
26548
26549 2019-05-20 Martin Liska <mliska@suse.cz>
26550
26551 * profile-count.c: Add vertical spacing in order
26552 to separate functions.
26553 * profile-count.h: Likewise.
26554
26555 2019-05-20 Martin Liska <mliska@suse.cz>
26556
26557 * profile-count.h: Do not use full qualified
26558 names if possible.
26559 * profile-count.c (profile_count::to_frequency): Likewise.
26560
26561 2019-05-20 Martin Liska <mliska@suse.cz>
26562
26563 * profile-count.h (enum profile_quality): Use capital letters
26564 for enum value names. Use the adjusted names.
26565 * profile-count.c: Use the adjusted names.
26566
26567 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26568
26569 * config/rs6000/constraints.md (define_register_constraint "wH"):
26570 Delete.
26571 (define_register_constraint "wI"): Delete.
26572 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26573 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26574 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26575 (rs6000_init_hard_regno_mode_ok): Adjust.
26576 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26577 resp. "d", or with "wa" as appropriate, all with "p8v".
26578 * config/rs6000/vsx.md: Ditto.
26579 * doc/md.texi (Machine Constraints): Adjust.
26580
26581 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26582
26583 * config/rs6000/constraints.md (define_register_constraint "wy"):
26584 Delete.
26585 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26586 RS6000_CONSTRAINT_wy.
26587 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26588 (rs6000_init_hard_regno_mode_ok): Adjust.
26589 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26590 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26591 (define_mode_attr Fisa): New.
26592 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26593 * doc/md.texi (Machine Constraints): Adjust.
26594
26595 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26596
26597 * config/rs6000/constraints.md (define_register_constraint "wu"):
26598 Delete.
26599 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26600 RS6000_CONSTRAINT_wu.
26601 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26602 (rs6000_init_hard_regno_mode_ok): Adjust.
26603 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26604 both with "p8v".
26605 (define_mode_attr Fa): Delete.
26606 * config/rs6000/vsx.md: Ditto.
26607 * doc/md.texi (Machine Constraints): Adjust.
26608
26609 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26610
26611 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26612 Delete.
26613 (define_register_constraint "wK"): Delete.
26614 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26615 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26616 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26617 (rs6000_init_hard_regno_mode_ok): Adjust.
26618 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26619 Replace "wK" constraint by "wH" with "p9v".
26620 * config/rs6000/vsx.md: Ditto.
26621 * doc/md.texi (Machine Constraints): Adjust.
26622
26623 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26624
26625 * config/rs6000/constraints.md (define_register_constraint "wb"):
26626 Delete.
26627 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26628 RS6000_CONSTRAINT_wb.
26629 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26630 (rs6000_init_hard_regno_mode_ok): Adjust.
26631 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26632 * config/rs6000/vsx.md: Ditto.
26633 * doc/md.texi (Machine Constraints): Adjust.
26634
26635 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26636
26637 * config/rs6000/constraints.md (define_register_constraint "wo"):
26638 Delete.
26639 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26640 RS6000_CONSTRAINT_wo.
26641 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26642 (rs6000_init_hard_regno_mode_ok): Adjust.
26643 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26644 * config/rs6000/altivec.md: Ditto.
26645 * doc/md.texi (Machine Constraints): Adjust.
26646
26647 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26648
26649 * config/darwin-c.c (darwin_register_objc_includes): Do not
26650 prepend the sysroot when building gnu-runtime header search
26651 paths.
26652
26653 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26654
26655 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26656 instead of direct output of the asm.
26657
26658 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26659
26660 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26661 argument to be type bool (was int before).
26662 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26663 at first use. Use type bool for some variables. Fix a theoretical
26664 eh_return bug for svr4.
26665
26666 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26667
26668 * config/rs6000/rs6000.md (isa): New attribute.
26669 (enabled): New attribute.
26670
26671 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26672
26673 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26674 assemble_start_function and assemble_end_function.
26675
26676 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26677
26678 PR middle-end/89433
26679 * omp-general.c (oacc_verify_routine_clauses): Change formal
26680 parameters. Add checking if already marked with an OpenACC
26681 'routine' directive. Adjust all users.
26682
26683 PR middle-end/89433
26684 * omp-general.c (oacc_build_routine_dims): Move some of its
26685 processing into...
26686 (oacc_verify_routine_clauses): ... this new function.
26687 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26688
26689 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26690
26691 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26692 formating of picbase labels to match other ports.
26693
26694 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26695
26696 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26697 in the generated code.
26698
26699 2019-05-16 Martin Sebor <msebor@redhat.com>
26700
26701 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26702 identifiers, keywords, operators, and types in diagnostics. Correct
26703 quoting, spelling, and sentence capitalization issues.
26704 (expand_builtin_atomic_is_lock_free): Same.
26705 (fold_builtin_next_arg): Same.
26706 * cfgexpand.c (expand_one_var): Same.
26707 (tree_conflicts_with_clobbers_p): Same.
26708 (expand_asm_stmt): Same.
26709 (verify_loop_structure): Same.
26710 * cgraphunit.c (process_function_and_variable_attributes): Same.
26711 * collect-utils.c (collect_execute): Same.
26712 * collect2.c (maybe_run_lto_and_relink): Same.
26713 (is_lto_object_file): Same.
26714 (scan_prog_file): Same.
26715 * convert.c (convert_to_real_1): Same.
26716 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26717 * except.c (verify_eh_tree): Same.
26718 * gcc.c (execute): Same.
26719 (eval_spec_function): Same.
26720 (run_attempt): Same.
26721 (driver::set_up_specs): Same.
26722 (compare_debug_auxbase_opt_spec_function): Same.
26723 * gcov-tool.c (unlink_gcda_file): Same.
26724 (do_merge): Same.
26725 (do_rewrite): Same.
26726 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26727 * gimplify.c (gimplify_asm_expr): Same.
26728 (gimplify_adjust_omp_clauses): Same.
26729 * hsa-gen.c (gen_hsa_addr_insns): Same.
26730 (gen_hsa_insns_for_load): Same.
26731 (gen_hsa_cmp_insn_from_gimple): Same.
26732 (gen_hsa_insns_for_operation_assignment): Same.
26733 (gen_get_level): Same.
26734 (gen_hsa_alloca): Same.
26735 (omp_simple_builtin::generate): Same.
26736 (gen_hsa_atomic_for_builtin): Same.
26737 (gen_hsa_insns_for_call): Same.
26738 * input.c (dump_location_info): Same.
26739 * ipa-devirt.c (compare_virtual_tables): Same.
26740 * ira.c (ira_setup_eliminable_regset): Same.
26741 * lra-assigns.c (lra_assign): Same.
26742 * lra-constraints.c (lra_constraints): Same.
26743 * lto-streamer-in.c (lto_input_mode_table): Same.
26744 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26745 (merge_and_complain): Same.
26746 (compile_offload_image): Same.
26747 (compile_images_for_offload_targets): Same.
26748 (debug_objcopy): Same.
26749 (run_gcc): Same.
26750 (main): Same.
26751 * opts.c (print_specific_help): Same.
26752 (parse_no_sanitize_attribute): Same.
26753 (print_help): Same.
26754 (handle_param): Same.
26755 * plugin.c (add_new_plugin): Same.
26756 (parse_plugin_arg_opt): Same.
26757 (try_init_one_plugin): Same.
26758 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26759 operators, and types in diagnostics. Correct quoting and spelling
26760 issues.
26761 * read-rtl-function.c (parse_edge_flag_token): Same.
26762 (function_reader::parse_enum_value): Same.
26763 * reg-stack.c (check_asm_stack_operands): Same.
26764 * regcprop.c (validate_value_data): Same.
26765 * sched-rgn.c (make_pass_sched_fusion): Same.
26766 * stmt.c (check_unique_operand_names): Same.
26767 * targhooks.c (default_target_option_pragma_parse): Same.
26768 * tlink.c (recompile_files): Same.
26769 * toplev.c (process_options): Same.
26770 (do_compile): Same.
26771 * trans-mem.c (diagnose_tm_1): Same.
26772 (ipa_tm_scan_irr_block): Same.
26773 (ipa_tm_diagnose_transaction): Same.
26774 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26775 format a tree code name in a diagnostic.
26776 (verify_types_in_gimple_min_lval): Same.
26777 (verify_types_in_gimple_reference): Same.
26778 (verify_gimple_call): Same.
26779 (verify_gimple_assign_unary): Same.
26780 (verify_gimple_assign_binary): Same.
26781 (verify_gimple_assign_ternary): Same.
26782 (verify_gimple_assign_single): Same.
26783 (verify_gimple_switch): Same.
26784 (verify_gimple_label): Same.
26785 (verify_gimple_phi): Same.
26786 (verify_gimple_in_seq): Same.
26787 (verify_eh_throw_stmt_node): Same.
26788 (collect_subblocks): Same.
26789 (gimple_verify_flow_info): Same.
26790 (do_warn_unused_result): Same.
26791 * tree-inline.c (expand_call_inline): Same.
26792 * tree-into-ssa.c (update_ssa): Same.
26793 * tree.c (tree_int_cst_elt_check_failed): Same.
26794 (tree_vec_elt_check_failed): Same.
26795 (omp_clause_operand_check_failed): Same.
26796 (verify_type_variant): Same.
26797 (verify_type): Same.
26798 * value-prof.c (verify_histograms): Same.
26799 * varasm.c (assemble_start_function): Same.
26800
26801 2019-05-16 Martin Sebor <msebor@redhat.com>
26802
26803 * config/i386/i386-expand.c (get_element_number): Quote keywords
26804 and other internal names in diagnostics. Adjust other diagnostic
26805 formatting issues noted by -Wformat-diag.
26806 * config/i386/i386-features.c
26807 (ix86_mangle_function_version_assembler_name): Same.
26808 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26809 * config/i386/i386.c (ix86_function_type_abi): Same.
26810 (ix86_function_ms_hook_prologue): Same.
26811 (classify_argument): Same.
26812 (ix86_expand_prologue): Same.
26813 (ix86_md_asm_adjust): Same.
26814 (ix86_memmodel_check): Same.
26815
26816 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26817
26818 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26819 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26820 and fpxx modes.
26821
26822 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26823
26824 PR target/90497
26825 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26826 intrinsics without SSE/SSE2/SSSE3.
26827 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26828 check.
26829 (*mmx_uavgv8qi3): Likewise.
26830
26831 2019-05-17 Richard Biener <rguenther@suse.de>
26832
26833 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26834 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26835
26836 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26837
26838 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26839 vec_sldw insn pattern.
26840
26841 2019-05-17 Richard Biener <rguenther@suse.de>
26842
26843 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26844
26845 2019-05-17 Martin Liska <mliska@suse.cz>
26846
26847 PR driver/90496
26848 * toplev.c (output_stack_usage): With LTO and sanitizer it
26849 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26850 has no file location.
26851
26852 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26853
26854 PR c++/90484
26855 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26856 sz0 is equal to sz1, instead return false in that case.
26857
26858 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26859 has non-constant expression, force sctx.lane and use two
26860 argument IFN_GOMP_SIMD_LANE instead of single argument.
26861 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26862 two argument IFN_GOMP_SIMD_LANE without lhs.
26863 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26864 member.
26865 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26866 Define.
26867 (LOOP_REQUIRES_VERSIONING): Or in
26868 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26869 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26870 simd_if_cond.
26871 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26872 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26873 from simd if clause if needed.
26874
26875 2019-05-16 Richard Biener <rguenther@suse.de>
26876
26877 * tree-affine.c (expr_to_aff_combination): New function split
26878 out from...
26879 (tree_to_aff_combination): ... here.
26880 (aff_combination_expand): Avoid building a GENERIC tree.
26881
26882 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26883
26884 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26885 assemble_start_function and assemble_end_function calls.
26886 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26887 assemble_start_function and assemble_end_function.
26888 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26889 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26890 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26891 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26892 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26893 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26894 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26895 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26896 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26897 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26898 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26899 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26900 Likewise.
26901 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26902 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26903 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26904 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26905 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26906 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26907 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26908 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26909 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26910 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26911 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26912 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26913 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26914 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26915 Likewise.
26916 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26917 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26918 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26919
26920 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26921
26922 * tree-ssa-alias.c (alias_stats): Add
26923 aliasing_component_refs_p_may_alias and
26924 aliasing_component_refs_p_no_alias.
26925 (dump_alias_stats): Print aliasing_component_refs_p stats.
26926 (aliasing_component_refs_p): Update stats.
26927
26928 2019-05-16 Martin Liska <mliska@suse.cz>
26929
26930 PR lto/90500
26931 * multiple_target.c (expand_target_clones): Do not allow
26932 target_clones being used with a symbol that is an alias.
26933
26934 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26935
26936 PR tree-optimization/90394
26937 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26938 positives rather than ICE for cases where (code2 == NE_EXPR
26939 && code1 == BIT_AND_EXPR).
26940
26941 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26942
26943 PR fortran/90329
26944 * tree-core.h (struct tree_decl_common): Document
26945 decl_nonshareable_flag for PARM_DECLs.
26946 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26947 * calls.c (expand_call): Don't try tail call if caller
26948 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26949 passed on the stack and callee needs to pass any arguments on the
26950 stack.
26951 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26952 else if instead of series of mutually exclusive ifs. Handle
26953 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26954 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26955
26956 * lto-streamer.h (LTO_major_version): Bump to 9.
26957
26958 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26959
26960 PR tree-optimization/90106
26961 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26962 new parameter as new internal function call, also move it to new
26963 basic block.
26964 (use_internal_fn): Pass internal function call to
26965 shrink_wrap_one_built_in_call_with_conds.
26966
26967 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26968
26969 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26970 max_vf to 1.
26971 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26972 safelen_int and set loop->dont_vectorize.
26973
26974 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26975
26976 PR target/89021
26977 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26978 SSE/SSE2/SSSE3.
26979 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26980 Likewise.
26981 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26982 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26983 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26984 is defined.
26985
26986 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26987
26988 PR target/89021
26989 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26990 define_insn_and_split to support SSE emulation.
26991 (*vec_extractv2sf_0): Likewise.
26992 (*vec_extractv2sf_1): Likewise.
26993 (*vec_extractv2si_0): Likewise.
26994 (*vec_extractv2si_1): Likewise.
26995 (*vec_extractv2si_zext_mem): Likewise.
26996 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26997 (vec_extractv2sf_1 splitter): Likewise.
26998 (vec_extractv2sfsf): Likewise.
26999 (vec_setv2si): Likewise.
27000 (vec_extractv2si_1 splitter): Likewise.
27001 (vec_extractv2sisi): Likewise.
27002 (vec_setv4hi): Likewise.
27003 (vec_extractv4hihi): Likewise.
27004 (vec_setv8qi): Likewise.
27005 (vec_extractv8qiqi): Likewise.
27006 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27007 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27008 (vec_extractv2sisi): Likewise.
27009 (vec_extractv4hihi): Likewise.
27010 (vec_extractv8qiqi): Likewise.
27011 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27012 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27013 (vec_initv2sisi): Likewise.
27014 (vec_initv4hihi): Likewise.
27015 (vec_initv8qiqi): Likewise.
27016 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27017 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27018 (vec_setv4hi): Likewise.
27019 (vec_setv8qi): Likewise.
27020
27021 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27022
27023 PR target/89021
27024 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27025 TARGET_MMX_WITH_SSE.
27026 (MMXMODE:*mov<mode>_internal): Likewise.
27027 (MMXMODE:movmisalign<mode>): Likewise.
27028
27029 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27030
27031 PR target/89021
27032 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27033 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27034 (sse2_cvtpd2pi): Ditto.
27035 (sse2_cvttpd2pi): Ditto.
27036 (*vec_concatv2sf_sse4_1): Ditto.
27037 (*vec_concatv2sf_sse): Ditto.
27038 (*vec_concatv2si_sse4_1): Ditto.
27039 (*vec_concatv2si): Ditto.
27040 (*vec_concatv4si_0): Ditto.
27041 (*vec_concatv2di_0): Ditto.
27042
27043 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27044
27045 PR target/89021
27046 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27047
27048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27049
27050 PR target/89021
27051 * config/i386/sse.md (ssse3_palignrdi): Changed to
27052 define_insn_and_split to support SSE emulation.
27053
27054 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27055
27056 PR target/89021
27057 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27058
27059 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27060
27061 PR target/89021
27062 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27063 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27064 SSE emulation.
27065
27066 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27067
27068 PR target/89021
27069 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27070 or TARGET_MMX_WITH_SSE.
27071 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27072
27073 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27074
27075 PR target/89021
27076 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27077
27078 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27079
27080 PR target/89021
27081 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27082 Changed to define_insn_and_split to support SSE emulation.
27083
27084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27085
27086 PR target/89021
27087 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27088 Changed to define_insn_and_split to support SSE emulation.
27089
27090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27091
27092 PR target/89021
27093 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27094 (*mmx_<emms>): This.
27095 (mmx_<emms>): New expander.
27096
27097 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27098
27099 PR target/89021
27100 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27101 support.
27102 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27103
27104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27105
27106 PR target/89021
27107 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27108
27109 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27110
27111 PR target/89021
27112 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27113
27114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27115
27116 PR target/89021
27117 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27118 TARGET_MMX_WITH_SSE.
27119 (*mmx_uavgv4hi3): Add 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_uavgv8qi3): Also check TARGET_MMX
27125 and TARGET_MMX_WITH_SSE.
27126 (*mmx_uavgv8qi3): Add SSE emulation.
27127
27128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27129
27130 PR target/89021
27131 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27132 maskmovdqu for __MMX_WITH_SSE__.
27133
27134 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27135
27136 PR target/89021
27137 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27138 TARGET_MMX and TARGET_MMX_WITH_SSE.
27139 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27140
27141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27142
27143 PR target/89021
27144 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27145 define_insn_and_split to support SSE emulation.
27146
27147 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27148
27149 PR target/89021
27150 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27151 and TARGET_MMX_WITH_SSE.
27152 (mmx_<code>v8qi3): Likewise.
27153 (smaxmin:<code>v4hi3): New.
27154 (umaxmin:<code>v8qi3): Likewise.
27155 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27156 (umaxmin:*mmx_<code>v8qi3): Likewise.
27157
27158 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27159
27160 PR target/89021
27161 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27162 TARGET_MMX_WITH_SSE.
27163 (*mmx_pinsrw): Add SSE emulation.
27164
27165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27166
27167 PR target/89021
27168 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27169
27170 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27171
27172 PR target/89021
27173 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27174 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27175 SSE emulation.
27176
27177 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27178
27179 PR target/89021
27180 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27181 (sse_cvttps2pi): Likewise.
27182
27183 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27184
27185 PR target/89021
27186 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27187 TARGET_MMX_WITH_SSE.
27188 (mmx_pshufw_1): Add SSE emulation.
27189 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27190 TARGET_MMX_WITH_SSE to support SSE emulation.
27191
27192 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27193
27194 PR target/89021
27195 * config/i386/constraints.md (Yw): New constraint.
27196 * config/i386/mmx.md (*vec_dupv2si): Changed to
27197 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27198 support SSE emulation.
27199
27200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27201
27202 PR target/89021
27203 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27204 TARGET_MMX_WITH_SSE.
27205 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27206 support.
27207 (mmx_gt<mode>3): Likewise.
27208
27209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27210
27211 PR target/89021
27212 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27213 TARGET_MMX_WITH_SSE. Add SSE support.
27214
27215 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27216
27217 PR target/89021
27218 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27219 TARGET_MMX_WITH_SSE.
27220 (any_logic:<code><mode>3): New.
27221 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27222 Add SSE support.
27223
27224 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27225
27226 PR target/89021
27227 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27228 TARGET_MMX_WITH_SSE. Add SSE emulation.
27229 (mmx_<shift_insn><mode>3): Likewise.
27230 (ashr<mode>3): New.
27231 (<shift_insn><mode>3): Likewise.
27232
27233 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27234
27235 PR target/89021
27236 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27237 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27238
27239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27240
27241 PR target/89021
27242 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27243 TARGET_MMX_WITH_SSE.
27244 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27245 SSE support.
27246
27247 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27248
27249 PR target/89021
27250 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27251 TARGET_MMX_WITH_SSE.
27252 (mulv4hi3): New.
27253 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27254 support.
27255
27256 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27257
27258 PR target/89021
27259 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27260 (plusminus:mmx_<plusminus_insn><mode>3): Check
27261 TARGET_MMX_WITH_SSE.
27262 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27263 (<plusminus_insn><mode>3): New.
27264 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27265 (*mmx_<plusminus_insn><mode>3): Likewise.
27266
27267 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27268
27269 PR target/89021
27270 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27271 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27272 prototype.
27273 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27274 define_insn_and_split to support SSE emulation.
27275 (mmx_punpcklbw): Likewise.
27276 (mmx_punpckhwd): Likewise.
27277 (mmx_punpcklwd): Likewise.
27278 (mmx_punpckhdq): Likewise.
27279 (mmx_punpckldq): Likewise.
27280
27281 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27282 Uros Bizjak <ubizjak@gmail.com>
27283
27284 PR target/89021
27285 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27286 New function.
27287 (ix86_split_mmx_pack): Likewise.
27288 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27289 New prototype.
27290 (ix86_split_mmx_pack): Likewise.
27291 * config/i386/i386.md (mmx_isa): New.
27292 (enabled): Also check mmx_isa.
27293 * config/i386/mmx.md (any_s_truncate): New code iterator.
27294 (s_trunsuffix): New code attr.
27295 (mmx_packsswb): Removed.
27296 (mmx_packssdw): Likewise.
27297 (mmx_packuswb): Likewise.
27298 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27299 MMX packsswb/packuswb with SSE2.
27300 (mmx_packssdw): Likewise.
27301 * config/i386/predicates.md (register_mmxmem_operand): New.
27302
27303 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27304
27305 PR target/89021
27306 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27307 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27308 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27309 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27310 (ix86_vector_mode_supported_p): Likewise.
27311 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27312
27313 2019-05-15 Martin Liska <mliska@suse.cz>
27314
27315 PR middle-end/90478
27316 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27317 Check for overflow.
27318
27319 2019-05-15 Richard Biener <rguenther@suse.de>
27320
27321 * tree-into-ssa.c (pass_build_ssa::execute): Run
27322 update_address_taken before going into SSA.
27323
27324 2019-05-15 Richard Biener <rguenther@suse.de>
27325
27326 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27327 as __BIT_FIELD_REF with type with -gimple.
27328
27329 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27330
27331 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27332 semantically equivalent branches (left over after prior refactorings).
27333
27334 2019-05-15 Richard Biener <rguenther@suse.de>
27335
27336 PR tree-optimization/88828
27337 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27338 bogus check.
27339
27340 2019-05-14 Richard Biener <rguenther@suse.de>
27341
27342 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27343 as __VIEW_CONVERT with -gimple.
27344
27345 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27346
27347 PR target/82920
27348 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27349 Darwin.
27350
27351 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27352
27353 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27354 define_split to become a define_insn_and_split.
27355
27356 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27357
27358 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27359 arguments.
27360 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27361 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27362 (sibcall_epilogue): Adjust.
27363 (epilogue): Adjust.
27364
27365 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27366
27367 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27368 to unsupported ones.
27369 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27370 * config.host: Likewise.
27371 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27372 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27373 __svr4__]: Remove "brand" fallback.
27374 [!KSTAT_DATA_STRING]: Remove.
27375 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27376 to *-*-solaris2*.
27377 (comdat_group): Likewise.
27378 (set_have_as_tls): Likewise.
27379 (gcc_cv_target_dl_iterate_phdr): Likewise.
27380 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27381 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27382 * configure: Regenerate.
27383 * doc/install.texi: Simplify Solaris target triplets.
27384 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27385 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27386 Remove Solaris 10 references.
27387 Remove obsolete Solaris bug reference.
27388 (Specific, sparc-sun-solaris2.10): Remove.
27389
27390 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27391
27392 * config/i386/i386.md (any_div): New code iterator.
27393 (paired_mod): New code attribute.
27394 (sgnprefix): Handle DIV and UDIV RTXes.
27395 (u): Ditto.
27396 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27397 and udivmod<mode>4 patterns using any_div code iterator.
27398 (divmod splitters): Macroize splitters using any_div code iterator.
27399 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27400 (*udivmodsi4_pow2_zext_2): Ditto.
27401 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27402 and *udivmod<mode>4_noext patterns using any_div code iterator.
27403 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27404 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27405 patterns using any_div code iterator.
27406 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27407 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27408 patterns using any_div code iterator.
27409 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27410 udivmodhiqi3 patterns using any_extend code iterator.
27411
27412 2019-05-14 Richard Biener <rguenther@suse.de>
27413 H.J. Lu <hongjiu.lu@intel.com>
27414
27415 PR tree-optimization/88828
27416 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27417 permuting in a single non-constant element not extracted
27418 from a vector.
27419
27420 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27421
27422 * internal-fn.def (SIGNBIT): New.
27423 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27424 defined.
27425 (signbitv4sf2): Likewise.
27426
27427 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27428
27429 PR target/90357
27430 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27431 next insn when the SRC reg is dead.
27432
27433 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27434
27435 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27436 (alloc_cand_and_find_basis): Ditto.
27437 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27438 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27439 (create_add_imm_cand, slsr_process_cast): Ditto.
27440 (slsr_process_copy, replace_mult_candidate): Ditto.
27441 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27442 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27443 (pass_strength_reduction::execute): Init the first NULL element.
27444
27445 2019-05-13 Nathan Sidwell <nathan@acm.org>
27446
27447 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27448 (run_attempt): Reformat line break.
27449
27450 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27451
27452 PR target/90418
27453 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27454 data registers in sibcall epilogues.
27455 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27456
27457 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27458
27459 PR target/89221
27460 * configure.ac (--enable-frame-pointer):
27461 Disable by default for cygwin and mingw.
27462 * configure: Regenerate.
27463
27464 2019-05-13 Nathan Sidwell <nathan@acm.org>
27465
27466 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27467 piece of code.
27468 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27469 (gen_member_die): Move abstract origin check earlier. Only VARs
27470 can be static_inline_p. Simplify splicing control flow.
27471
27472 2019-05-13 Richard Biener <rguenther@suse.de>
27473
27474 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27475 VIEW_CONVERT_EXPR.
27476 (vect_build_slp_tree_1): Likewise.
27477
27478 2019-05-13 Richard Biener <rguenther@suse.de>
27479
27480 PR tree-optimization/90402
27481 * tree-if-conv.c (tree_if_conversion): Value number only
27482 the loop body by making the latch an exit of the region
27483 as well.
27484 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27485 processing PHIs.
27486 (do_rpo_vn): Deal with multiple edges into the entry block
27487 that are not backedges inside the region by skipping PHIs
27488 of the entry block.
27489
27490 2019-05-13 Richard Biener <rguenther@suse.de>
27491
27492 PR tree-optimization/90316
27493 * tree-ssa-pre.c (insert_aux): Fold into ...
27494 (insert): ... this function. Use a RPO walk to reduce the
27495 number of required iterations.
27496
27497 2019-05-13 Martin Liska <mliska@suse.cz>
27498
27499 PR tree-optimization/90416
27500 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27501 string instead of passing the second part as va_arg argument.
27502
27503 2019-05-13 Martin Liska <mliska@suse.cz>
27504
27505 PR gcov-profile/90380
27506 * gcov.c (handle_cycle): Do not support zero cycle count,
27507 it should not be possible.
27508 (path_contains_zero_cycle_arc): New function.
27509 (circuit): Ignore zero cycle arc counts.
27510
27511 2019-05-13 Martin Liska <mliska@suse.cz>
27512
27513 PR gcov-profile/90380
27514 * gcov.c (enum loop_type): Remove the enum and
27515 the operator.
27516 (handle_cycle): Assert that we should not reach
27517 a negative count.
27518 (circuit): Use loop_found instead of a tri-state loop_type.
27519 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27520 happen.
27521
27522 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27523
27524 PR target/82920
27525 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27526 (ix86_output_indirect_branch_via_reg): Use output mechanism
27527 accounting for __USER_LABEL_PREFIX__.
27528 (ix86_output_indirect_branch_via_push): Likewise.
27529 (ix86_output_function_return): Likewise.
27530 (ix86_output_indirect_function_return): Likewise.
27531
27532 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27533
27534 * doc/md.texi: Document use of code attributes in rtx patterns.
27535 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27536 * read-rtl.c (find_code): Split out search loops into...
27537 (maybe_find_code): ...this new function.
27538 (check_code_iterator): Make the error message more informative.
27539 (check_code_attribute): New function.
27540 (rtx_reader::rtx_alloc_for_name): Likewise.
27541 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27542 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27543 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27544 <max_opp> directly as an rtx code instead of via a match_operator.
27545 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27546 (<su>abd<mode>_3): Update accordingly.
27547
27548 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27549
27550 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27551 is given, print the state of the EH "save world" computation for
27552 Darwin.
27553
27554 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27555
27556 PR c++/59813
27557 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27558 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27559
27560 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27561
27562 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27563 Use pinsrd for TARGET_SSE4_1.
27564 * config/i386/sse.md (movdi_to_sse): Ditto.
27565
27566 2019-05-10 Richard Biener <rguenther@suse.de>
27567
27568 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27569 (do_rpo_vn): Initialize next_value_id.
27570
27571 2019-05-10 Martin Liska <mliska@suse.cz>
27572
27573 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27574 Fix plural form.
27575
27576 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27577
27578 PR tree-optimization/90385
27579 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27580 arguments of the exit phis.
27581
27582 PR c++/90383
27583 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27584 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27585 id->do_not_fold.
27586 (copy_tree_body_r): Likewise.
27587 (copy_fn): Set id.do_not_fold to true.
27588
27589 2019-05-10 Martin Liska <mliska@suse.cz>
27590
27591 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27592 Reapply changes from r269790.
27593
27594 2019-05-10 Martin Liska <mliska@suse.cz>
27595
27596 PR middle-end/90340
27597 * doc/invoke.texi: New params.
27598 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27599 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27600 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27601 Use it.
27602 * tree-switch-conversion.h (struct jump_table_cluster):
27603 Likewise.
27604
27605 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27606
27607 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27608
27609 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27610
27611 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27612
27613 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27614
27615 PR rtl-optimization/88879
27616 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27617
27618 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27619
27620 PR target/90405
27621 * config/arm/arm.c (callee_saved_reg_p): Move before
27622 thumb_find_work_register.
27623 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27624 thumb_find_work_register. Only call df_get_live_out once.
27625 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27626 (thumb_find_work_register): Use
27627 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27628 algorithms to locate a spare call clobbered reg.
27629
27630 2019-05-09 Martin Liska <mliska@suse.cz>
27631
27632 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27633 and MAX_EXPR in GIMPLE FE format.
27634
27635 2019-05-09 Martin Liska <mliska@suse.cz>
27636
27637 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27638 * gimple-pretty-print.c (dump_gimple_bb_header):
27639 Dump BB count.
27640 (pp_cfg_jump): Dump edge probability.
27641 * profile-count.c (profile_quality_as_string): Simplify
27642 with a static array.
27643 (parse_profile_quality): New function.
27644 (profile_count::dump): Simplify with a static array.
27645 (profile_count::from_gcov_type): Add new argument.
27646 * profile-count.h (parse_profile_quality): Likewise.
27647 * predict.h (set_hot_bb_threshold): New.
27648 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27649 New param.
27650 * predict.c (get_hot_bb_threshold): Set from the new param.
27651 (set_hot_bb_threshold): New.
27652
27653 2019-05-09 Richard Biener <rguenther@suse.de>
27654
27655 PR tree-optimization/90395
27656 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27657 rewrite vector stores that throw internally.
27658
27659 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27660
27661 * cif-code.def (CHKP): Remove.
27662
27663 PR target/89221
27664 * configure.ac (--enable-frame-pointer): Disable by default for
27665 GNU systems.
27666 * configure: Regenerate.
27667
27668 2019-05-09 Alan Modra <amodra@gmail.com>
27669
27670 PR target/89271
27671 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27672 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27673 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27674 cost for general <-> vsx when direct moves are available.
27675 Cost union classes at minimal cost for any reg in the class.
27676 Correct calculation for moves between vsx, float, and altivec.
27677 Don't return a low cost for moves between special regs. Don't
27678 use hard coded register numbers.
27679 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27680 (rs6000_ira_change_pseudo_allocno_class): New function.
27681 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27682 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27683 alternatives.
27684 (movsi_internal1): Don't disparage vector alternatives.
27685 (mov<mode>_internal): Likewise, excepting alternative that
27686 will be split.
27687 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27688 we <- b alternative.
27689
27690 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27691
27692 PR c++/59813
27693 PR tree-optimization/89060
27694 * tree-ssa-live.h (live_vars_map): New typedef.
27695 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27696 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27697 (struct compute_live_vars_data): New type.
27698 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27699 live_vars_at_stmt, destroy_live_vars): New functions.
27700 * tree-tailcall.c: Include tree-ssa-live.h.
27701 (live_vars, live_vars_vec): New global variables.
27702 (find_tail_calls): Perform variable life analysis before punting.
27703 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27704 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27705 member.
27706 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27707 Perform variable life analysis to select variables that really need
27708 clobbers added.
27709 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27710 instead set id->eh_landing_pad_dest and assert it is the same.
27711 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27712
27713 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27714 Richard Earnshaw <rearnsha@arm.com>
27715
27716 PR target/88167
27717 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27718 function.
27719 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27720 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27721 register if both the epilogue and prologue can use call-clobbered
27722 regs.
27723 (thumb1_unexpanded_epilogue): Use
27724 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27725 picking temporaries for restoring high regs to match that of the
27726 prologue where possible.
27727 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27728 the list of work registers. Detect if the return address is still live
27729 at the end of the prologue and avoid using it for a work register if so.
27730 If the return address is not live, add LR to the list of pushable regs
27731 after the first pass.
27732
27733 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27734
27735 PR tree-optimization/90078
27736 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27737 (INFTY): Increase the value for infinite cost.
27738 (struct comp_cost): Promote type of members to int64_t.
27739 (infinite_cost): Don't set complexity in initialization.
27740 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27741 overflows to infinite_cost.
27742 (adjust_setup_cost): Promote type of parameter and cost computation
27743 to int64_t.
27744 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27745 int64_t.
27746 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27747 cost computation to int64_t.
27748 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27749 int64_t's format specifier in dump.
27750
27751 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27752
27753 PR tree-optimization/90240
27754 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27755 with respect to scaling factor pre-computed for each basic block.
27756 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27757 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27758 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27759 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27760 live range for array of loop's basic blocks. Cleanup aux field of
27761 loop's basic blocks.
27762
27763 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27764
27765 PR tree-optimization/90356
27766 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27767
27768 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27769
27770 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27771 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27772 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27773 (ix86_handle_option): Handle -mavx512bf16.
27774 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27775 to extra_headers.
27776 * config/i386/avx512bf16vlintrin.h: New.
27777 * config/i386/avx512bf16intrin.h: New.
27778 * config/i386/cpuid.h (bit_AVX512BF16): New.
27779 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27780 * config/i386/i386-builtin-types.def: Add new types.
27781 * config/i386/i386-builtin.def: Add new builtins.
27782 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27783 __AVX512BF16__.
27784 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27785 (ix86_option_override_internal): Handle BF16.
27786 (ix86_valid_target_attribute_inner_p): Ditto.
27787 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27788 * config/i386/i386-builtin.c (enum processor_features): Add
27789 F_AVX512BF16.
27790 (static const _isa_names_table isa_names_table): Ditto.
27791 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27792 (PTA_AVX512BF16): Ditto.
27793 * config/i386/i386.opt: Add -mavx512bf16.
27794 * config/i386/immintrin.h: Include avx512bf16intrin.h
27795 and avx512bf16vlintrin.h.
27796 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27797 avx512f_cvtneps2bf16_<mode><mask_name>,
27798 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27799 * config/i386/subst.md (mask_half): Add new subst.
27800 * doc/invoke.texi: Document -mavx512bf16.
27801
27802 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27803
27804 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27805 Delete declaration.
27806 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27807 (rs6000_debug_legitimize_reload_address): Delete.
27808 (rs6000_legitimize_reload_address_ptr): Delete.
27809 (rs6000_option_override_internal): Adjust.
27810 (mem_operand_gpr): Adjust comment.
27811 (legitimate_lo_sum_address_p): Ditto.
27812 (rs6000_legitimize_reload_address): Delete.
27813 (rs6000_debug_legitimize_reload_address): Delete.
27814 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27815
27816 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27817
27818 PR target/89765
27819 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27820 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27821 to compute vector element selector for both constant and variable
27822 operands.
27823
27824 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27825
27826 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27827 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27828 ashrdi3_cvt using SWI48 mode iterator.
27829
27830 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27831
27832 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27833 (aarch64_<su>abd<mode>_3): Likewise.
27834 (*aarch64_<su>abd<mode>_3): New define_insn.
27835 (<sur>sad<vsi2qi>): New define_expand.
27836 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27837 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27838 (build_vect_cond_expr): Likewise.
27839
27840 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27841
27842 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27843 clobbers outside of accessible_reg_set.
27844 * config/i386/i386.c (ix86_conditional_register_usage):
27845 Disable register sets by clearing corresponding bits in
27846 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27847 call_used_regs and don't clear corresponding reg_names array members.
27848
27849 2019-05-07 Richard Biener <rguenther@suse.de>
27850
27851 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27852 not specified still compute a comp_vectype for invariant
27853 compares.
27854
27855 2019-05-07 Richard Biener <rguenther@suse.de>
27856
27857 PR tree-optimization/90316
27858 * tree-ssa-pre.c (translate_vuse_through_block): When
27859 same_valid is NULL do not bother to search for a virtual
27860 PHI continuation.
27861 (phi_translate_1): When operands changed we cannot keep
27862 the same value-number so do not bother to ask whether
27863 that's possible from translate_vuse_through_block.
27864
27865 2019-05-07 Martin Liska <mliska@suse.cz>
27866
27867 * bitmap.c (bitmap_register): Come up with
27868 alloc_descriptor_max_uid and assign it for
27869 a new bitmap.
27870 (register_overhead): Use get_descriptor as
27871 a descriptor.
27872 (release_overhead): New.
27873 (bitmap_elem_to_freelist): Call it.
27874 (bitmap_elt_clear_from): Likewise.
27875 (bitmap_obstack_free): Likewise.
27876 (bitmap_move): Sensitively release memory.
27877 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27878 (bitmap_initialize): Initialize alloc_descriptor to zero.
27879 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27880
27881 2019-05-07 Richard Biener <rguenther@suse.de>
27882
27883 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27884 we build a SLP node. Remove max_size and limiting.
27885 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27886
27887 2019-05-07 Richard Biener <rguenther@suse.de>
27888
27889 PR tree-optimization/90316
27890 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27891 limit by reference.
27892 (walk_non_aliased_vuses): Take walking limit argument.
27893 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27894 walking if it is reached instead of just counting.
27895 (get_continuation_for_phi): Likewise.
27896 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27897 limiting to the callback.
27898 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27899 (vn_reference_lookup_3): Likewise.
27900 (vn_reference_lookup_pieces): Likewise.
27901 (vn_reference_lookup): Likewise.
27902 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27903 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27904 (avail_exprs_stack::lookup_avail_expr): Likewise.
27905
27906 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27907
27908 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27909 for comparaible types in the second direction even if first one
27910 hits incomparable type.
27911
27912 2019-05-07 Richard Biener <rguenther@suse.de>
27913
27914 PR lto/90369
27915 * lto-wrapper.c (debug_objcopy): Use the original filename
27916 including archive offset for the filename used for -save-temps.
27917
27918 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27919
27920 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27921 detection.
27922
27923 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27924 Hongtao Liu <hongtao.liu@intel.com>
27925
27926 PR target/89750
27927 PR target/86444
27928 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27929 Modified, original implementation isn't correct.
27930
27931 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27932
27933 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27934 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27935 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27936 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27937 (FRAME_POINTER_REGNUM): Change numbering.
27938 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27939 (alt_reg_names): Adjust.
27940 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27941 fixed.
27942 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27943 (DWARF_FRAME_REGISTERS): Delete.
27944 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27945 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27946 Adjust.
27947 (REG_ALLOC_ORDER): Adjust.
27948 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27949 (REG_CLASS_CONTENTS): Adjust.
27950 (RETURN_ADDR_RTX): Change comment.
27951 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27952 instead of 67.
27953 (REGISTER_NAMES): Adjust.
27954 (ADDITIONAL_REGISTER_NAMES): Adjust.
27955 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27956
27957 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27958
27959 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27960 Delete.
27961 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27962 (DWARF_FRAME_REGISTERS): Adjust.
27963 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27964 Adjust.
27965 (REG_ALLOC_ORDER): Adjust.
27966 (enum reg_class): Delete SPR_REGS.
27967 (REG_CLASS_NAMES): Delete SPR_REGS.
27968 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27969 (REGISTER_NAMES): Adjust.
27970 (ADDITIONAL_REGISTER_NAMES): Adjust.
27971 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27972 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27973 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27974 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27975 (htm_spr_regno): Delete.
27976 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27977 argument.
27978 (rs6000_dbx_register_number): Adjust.
27979
27980 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27981
27982 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27983
27984 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27985
27986 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27987 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27988
27989 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27990
27991 PR tree-optimization/88709
27992 PR tree-optimization/90271
27993 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27994 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27995 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27996 variable.
27997 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27998 of the store merging group is larger than
27999 PARAM_STORE_MERGING_MAX_SIZE parameter.
28000 (split_group): Add bzero_first argument. If set, always emit first
28001 the first store which must be = {} of the whole area and then for the
28002 rest of the stores consider all zero bytes as paddings.
28003 (imm_store_chain_info::output_merged_store): Check if first store
28004 is = {} of the whole area and if yes, determine which setting of
28005 bzero_first for split_group gives smaller number of stores. Adjust
28006 split_group callers.
28007 (lhs_valid_for_store_merging_p): Allow decls.
28008 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28009 no elts.
28010 (pass_store_merging::process_store): Likewise.
28011
28012 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28013
28014 PR target/89424
28015 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28016 handling of V1TImode.
28017
28018 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28019
28020 PR target/89221
28021 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28022 and enable_frame_pointer ...
28023 * configure.ac: ... here. Update help strings for
28024 --enable-frame-pointer.
28025 * configure: Regenerate.
28026 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28027 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28028 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28029 (USE_X86_64_FRAME_POINTER): Ditto.
28030
28031 2019-05-06 Martin Liska <mliska@suse.cz>
28032
28033 * config.gcc: Append to target_gtfiles and fix indentation.
28034
28035 2019-05-06 Richard Biener <rguenther@suse.de>
28036
28037 PR tree-optimization/90358
28038 * tree-vect-stmts.c (get_group_load_store_type): Properly
28039 detect unused upper half of load.
28040 (vectorizable_load): Likewise.
28041
28042 2019-05-06 Richard Biener <rguenther@suse.de>
28043
28044 PR tree-optimization/88828
28045 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28046 (simplify_vector_constructor): ...here. Handle constants in
28047 the constructor.
28048
28049 2019-05-06 Richard Biener <rguenther@suse.de>
28050
28051 PR tree-optimization/90328
28052 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28053 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28054 is valid in the loop nest before using it.
28055 (initialize_data_dependence_relation): Adjust.
28056 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28057 loop as loop-nest to dr_may_alias_p.
28058
28059 2019-05-06 Richard Biener <rguenther@suse.de>
28060
28061 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28062
28063 2019-05-06 Richard Biener <rguenther@suse.de>
28064
28065 PR tree-optimization/90316
28066 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28067 compute target on demand.
28068 (get_continuation_for_phi): Remove code walking stmts to
28069 get to a target virtual operand which could end up being
28070 quadratic.
28071
28072 2019-05-06 Martin Liska <mliska@suse.cz>
28073
28074 PR sanitizer/90312
28075 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28076 when -mabi is selected to a non-default version.
28077
28078 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28079 Martin Liska <mliska@suse.cz>
28080
28081 * Makefile.in: Add lto-dump.texi.
28082 * cgraph.h: Add new functions get_visibility_string and
28083 get_symtab_type_string.
28084 * doc/gcc.texi: Include lto-dump section.
28085 * doc/lto-dump.texi: New file.
28086 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28087 (parse_dump_option): Factor out this function.
28088 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28089 (parse_dump_option): Export the function.
28090 * symtab.c (symtab_node::get_visibility_string): New function.
28091 (symtab_node::get_symtab_type_string): Likewise.
28092
28093 2019-05-06 Martin Liska <mliska@suse.cz>
28094
28095 * config/i386/i386-builtins.c: New file.
28096 * config/i386/i386-builtins.h: New file.
28097 * config/i386/i386-expand.c: New file.
28098 * config/i386/i386-expand.h: New file.
28099 * config/i386/i386-features.c: New file.
28100 * config/i386/i386-features.h: New file.
28101 * config/i386/i386-options.c: New file.
28102 * config/i386/i386-options.h: New file.
28103 * config.gcc: Add new files into extra_objs and
28104 target_gtfiles.
28105 * config/i386/i386.c: Split content of the file
28106 into newly introduced files.
28107 * config/i386/i386.h: Declare common variables
28108 and macros.
28109 * config/i386/t-i386: Define dependencies for new files.
28110
28111 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28112
28113 PR target/89400
28114 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28115 Restrict 'all' variant to 32-bit configurations.
28116 (unaligned_loadhiu): Likewise.
28117 (unaligned_storehi): Likewise.
28118 (unaligned_storesi): Likewise.
28119 (unaligned_loadhis): Disable when compiling for thumb1.
28120
28121 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28122
28123 PR tree-optimization/90269
28124 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28125 Ignore clobbers.
28126
28127 2019-05-03 Martin Liska <mliska@suse.cz>
28128
28129 * hash-map.h: Add is_empty function.
28130 * hash-set.h: Likewise.
28131 * hash-table.h: Likewise.
28132 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28133 elements () == 0 (and similar usages).
28134 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28135 * gimplify.c (gimplify_bind_expr): Likewise.
28136 (gimplify_switch_expr): Likewise.
28137 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28138 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28139 * postreload-gcse.c (dump_hash_table): Likewise.
28140 (gcse_after_reload_main): Likewise.
28141 * predict.c (combine_predictions_for_bb): Likewise.
28142 * tree-parloops.c (reduction_phi): Likewise.
28143 (separate_decls_in_region): Likewise.
28144 (transform_to_exit_first_loop): Likewise.
28145 (gen_parallel_loop): Likewise.
28146 (gather_scalar_reductions): Likewise.
28147 (try_create_reduction_list): Likewise.
28148 * var-tracking.c (dump_vars): Likewise.
28149 (emit_notes_for_changes): Likewise.
28150 (vt_emit_notes): Likewise.
28151
28152 2019-05-03 Richard Biener <rguenther@suse.de>
28153
28154 PR tree-optimization/90316
28155 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28156 before running VN.
28157
28158 2019-05-03 Richard Biener <rguenther@suse.de>
28159
28160 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28161 peeling for gaps by loading only lower halves of vectors
28162 if possible.
28163 (vectorizable_load): Likewise.
28164
28165 2019-05-03 Richard Biener <rguenther@suse.de>
28166
28167 PR middle-end/89518
28168 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28169
28170 2019-05-03 Richard Biener <rguenther@suse.de>
28171
28172 PR middle-end/87314
28173 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28174 Handle STRING_CST vs DECL or STRING_CST.
28175
28176 2019-05-03 Richard Biener <rguenther@suse.de>
28177
28178 PR tree-optimization/88963
28179 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28180 vector loads feeding only BIT_FIELD_REFs to component
28181 loads. Rewrite stores fed by CONSTRUCTORs to component
28182 stores.
28183
28184 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28185
28186 * opts.h (finish_options): Remove lang_mask argument.
28187 (print_help, help_option_argument): Declare.
28188 * opts.c (print_help): Remove forward declaration, no longer static.
28189 (finish_options): Remove lang_mask argument, don't call print_help
28190 here.
28191 * opts-global.c (decode_options): Adjust finish_option caller, call
28192 print_help here.
28193
28194 PR tree-optimization/90303
28195 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28196 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28197
28198 2019-05-03 Richard Biener <rguenther@suse.de>
28199
28200 PR tree-optimization/89698
28201 * gimple-fold.c (canonicalize_constructor_val): Early out
28202 for constants, handle unfolded INTEGER_CSTs as they appear in
28203 C++ virtual table ctors.
28204
28205 2019-05-03 Richard Biener <rguenther@suse.de>
28206
28207 * passes.c (execute_function_todo): Remove dead code.
28208
28209 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28210
28211 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28212 the internal register number, for any "real" register.
28213
28214 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28215
28216 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28217 correct numbers for TFHAR, TFIAR, TEXASR.
28218
28219 2019-05-02 Richard Biener <rguenther@suse.de>
28220
28221 PR tree-optimization/89653
28222 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28223 update-address-taken before the pass.
28224 * passes.def (pass_tree_loop_init): Put comment before it.
28225
28226 2019-05-02 Richard Biener <rguenther@suse.de>
28227
28228 PR tree-optimization/89509
28229 * tree-ssa-structalias.c (compute_dependence_clique): Look
28230 at the first subvar when determining whether it is restrict.
28231
28232 2019-05-02 Richard Biener <rguenther@suse.de>
28233
28234 PR tree-optimization/90273
28235 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28236 useless debug stmts.
28237
28238 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28239
28240 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28241 ACLE branch.
28242 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28243 SVE ACLE branch.
28244 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28245 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28246 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28247 (vectorizable_reduction): Use the functions above to vectorize in a
28248 fully masked loop codes that don't have a conditional internal
28249 function.
28250
28251 2019-05-02 Martin Liska <mliska@suse.cz>
28252
28253 * cgraphclones.c: Call valid_attribute_p with 1 for
28254 target_clone.
28255 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28256 it's for target attribute.
28257 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28258 Add new boolean argument.
28259 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28260 Likewise.
28261 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28262 to ix86_valid_target_attribute_inner_p.
28263 (ix86_valid_target_attribute_p): Pass flags argument to
28264 ix86_valid_target_attribute_inner_p.
28265 (get_builtin_code_for_version): Use 0 as it's target attribute.
28266
28267 2019-05-02 Martin Liska <mliska@suse.cz>
28268
28269 * gcc.c (process_command): Add dummy file only
28270 if n_infiles == 0.
28271 * opts-global.c (decode_options): Pass lang_mask.
28272 * opts.c (print_help): New function.
28273 (finish_options): Print --help if help_option_argument
28274 is set.
28275 (common_handle_option): Factor out content of OPT__help_
28276 into print_help.
28277 * opts.h (finish_options): Add new argument.
28278
28279 2019-05-02 Martin Liska <mliska@suse.cz>
28280
28281 PR target/88809
28282 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28283 With -minline-all-stringops use inline expansion using 4B loop.
28284 * doc/invoke.texi: Document the change of
28285 -minline-all-stringops.
28286
28287 2019-05-01 Jeff Law <law@redhat.com>
28288
28289 PR tree-optimization/88797
28290 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28291 PHI feeds a conditional on the RHS of an assignment.
28292
28293 2019-04-30 Andrew Waterman <andrew@sifive.com>
28294 Jim Wilson <jimw@sifive.com>
28295
28296 * config/riscv/constraints.md (L): New.
28297 * config/riscv/predicates.md (lui_operand): New.
28298 (sfb_alu_operand): New.
28299 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28300 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28301 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28302 * config/riscv/risc.md (type): Add sfb_alu.
28303 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28304 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28305 (branch_zero<mode>): Delete.
28306 (mov<mode>cc): New.
28307 (mov<GPR:mode><X:mode>cc): Likewise.
28308 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28309
28310 2019-04-30 Nathan Sidwell <nathan@acm.org>
28311
28312 * tree.h (MARK_TS_EXP): New.
28313
28314 2019-04-30 Martin Liska <mliska@suse.cz>
28315
28316 * opts.c (enable_warning_as_error): Provide hints
28317 for unknown options.
28318
28319 2019-04-30 Martin Liska <mliska@suse.cz>
28320
28321 PR debug/90288
28322 * doc/invoke.texi: Add missing dash for gas-locview-support
28323 and gno-as-locview-support.
28324
28325 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28326
28327 PR target/89093
28328 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28329 whitespace at the start of target attribute string.
28330
28331 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28332
28333 PR target/86538
28334 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28335 Define __ARM_FEATURE_ATOMICS.
28336
28337 2019-04-30 Martin Liska <mliska@suse.cz>
28338
28339 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28340 into built_in_function enum. Remove code for endp == 2 and
28341 use BUILT_IN_* constants.
28342 (gimple_fold_builtin): Call the function with fcode.
28343
28344 2019-04-30 Martin Liska <mliska@suse.cz>
28345
28346 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28347 DECL_FUNCTION_CODE into ix86_builtins enum before
28348 the switch statement.
28349
28350 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28351
28352 PR tree-optimization/89475
28353 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28354 calls.
28355
28356 2019-04-30 Martin Liska <mliska@suse.cz>
28357
28358 PR translation/90274
28359 * opts.c (print_filtered_help): Wrap string in _(...).
28360
28361 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28362
28363 PR tree-optimization/90240
28364 Revert:
28365 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28366
28367 PR tree-optimization/90078
28368 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28369 checks for infinite_cost overflow.
28370
28371 2019-04-29 Jeff Law <law@redhat.com>
28372
28373 * passes.def: Move -Wrestrict pass after copy propagation.
28374
28375 2019-04-29 Maya Rashish <coypu@sdf.org>
28376
28377 * config.gcc (default_gnu_indirect_function): Default to yes
28378 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28379 sparc*-*-netbsd*, x86_64-*-netbsd*.
28380
28381 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28382
28383 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28384 where cond2 is NE_EXPR.
28385 (is_value_included_in): Update comment.
28386
28387 2019-04-29 Richard Biener <rguenther@suse.de>
28388
28389 PR tree-optimization/90278
28390 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28391 EH on comparison simplification.
28392
28393 2019-04-29 Jason Merrill <jason@redhat.com>
28394
28395 PR c++/82081 - tail call optimization breaks noexcept
28396 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28397 nothrow function to a might-throw function into a tail call.
28398
28399 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28400
28401 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28402 (DDR_INNER_LOOP): Likewise.
28403 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28404 (initialize_data_dependence_relation): Likewise.
28405 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28406
28407 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28408
28409 PR rtl-optimization/90257
28410 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28411 return value.
28412
28413 Revert the revert:
28414 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28415
28416 PR target/90178
28417 Revert:
28418 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28419
28420 Revert the revert:
28421 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28422
28423 Revert:
28424 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28425
28426 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28427
28428 2019-04-29 Richard Biener <rguenther@suse.de>
28429
28430 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28431 rhs issue a reset.
28432
28433 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28434
28435 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28436 varasm.h, and netbsd-protos.h.
28437
28438 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28439
28440 PR target/89261
28441 * config/i386/i386-protos.h (ix86_data_alignment): Change
28442 the second argument type to unsigned int.
28443 * config/i386/i386.c (ix86_data_alignment): Change "align"
28444 argument type to unsigned int.
28445
28446 2019-04-27 Martin Liska <mliska@suse.cz>
28447
28448 PR middle-end/90258
28449 * opt-suggestions.c (option_proposer::build_option_suggestions):
28450 When get_valid_option_values returns empty values, add the
28451 misspelling candidate.
28452
28453 2019-04-26 Jim Wilson <jimw@sifive.com>
28454
28455 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28456 parameter.
28457 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28458 Pass orig_mode to riscv_build_integer.
28459 (riscv_split_integer): Pass mode to riscv_move_integer.
28460 (riscv_legitimize_const_move): Likewise.
28461 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28462 promoted_mode. Replace force_reg call with code to load constant into
28463 promoted reg and then subreg it for the store.
28464 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28465 riscv_move_integer.
28466
28467 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28468
28469 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28470 corrupt codes.
28471
28472 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28473
28474 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28475 commentary about the encoding of precision.
28476
28477 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28478
28479 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28480 * config/i386/t-freebsd64: New file.
28481 * config.gcc: Add the t-freebsd64 for multilib support.
28482
28483 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28484
28485 * doc/extend.texi (vector_size): Add missing comma after @xref.
28486
28487 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28488
28489 * BASE-VER: Set to 10.0.0.
28490
28491 2019-04-25 Richard Biener <rguenther@suse.de>
28492
28493 PR middle-end/89765
28494 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28495 VIEW_CONVERT_EXPR into one operating on an rvalue.
28496
28497 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28498
28499 PR target/89929
28500 * config/i386/i386.c (feature_priority): Moved to file scope.
28501 (processor_features): Likewise.
28502 (processor_model): Likewise.
28503 (_arch_names_table): Likewise.
28504 (arch_names_table): Likewise.
28505 (_feature_list): Removed.
28506 (feature_list): Likewise.
28507 (_isa_names_table): Moved to file scope. Add priority.
28508 (isa_names_table): Likewise.
28509 (get_builtin_code_for_version): Replace feature_list with
28510 isa_names_table. Update error message for P_ZERO priority.
28511
28512 2019-04-25 Richard Biener <rguenther@suse.de>
28513
28514 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28515 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28516
28517 2019-04-24 Jeff Law <law@redhat.com>
28518
28519 PR tree-optimization/90037
28520 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28521 * passes.def: Replace all instance of phi-only cprop with the
28522 lattice propagator. Move propagation pass from after erroneous
28523 path isolation to before erroneous path isolation.
28524 * tree-ssa-phionlycprop.c: Remove.
28525
28526 2019-04-24 Richard Biener <rguenther@suse.de>
28527
28528 PR middle-end/90213
28529 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28530 by size and BITS_PER_UNIT on poly-wide-ints.
28531
28532 2019-04-25 Richard Biener <rguenther@suse.de>
28533
28534 PR middle-end/90194
28535 * match.pd: Add pattern to simplify view-conversion of an
28536 empty constructor.
28537
28538 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28539
28540 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28541 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28542 for Go on 32 bit AIX.
28543 * config/rs6000/aix72.h: Likewise.
28544
28545 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28546
28547 PR target/90193
28548 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28549 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28550
28551 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28552
28553 PR target/89952
28554 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28555 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28556 for restored hard frame pointer.
28557 (s390_sched_dependencies_evaluation): Implement new target hook.
28558 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28559
28560 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28561
28562 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28563 * config/arc/arc.c (arc_init): Cleanup warning message.
28564 (arc_override_options): Likewise.
28565
28566 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28567
28568 PR target/90187
28569 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28570 a register if both if_true and if_false are MEMs.
28571
28572 PR tree-optimization/90208
28573 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28574 after labels of new_bb, not before them.
28575
28576 PR tree-optimization/90211
28577 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28578 which are not SSA_NAMEs.
28579
28580 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28581
28582 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28583 AArch64.
28584 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28585
28586 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28587
28588 PR rtl-optimization/87979
28589 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28590 not equal zero.
28591
28592 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28593
28594 PR rtl-optimization/84032
28595 * modulo-sched.c (ps_insn_find_column): Change condition so that
28596 branch will always be the last insn in a row inside partial
28597 schedule.
28598
28599 2019-04-23 Richard Biener <rguenther@suse.de>
28600
28601 PR debug/90131
28602 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28603 dest_single_pred_p argument.
28604 (remove_forwarder_block): Adjust.
28605 (remove_forwarder_block_with_phi): Likewise.
28606
28607 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28608 Bernd Edlinger <bernd.edlinger@hotmail.de>
28609 Jakub Jelinek <jakub@redhat.com>
28610
28611 PR target/89093
28612 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28613 if used with general-regs-only.
28614 (arm_conditional_register_usage): Don't add non-general regs if
28615 general-regs-only.
28616 (arm_valid_target_attribute_rec): Handle general-regs-only.
28617 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28618 general-regs-only.
28619 (TARGET_HARD_FLOAT_SUB): Define.
28620 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28621 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28622 (TARGET_REALLY_IWMMXT2): Likewise.
28623 * config/arm/arm.opt: Add -mgeneral-regs-only.
28624 * doc/extend.texi: Document ARM general-regs-only target.
28625 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28626
28627 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28628
28629 PR tree-optimization/90078
28630 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28631 checks for infinite_cost overflow.
28632
28633 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28634
28635 PR tree-optimization/90021
28636 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28637 and check univariate against it.
28638 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28639 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28640
28641 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28642
28643 PR target/90178
28644 Revert:
28645 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28646
28647 Revert the revert:
28648 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28649
28650 Revert:
28651 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28652
28653 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28654
28655 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28656
28657 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28658 names using operand format, rather than hard-wired.
28659 (speculation_barrier): Likewise.
28660
28661 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28662
28663 PR tree-optimization/88055
28664 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28665 (gen_one_condition): Use it if !HONOR_NANS.
28666
28667 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28668
28669 PR middle-end/90139
28670 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28671 assign_temp instead of gen_reg_rtx.
28672
28673 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28674
28675 PR translation/90118
28676 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28677 Add missing space before %<.
28678
28679 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28680
28681 PR rtl-optimization/87871
28682 * ira-lives.c (make_object_dead): Don't add conflicts to
28683 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28684
28685 2019-04-18 Martin Sebor <msebor@redhat.com>
28686
28687 PR middle-end/89797
28688 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28689 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28690 assuming type size fits in SHWI.
28691
28692 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28693
28694 PR ipa/85051
28695 * ipa-inline.c (flatten_function): New parameter UPDATE.
28696 (ipa_inline, early_inliner): Use it.
28697
28698 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28699
28700 * fold-const.c (int_const_binop): Return early on failure.
28701
28702 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28703
28704 PR middle-end/85164
28705 * combine.c (force_int_to_mode): Cast the argument rather than
28706 the result of known_alignment.
28707 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28708
28709 2019-04-18 Richard Biener <rguenther@suse.de>
28710
28711 PR debug/90131
28712 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28713 out from ...
28714 (remove_forwarder_block): ... here.
28715 (remove_forwarder_block_with_phi): Also move debug stmts here.
28716
28717 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28718
28719 PR translation/79183
28720 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28721 inform where appropriate.
28722
28723 2019-04-18 Richard Biener <rguenther@suse.de>
28724
28725 * tree.c (get_qualified_type): Put found type variants at the
28726 head of the variant list.
28727
28728 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28729
28730 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28731
28732 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28733
28734 PR target/90125
28735 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28736 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28737 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28738 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28739 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28740
28741 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28742
28743 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28744 even for allocno's with no conflicts.
28745 (print_conflicts): Print an extra newline.
28746
28747 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28748
28749 * auto-inc-dec.c (attempt_change): Set the alignment of the
28750 temporary memory to that of the original.
28751
28752 2019-04-17 Joao Moreira <jmoreira@suse.de>
28753
28754 * targhooks.c (default_print_patchable_function_entry): Emit
28755 __patchable_function_entries section with writable flags to allow
28756 relocation resolution.
28757
28758 2019-04-17 Jonny Grant <jg@jguk.org>
28759
28760 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28761
28762 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28763
28764 PR middle-end/90095
28765 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28766 on lowpart SUBREGs.
28767
28768 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28769
28770 * config/arc/arc.c (arc_init): Format diagnostic string.
28771 (arc_override_options): Likewise.
28772 (check_if_valid_regno_const): Likewise.
28773 (arc_reorg): Likewise.
28774
28775 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28776
28777 PR target/17108
28778 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28779 name.
28780 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28781 name.
28782 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28783 (*movdi_update1): Use Pmode.
28784 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28785 (movdi_<mode>_update_stack): Rename to ...
28786 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28787 use Pmode.
28788 (*movsi_update1): Use Pmode.
28789 (*movsi_update2): Use Pmode.
28790 (movsi_update): Rename to ...
28791 (movsi_<mode>_update): ... this. Use Pmode.
28792 (movsi_update_stack): Fix condition.
28793 (*movhi_update1): Use Pmode. Fix argument to
28794 avoiding_indexed_address_p.
28795 (*movhi_update2): Ditto.
28796 (*movhi_update3): Ditto.
28797 (*movhi_update4): Ditto.
28798 (*movqi_update1): Ditto.
28799 (*movqi_update2): Ditto.
28800 (*movqi_update3): Ditto.
28801 (*movsf_update1, *movdf_update1): Merge, rename to...
28802 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28803 avoiding_indexed_address_p. Add "size" attribute.
28804 (*movsf_update2, *movdf_update2): Merge, rename to...
28805 (*mov<mode>_update2): This. Ditto.
28806 (*movsf_update3): Use Pmode. Fix argument to
28807 avoiding_indexed_address_p.
28808 (*movsf_update4): Ditto.
28809 (allocate_stack): Simplify condition. Adjust pattern names.
28810
28811 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28812
28813 PR target/89093
28814 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28815 whitespace at the start of target attribute string.
28816
28817 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28818
28819 PR target/84369
28820 * config/rs6000/power9.md: Add store forwarding bypass.
28821
28822 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28823
28824 PR debug/89528
28825 * valtrack.c (dead_debug_insert_temp): Reset debug references
28826 to the return value of a call being removed.
28827
28828 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28829
28830 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28831 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28832 implement target hook.
28833 (arc_memory_move_cost): New function.
28834 (TARGET_REGISTER_MOVE_COST): Define.
28835 (TARGET_MEMORY_MOVE_COST): Likewise.
28836 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28837 (MEMORY_MOVE_COST): Likewise.
28838
28839 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28840
28841 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28842 (sibcall_value_insn): Likewise.
28843 * config/arc/constraints.md (Rs5): Remove.
28844
28845 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28846
28847 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28848 for last two fake registers.
28849 (arc_conditional_register_usage): Make sure fake frame and arg
28850 pointer regs are in general regs class.
28851 (FRAME_POINTER_MASK): Remove.
28852 (RETURN_ADDR_MASK): Remove.
28853 (arc_must_save_register): Use hard frame regnum.
28854 (frame_restore_reg): Use hard_frame_pointer_rtx.
28855 (arc_save_callee_saves): Likewise.
28856 (arc_restore_callee_saves): Likewise.
28857 (arc_save_callee_enter): Likewise.
28858 (arc_restore_callee_leave): Likewise.
28859 (arc_save_callee_milli): Likewise.
28860 (arc_eh_return_address_location): Likewise.
28861 (arc_check_multi): Use hard frame regnum.
28862 (arc_can_eliminate): Likewise.
28863 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28864 for register allocator.
28865 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28866 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28867 (FRAME_POINTER_REGNUM): Change it to a fake register.
28868 (HARD_FRAME_POINTER_REGNUM): Defined.
28869 (ARG_POINTER_REGNUM): Change it to a new fake register.
28870 (ELIMINABLE_REGS): Update.
28871 (REGISTER_NAMES): Update names.
28872 * config/arc/arc.md (LP_START): Remove.
28873 (LP_END): Likewise.
28874 (shift_si3_loop): Update pattern.
28875
28876 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28877
28878 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28879 to avoid delay slot scheduling.
28880 (arc_must_save_register): Don't save SP.
28881 * config/arc/arc.md (stack_tie): Remove.
28882 (UNSPEC_ARC_STKTIE): Likewise.
28883
28884 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28885 Shiva Chen <shiva0217@gmail.com>
28886
28887 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28888 code gen with large shift amount.
28889
28890 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28891
28892 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28893 subreg.
28894
28895 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28896
28897 PR target/90096
28898 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28899 print -m64/-mx32/-m32 if it is true.
28900 (ix86_debug_options, ix86_function_specific_print): Pass true as
28901 ADD_ABI_P to ix86_target_string.
28902 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28903 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28904 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28905
28906 PR rtl-optimization/90082
28907 * dce.c (can_delete_call): New function.
28908 (deletable_insn_p, mark_insn): Use it.
28909
28910 PR tree-optimization/90090
28911 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28912 throw internally.
28913 (is_division_by_square): Likewise. Formatting fix.
28914
28915 2019-04-16 Richard Biener <rguenther@suse.de>
28916
28917 PR tree-optimization/56049
28918 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28919 equality check if alias-set zero will prevail.
28920
28921 2019-04-15 Jeff Law <law@redhat.com>
28922
28923 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28924 size and alignment as unsigned.
28925
28926 2019-04-15 Richard Biener <rguenther@suse.de>
28927
28928 PR debug/90074
28929 * tree-loop-distribution.c (destroy_loop): Preserve correct
28930 debug info.
28931
28932 2019-04-15 Richard Biener <rguenther@suse.de>
28933
28934 PR tree-optimization/90071
28935 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28936 abnormal operands from def stmts.
28937
28938 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28939
28940 PR rtl-optimization/89794
28941 * combine.c (count_auto_inc): New function.
28942 (try_combine): Count how many auto_inc expressions there were in the
28943 original instructions. Ensure we have the same number in the new
28944 instructions. Remove the code that tried to ensure auto_inc side
28945 effects on i1 and i0 are not lost.
28946
28947 2019-04-15 Richard Biener <rguenther@suse.de>
28948
28949 PR ipa/88936
28950 * tree.h (auto_var_p): Declare.
28951 * tree.c (auto_var_p): New function, split out from ...
28952 (auto_var_in_fn_p): ... here.
28953 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28954 member.
28955 (new_var_info): Initialize it.
28956 (set_uids_in_ptset): Also set the shadow variable uid if required.
28957 (ipa_pta_execute): Postprocess points-to solutions assigning
28958 shadow variable uids for locals that may reach their containing
28959 function recursively.
28960 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28961 assert but instead check whether the points-to solution is
28962 a singleton.
28963
28964 2019-04-15 Martin Jambor <mjambor@suse.cz>
28965
28966 PR ipa/pr89693
28967 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28968 the thunk chain.
28969
28970 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28971
28972 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28973
28974 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28975 Kito Cheng <kito.cheng@gmail.com>
28976 Shiva Chen <shiva0217@gmail.com>
28977
28978 * config/nds32/nds32-md-auxiliary.c
28979 (nds32_legitimize_pic_address): Use new PIC pattern.
28980 (nds32_legitimize_tls_address): Use new TLS pattern.
28981 (nds32_output_symrel): New.
28982 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28983 (nds32_alloc_relax_group_id): Ditto.
28984 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28985 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28986 relax_group_id.
28987 (nds32_group_tls_insn): Ditto.
28988 (nds32_group_float_insns): Ditto.
28989 * config/nds32/nds32.md (tls_le): New.
28990 (sym_got): Ditto.
28991
28992 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28993
28994 * configure: Add nds32 target for dwarf2 debug_line checking.
28995 * configure.ac: Regenerated.
28996
28997 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28998
28999 PR lto/89358
29000 * ipa-devirt.c (skip_in_fields_list_p): New.
29001 (odr_types_equivalent_p): Use it.
29002
29003 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29004
29005 PR target/89093
29006 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29007 instead of strncmp when checking for thumb and arm. Formatting fixes.
29008
29009 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29010
29011 * doc/install.texi: Document --with-target-system-zlib.
29012
29013 2019-04-12 Martin Sebor <msebor@redhat.com>
29014
29015 PR c/88383
29016 PR c/89288
29017 PR c/89798
29018 PR c/89797
29019 * targhooks.c (default_vector_alignment): Avoid assuming
29020 argument fits in SHWI.
29021 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29022 a shift expression.
29023 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29024
29025 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29026
29027 PR rtl-optimization/89965
29028 * dce.c: Include rtl-iter.h.
29029 (struct check_argument_load_data): New type.
29030 (check_argument_load): New function.
29031 (find_call_stack_args): Check for loads from stack slots still tracked
29032 in sp_bytes and punt if any is found.
29033
29034 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29035
29036 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29037
29038 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29039 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29040
29041 2019-04-12 Martin Liska <mliska@suse.cz>
29042
29043 PR middle-end/89970
29044 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29045 in error message.
29046 (separate_attrs): Handle multiple 'default's.
29047 (expand_target_clones): Rework error handling code.
29048
29049 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29050
29051 PR target/87532
29052 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29053 mode of vector rather than mode of destination for move instruction.
29054 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29055 Use QI inner mode with V16QI vector mode.
29056
29057 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29058
29059 PR target/52726
29060 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29061 "invalid %%t operand" in output_operand_lossage message.
29062
29063 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29064
29065 * config/s390/predicates.md (permute_pattern_operand): New
29066 predicate.
29067 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29068 operand for the permute pattern.
29069 ("*vec_perm<mode>"): New insn definition.
29070 ("bswap<mode>"): Generate the permute pattern operand in the
29071 expander and perform the operand reloads for pre arch13 level
29072 already.
29073 ("*bswap<mode>_emu"): Rename to ...
29074 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29075 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29076 Add the USE operand for the permute pattern.
29077 ("*vec_set_bswap_vec<mode>"): Likewise.
29078
29079 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29080
29081 PR c/89946
29082 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29083 and gcc_unreachable if it fails, just call tree_to_uhwi which
29084 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29085 Start warning message with a lower-case letter. Formatting fixes.
29086
29087 PR rtl-optimization/90026
29088 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29089 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29090 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29091 in cfglayout mode, use emit_barrier_after_bb.
29092
29093 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29094
29095 PR rtl-optimization/87763
29096 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29097 New Instruction.
29098
29099 2019-04-11 Tom de Vries <tdevries@suse.de>
29100
29101 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29102 max macro using statement expression.
29103
29104 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29105
29106 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29107 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29108 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29109 read_only_private_data_section using xcoff_private_rodata_section_name.
29110 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29111
29112 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29113
29114 PR target/90016
29115 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29116
29117 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29118
29119 PR rtl-optimization/89965
29120 * dce.c (sp_based_mem_offset): New function.
29121 (find_call_stack_args): Use sp_based_mem_offset.
29122
29123 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29124
29125 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29126
29127 2019-04-11 Richard Biener <rguenther@suse.de>
29128
29129 PR tree-optimization/90020
29130 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29131 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29132 * tree-ssa-pre.c (compute_avail): Use it to not put
29133 possibly trapping references after a call that might not
29134 return into EXP_GEN.
29135 * gcse.c (compute_hash_table_work): Do not elide
29136 marking a block containing a call if the call might not
29137 return.
29138
29139 2019-04-11 Richard Biener <rguenther@suse.de>
29140
29141 PR tree-optimization/90018
29142 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29143 Test both SLP and interleaving variants.
29144
29145 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29146
29147 * config/s390/8561.md: New file.
29148 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29149 Add arch13 cpu model.
29150 * config/s390/s390-opts.h (enum processor_type): Likewise.
29151 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29152 (s390_get_unit_mask): Likewise.
29153 (s390_is_fpd): Likewise.
29154 (s390_is_fxd): Likewise.
29155 * config/s390/s390.h (s390_tune_attr): Likewise.
29156 * config/s390/s390.md: Include arch13 pipeline description.
29157 * config/s390/s390.opt: Add arch13.
29158
29159 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29160
29161 PR rtl-optimization/87763
29162 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29163 New prototype.
29164 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29165 New function.
29166 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29167 New instruction.
29168 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29169 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29170 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29171 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29172
29173 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29174
29175 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29176 "Although" in -fipa-icf documentation.
29177
29178 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29179 of using multiple -g options.
29180
29181 2019-04-10 Martin Liska <mliska@suse.cz>
29182
29183 PR gcov-profile/89959
29184 * doc/gcov.texi: Make documentation of -x option
29185 more precise.
29186
29187 2019-04-10 Richard Biener <rguenther@suse.de>
29188
29189 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29190 member.
29191 (DR_GROUP_SAME_DR_STMT): Remove.
29192 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29193 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29194 replace with assert.
29195 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29196 (vect_record_grouped_load_vectors): Remove unreachable code.
29197
29198 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29199
29200 PR target/90016
29201 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29202 obsolete reference to N.
29203
29204 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29205
29206 PR middle-end/90025
29207 * expr.c (store_expr): Set properly size on the MEM passed to
29208 clear_storage.
29209
29210 PR c++/90010
29211 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29212 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29213 translation is needed, and when translation is needed, only append
29214 ... if the string length is hostsz or more bytes long. Avoid using
29215 strncpy or strcat.
29216
29217 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29218
29219 PR target/90024
29220 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29221 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29222 into three.
29223 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29224 differences directly.
29225 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29226
29227 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29228
29229 PR translation/90011
29230 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29231 from diagnostics.
29232 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29233 diagnostics.
29234 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29235 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29236 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29237 trailing space from -gsplit-dwarf diagnostics.
29238
29239 PR tree-optimization/89998
29240 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29241 instead of integer_type_node if possible, don't add ranges if return
29242 type is not compatible with int.
29243 * gimple-fold.c (gimple_fold_builtin_sprintf,
29244 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29245 integer_type_node.
29246
29247 2019-04-09 Martin Liska <mliska@suse.cz>
29248
29249 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29250 * doc/install.texi: Document the new config.
29251
29252 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29253
29254 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29255 use gimple_expr_type for load and store calls. Skip over the
29256 condition argument in a conditional internal function.
29257 Protect use of TREE_INT_CST_LOW.
29258
29259 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29260
29261 PR target/90015
29262 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29263 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29264 trailing period from it too.
29265
29266 2019-04-08 wu yuan <wuyuan5@huawei.com>
29267
29268 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29269 * config/aarch64/aarch64.md: Add "tsv110.md".
29270 * config/aarch64/tsv110.md: New file.
29271
29272 2019-04-08 Richard Biener <rguenther@suse.de>
29273
29274 PR tree-optimization/90006
29275 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29276 calls like lrint.
29277
29278 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29279
29280 PR target/83033
29281 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29282 construction.
29283 (fma_root_node): Likewise.
29284 (func_fma_steering): Likewise.
29285
29286 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29287
29288 PR rtl-optimization/89865
29289 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29290
29291 PR rtl-optimization/89865
29292 * config/i386/i386.md
29293 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29294 numbers not to clash with the additional operands[4].
29295 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29296 with extra register copy in the middle.
29297
29298 2019-04-08 Martin Liska <mliska@suse.cz>
29299
29300 PR gcov-profile/89961
29301 * doc/gcov.texi: Document data_file.
29302 * gcov.c (generate_results): Add data_info into JSON output.
29303
29304 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29305
29306 PR tree-optimization/89725
29307 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29308 loop's chrec as invariant symbol.
29309 * tree-chrec.h (chrec_contains_symbols): New parameter.
29310 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29311 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29312 function of loops not in DDR's loop_nest.
29313 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29314
29315 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29316
29317 PR target/89623
29318 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29319 Mask.
29320
29321 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29322
29323 PR target/89945
29324 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29325 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29326
29327 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29328
29329 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29330 targetm.fixed_condition_code_regs.
29331
29332 2019-04-05 Richard Biener <rguenther@suse.de>
29333
29334 PR debug/89892
29335 PR debug/89905
29336 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29337 debug bind stmts but reset them if they are not valid at the
29338 destination.
29339
29340 2019-04-05 Martin Liska <mliska@suse.cz>
29341
29342 PR translation/89936
29343 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29344 order to wrap keywords or arguments.
29345 * collect2.c (main): Likewise.
29346 (scan_prog_file): Likewise.
29347 (scan_libraries): Likewise.
29348 * common/config/riscv/riscv-common.c
29349 (riscv_subset_list::parsing_subset_version): Likewise.
29350 (riscv_subset_list::parse_std_ext): Likewise.
29351 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29352 Likewise.
29353 * config/arm/arm.c (arm_option_override): Likewise.
29354 * config/cris/cris.c (cris_print_operand): Likewise.
29355 * config/darwin-c.c (darwin_pragma_options): Likewise.
29356 (darwin_pragma_unused): Likewise.
29357 (darwin_pragma_ms_struct): Likewise.
29358 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29359 * config/i386/i386.c (print_reg): Likewise.
29360 (ix86_print_operand): Likewise.
29361 * config/i386/xm-djgpp.h: Likewise.
29362 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29363 * config/m32c/m32c.c (m32c_option_override): Likewise.
29364 * config/msp430/msp430.c (msp430_option_override): Likewise.
29365 * config/nds32/nds32.c (nds32_option_override): Likewise.
29366 * config/nvptx/mkoffload.c (main): Likewise.
29367 * config/rx/rx.c (rx_print_operand): Likewise.
29368 (valid_psw_flag): Likewise.
29369 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29370 (vms_pragma_nomember_alignment): Likewise.
29371 (vms_pragma_extern_model): Likewise.
29372 * lto-wrapper.c (compile_offload_image): Likewise.
29373 * omp-offload.c (oacc_parse_default_dims): Likewise.
29374 * symtab.c (symtab_node::verify_base): Likewise.
29375 * tlink.c (recompile_files): Likewise.
29376 (start_tweaking): Likewise.
29377 * tree-profile.c (parse_profile_filter): Likewise.
29378
29379 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29380
29381 PR tree-optimization/89956
29382 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29383 multiple negates of the same value.
29384
29385 2019-04-04 Martin Sebor <msebor@redhat.com>
29386
29387 PR middle-end/89957
29388 PR middle-end/89911
29389 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29390 have the same precision since the function crashes otherwise.
29391 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29392 has non-zero arguments.
29393
29394 2019-04-04 Martin Sebor <msebor@redhat.com>
29395
29396 PR middle-end/89934
29397 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29398 out if the number of arguments is less than expected.
29399
29400 2019-04-04 Jeff Law <law@redhat.com>
29401
29402 PR rtl-optimization/89399
29403 * ree.c (combine_set_extension): Use single_set rather than
29404 digging into PATTERN for items on the candidate list.
29405 (combine_reaching_defs): Likewise.
29406
29407 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29408
29409 PR rtl-optimization/46590
29410 * loop-invariant.c (find_defs): Move df_remove_problem and
29411 df_process_deferred_rescans to move_invariants.
29412 Move df_live_add_problem and df_live_set_all_dirty calls
29413 to move_invariants.
29414 (move_invariants): Likewise.
29415 (move_loop_invariants): Likewise, making the df_live calls
29416 conditional on -O. Remove the problem again if we added it
29417 locally.
29418
29419 2019-04-03 qing zhao <qing.zhao@oracle.com>
29420
29421 PR tree-optimization/89730
29422 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29423 -flive-patching=inline-only-static.
29424 (can_inline_edge_by_limits_p): Add the checking for
29425 -flive-patching=inline-only-static and grant always_inline
29426 even when -flive-patching=inline-only-static is specified.
29427
29428 2019-04-03 Jeff Law <law@redhat.com>
29429
29430 PR rtl-optimization/81025
29431 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29432
29433 2019-04-03 Richard Biener <rguenther@suse.de>
29434
29435 PR tree-optimization/84101
29436 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29437 regs.h for hard_regno_nregs.
29438 (cfun_returns): New helper.
29439 (vect_model_store_cost): When vectorizing a store to a decl
29440 we return and the function ABI returns in a multi-reg location
29441 account for the possible spilling that will happen.
29442
29443 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29444
29445 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29446 displacement addresses for vector mode operands.
29447
29448 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29449
29450 * config/arc/arc.c (GMASK_LEN): Define.
29451 (arc_restore_callee_saves): Restore first blink when
29452 !optimize_size.
29453
29454 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29455
29456 * doc/extend.texi: Add deprecated comment on sign-return-address
29457 function attribute and add mbranch-protection.
29458 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29459
29460 2019-04-03 Richard Biener <rguenther@suse.de>
29461
29462 PR lto/89896
29463 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29464 the all target phony.
29465
29466 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29467
29468 PR target/89902
29469 PR target/89903
29470 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29471 Return false for variable DImode shifts.
29472 (dimode_scalar_chain::compute_convert_gain): Do not handle
29473 register count operand in variable DImode shifts.
29474 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29475 count argument of a variable shift instruction to a vector register.
29476 (dimode_scalar_chain::convert_reg): Remove support to convert
29477 count argument of a variable shift instruction.
29478
29479 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29480
29481 PR rtl-optimization/84206
29482 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29483 iterating over loop headers.
29484
29485 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29486
29487 PR rtl-optimization/85876
29488 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29489 beyond the original fence.
29490
29491 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29492
29493 * config.gcc: Mark spu* targets as deprecated/obsolete.
29494
29495 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29496
29497 * config/s390/s390-builtin-types.def: New builtin function type
29498 definitions. Remove unused types.
29499 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29500 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29501 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29502 overloaded builtins.
29503 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29504 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29505 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29506 (vec_double, vec_signed, vec_unsigned): Define to use the new
29507 overloaded builtins.
29508 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29509 Remove expanders.
29510
29511 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29512
29513 * config/s390/s390-builtin-types.def: New builtin function type
29514 definitions.
29515 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29516 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29517 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29518 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29519 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29520 constant definitions.
29521 * config/s390/vecintrin.h (vec_search_string_cc)
29522 (vec_search_string_until_zero_cc): New builtin name definitions.
29523 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29524 expanders.
29525 ("vec_vstrs<mode>"): New insn definition.
29526
29527 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29528
29529 * config/s390/s390-builtin-types.def: Add new builtin function
29530 types.
29531 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29532 New overloaded builtins.
29533 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29534 s390_vsrd.
29535 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29536 (UNSPEC_VEC_SLDBYTE): ... this.
29537 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29538 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29539 definitions.
29540 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29541 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29542 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29543
29544 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29545
29546 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29547 New insn definition.
29548 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29549 * config/s390/vector.md (V_HW_HSD): ... here.
29550
29551 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29552
29553 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29554 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29555 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29556 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29557 New insn definitions.
29558
29559 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29560
29561 * config/s390/s390-builtin-types.def: Add new builtin function type.
29562 * config/s390/s390-builtins.def: Add overloaded builtin
29563 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29564 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29565 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29566 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29567 ("eltswap<mode>"): New expander.
29568 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29569 insn definitions.
29570
29571 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29572
29573 * config/s390/s390-builtin-types.def: Add new builtin function types.
29574 * config/s390/s390-builtins.def: Add overloaded builtin
29575 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29576 instructions.
29577 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29578 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29579 ("bswap<mode>"): New expander.
29580 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29581
29582 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29583
29584 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29585 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29586 vector builtin version number in __VEC__.
29587
29588 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29589
29590 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29591 iterators.
29592 (SFSI): New mode attribute.
29593 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29594 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29595 rename to ...
29596 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29597 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29598 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29599 ("floatsi<mode>2"): Add wcefb instruction.
29600
29601 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29602
29603 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29604 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29605 mode iterators.
29606 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29607 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29608 support 32 bit fp-int conversions. Rename to ...
29609 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29610 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29611 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29612 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29613 ... to these.
29614
29615 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29616
29617 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29618 if-then-else constructs if we can use the select instruction.
29619 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29620
29621 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29622
29623 * config/s390/s390.md ("*popcountdi_arch13_cc")
29624 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29625 definition.
29626 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29627 Append _z196 to make it ...
29628 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29629 ("popcounthi2_z196"): ... this.
29630 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29631 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29632
29633 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29634
29635 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29636 certain compares for arch13 in order to make use of the condition
29637 code result produced by the new instructions.
29638 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29639 nxrk, and nxgrk instruction patterns.
29640 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29641 (inv_no): Add new code iterator together with some attributes.
29642 ("*andc_split_<mode>"): Disable splitter for arch13.
29643 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29644 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29645 ("*<ANDOR:bitops_name>c<GPR:mode>")
29646 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29647 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29648 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29649 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29650
29651 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29652
29653 * common/config/s390/s390-common.c (processor_flags_table): New
29654 entry for arch13.
29655 * config.gcc: Support arch13 with the --with-arch= configure flag.
29656 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29657 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29658 * config/s390/s390.c (s390_get_sched_attrmask)
29659 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29660 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29661 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29662 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29663 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29664 definitions.
29665 * config/s390/s390.opt: Support arch13 as processor type in
29666 command line options.
29667
29668 2019-04-02 Martin Liska <mliska@suse.cz>
29669
29670 PR translation/89912
29671 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29672 Fix param description of graphite-max-arrays-per-scop.
29673
29674 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29675
29676 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29677 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29678 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29679
29680 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29681
29682 PR rtl-optimization/85412
29683 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29684 sel_sched_region_1, not after.
29685
29686 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29687
29688 PR rtl-optimization/86928
29689 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29690 compute_live if necessary.
29691 (sel_redirect_edge_and_branch): Likewise.
29692
29693 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29694
29695 PR rtl-optimization/89865
29696 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29697 register if it is a part of small class.
29698
29699 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29700
29701 PR rtl-optimization/87273
29702 * sel-sched-ir.c (merge_fences): Remove assert.
29703
29704 2019-04-01 Richard Biener <rguenther@suse.de>
29705
29706 PR tree-optimization/46590
29707 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29708 (dom_walker::m_reachability): Add in place of...
29709 (dom_walker::m_skip_unreachable_blocks): ...this.
29710 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29711 Move complex initialization ...
29712 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29713 lazily and initialize edge flags on each invocation.
29714 (dom_walker::bb_reachable): Use m_reachability.
29715
29716 2019-04-01 Martin Liska <mliska@suse.cz>
29717
29718 PR driver/89861
29719 * opt-suggestions.c (option_proposer::build_option_suggestions):
29720 Add variant without any argument in order to provide better
29721 hints.
29722
29723 2019-04-01 Richard Biener <rguenther@suse.de>
29724
29725 PR c/71598
29726 * gimple.c: Include langhooks.h.
29727 (gimple_get_alias_set): Treat enumeral types as the underlying
29728 integer type.
29729
29730 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29731 Eric Botcazou <ebotcazou@adacore.com>
29732
29733 PR rtl-optimization/89862
29734 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29735 that operates on the full registers for WORD_REGISTER_OPERATIONS
29736 architectures.
29737
29738 2019-03-29 Jim Wilson <jimw@sifive.com>
29739
29740 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29741 Clear MASK_RVC and then set if C subset supported.
29742
29743 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29744
29745 PR c/89872
29746 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29747 non-addressable complit into its initializer if it is volatile.
29748
29749 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29750
29751 * opts-common.c (integral_argument): Set errno properly in one case.
29752
29753 2019-03-29 Martin Liska <mliska@suse.cz>
29754
29755 * doc/invoke.texi: Remove -Wchkp from documentation.
29756
29757 2019-03-29 Martin Liska <mliska@suse.cz>
29758
29759 * dbgcnt.c (print_limit_reach): New function.
29760 (dbg_cnt): Use it.
29761
29762 2019-03-29 Martin Liska <mliska@suse.cz>
29763
29764 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29765 (dbg_cnt_process_opt): Parse first tokens aas
29766 dbg_cnt_process_single_pair is also using strtok.
29767
29768 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29769
29770 PR rtl-optimization/87485
29771 * function.c (expand_function_end): Move stack_protect_epilogue
29772 before loading of return value into hard register(s).
29773
29774 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29775
29776 PR middle-end/89621
29777 * tree-inline.h (struct copy_body_data): Add
29778 dont_remap_vla_if_no_change flag.
29779 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29780 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29781 and remap_type_2 returns false.
29782 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29783 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29784 only from where it is copied to nested contexts.
29785
29786 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29787
29788 PR target/89865
29789 * config/i386/i386.md (RMW operation with LEA peephole):
29790 Use LEAMODE mode attribute instead of SWI mode iterator for
29791 LEA pattern.
29792
29793 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29794
29795 PR target/89848
29796 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29797 Also process XEXP (src, 0) of a shift insn.
29798
29799 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29800
29801 PR middle-end/89725
29802 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29803 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29804
29805 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29806
29807 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29808 test.
29809 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29810 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29811 immediately after first one with df_analyze in between, but rather
29812 process all bbs, queueing ones that need second pass in a worklist,
29813 df_analyze, process queued debug insn changes and if second pass is
29814 needed, process bbs from worklist, df_analyze, process queued debug
29815 insns again.
29816
29817 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29818 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29819 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29820
29821 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29822
29823 PR c/79022
29824 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29825 definition.
29826
29827 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29828
29829 PR target/85667
29830 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29831 function for 32-bit MS_ABI.
29832 (function_value_ms_32): New function.
29833
29834 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29835
29836 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29837 (movdi): Call gen_movdi_symbol_save_scc.
29838 (gen_movdi_symbol_save_scc): New insn and split.
29839
29840 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29841
29842 PR rtl-optimization/89313
29843 * function.c (matching_constraint_num): New static function.
29844 (match_asm_constraints_1): Use it. Fixup white space and comment.
29845 Don't replace inputs with non-matching constraints which conflict
29846 with early clobber outputs.
29847
29848 2019-03-27 Jeff Law <law@redhat.com>
29849
29850 PR rtl-optimization/87761
29851 PR rtl-optimization/89826
29852 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29853 slightly later.
29854 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29855 note problem to get REG_DEAD/REG_UNUSED notes updated.
29856
29857 2019-03-27 Richard Biener <rguenther@suse.de>
29858
29859 PR tree-optimization/89463
29860 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29861 queue edges to remove.
29862 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29863 dead stmts. Delay edge removal until PHIs are removed to
29864 make debug-stmt creation not confused by seemingly degenerate
29865 PHIs.
29866
29867 2019-03-27 Alan Modra <amodra@gmail.com>
29868
29869 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29870 throughout file.
29871 * config/rs6000/darwin.h: Likewise.
29872 * config/rs6000/rs6000.c: Likewise.
29873
29874 2019-03-27 Alan Modra <amodra@gmail.com>
29875
29876 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29877 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29878
29879 2019-03-26 Andrew Waterman <andrew@sifive.com>
29880 Jim Wilson <jimw@sifive.com>
29881
29882 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29883 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29884 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29885 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29886 (generic_alu): Add auipc to type list.
29887 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29888 (riscv_microarchitecture): Declare.
29889 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29890 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29891 field.
29892 (riscv_microarchitecture): New.
29893 (sifive_7_tune_info): New.
29894 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29895 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29896 entries.
29897 (riscv_store_data_bypass_p): New.
29898 (riscv_option_override): Set riscv_microarchitecture from
29899 cpu->microarchitecture.
29900 * config/riscv/riscv.md: Include sifive-7.md.
29901 (type): Add auipc.
29902 (tune): New.
29903 (auipc<mode>): Change type to auipc.
29904 (restore_stack_nonlocal): New.
29905 * config/riscv/sifive-7.md: New.
29906 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29907
29908 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29909
29910 PR target/89827
29911 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29912 Also process XEXP (src, 0) of a shift insn.
29913
29914 2019-03-26 Richard Biener <rguenther@suse.de>
29915
29916 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29917 (copy_debug_stmt): Likewise.
29918 (expand_call_inline): Likewise.
29919 (copy_bb): Avoid redundant lookup & set of gimple_block.
29920 * gimple-low.c (lower_gimple_return): Likewise.
29921 (lower_builtin_setjmp): Likewise.
29922
29923 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29924
29925 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29926 is constant 0, turn into static const data member initialized to false.
29927 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29928 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29929
29930 2019-03-26 Jason Merrill <jason@redhat.com>
29931 Jakub Jelinek <jakub@redhat.com>
29932
29933 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29934 method.
29935 (mem_alloc_description::release_object_overhead): Fix comment typos.
29936 * hash-table.h (hash_table::~hash_table): Call
29937 release_instance_overhead only if m_entries is non-NULL, otherwise
29938 call unregister_descriptor.
29939
29940 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29941
29942 PR tree-optimization/81740
29943 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29944 In case of outer loop vectorization, check for backward dependence
29945 at the inner loop if outer loop dependence is reversed.
29946
29947 2019-03-26 Alan Modra <amodra@gmail.com>
29948
29949 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29950 rs6000_vector_mem init. Correct wI and wJ comment.
29951
29952 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29953
29954 PR rtl-optimization/88347
29955 PR rtl-optimization/88423
29956 * sched-deps.c (sched_analyze_insn): Take into account that for
29957 tablejumps the barrier appears after a label and a jump_table_data.
29958
29959 2019-03-25 Martin Sebor <msebor@redhat.com>
29960
29961 PR c/89812
29962 * c-common.c (check_user_alignment): Rename local. Correct maximum
29963 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29964 convert it to UHWI when it fits.
29965
29966 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29967
29968 PR debug/86964
29969 * dwarf2out.c (premark_used_variables): New function.
29970 (prune_unused_types_walk): Do not mark not premarked external
29971 variables.
29972 (prune_unused_types): Call premark_used_variables.
29973
29974 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29975
29976 PR rtl-optimization/89676
29977 * lra-constraints.c (curr_insn_transform): Do match reload for
29978 early clobbers when the match was successful only for different
29979 registers.
29980
29981 2019-03-25 Martin Sebor <msebor@redhat.com>
29982
29983 * doc/extend.texi (Common Type Attributes): Document vector_size.
29984 (Common Variable Attributes): Mention size constraint. Correct
29985 quoting and typos.
29986 (Vector Extensions): Use @dfn when defining bas type. Clarify
29987 base type and size constraints.
29988
29989 2019-03-25 Richard Biener <rguenther@suse.de>
29990
29991 PR tree-optimization/89789
29992 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29993 changes from non-undefined back to undefined.
29994
29995 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29996
29997 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29998 heap string and a gc string, but since this variable is unknown to
29999 ggc the gc string might get reused and corrupted. Fixed by always
30000 using a heap string.
30001
30002 2019-03-25 Richard Biener <rguenther@suse.de>
30003
30004 PR tree-optimization/89779
30005 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30006 to remove IV defs, delay actual removal.
30007 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30008 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30009 very end, properly also reset loop control IV information.
30010
30011 2019-03-25 Richard Biener <rguenther@suse.de>
30012
30013 PR tree-optimization/89802
30014 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30015 move EH data to folded stmt.
30016
30017 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30018
30019 * config/s390/s390-builtin-types.def: Remove few unused types and
30020 fix sort order for others.
30021
30022 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30023
30024 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30025 expected and found types with -mdebug during builtin matching.
30026
30027 2019-03-25 Richard Biener <rguenther@suse.de>
30028
30029 PR middle-end/89790
30030 * fold-const.c (operand_equal_p): Revert last change with
30031 updated comment.
30032
30033 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30034
30035 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30036 notes for the result of the __tls_get_addr calls.
30037 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30038
30039 2019-03-24 Jeff Law <law@redhat.com>
30040
30041 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30042
30043 PR rtl-optimization/87761
30044 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30045 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30046 as needed.
30047 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30048 rescans. Reprocess blocks as needed, calling df_analyze before
30049 reprocessing. Always call df_analyze before fixing up debug bind
30050 insns.
30051
30052 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30053
30054 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30055 big endian.
30056
30057 2019-03-22 Andrew Pinski <apinski@marvell.com>
30058
30059 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30060 attrribute for uxtw.
30061
30062 2019-03-26 Jeff Law <law@redhat.com>
30063
30064 PR rtl-optimization/87761
30065 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30066 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30067 (mips_split_move): Accept new INSN argument. Try to forward SRC
30068 into the next instruction.
30069 (mips_split_move_insn): Pass INSN through to mips_split_move.
30070
30071 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30072
30073 PR rtl-optimization/89676
30074 * lra-constraints.c (curr_insn_transform): Do match reload for
30075 early clobbers even if the match was successful.
30076
30077 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30078
30079 PR c++/87481
30080 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30081
30082 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30083
30084 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30085
30086 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30087
30088 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30089 <avx512>_fmsub_<mode>_mask3<round_name>,
30090 <avx512>_fnmadd_<mode>_mask3<round_name>,
30091 <avx512>_fnmsub_<mode>_mask3<round_name>,
30092 avx512f_vmfmadd_<mode>_mask3<round_name>,
30093 avx512f_vmfmsub_<mode>_mask3<round_name>,
30094 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30095 instead of register_operand and %v instead of v for match_operand 1.
30096 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30097 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30098 <round_nimm_predicate> instead of register_operand and %v instead of v
30099 for match_operand 1.
30100
30101 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30102 <avx512>_fmadd_<mode>_mask3<round_name>,
30103 <avx512>_fmsub_<mode>_mask<round_name>,
30104 <avx512>_fmsub_<mode>_mask3<round_name>,
30105 <avx512>_fnmadd_<mode>_mask<round_name>,
30106 <avx512>_fnmadd_<mode>_mask3<round_name>,
30107 <avx512>_fnmsub_<mode>_mask<round_name>,
30108 <avx512>_fnmsub_<mode>_mask3<round_name>,
30109 <avx512>_fmaddsub_<mode>_mask<round_name>,
30110 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30111 <avx512>_fmsubadd_<mode>_mask<round_name>,
30112 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30113 <round_nimm_predicate> instead of nonimmediate_operand.
30114 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30115 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30116 Use register_operand instead of <round_nimm_predicate> for the
30117 operand that needs to match output.
30118 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30119 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30120 Likewise. Formatting fixes.
30121
30122 PR target/89784
30123 * config/i386/i386.c (enum ix86_builtins): Remove
30124 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30125 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30126 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30127 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30128 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30129 __builtin_ia32_vfmsubss3_mask3): New builtins.
30130 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30131 avx512f_vmfmadd_<mode>_mask3<round_name>,
30132 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30133 *avx512f_vmfmsub_<mode>_mask<round_name>,
30134 avx512f_vmfmsub_<mode>_mask3<round_name>,
30135 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30136 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30137 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30138 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30139 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30140 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30141 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30142 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30143 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30144 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30145 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30146 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30147 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30148 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30149 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30150 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30151 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30152 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30153 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30154 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30155 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30156 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30157 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30158 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30159 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30160 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30161 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30162 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30163
30164 2019-03-21 Martin Sebor <msebor@redhat.com>
30165
30166 PR tree-optimization/89350
30167 * builtins.c (compute_objsize): Also ignore offsets whose upper
30168 bound is negative.
30169 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30170 (builtin_memref::builtin_memref): Initialize new member.
30171 Allow EXPR to be null.
30172 (builtin_memref::extend_offset_range): Replace local with a member.
30173 Avoid assuming pointer offsets are unsigned.
30174 (builtin_memref::set_base_and_offset): Determine base object
30175 before computing offset range.
30176 (builtin_access::builtin_access): Handle memset.
30177 (builtin_access::generic_overlap): Replace local with a member.
30178 (builtin_access::strcat_overlap): Same.
30179 (builtin_access::overlap): Same.
30180 (maybe_diag_overlap): Same.
30181 (maybe_diag_access_bounds): Same.
30182 (wrestrict_dom_walker::check_call): Handle memset.
30183 (check_bounds_or_overlap): Same.
30184
30185 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30186 Jakub Jelinek <jakub@redhat.com>
30187
30188 PR lto/89692
30189 * tree.c (fld_type_variant, fld_incomplete_type_of,
30190 fld_process_array_type): Call fld->pset.add and don't call
30191 add_tree_to_fld_list if it returns true.
30192 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30193 non-marked types from TYPE_NEXT_VARIANT list.
30194 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30195
30196 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30197
30198 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30199 to false, if true, don't alloc_entries during construction, but defer
30200 it to the first method that needs m_entries allocated.
30201 (hash_table::hash_table, hash_table::~hash_table,
30202 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30203 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30204 hash_table::clear_slot, hash_table::traverse_noresize,
30205 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30206 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30207 false.
30208 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30209 NO_INSERT instead of find_with_hash.
30210 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30211 hash_set::m_table): Add Lazy to template params of hash_table.
30212 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30213 * attribs.c (test_attribute_exclusions): Likewise.
30214 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30215 hash_set. Add tests for hash_set with Lazy = true.
30216
30217 2019-03-21 Richard Biener <rguenther@suse.de>
30218
30219 PR tree-optimization/89779
30220 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30221 checks with respect to released SSA names now having error_mark_node
30222 type.
30223 * fold-const.c (operand_equal_p): Likewise.
30224
30225 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30226
30227 PR target/89775
30228 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30229 available to ...
30230 (s390_optimize_register_info): Use global_not_special_regno_p to
30231 check for global regs.
30232
30233 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30234
30235 PR target/89752
30236 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30237 update this_alternative nor this_alternative_set.
30238
30239 2019-03-19 Jim Wilson <jimw@sifive.com>
30240
30241 PR target/89411
30242 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30243 align, size, offset. Use them to handle a BLKmode reference. Update
30244 comment.
30245 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30246
30247 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30248
30249 PR rtl-optimization/89768
30250 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30251 instead of GEN_INT.
30252 (unroll_loop_runtime_iterations): Likewise.
30253
30254 2019-03-19 Martin Sebor <msebor@redhat.com>
30255
30256 PR tree-optimization/89644
30257 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30258 rather than endptr as an indicator of nul-termination.
30259
30260 PR tree-optimization/89644
30261 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30262 arrays in determining sequence sizes in strncpy and stpncpy.
30263
30264 2019-03-19 Martin Liska <mliska@suse.cz>
30265
30266 PR middle-end/89737
30267 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30268 unlikely_edges if there's an edge that belongs to both these sets.
30269
30270 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30271
30272 PR target/89746
30273 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30274 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30275 go via a stack temporary.
30276
30277 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30278
30279 PR target/89378
30280 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30281 instead of gen_rtx_SUBREG.
30282 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30283
30284 2019-03-19 Richard Biener <rguenther@suse.de>
30285
30286 PR debug/88389
30287 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30288
30289 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30290
30291 PR lto/87809
30292 PR lto/89335
30293 * tree.c (free_lang_data_in_decl): Do not free context of C++
30294 destrutors.
30295
30296 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30297
30298 PR target/89506
30299 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30300 subs for the first alternative except when operands[3] is 1.
30301
30302 PR target/89752
30303 * gimplify.c (gimplify_asm_expr): For output argument with
30304 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30305 diagnose error.
30306
30307 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30308
30309 PR rtl-optimization/89753
30310 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30311 explicit unrolling factor even more robust.
30312
30313 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30314
30315 PR target/89726
30316 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30317 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30318 signed zeros, do another copysign after the compensation.
30319
30320 2019-03-18 Martin Sebor <msebor@redhat.com>
30321
30322 PR tree-optimization/89720
30323 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30324 more conservatively, the same as anti-range.
30325
30326 2019-03-18 Richard Biener <rguenther@suse.de>
30327
30328 PR middle-end/88945
30329 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30330 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30331 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30332 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30333
30334 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30335
30336 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30337 Extend queue to 1024 entries.
30338 Add "consumed" field.
30339 (gomp_print_output): Remove print_index parameter.
30340 Add final parameter.
30341 Change limit to unsigned.
30342 Use consumed field to implement circular buffer.
30343 Detect interrupted print in final pass.
30344 Flush output at the end.
30345 (run): Update gomp_print_output usage.
30346 (main): Initialize kernargs->output_data.consumed.
30347
30348 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30349
30350 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30351 calculation of the minimum number of scalar iterations for
30352 fully-predicated loops.
30353
30354 2019-03-18 Martin Jambor <mjambor@suse.cz>
30355
30356 PR tree-optimization/89546
30357 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30358 any propagation to its children took place.
30359
30360 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30361
30362 PR target/89627
30363 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30364 parameter, and make use of it.
30365 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30366
30367 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30368
30369 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30370 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30371 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30372 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30373 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30374 match what the ops is doing.
30375 (push_multi_fp_blink): Likewise.
30376 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30377 compiling for size and elf target.
30378 (arc_save_callee_enter): Adjust note to match what enter/leave
30379 operation does.
30380
30381 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30382
30383 * config/arc/arc.md (tst_movb): Fix constraint.
30384
30385 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30386
30387 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30388
30389 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30390
30391 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30392 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30393 reg_alloc_order references.
30394 (size_alloc_order): Define.
30395 (arc_adjust_reg_alloc_order): New function.
30396 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30397 order.
30398 (ADJUST_REG_ALLOC_ORDER): Define.
30399 (HONOR_REG_ALLOC_ORDER): Likewise.
30400
30401 2019-03-18 Richard Biener <rguenther@suse.de>
30402
30403 PR target/87561
30404 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30405 loads and stores a bit more.
30406
30407 2019-03-18 Richard Biener <rguenther@suse.de>
30408
30409 PR target/87561
30410 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30411 load pessimization to stores as well.
30412
30413 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30414
30415 PR middle-end/86979
30416 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30417 successor, use NULL as its av set.
30418
30419 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30420
30421 PR rtl-optimization/89721
30422 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30423
30424 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30425
30426 PR target/87532
30427 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30428 When handling vec_extract, use modular arithmetic to allow
30429 constant selectors greater than vector length.
30430 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30431 V1TImode vectors to have constant selector values greater than 0.
30432 Use modular arithmetic to compute vector index.
30433 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30434 index for in-memory vectors. Correct code generation for
30435 in-register vectors.
30436 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30437 compute index.
30438
30439 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30440
30441 PR c++/88534
30442 PR c++/88537
30443 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30444 VAR_DECL args.
30445
30446 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30447
30448 PR c++/89709
30449 * tree.c (inchash::add_expr): Strip any location wrappers.
30450 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30451 after hash verification.
30452
30453 PR debug/89704
30454 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30455 SIGN_EXTEND and ZERO_EXTEND.
30456
30457 2019-03-14 Jason Merrill <jason@redhat.com>
30458 Jakub Jelinek <jakub@redhat.com>
30459
30460 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30461 than if is_empty (*slot).
30462 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30463 existing elt and for elt removal.
30464 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30465 of already removed elt.
30466
30467 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30468
30469 PR target/89650
30470 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30471 REG_EH_REGION note.
30472
30473 2019-03-14 Martin Liska <mliska@suse.cz>
30474
30475 PR other/89712
30476 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30477
30478 2019-03-14 Richard Biener <rguenther@suse.de>
30479
30480 PR target/89711
30481 * config/i386/i386.c (make_resolver_func): Properly set
30482 DECL_CONTEXT on the RESULT_DECL.
30483 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30484
30485 2019-03-14 Richard Biener <rguenther@suse.de>
30486
30487 * gimple-pretty-print.c: Include cfgloop.h.
30488 (dump_gimple_phi): Adjust.
30489 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30490 (pp_cfg_jump): Adjust.
30491 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30492 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30493 (lower_phi_internal_fn): Remove.
30494 (verify_gimple_call): Remove IFN_PHI special-casing.
30495 (dump_function_to_file): Dump IL state.
30496 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30497 done to deal with PHI nodes being present in non-SSA state.
30498
30499 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30500
30501 PR ipa/89684
30502 * multiple_target.c (create_dispatcher_calls): Change
30503 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30504 In the node->iterate_referring loop, push *ref rather than ref, call
30505 ref->remove_reference () and always pass 0 to iterate_referring.
30506
30507 PR rtl-optimization/89679
30508 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30509 would contain a paradoxical SUBREG.
30510
30511 2019-03-14 Richard Biener <rguenther@suse.de>
30512
30513 PR tree-optimization/89710
30514 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30515 safe_dyn_cast.
30516
30517 2019-03-14 Martin Liska <mliska@suse.cz>
30518
30519 * coverage.c (coverage_begin_function): Stream also
30520 end_column.
30521 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30522 documentation about function declaration location.
30523 * gcov-dump.c (tag_function): Print whole range
30524 of function declaration.
30525 * gcov.c (struct function_info): Add end_column field.
30526 (function_info::function_info): Initialize it.
30527 (output_json_intermediate_file): Output {start,end}_column
30528 fields.
30529 (read_graph_file): Read end_column.
30530
30531 2019-03-14 Richard Biener <rguenther@suse.de>
30532
30533 PR middle-end/89698
30534 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30535 that the access types are similar.
30536
30537 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30538
30539 PR tree-optimization/89703
30540 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30541 aren't compatible also with builtin_decl_explicit. Check pure
30542 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30543 and BUILT_IN_STPNCPY{,_CHK}.
30544
30545 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30546
30547 PR target/89523
30548 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30549 addr32 prefix to VSIB address for X32.
30550 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30551 "%M2" to opcode.
30552 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30553 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30554 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30555 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30556 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30557 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30558 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30559 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30560 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30561 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30562 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30563 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30564 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30565 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30566 (*avx512f_scatterdi<mode>): Likewise.
30567
30568 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30569
30570 PR target/85860
30571 * lra-constraints.c (inherit_in_ebb): Update
30572 potential_reload_hard_regs along with live_hard_regs.
30573
30574 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30575
30576 PR debug/89498
30577 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30578 DWARF_OFFSET_SIZE.
30579 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30580
30581 2019-03-13 Martin Sebor <msebor@redhat.com>
30582
30583 PR tree-optimization/89662
30584 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30585 has a size.
30586
30587 2019-03-13 Richard Biener <rguenther@suse.de>
30588
30589 PR middle-end/89677
30590 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30591 throw FP expressions at tree-affine.
30592
30593 2019-03-14 Richard Biener <rguenther@suse.de>
30594
30595 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30596 dump negative integer constants using _Literal (type) -num.
30597
30598 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30599
30600 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30601 nonlocal_value member.
30602
30603 PR middle-end/88588
30604 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30605 (ipa_simd_modify_function_body): Handle PHIs.
30606
30607 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30608
30609 * config/s390/s390.c (s390_option_override_internal): Use more
30610 aggressive inlining parameters.
30611
30612 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30613
30614 * config/s390/3906.md: New file.
30615 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30616 (LONGRUNNING_THRESHOLD): Remove.
30617 (MAX_SCHED_MIX_SCORE): Decrease.
30618 (MAX_SCHED_MIX_DISTANCE): Decrease.
30619 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30620 (struct s390_sched_state): New struct to hold scheduling state.
30621 (S390_SCHED_STATE_NORMAL): Remove.
30622 (S390_SCHED_STATE_CRACKED): Remove.
30623 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30624 (s390_get_sched_attrmask): Use new attribute.
30625 (s390_get_unit_mask): Use new units.
30626 (s390_is_fpd): New function.
30627 (s390_is_fxd): New function.
30628 (s390_is_longrunning): New function.
30629 (s390_sched_score): Use new functions.
30630 (s390_sched_reorder): Likewise.
30631 (s390_sched_variable_issue): Rework and use new functions.
30632 (s390_sched_init): Use new functions.
30633 * config/s390/s390.h (s390_tune_attr): Add z14.
30634 * config/s390/s390.md: Add z14.
30635
30636 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30637
30638 * config/s390/2964.md: Update pipeline description.
30639 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30640 (LONGRUNNING_THRESHOLD): Remove.
30641 (LATENCY_FACTOR): Remove.
30642 (s390_get_unit_mask): Add unit.
30643 (s390_sched_score): Use fxd/fpd.
30644 (s390_sched_variable_issue): Use fxd/fpd.
30645
30646 2019-03-12 Martin Liska <mliska@suse.cz>
30647
30648 * config/i386/i386.c: Reword an error message.
30649
30650 2019-03-12 Martin Jambor <mjambor@suse.cz>
30651
30652 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30653 terminate with newline.
30654
30655 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30656
30657 PR target/52726
30658 * config/s390/s390.md (tabort): Use %wd instead of
30659 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30660 letters and periods.
30661 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30662 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30663 's with %< and %>.
30664
30665 PR middle-end/89663
30666 * builtins.c (expand_builtin_int_roundingfn,
30667 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30668 gcc_unreachable if validate_arglist fails.
30669
30670 2019-03-12 Richard Biener <rguenther@suse.de>
30671
30672 PR tree-optimization/89664
30673 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30674 free the occurance tree after the early out.
30675
30676 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30677
30678 PR middle-end/89655
30679 PR bootstrap/89656
30680 * vr-values.c (vr_values::update_value_range): If
30681 old_vr->varying_p (), don't update it, make new_vr also VARYING
30682 and return false.
30683
30684 2019-03-11 Martin Liska <mliska@suse.cz>
30685
30686 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30687 Fix double string quoting.
30688
30689 2019-03-11 Martin Liska <mliska@suse.cz>
30690
30691 * collect-utils.c (collect_wait): Wrap apostrophes
30692 in gcc internal format with %'.
30693 * collect2.c (main): Likewise.
30694 (scan_prog_file): Likewise.
30695 (scan_libraries): Likewise.
30696 * config/i386/i386.c (ix86_expand_call): Likewise.
30697 (ix86_handle_interrupt_attribute): Likewise.
30698 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30699 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30700 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30701 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30702 * symtab.c (symtab_node::verify_base): Likewise.
30703 * tree-cfg.c (verify_gimple_label): Likewise.
30704 * tree.c (verify_type_variant): Likewise.
30705
30706 2019-03-11 Martin Liska <mliska@suse.cz>
30707
30708 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30709 in a string format message and fix GNU coding style.
30710 (expand_builtin_set_thread_pointer): Likewise.
30711 * common/config/aarch64/aarch64-common.c
30712 (aarch64_rewrite_selected_cpu): Likewise.
30713 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30714 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30715 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30716 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30717 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30718 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30719 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30720 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30721 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30722 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30723 Likewise.
30724 * common/config/riscv/riscv-common.c
30725 (riscv_subset_list::parsing_subset_version): Likewise.
30726 (riscv_subset_list::parse_std_ext): Likewise.
30727 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30728 (riscv_subset_list::parse): Likewise.
30729 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30730 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30731 (aarch64_override_options_internal): Likewise.
30732 (aarch64_validate_mcpu): Likewise.
30733 (aarch64_validate_march): Likewise.
30734 (aarch64_validate_mtune): Likewise.
30735 (aarch64_override_options): Likewise.
30736 * config/alpha/alpha.c (alpha_option_override): Likewise.
30737 * config/arc/arc.c (arc_init): Likewise.
30738 (parse_mrgf_banked_regs_option): Likewise.
30739 (arc_override_options): Likewise.
30740 (arc_expand_builtin_aligned): Likewise.
30741 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30742 (arm_expand_builtin): Likewise.
30743 * config/arm/arm.c (arm_option_check_internal): Likewise.
30744 (arm_configure_build_target): Likewise.
30745 (arm_option_override): Likewise.
30746 (arm_options_perform_arch_sanity_checks): Likewise.
30747 (arm_handle_cmse_nonsecure_entry): Likewise.
30748 (arm_handle_cmse_nonsecure_call): Likewise.
30749 (arm_tls_referenced_p): Likewise.
30750 (thumb1_expand_prologue): Likewise.
30751 * config/avr/avr.c (avr_option_override): Likewise.
30752 * config/bfin/bfin.c (bfin_option_override): Likewise.
30753 * config/c6x/c6x.c (c6x_option_override): Likewise.
30754 * config/cr16/cr16.c (cr16_override_options): Likewise.
30755 * config/cris/cris.c (cris_option_override): Likewise.
30756 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30757 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30758 * config/darwin.c (darwin_override_options): Likewise.
30759 * config/frv/frv.c (frv_expand_builtin): Likewise.
30760 * config/h8300/h8300.c (h8300_option_override): Likewise.
30761 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30762 (ix86_option_override_internal): Likewise.
30763 (warn_once_call_ms2sysv_xlogues): Likewise.
30764 (ix86_expand_prologue): Likewise.
30765 (split_stack_prologue_scratch_regno): Likewise.
30766 (ix86_warn_parameter_passing_abi): Likewise.
30767 * config/ia64/ia64.c (fix_range): Likewise.
30768 * config/m68k/m68k.c (m68k_option_override): Likewise.
30769 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30770 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30771 (mips_set_compression_mode): Likewise.
30772 * config/mmix/mmix.c (mmix_option_override): Likewise.
30773 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30774 * config/msp430/msp430.c (msp430_option_override): Likewise.
30775 * config/nds32/nds32.c (nds32_option_override): Likewise.
30776 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30777 (nios2_option_override): Likewise.
30778 (nios2_expand_custom_builtin): Likewise.
30779 * config/nvptx/mkoffload.c (main): Likewise.
30780 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30781 * config/pa/pa.c (fix_range): Likewise.
30782 (pa_option_override): Likewise.
30783 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30784 (riscv_option_override): Likewise.
30785 * config/rl78/rl78.c (rl78_option_override): Likewise.
30786 * config/rs6000/aix61.h: Likewise.
30787 * config/rs6000/aix71.h: Likewise.
30788 * config/rs6000/aix72.h: Likewise.
30789 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30790 * config/rs6000/freebsd64.h: Likewise.
30791 * config/rs6000/linux64.h: Likewise.
30792 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30793 (rs6000_expand_zeroop_builtin): Likewise.
30794 (rs6000_expand_mtfsb_builtin): Likewise.
30795 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30796 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30797 (rs6000_invalid_builtin): Likewise.
30798 (rs6000_expand_split_stack_prologue): Likewise.
30799 * config/rs6000/rtems.h: Likewise.
30800 * config/rx/rx.c (valid_psw_flag): Likewise.
30801 (rx_expand_builtin): Likewise.
30802 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30803 * config/s390/s390.c (s390_expand_builtin): Likewise.
30804 (s390_function_profiler): Likewise.
30805 (s390_option_override_internal): Likewise.
30806 (s390_option_override): Likewise.
30807 * config/sh/sh.c (sh_option_override): Likewise.
30808 (sh_builtin_saveregs): Likewise.
30809 (sh_fix_range): Likewise.
30810 * config/sh/vxworks.h: Likewise.
30811 * config/sparc/sparc.c (sparc_option_override): Likewise.
30812 * config/spu/spu.c (spu_option_override): Likewise.
30813 (fix_range): Likewise.
30814 * config/visium/visium.c (visium_option_override): Likewise.
30815 (visium_handle_interrupt_attr): Likewise.
30816 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30817 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30818 (dbg_cnt_process_opt): Likewise.
30819 * dwarf2out.c (output_dwarf_version): Likewise.
30820 * except.c (expand_eh_return): Likewise.
30821 * gcc.c (defined): Likewise.
30822 (driver_handle_option): Likewise.
30823 (process_command): Likewise.
30824 (compare_files): Likewise.
30825 (driver::prepare_infiles): Likewise.
30826 (driver::do_spec_on_infiles): Likewise.
30827 (driver::maybe_run_linker): Likewise.
30828 * omp-offload.c (oacc_parse_default_dims): Likewise.
30829 * opts-global.c (handle_common_deferred_options): Likewise.
30830 * opts.c (parse_sanitizer_options): Likewise.
30831 (common_handle_option): Likewise.
30832 (enable_warning_as_error): Likewise.
30833 * passes.c (enable_disable_pass): Likewise.
30834 * plugin.c (parse_plugin_arg_opt): Likewise.
30835 (default_plugin_dir_name): Likewise.
30836 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30837 (default_pch_valid_p): Likewise.
30838 * toplev.c (init_asm_output): Likewise.
30839 (process_options): Likewise.
30840 (toplev::run_self_tests): Likewise.
30841 * tree-cfg.c (verify_gimple_call): Likewise.
30842 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30843 (tree_inlinable_function_p): Likewise.
30844 * var-tracking.c (vt_find_locations): Likewise.
30845
30846 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30847
30848 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30849 only on the else branch.
30850
30851 2019-03-11 Martin Liska <mliska@suse.cz>
30852
30853 * gcov.c (output_intermediate_json_line): Print function
30854 name of each line.
30855 (output_json_intermediate_file): Add new argument.
30856 * doc/gcov.texi: Document the change.
30857
30858 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30859
30860 PR rtl-optimization/89588
30861 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30862 explicit unrolling factor more robust.
30863
30864 2019-03-11 Richard Biener <rguenther@suse.de>
30865
30866 PR tree-optimization/89649
30867 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30868 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30869 on the prolog and epilog loops.
30870 (vect_loop_versioning): Return copy of loop.
30871 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30872 on the non-vectorized version of the loop.
30873
30874 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30875
30876 PR target/68924
30877 * config/i386/sse.md (*vec_extractv2di_0_sse):
30878 Add (=r,x) alternative and corresponding splitter.
30879
30880 2019-03-10 Martin Jambor <mjambor@suse.cz>
30881
30882 PR tree-optimization/85762
30883 PR tree-optimization/87008
30884 PR tree-optimization/85459
30885 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30886 it points to if there is a type changing MEM_REF. Adjust all callers.
30887 (build_accesses_from_assign): Disable total scalarization if
30888 contains_vce_or_bfcref_p returns true through the new parameter, for
30889 both rhs and lhs.
30890
30891 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30892
30893 PR c/88568
30894 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30895 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30896
30897 PR target/79645
30898 * common.opt (fdiagnostics-show-labels,
30899 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30900 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30901 gas-locview-support, ginline-points, ginternal-reset-location-views):
30902 Terminate description text with a dot.
30903 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30904 * config/mcore/mcore.opt (m210, m340): Likewise.
30905 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30906 mnops=): Start description text with a capital letter.
30907 * config/arc/arc.opt (msize-level=): Likewise.
30908 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30909 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30910 mnewlib): Likewise.
30911 * config/ft32/ft32.opt (msim): Likewise.
30912 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30913 (mnodiv, mnopm): Terminate description text with a dot.
30914 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30915 a colon.
30916 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30917 Likewise.
30918 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30919 text.
30920
30921 PR rtl-optimization/89634
30922 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30923 are modified in BB_END (e->src) instruction.
30924
30925 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30926
30927 PR target/79926
30928 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30929 messages more amenable to translation, and improve wording.
30930
30931 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30932
30933 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30934 ud- and du-chains between phases.
30935
30936 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30937
30938 PR debug/89631
30939 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30940 instead of POLY_INT_CST.
30941
30942 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30943
30944 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30945 requirement.
30946
30947 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30948
30949 PR target/68924
30950 PR target/78782
30951 PR target/87558
30952 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30953 (_mm_storeu_si64): Ditto.
30954
30955 2019-03-08 Martin Liska <mliska@suse.cz>
30956
30957 PR target/86952
30958 * config/i386/i386.c (ix86_option_override_internal): Disable
30959 jump tables when retpolines are used.
30960
30961 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30962
30963 PR go/63560
30964 * ipa-split.c (execute_split_functions): Do not split
30965 'noinline' or 'section' function.
30966
30967 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30968
30969 PR target/79846
30970 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30971 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30972 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30973
30974 PR ipa/80000
30975 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30976 from diagnostics. Formatting fixes.
30977
30978 PR target/85665
30979 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30980 warn_odr diagnostics.
30981
30982 PR other/80058
30983 * lra-constraints.c (process_alt_operands): Avoid one space before
30984 " at the end of line and another after " on another line in a string
30985 literal.
30986 * attribs.c (handle_dll_attribute): Likewise.
30987 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30988
30989 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30990 warning_at or inform messages in G_() if there is no ?:.
30991
30992 PR tree-optimization/89550
30993 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30994 returned true. Formatting fixes.
30995 (expand_builtin_strnlen): Formatting fixes.
30996 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30997 if warning_at returned true.
30998 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30999
31000 2019-03-08 Richard Biener <rguenther@suse.de>
31001
31002 PR middle-end/89578
31003 * cfgloop.h (struct loop): Add owned_clique field.
31004 * cfgloopmanip.c (copy_loop_info): Copy it.
31005 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31006 cliques.
31007 * tree-inline.c (copy_loops): Remap owned_clique.
31008 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31009 * lto-streamer-out.c (output_cfg): Likewise.
31010
31011 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31012
31013 PR target/80190
31014 * config/darwin.c: Include intl.h.
31015 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31016 composing the message out of two separate parts.
31017
31018 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31019
31020 PR target/80003
31021 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31022 doesn't start with a capital letter and doesn't end with a dot.
31023 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31024 with a capital letter.
31025 (ix86_mangle_function_version_assembler_name): Likewise.
31026 (ix86_generate_version_dispatcher_body): Likewise.
31027 (fold_builtin_cpu): Likewise.
31028 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31029 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31030 translators, wrap full type name in %qs.
31031
31032 PR translation/79999
31033 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31034 depend clause with source (or sink) modifier.
31035 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31036
31037 PR target/89602
31038 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31039 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31040 (avx512f_load<mode>_mask): New define_expand.
31041 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31042 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31043 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31044 __builtin_ia32_movess_mask): New builtins.
31045 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31046 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31047 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31048 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31049
31050 2019-03-07 Martin Jambor <mjambor@suse.cz>
31051
31052 PR lto/87525
31053 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31054 for extern inline functions.
31055
31056 2019-03-07 Martin Jambor <mjambor@suse.cz>
31057
31058 PR ipa/88235
31059 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31060 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31061 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31062 have multiple callees. At the end check if declarations match as
31063 opposed to cgraph_nodes.
31064
31065 2019-03-07 Martin Liska <mliska@suse.cz>
31066
31067 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31068 which is equivalent to searching for this in clones chain.
31069 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31070 names with a neighbour and special case first node in a chain.
31071
31072 2019-01-25 Jason Merrill <jason@redhat.com>
31073
31074 PR c++/80916 - spurious "static but not defined" warning.
31075 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31076 for an internal symbol with DECL_EXTERNAL.
31077
31078 2019-04-07 Richard Biener <rguenther@suse.de>
31079
31080 PR middle-end/89618
31081 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31082 * tree-inline.c (copy_loops): Simplify.
31083
31084 2019-03-07 Martin Liska <mliska@suse.cz>
31085
31086 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31087
31088 2019-03-07 Richard Biener <rguenther@suse.de>
31089
31090 PR tree-optimization/89595
31091 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31092 stmt iterator as reference, take boolean output parameter to
31093 indicate whether the stmt was removed and thus the iterator
31094 already advanced.
31095 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31096 stmts created by folding.
31097
31098 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31099
31100 PR c++/89585
31101 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31102 at toplevel.
31103
31104 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31105
31106 PR rtl-optimization/88845
31107 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31108 LRA.
31109 * lra.c (remove_scratches_1): New function.
31110 (remove_scratches): Use it.
31111 (lra_emit_move): Likewise.
31112
31113 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31114
31115 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31116 unaligned_access variable.
31117 * config/arc/arc.c (arc_override_options): Set unaligned access
31118 default on for HS CPUs.
31119 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31120
31121 2019-03-06 Martin Liska <mliska@suse.cz>
31122
31123 PR gcov-profile/89577
31124 * doc/gcov.texi: Prefer to use --coverage.
31125 * doc/sourcebuild.texi: Likewise.
31126
31127 2019-03-02 Jason Merrill <jason@redhat.com>
31128
31129 PR c++/86485 - -Wmaybe-unused with empty class ?:
31130 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31131
31132 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31133
31134 PR target/89587
31135 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31136 if_multiarch.
31137
31138 PR middle-end/89590
31139 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31140 exactly one argument.
31141
31142 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31143 Richard Sandiford <richard.sandiford@arm.com>
31144
31145 PR tree-optimization/89570
31146 * match.pd (vec_cond into cond_op simplification): Don't use
31147 get_conditional_internal_fn, use as_internal_fn (cond_op).
31148
31149 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31150
31151 PR target/89222
31152 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31153 to decide when to split off a non-zero offset from a symbol.
31154 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31155 in function symbols.
31156
31157 2019-03-05 Richard Biener <rguenther@suse.de>
31158
31159 PR tree-optimization/89594
31160 * tree-if-conv.c (pass_if_conversion::execute): Handle
31161 case where .LOOP_VECTORIZED_FUNCTION was removed.
31162
31163 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31164
31165 PR bootstrap/89560
31166 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31167 instead alloca it only when needed with the needed size.
31168
31169 PR tree-optimization/89570
31170 * match.pd (vec_cond into cond_op simplification): Guard with
31171 vectorized_internal_fn_supported_p test and #if GIMPLE.
31172
31173 PR tree-optimization/89566
31174 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31175 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31176 Punt if get_user_idx_format succeeds, but idx_format argument is
31177 not provided or doesn't have pointer type, or if idx_args is above
31178 number of provided arguments.
31179
31180 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31181
31182 PR tree-optimization/89437
31183 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31184
31185 2019-03-04 Richard Biener <rguenther@suse.de>
31186
31187 PR middle-end/89572
31188 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31189 safe_dyn_cast.
31190
31191 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31192
31193 PR tree-optimization/89487
31194 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31195 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31196 (distribute_loop): Don't do runtime alias check if there is non-
31197 addressable data reference.
31198 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31199 is a register variable.
31200
31201 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31202
31203 PR target/89506
31204 * config/arm/arm.md (cmpsi2_addneg): Use
31205 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31206 If operands[2] is 0 or INT_MIN, force use of subs.
31207 (*compare_scc splitter): Use gen_int_mode.
31208 (*negscc): Likewise.
31209 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31210
31211 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31212 Monk Chiang <sh.chiang04@gmail.com>
31213
31214 * common/config/riscv/riscv-common.c: Include sstream.
31215 (riscv_subset_list::to_string): New.
31216 (riscv_arch_str): Likewise.
31217 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31218 * config.in: Regen.
31219 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31220 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31221 (riscv_emit_attribute): New.
31222 (riscv_file_start): Emit attribute if needed.
31223 (riscv_option_override): Init riscv_emit_attribute_p.
31224 * config/riscv/riscv.opt (mriscv-attribute): New option.
31225 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31226 * configure: Regen.
31227 * doc/install.texi: Document --with-riscv-attribute.
31228 * doc/invoke.texi: Document -mriscv-attribute.
31229
31230 * common/config/riscv/riscv-common.c:
31231 Include config/riscv/riscv-protos.h.
31232 (INCLUDE_STRING): Defined.
31233 (RISCV_DONT_CARE_VERSION): Defined.
31234 (riscv_subset_t): Declare.
31235 (riscv_subset_t::riscv_subset_t): New.
31236 (riscv_subset_list): Declare.
31237 (riscv_subset_list::riscv_subset_list): New.
31238 (riscv_subset_list::~riscv_subset_list): Likewise.
31239 (riscv_subset_list::parsing_subset_version): Likewise.
31240 (riscv_subset_list::parse_std_ext): Likewise.
31241 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31242 (riscv_subset_list::add): Likewise.
31243 (riscv_subset_list::lookup): Likewise.
31244 (riscv_subset_list::xlen): Likewise.
31245 (riscv_subset_list::parse): Likewise.
31246 (riscv_supported_std_ext): Likewise.
31247 (current_subset_list): Likewise.
31248 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31249 parse.
31250
31251 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31252
31253 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31254 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31255 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31256
31257 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31258
31259 PR rtl-optimization/85899
31260 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31261 fallthru edges leading to the exit block.
31262
31263 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31264
31265 PR target/89517
31266 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31267 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31268
31269 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31270
31271 PR tree-optimization/89535
31272 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31273 for each operand. Calculate the fallback choice for mask operands
31274 and pass it to vect_get_vec_def_for_operand.
31275
31276 2019-03-01 Richard Biener <rguenther@suse.de>
31277
31278 PR middle-end/89541
31279 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31280 get virtual operands.
31281 (get_expr_operands): Handle CONST_DECL like other decls.
31282
31283 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31284
31285 PR middle-end/89503
31286 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31287 on DECL_P and EXPR_P.
31288
31289 2019-03-01 Richard Biener <rguenther@suse.de>
31290
31291 PR middle-end/89497
31292 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31293 argument, defaulted to zero.
31294 * passes.c (execute_function_todo): Pass down SSA update flags
31295 to cleanup_tree_cfg.
31296 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31297 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31298 form if requested.
31299 (cleanup_tree_cfg): Get and pass down SSA update flags.
31300
31301 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31302
31303 PR bootstrap/89539
31304 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31305 early_lto_debug argument.
31306
31307 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31308
31309 PR tree-optimization/89536
31310 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31311 only whether bit #0 of the value is 0 instead of the entire value.
31312
31313 2019-02-28 Marek Polacek <polacek@redhat.com>
31314
31315 PR c++/87068 - missing diagnostic with fallthrough statement.
31316 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31317 at the end of a seq, save its location to walk_stmt_info.
31318 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31319 a switch.
31320
31321 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31322
31323 PR lto/88585
31324 * tree.c (find_atomic_core_type): Move ahead in file.
31325 (check_base_type): Correctly compare alignments of atomic types.
31326
31327 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31328
31329 PR target/89455
31330 * config/i386/i386.c (get_builtin_code_for_version): Identify
31331 Westmere from PCLMUL, instead of AES.
31332
31333 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31334
31335 PR target/89434
31336 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31337 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31338 -UINTVAL (...).
31339
31340 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31341
31342 PR target/88530
31343 * config/aarch64/aarch64-option-extensions.def: Document it.
31344 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31345 if empty hwcaps.
31346
31347 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31348
31349 PR c/89520
31350 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31351 builtins if they don't have a single scalar floating point argument.
31352 Formatting fixes.
31353
31354 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31355
31356 PR rtl-optimization/89490
31357 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31358 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31359 block section is not mergeable.
31360
31361 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31362
31363 PR target/70341
31364 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31365 old define_insn to ...
31366 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31367 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31368 Rename old define_insn to ...
31369 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31370 (thumb2_casesi_internal_pic): New define_expand. Rename old
31371 define_insn to ...
31372 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31373 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31374 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31375
31376 2019-02-27 Richard Biener <rguenther@suse.de>
31377
31378 PR debug/88878
31379 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31380
31381 2019-02-27 Richard Biener <rguenther@suse.de>
31382
31383 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31384 building.
31385
31386 2019-02-27 Richard Biener <rguenther@suse.de>
31387
31388 PR debug/88878
31389 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31390 parameter, prefix section name with .gnu.debuglto_ if true.
31391 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31392 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31393
31394 2019-02-27 Richard Biener <rguenther@suse.de>
31395
31396 PR debug/89514
31397 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31398 rather than on use_debug_types, doing what output_die does.
31399 (value_format): Likewise.
31400
31401 2019-02-27 Martin Jambor <mjambor@suse.cz>
31402 Martin Sebor <msebor@redhat.com>
31403
31404 * doc/invoke.texi (Warning Options): Reword description of
31405 -Wno-absolute-value.
31406
31407 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31408
31409 PR tree-optimization/89280
31410 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31411 builtin_setjmp_setup_bb): New functions.
31412 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31413 When visiting __builtin_setjmp_setup block, queue in special
31414 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31415 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31416 from visited after the loop if they don't have any visited successor
31417 blocks.
31418
31419 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31420
31421 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31422 New function.
31423 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31424
31425 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31426
31427 PR c++/89507
31428 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31429 with types other than sizetype/ssizetype.
31430
31431 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31432
31433 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31434 (enum sparc_processor_type): ...this.
31435 (enum sparc_code_model_type): New enumeration type.
31436 (enum sparc_memory_model_type): Tweak comments.
31437 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31438 (mtune): Likewise.
31439 (mcmodel): Use sparc_code_model enumeration and variable.
31440 (sparc_code_model): New enumeration.
31441 (mdebug): Add Undocumented marker.
31442 * config/sparc/sparc.h (enum cmodel): Delete.
31443 (sparc_cmodel): Likewise.
31444 (TARGET_CM_MEDLOW): Adjust to above renaming.
31445 (TARGET_CM_MEDMID): Likewise.
31446 (TARGET_CM_MEDANY): Likewise.
31447 (TARGET_CM_EMBMEDANY): Likewise.
31448 * config/sparc/sparc.c (sparc_cmodel): Delete.
31449 (sparc_option_override): Remove string/value mapping support for the
31450 code model. Move code and memory model support to after the handling
31451 of target flags. Do private machine setup last.
31452 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31453 (sparc_legitimize_reload_address): Likewise.
31454 (sparc_output_mi_thunk): Likewise.
31455 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31456
31457 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31458
31459 PR tree-optimization/89500
31460 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31461 (handle_builtin_strlen): Remove noncst_bound variable. Always
31462 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31463 cst if the first cst bytes starting at x are known to be non-zero,
31464 even if the string is not zero terminated. Don't try to modify
31465 *si for strnlen. Update strlen_to_stridx only for strlen or if
31466 we can prove strnlen returns the same value as strlen would.
31467
31468 2019-02-26 Martin Liska <mliska@suse.cz>
31469
31470 * alloc-pool.h (struct pool_usage): Remove extra
31471 print_dash_line.
31472 * bitmap.h (struct bitmap_usage): Likewise.
31473 * ggc-common.c (struct ggc_usage): Likewise.
31474 * mem-stats.h (struct mem_usage): Likewise.
31475 (mem_alloc_description::dump): Print dash lines
31476 here and repeat header at the end of a table report.
31477 It's then more readable.
31478 * tree-phinodes.c (phinodes_print_statistics): Make
31479 horizontal alignment.
31480 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31481 * vec.c (struct vec_usage): Remove extra print_dash_line.
31482 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31483
31484 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31485
31486 * doc/extend.texi (__builtin_object_size):
31487 Use @pxref instead of @xref inside parenthesis.
31488 (__builtin_has_attribute): Add missing comma after @xref.
31489 (__builtin_object_size): Ditto.
31490 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31491
31492 2019-02-26 Jeff Law <law@redhat.com>
31493
31494 PR rtl-optimization/87761
31495 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31496 detect obviously dead insns and delete them.
31497
31498 2019-02-26 Richard Biener <rguenther@suse.de>
31499
31500 PR tree-optimization/89505
31501 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31502 to handle restrict pointed-to vars with multiple subvars
31503 correctly.
31504
31505 2019-02-26 Richard Biener <rguenther@suse.de>
31506
31507 PR tree-optimization/89489
31508 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31509
31510 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31511
31512 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31513 and move around comment.
31514 <BIT_AND_EXPR>: Likewise.
31515 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31516
31517 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31518
31519 PR target/89474
31520 * config/i386/i386.c (remove_partial_avx_dependency): Call
31521 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31522 after changing possibly many instructions to use that pseudo. Fix up
31523 insertion of v4sf_const0 setter at the start of bb.
31524
31525 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31526
31527 PR c/80409
31528 * doc/extend.texi (Variadic Pointer Args): New section.
31529
31530 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31531 Martin Sebor <msebor@gmail.com>
31532
31533 * common.opt (Wattribute-alias): Likewise.
31534 * doc/invoke.texi (Option Summary): List general form of
31535 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31536 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31537 Add cross-references.
31538 (-Wattribute-alias): Rewrite and correct default. Mention
31539 considered attributes (same as for -Wmissing-attributes).
31540
31541 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31542
31543 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31544 (_mm_cvtpd_ps): Likewise.
31545 (_mm_cvttpd_epi32): Likewise.
31546
31547 PR target/89338
31548 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31549 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31550
31551 PR target/89339
31552 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31553
31554 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31555
31556 PR target/88530
31557 * common/config/aarch64/aarch64-common.c
31558 (struct aarch64_option_extension): Add is_synthetic.
31559 (all_extensions): Use it.
31560 (TARGET_OPTION_INIT_STRUCT): Define hook.
31561 (struct gcc_targetm_common): Moved to end.
31562 (all_extensions_by_on): New.
31563 (opt_ext_cmp, typedef opt_ext): New.
31564 (aarch64_option_init_struct): New.
31565 (aarch64_contains_opt): New.
31566 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31567 * config/aarch64/aarch64-option-extensions.def
31568 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31569 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31570 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31571 Set is_synthetic to false.
31572 (crypto): Set is_synthetic to true.
31573 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31574 SYNTHETIC.
31575
31576 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31577
31578 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31579 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31580 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31581 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31582 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31583 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31584 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31585 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31586 Rename ...
31587 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31588 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31589 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31590 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31591 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31592 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31593 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31594 vfmlsl_laneq_high_f16): ... To this.
31595 * config/arm/neon.md: Update comments.
31596
31597 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31598
31599 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31600 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31601 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31602 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31603 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31604 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31605 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31606 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31607 Rename ...
31608 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31609 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31610 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31611 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31612 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31613 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31614 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31615 vfmlslq_laneq_high_f16): ... To this.
31616
31617 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31618
31619 PR rtl-optimization/86096
31620 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31621 comparing mw_order values.
31622
31623 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31624
31625 PR target/89434
31626 * config/arm/arm.md (*subsi3_carryin_const): Use
31627 arm_neg_immediate_operand predicate instead of
31628 arm_not_immediate_operand, "L" constraint instead of "K" and
31629 print it using %n2 instead of %B2.
31630 (*subsi3_carryin_const0): New define_insn.
31631 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31632 instead of arm_not_operand and "I" constraint instead of "K" and
31633 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31634 another match_operand and in the condition check that it is negation
31635 of operands[2].
31636 (*subsi3_carryin_compare_const0): New define_ins.
31637 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31638 *subsi3_carryin_const.
31639 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31640 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31641
31642 PR target/89438
31643 * config/arm.vfp.md (*negdf2_vfp): Use
31644 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31645 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31646
31647 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31648
31649 PR rtl-optimization/89445
31650 * simplify-rtx.c (simplify_ternary_operation): Don't use
31651 simplify_merge_mask on operands that may trap.
31652 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31653 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31654 second operand is CONST_VECTOR, check if any element could be zero.
31655 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31656 their operands can trap.
31657
31658 2019-02-23 Martin Sebor <msebor@redhat.com>
31659
31660 * gimple-ssa-sprintf.c (target_strtol): Rename...
31661 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31662 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31663 check for range error.
31664
31665 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31666
31667 PR driver/69471
31668 * opts-common.c (prune_options): Also prune joined switches
31669 with Negative and RejectNegative.
31670 * config/i386/i386.opt (march=): Add Negative(march=).
31671 (mtune=): Add Negative(mtune=).
31672 * doc/options.texi: Document Negative used together with Joined
31673 and RejectNegative.
31674
31675 2019-02-22 Martin Sebor <msebor@redhat.com>
31676
31677 * doc/extend.texi (Other Builtins): Add
31678 __builtin_is_constant_evaluated.
31679
31680 2019-02-22 Richard Biener <rguenther@suse.de>
31681
31682 PR tree-optimization/87609
31683 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31684
31685 2019-02-22 Jeff Law <law@redhat.com>
31686
31687 PR rtl-optimization/87761
31688 * config/mips/mips.md: Add new combiner pattern to recognize
31689 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31690
31691 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31692
31693 PR target/89324
31694 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31695 destination register in peepholes generating patterns for ADDS/SUBS.
31696 (add<mode>3_compare0,
31697 *addsi3_compare0_uxtw, add<mode>3_compareC,
31698 add<mode>3_compareV_imm, add<mode>3_compareV,
31699 *adds_<optab><ALLX:mode>_<GPI:mode>,
31700 *subs_<optab><ALLX:mode>_<GPI:mode>,
31701 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31702 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31703 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31704 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31705 sub<mode>3_compare1): Allow stack pointer for source register.
31706 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31707
31708 2019-02-22 Martin Sebor <msebor@redhat.com>
31709
31710 PR tree-optimization/88993
31711 PR tree-optimization/88853
31712 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31713 New helper.
31714 (sprintf_dom_walker::call_info::is_string_func): New helper.
31715 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31716 for formatted string functions.
31717 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31718
31719 2019-02-22 Martin Sebor <msebor@redhat.com>
31720
31721 PR c/89425
31722 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31723 unreachable subexpressions.
31724
31725 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31726 Hongtao Liu <hongtao.liu@intel.com>
31727 Sunil K Pandey <sunil.k.pandey@intel.com>
31728
31729 PR target/87007
31730 * config/i386/i386-passes.def: Add
31731 pass_remove_partial_avx_dependency.
31732 * config/i386/i386-protos.h
31733 (make_pass_remove_partial_avx_dependency): New.
31734 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31735 New function.
31736 (pass_data_remove_partial_avx_dependency): New.
31737 (pass_remove_partial_avx_dependency): Likewise.
31738 (make_pass_remove_partial_avx_dependency): Likewise.
31739 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31740 (*extendsfdf2): Add avx_partial_xmm_update.
31741 (truncdfsf2): Likewise.
31742 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31743 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31744
31745 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31746
31747 PR middle-end/85598
31748 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31749 analysis for pass.
31750
31751 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31752
31753 PR target/89444
31754 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31755 (PTA_SKYLAKE): Add PTA_AES.
31756 (PTA_GOLDMONT): Likewise.
31757
31758 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31759
31760 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31761 instruction if enabled.
31762 (aarch64_override_options): Remove reference to return address key.
31763
31764 2019-02-22 Richard Biener <rguenther@suse.de>
31765
31766 PR tree-optimization/89440
31767 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31768 not necessary assert.
31769
31770 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31771
31772 PR fortran/72741
31773 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31774 (oacc_replace_fn_attrib_attr): ... this new function.
31775 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31776 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31777
31778 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31779
31780 * config/arm/arm-cpus.in (ares): Rename to...
31781 (neoverse-n1): ... This. Add ares as alias.
31782 * config/arm/arm-tables.opt: Regenerate.
31783 * config/arm/arm-tune.md: Likewise.
31784 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31785
31786 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31787
31788 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31789 * config/aarch64/aarch64-tune.md: Regenerate.
31790 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31791
31792 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31793
31794 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31795 (neoversen1_tunings): ... This.
31796 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31797 (neoverse-n1): New CPU.
31798 * config/aarch64/aarch64-tune.md: Regenerate.
31799 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31800
31801 2019-02-22 Richard Biener <rguenther@suse.de>
31802
31803 PR middle-end/87609
31804 * cfghooks.h (dependence_hash): New typedef.
31805 (struct copy_bb_data): New type.
31806 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31807 (duplicate_block): Likewise.
31808 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31809 (copy_bbs): Create and pass down copy_bb_data.
31810 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31811 (rtl_duplicate_bb): Likewise.
31812 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31813 remap dependence info.
31814
31815 2019-02-22 Richard Biener <rguenther@suse.de>
31816
31817 PR tree-optimization/87609
31818 * tree-core.h (tree_base): Document special clique values.
31819 * tree-inline.c (remap_dependence_clique): Do not use the
31820 special clique value of one.
31821 (maybe_set_dependence_info): Use clique one.
31822 (clear_dependence_clique): New callback.
31823 (compute_dependence_clique): Clear clique one from all refs
31824 before assigning it (again).
31825
31826 2019-02-21 Martin Sebor <msebor@redhat.com>
31827
31828 * doc/extend.texi (__clear_cache): Correct signature.
31829
31830 2019-02-21 Ian Lance Taylor <iant@golang.org>
31831
31832 PR go/89170
31833 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31834 than output_constant_def.
31835 (add_constant_to_table): New static function.
31836 (output_constant_def): Call add_constant_to_table.
31837 (tree_output_constant_def): Likewise.
31838
31839 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31840
31841 PR c++/89285
31842 * builtins.c (fold_builtin_arith_overflow): If first two args are
31843 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31844 to ifn.
31845
31846 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31847
31848 PR target/87412
31849 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31850 error for -mindirect-branch/-mfunction-return with incompatible
31851 -fcf-protection.
31852
31853 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31854
31855 PR bootstrap/88714
31856 * constraints.md (q): Remove.
31857 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31858 instead of q.
31859
31860 2019-02-21 Martin Jambor <mjambor@suse.cz>
31861
31862 PR hsa/89302
31863 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31864 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31865 (omp_adjust_for_condition): ...here. Added necessary parameters.
31866 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31867 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31868 proper values to new parameters of omp_adjust_for_condition.
31869
31870 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31871
31872 PR middle-end/89412
31873 * expr.c (expand_assignment): If result is a MEM, use change_address
31874 instead of simplify_gen_subreg.
31875
31876 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31877 David Malcolm <dmalcolm@redhat.com>
31878
31879 PR middle-end/89091
31880 * fold-const.c (decode_field_reference): Return NULL_TREE if
31881 lang_hooks.types.type_for_size returns NULL. Check it before
31882 overwriting *exp_. Use return NULL_TREE instead of return 0.
31883
31884 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31885
31886 PR middle-end/88074
31887 PR middle-end/89415
31888 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31889 buggy mpc_norm.
31890
31891 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31892
31893 PR target/89397
31894 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31895 TARGET_SSE in addition to TARGET_SSE_MATH.
31896
31897 (ix86_excess_precision): Ditto.
31898 (ix86_float_exceptions_rounding_supported_p): Ditto.
31899 (use_rsqrt_p): Ditto.
31900 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31901
31902 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31903
31904 PR c/89410
31905 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31906 linenum_arith_t when determining if two adjacent line spans are
31907 close enough to merge.
31908 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31909 lines within each line_span.
31910
31911 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31912
31913 PR target/86487
31914 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31915 paradoxical SUBREGS.
31916
31917 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31918
31919 PR target/88100
31920 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31921 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31922 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31923 range checking it.
31924
31925 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31926
31927 * config/gcn/gcn.c (print_operand): Fix typo.
31928
31929 2019-02-19 Richard Biener <rguenther@suse.de>
31930
31931 PR middle-end/88074
31932 * toplev.c (do_compile): Initialize mpfr's exponent range
31933 based on available float modes.
31934
31935 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31936
31937 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31938 as long as the epilogue isn't completed.
31939
31940 2019-02-18 Martin Sebor <msebor@redhat.com>
31941
31942 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31943 __has_cpp_attribute, and __has_include.
31944
31945 2019-02-18 Martin Sebor <msebor@redhat.com>
31946
31947 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31948
31949 2019-02-18 Martin Sebor <msebor@redhat.com>
31950
31951 PR middle-end/89294
31952 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31953 expression.
31954 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31955
31956 2019-02-18 Richard Biener <rguenther@suse.de>
31957
31958 PR tree-optimization/89296
31959 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31960 of no-warning flag to cases that might emit the bogus warning.
31961
31962 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31963
31964 PR bootstrap/88714
31965 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31966 "q" constraint.
31967 * config/arm/vfp.md (*movdi_vfp): Likewise.
31968 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31969 "q" constraint for operands[0].
31970
31971 PR target/89369
31972 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31973 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31974 pattern in a temporary buffer.
31975 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31976 than 64-operands[2].
31977
31978 PR target/89361
31979 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31980 s390_indirect_branch_settings): Define unconditionally.
31981 (s390_set_current_function): Likewise, but guard the whole body except
31982 the s390_indirect_branch_settings call with
31983 #if S390_USE_TARGET_ATTRIBUTE.
31984 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31985
31986 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31987 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31988 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31989 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31990 HOST_WIDE_INT_1U instead of 1ULL.
31991 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31992 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31993 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31994 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31995 instead of 1UL.
31996 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31997 instead of 1ul.
31998
31999 2019-02-18 Martin Jambor <mjambor@suse.cz>
32000
32001 PR tree-optimization/89209
32002 * tree-sra.c (create_access_replacement): New optional parameter
32003 reg_tree. Use it as a type if non-NULL and access type is not of
32004 a register type.
32005 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32006 to create_access_replacement.
32007 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32008 Check lacc is non-NULL before attempting to re-create it on the RHS.
32009
32010 2019-02-18 Martin Liska <mliska@suse.cz>
32011
32012 PR ipa/89306
32013 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32014 by default.
32015 (symbol_table::free_edge): Recycle m_summary_id.
32016 * cgraph.h (get_summary_id): New.
32017 (symbol_table::release_symbol): Set m_summary_id to -1
32018 by default.
32019 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32020 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32021 function_summary to fast_function_summary.
32022 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32023 * ipa-pure-const.c (class funct_state_summary_t):
32024 Switch from function_summary to fast_function_summary.
32025 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32026 (class ipa_ref_opt_summary_t): Switch from function_summary
32027 to fast_function_summary.
32028 * symbol-summary.h (class function_summary_base): New class
32029 that is created from base of former function_summary.
32030 (function_summary_base::unregister_hooks): New.
32031 (class function_summary): Inherit from function_summary_base.
32032 (class call_summary_base): New class
32033 that is created from base of former call_summary.
32034 (class call_summary): Inherit from call_summary_base.
32035 (struct is_same): New.
32036 (class fast_function_summary): New summary class.
32037 (class fast_call_summary): New summary class.
32038 * vec.h (vec_safe_grow_cleared): New function.
32039
32040 2019-02-18 Martin Liska <mliska@suse.cz>
32041
32042 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32043 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32044 * doc/tm.texi: Document new target hook.
32045 * doc/tm.texi.in: Likewise.
32046 * target.def: Add new target macro.
32047 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32048 suffixes.
32049
32050 2019-02-17 Alan Modra <amodra@gmail.com>
32051
32052 PR target/89271
32053 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32054 output reg on add insn.
32055 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32056
32057 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32058
32059 PR target/89372
32060 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32061 (PMULHRSW): Likewise.
32062 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32063 TARGET_AVX2.
32064 (ssse3_pmulhrswv4hi3): New expander.
32065
32066 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32067
32068 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32069 MMX. Add isa attribute.
32070
32071 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32072
32073 PR rtl-optimization/66152
32074 * builtins.h (c_readstr): Declare.
32075 * builtins.c (c_readstr): Remove forward declaration. Add
32076 null_terminated_p argument, if false, read all bytes from the
32077 string instead of stopping after '\0'.
32078 * expr.c (string_cst_read_str): New function.
32079 (store_expr): Use string_cst_read_str instead of
32080 builtin_strncpy_read_str. Try to store by pieces the whole
32081 exp_len first, and only if that fails, split it up into
32082 store by pieces followed by clear_storage. Formatting fix.
32083
32084 * config/i386/i386.md (*movqi_internal): Remove static from
32085 buf variable. Use output_asm_insn (buf, operands); return "";
32086 instead of return buf;.
32087 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32088 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32089 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32090
32091 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32092
32093 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32094 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32095 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32096 (CC1_SPEC): Likewise.
32097 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32098
32099 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32100
32101 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32102 the base address on 64-bit strict-alignment platforms.
32103
32104 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32105
32106 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32107
32108 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32109
32110 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32111
32112 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32113
32114 PR rtl-optimization/88308
32115 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32116 on copied instruction.
32117
32118 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32119
32120 * final.c (insn_current_reference_address): Replace test on JUMP_P
32121 with test on jump_to_label_p.
32122 * config/visium/visium-passes.def: New file.
32123 * config/visium/t-visium (PASSES_EXTRA): Define.
32124 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32125 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32126 (TRAMPOLINE_ALIGNMENT): Define.
32127 * config/visium/visium.c (visium_option_override): Do not register
32128 the machine-specific reorg pass here.
32129 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32130 for the GR6.
32131 (output_branch): Adjust threshold for long branch instruction.
32132 * config/visium/visium.md (cpu): Move around.
32133 (length): Adjust for the GR6.
32134
32135 2019-02-15 Richard Biener <rguenther@suse.de>
32136 Jakub Jelinek <jakub@redhat.com>
32137
32138 PR tree-optimization/89278
32139 * tree-loop-distribution.c: Include tree-eh.h.
32140 (generate_memset_builtin, generate_memcpy_builtin): Call
32141 rewrite_to_non_trapping_overflow on builtin->size before passing it
32142 to force_gimple_operand_gsi.
32143
32144 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32145
32146 PR other/89342
32147 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32148 optimize_debug.
32149 * opth-gen.awk: Likewise.
32150
32151 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32152
32153 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32154 Enable MMX, SSE and SSE2 by default.
32155 * config/i386/i386.c (ix86_option_override_internal): Do not
32156 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32157
32158 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32159
32160 PR rtl-optimization/89354
32161 * combine.c (make_extraction): Punt if extraction_mode is narrower
32162 than len bits.
32163
32164 2019-02-14 Maya Rashish <coypu@sdf.org>
32165
32166 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32167 * config/netbsd-d.c: New file.
32168 * config/t-netbsd: Add netbsd-d.o
32169
32170 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32171
32172 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32173 affects_type_identity to true for aarch64_vector_pcs.
32174 (aarch64_comp_type_attributes): New function.
32175 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32176
32177 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32178
32179 PR target/88850
32180 * config/arm/iterators.md (ANY64): Add V4HF.
32181
32182 2019-02-14 Martin Liska <mliska@suse.cz>
32183
32184 PR rtl-optimization/89242
32185 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32186 process a transformation.
32187
32188 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32189
32190 PR tree-optimization/89314
32191 * fold-const.c (fold_binary_loc): Cast strlen argument to
32192 const char * before dereferencing it. Formatting fixes.
32193
32194 PR middle-end/89284
32195 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32196
32197 2019-02-13 Ian Lance Taylor <iant@golang.org>
32198
32199 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32200 and set current index for other optimizations.
32201
32202 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32203
32204 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32205 nonimmediate_operand as operand 2 predicate.
32206 (vec_set<VF2_512_256:mode>_0): Ditto.
32207 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32208 (*vec_concatv2si): Remove alternative 2.
32209 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32210 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32211 (vec_concatv2di): Split alternatives 4,5,6 to ...
32212 (*vec_concatv2di_0) ... new pattern.
32213
32214 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32215
32216 PR target/89190
32217 * config/arm/arm.c (ldm_stm_operation_p) Set
32218 addr_reg_in_reglist correctly for first register.
32219 (load_multiple_sequence): Remove dead base check.
32220 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32221
32222 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32223
32224 PR target/88847
32225 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32226 Expose as @aarch64_pred_mov.
32227 * config/aarch64/aarch64.c (aarch64_classify_address):
32228 Use expand_insn which legitimizes operands.
32229
32230 2019-02-13 Martin Liska <mliska@suse.cz>
32231
32232 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32233 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32234 and pointer_offset fields.
32235 (initialize_argument_information): Remove usage of dead
32236 fields.
32237 * cgraph.h (struct cgraph_thunk_info): Remove
32238 add_pointer_bounds_args.
32239 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32240 fields.
32241 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32242 fields.
32243 * config/i386/i386.c (ix86_function_arg_advance): Remove
32244 unrelated comment.
32245 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32246 (def_builtin): Remove usage of dead fields.
32247 (ix86_add_new_builtins): Likewise.
32248 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32249 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32250 (sem_function::init): Likewise.
32251 (sem_variable::merge): Likewise.
32252 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32253 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32254 * lto-cgraph.c (lto_output_node): Likewise.
32255 (lto_output_varpool_node): Likewise.
32256 (input_node): Likewise.
32257 (input_varpool_node): Likewise.
32258 * lto-streamer-out.c (lto_output): Likewise.
32259 * tree-inline.c (expand_call_inline): Remove usage of
32260 assign_stmts.
32261 * tree-inline.h (struct copy_body_data): Likewise.
32262 * varpool.c (varpool_node::dump): Likewise.
32263
32264 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32265
32266 PR middle-end/89303
32267 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32268 into pt->vars_contains_escaped_heap instead of setting
32269 pt->vars_contains_escaped_heap to it.
32270
32271 PR middle-end/89281
32272 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32273 INTVAL (size), compare it to GET_MODE_MASK instead of
32274 1 << GET_MODE_BITSIZE.
32275
32276 PR target/89290
32277 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32278 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32279 -mcmodel=large.
32280
32281 2019-02-13 Martin Liska <mliska@suse.cz>
32282
32283 PR lto/88858
32284 * cfgrtl.c (remove_barriers_from_footer): New function.
32285 (try_redirect_by_replacing_jump): Use it.
32286 (cfg_layout_redirect_edge_and_branch): Likewise.
32287
32288 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32289
32290 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32291 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32292 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32293 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32294 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32295 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32296 New BU_CRYPTO_2.
32297 * config/rs6000/rs6000.c (builtin_function_type)
32298 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32299 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32300 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32301 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32302 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32303
32304 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32305
32306 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32307 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32308
32309 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32310
32311 PR target/89229
32312 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32313 268678 and revision 268657.
32314 (*movti_internal): Likewise.
32315
32316 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32317
32318 PR target/89233
32319 * config/s390/s390.c (s390_decompose_address): Update comment.
32320 (s390_check_qrst_address): Reject invalid address forms after
32321 LRA.
32322
32323 2019-02-12 Martin Liska <mliska@suse.cz>
32324
32325 PR lto/88876
32326 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32327 we need default values of funct_state for a function that
32328 is not optimized.
32329
32330 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32331
32332 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32333 the object to pick the size of stores on strict-alignment platforms.
32334
32335 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32336 (*movdi_insn_sp32): Likewise.
32337 (*movdi_insn_sp64): Likewise.
32338
32339 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32340
32341 PR lto/88677
32342 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32343 types that needs constructiong.
32344 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32345
32346 2019-02-12 Richard Biener <rguenther@suse.de>
32347
32348 PR tree-optimization/89253
32349 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32350 duplicate the loop.
32351
32352 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32353
32354 PR lto/88147
32355 * input.c (selftest::test_line_offset_overflow): New selftest.
32356 (selftest::input_c_tests): Call it.
32357
32358 2019-02-11 Martin Sebor <msebor@redhat.com>
32359
32360 PR tree-optimization/88771
32361 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32362 when -Wstringop-overflow is set.
32363 (builtin_memref::builtin_memref): Adjust excessive upper bound
32364 only when lower bound is not excessive.
32365 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32366 -Wstringop-ovefflow.
32367 (maybe_diag_offset_bounds): Rename...
32368 (maybe_diag_access_bounds): ...to this.
32369 (check_bounds_or_overlap): Adjust for name change above.
32370
32371 2019-02-11 Martin Sebor <msebor@redhat.com>
32372
32373 PR c++/87996
32374 * builtins.c (max_object_size): Move from here...
32375 * builtins.h (max_object_size): ...and here...
32376 * tree.c (max_object_size): ...to here...
32377 * tree.h (max_object_size): ...and here.
32378
32379 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32380
32381 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32382 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32383 for correct semantics.
32384
32385 2019-02-11 Alan Modra <amodra@gmail.com>
32386
32387 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32388 -mlongcall and -mpltseq.
32389 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32390 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32391 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32392 * config/rs6000/sysv4.opt (mpltseq): New option.
32393 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32394 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32395 support is lacking. Don't allow -mpltseq with -mbss-plt.
32396 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32397 -mpltseq given for ELFv1.
32398 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32399 Only use UNSPEC_PLTSEQ for inline PLT calls.
32400 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32401 use UNSPEC_PLTSEQ for inline PLT calls.
32402 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32403 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32404 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32405 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32406 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32407 (pltseq_mtctr_<mode>): Likewise.
32408
32409 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32410
32411 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32412 Solaris ld.
32413 * configure: Regenerate.
32414
32415 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32416
32417 PR bootstrap/88714
32418 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32419 instead of r.
32420
32421 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32422
32423 * function.c (assign_parm_setup_block): Use the stored
32424 size, not the passed size, when allocating stack-space,
32425 also for a parameter with alignment larger than
32426 MAX_SUPPORTED_STACK_ALIGNMENT.
32427
32428 2019-02-11 Martin Liska <mliska@suse.cz>
32429
32430 PR ipa/89009
32431 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32432 * ipa-inline.c (inline_small_functions): Likewise.
32433 * ipa-pure-const.c (propagate_pure_const): Likewise.
32434 (propagate_nothrow): Likewise.
32435 * ipa-reference.c (propagate): Likewise.
32436 * ipa-utils.c (struct searchc_env): Remove unused field.
32437 (searchc): Always search across AVAIL_INTERPOSABLE.
32438 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32439 the only called IPA pure const can properly not propagate
32440 across interposable boundary.
32441 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32442
32443 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32444
32445 * config/nds32/nds32.md (call_internal, call_value_internal,
32446 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32447
32448 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32449
32450 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32451 typo.
32452
32453 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32454
32455 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32456 in comments
32457
32458 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32459
32460 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32461
32462 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32463
32464 PR tree-optimization/89268
32465 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32466 if preds is non-NULL.
32467
32468 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32469
32470 PR lto/89272
32471 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32472 polymorphic types.
32473
32474 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32475
32476 * config/nds32/nds32.md (trap): New pattern.
32477
32478 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32479
32480 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32481 dwarf span.
32482
32483 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32484
32485 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32486 to split POST_INC.
32487
32488 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32489
32490 * ipa-visibility.c (localize_node): Also do not localize
32491 LDPR_PREVAILING_DEF_IRONLY_EXP.
32492
32493 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32494
32495 PR lto/87957
32496 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32497 instead of type_with_linkage.
32498
32499 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32500
32501 PR ipa/88755
32502 * params.def (uninlined-function-insns, uninlined-function-time,
32503 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32504 bound so we don't get overflows.
32505
32506 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32507
32508 * config/rs6000/rs6000-string.c (expand_compare_loop,
32509 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32510 memcmp/strncmp.
32511
32512 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32513
32514 PR middle-end/89246
32515 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32516 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32517 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32518
32519 2019-02-09 Alan Modra <amodra@gmail.com>
32520
32521 PR target/88343
32522 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32523 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32524 setup.
32525
32526 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32527
32528 PR middle-end/88560
32529 * lra-constraints.c (process_alt_operands): Don't increase reject
32530 for memory when offset memory is required.
32531
32532 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32533
32534 * config/s390/vector.md: Implement vector copysign.
32535
32536 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32537
32538 * expr.c (expand_constructor): Correct indentations.
32539
32540 2019-02-08 Richard Biener <rguenther@suse.de>
32541
32542 PR tree-optimization/89247
32543 * tree-if-conv.c: Include tree-cfgcleanup.h.
32544 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32545 (tree_if_conversion): Pass through predicate vector.
32546 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32547 inline, see if any if-converted loops we refrece in
32548 LOOP_VECTORIZED calls vanished and fixup.
32549 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32550
32551 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32552
32553 * config/s390/constraints.md (jdd): New constraint.
32554
32555 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32556
32557 PR target/89229
32558 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32559 upper 16 vector registers without TARGET_AVX512VL.
32560 (*movti_internal): Likewise.
32561
32562 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32563
32564 PR rtl-optimization/89234
32565 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32566 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32567 (copy_reg_eh_region_note_backward): Likewise.
32568
32569 2019-02-08 Richard Biener <rguenther@suse.de>
32570
32571 PR middle-end/89223
32572 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32573 doesn't fit in HWI.
32574 (analyze_subscript_affine_affine): Handle failure from
32575 initialize_matrix_A.
32576
32577 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32578
32579 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32580 cfun everywhere.
32581
32582 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32583
32584 PR tree-optimization/86637
32585 PR tree-optimization/89235
32586 * tree-vect-loop.c (optimize_mask_stores): Add an
32587 auto_purge_vect_location sentinel to ensure that vect_location is
32588 purged on exit.
32589 * tree-vectorizer.c
32590 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32591 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32592 to ensure that vect_location is purged on exit.
32593 (pass_slp_vectorize::execute): Likewise, replacing the manual
32594 reset.
32595 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32596
32597 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32598
32599 * config/aarch64/iterators.md (max_opp): New code_attr.
32600 (USMAX): New code iterator.
32601 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32602 (aarch64_smax): Likewise.
32603 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32604 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32605 MINUS (MAX MIN).
32606
32607 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32608
32609 PR target/89229
32610 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32611 for TARGET_AVX512VL.
32612 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32613
32614 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32615
32616 * config/s390/s390-builtin-types.def: Add new types.
32617 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32618 (s390_vec_xlw4): Make the memory operand into a const pointer.
32619 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32620 float.
32621 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32622 a new vector type with the alignment of the scalar memory operand.
32623
32624 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32625 Jakub Jelinek <jakub@redhat.com>
32626
32627 PR bootstrap/88714
32628 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32629 arm_count_ldrdstrd_insns): New declarations.
32630 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32631 MINUS.
32632 (valid_operands_ldrd_strd): New function.
32633 (arm_count_ldrdstrd_insns): New function.
32634 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32635 sets instead of single DImode set and define new insns to match this.
32636
32637 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32638
32639 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32640 Make it a C initializer.
32641
32642 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32643
32644 PR/target 88850
32645 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32646
32647 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32648
32649 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32650 Use neon_dot<q> for type.
32651 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32652
32653 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32654
32655 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32656 Use neon_dot<q> for type.
32657 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32658 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32659
32660 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32661
32662 PR rtl-optimization/89225
32663 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32664 sizes check.
32665
32666 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32667
32668 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32669 after restoring registers saved to allocate the frame on Windows.
32670
32671 2019-02-06 Richard Biener <rguenther@suse.de>
32672
32673 PR tree-optimization/89182
32674 * graphite.h (cached_scalar_evolution_in_region): Declare.
32675 * graphite.c (struct seir_cache_key): New.
32676 (struct sese_scev_hash): Likewise.
32677 (seir_cache): New global.
32678 (cached_scalar_evolution_in_region): New function.
32679 (graphite_transform_loops): Allocate and release seir_cache.
32680 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32681 cached_scalar_evolution_in_region.
32682 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32683 Simplify.
32684 (scop_detection::graphite_can_represent_expr: Use
32685 cached_scalar_evolution_in_region.
32686 (scop_detection::stmt_simple_for_scop_p): Likewise.
32687 (find_params_in_bb): Likewise.
32688 (gather_bbs::before_dom_children): Likewise.
32689 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32690 (add_loop_constraints): Likewise.
32691
32692 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32693
32694 PR middle-end/89210
32695 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32696 operand to new_unary_operation only if both element types are integral
32697 and it isn't a widening conversion. Return NULL_TREE if
32698 new_unary_operation failed.
32699
32700 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32701
32702 PR target/88856
32703 * config/s390/s390.md: Remove load and test FP splitter.
32704
32705 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32706
32707 PR target/89112
32708 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32709 expand_compare_loop, expand_block_compare_gpr,
32710 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32711 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32712 #include "profile-count.h" and "predict.h" for types and functions
32713 needed to work with REG_BR_PROB notes.
32714
32715 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32716
32717 PR target/89112
32718 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32719 for the long branch case.
32720
32721 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32722
32723 PR target/89188
32724 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32725 can throw, non-call exceptions are enabled and we can't delete
32726 dead exceptions or alter cfg. Set must_clean if
32727 delete_insn_and_edges returns true, don't set it blindly for calls.
32728 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32729
32730 PR rtl-optimization/89195
32731 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32732 of the original MEM.
32733
32734 2019-02-05 Martin Liska <mliska@suse.cz>
32735
32736 PR gcov-profile/89000
32737 * gcov.c (function_summary): Remove argument.
32738 (file_summary): New function.
32739 (print_usage): Replace tabs with spaces.
32740 (generate_results): Use new function file_summary.
32741
32742 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32743
32744 PR target/89186
32745 * optabs.c (prepare_cmp_insn): Pass x and y to
32746 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32747
32748 2019-02-05 Richard Biener <rguenther@suse.de>
32749
32750 PR middle-end/89150
32751 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32752 (struct bitmap_element): Drop chain_prev so we properly recurse on
32753 the prev member, supporting tree views.
32754 (struct bitmap_head): GTY skip the obstack member.
32755
32756 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32757
32758 PR c/88698
32759 * doc/extend.texi (Vector Extensions): Add an example of using vector
32760 types together with x86 intrinsics.
32761
32762 2019-02-04 Alan Modra <amodra@gmail.com>
32763
32764 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32765 str[] size to 160, and comment.
32766
32767 2019-02-04 Alan Modra <amodra@gmail.com>
32768
32769 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32770 (rs6000_pltseq_template): Guard output of TLS markers with
32771 TARGET_TLS_MARKERS.
32772 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32773 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32774 to use inline PLT sequences.
32775 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32776 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32777 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32778
32779 2019-02-04 Martin Liska <mliska@suse.cz>
32780
32781 PR ipa/88985
32782 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32783 out when ipa_fn_summaries does not contain entry for callee.
32784
32785 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32786
32787 * config/sparc/sparc.h: Remove superfluous blank lines.
32788 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32789 (got_register_rtx): ...this.
32790 (sparc_got): Adjust to above renaming.
32791 (sparc_tls_got): Likewise.
32792 (sparc_delegitimize_address): Likewise.
32793 (sparc_output_mi_thunk): Likewise.
32794 (sparc_init_pic_reg): Likewise.
32795 (save_local_or_in_reg_p): Fix test on the GOT register.
32796 (USE_HIDDEN_LINKONCE): Move around.
32797 (get_pc_thunk_name): Likewise.
32798 (gen_load_pcrel_sym): Likewise.
32799 (load_got_register): Likewise.
32800
32801 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32802
32803 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32804 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32805
32806 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32807
32808 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32809 into consideration.
32810
32811 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32812
32813 * config.gcc (with_nds32_lib, glibc):
32814 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32815 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32816 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32817
32818 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32819
32820 PR target/89071
32821 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32822 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32823 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32824 (*rcpsf2_sse): Ditto.
32825 (*rsqrtsf2_sse): Ditto.
32826 (sse4_1_round<mode<2): Ditto.
32827
32828 2019-02-03 Richard Biener <rguenther@suse.de>
32829
32830 PR debug/87295
32831 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32832 orig.
32833
32834 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32835
32836 PR middle-end/87887
32837 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32838 Punt with warning on aggregate return or argument types. Ignore
32839 type/mode checking for uniform arguments.
32840
32841 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32842
32843 * combine.c (try_combine): Do not print "Can't combine" messages unless
32844 printing failed combination attempts.
32845
32846 2019-02-01 Martin Jambor <mjambor@suse.cz>
32847
32848 PR hsa/87863
32849 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32850 segment and global segment variables before making them static.
32851
32852 2019-02-01 Martin Jambor <mjambor@suse.cz>
32853
32854 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32855 missed optimization dump with dump_enabled_p.
32856
32857 2019-02-01 Richard Biener <rguenther@suse.de>
32858
32859 PR middle-end/88597
32860 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32861 the instantiate cache.
32862 (instantiate_scev_binary): Elide second operand procesing
32863 if equal to the first.
32864 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32865 (chrec_contains_undetermined): Likewise.
32866 (tree_contains_chrecs): Likewise.
32867
32868 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32869
32870 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32871
32872 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32873
32874 PR tree-optimization/89143
32875 * wide-int-range.h (wide_int_range_absu): Declare.
32876 * wide-int-range.cc (wide_int_range_absu): New function.
32877 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32878
32879 PR tree-optimization/88107
32880 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32881 instead of assertion that eh_region_outermost is non-NULL, if it
32882 is NULL, set *ALL to true and return NULL.
32883 (move_sese_region_to_fn): Adjust caller, if all is set, call
32884 duplicate_eh_regions with NULL region.
32885
32886 2019-02-01 Richard Biener <rguenth@suse.de>
32887
32888 PR rtl-optimization/88593
32889 * mode-switching.c (optimize_mode_switching): Free dominators before
32890 calling cleanup_cfg.
32891
32892 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32893
32894 PR tree-optimization/88932
32895 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32896
32897 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32898
32899 PR middle-end/89137
32900 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32901 bogus clang warning.
32902
32903 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32904
32905 PR target/89071
32906 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32907 alternative to avoid partial SSE register stall for TARGET_AVX.
32908 (truncdfsf2): Ditto.
32909 (sse4_1_round<mode>2): Ditto.
32910
32911 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32912
32913 PR tree-optimization/89008
32914 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32915 process anything of the form X * 0.
32916
32917 2019-01-31 Richard Biener <rguenther@suse.de>
32918
32919 PR tree-optimization/89135
32920 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32921 with abnormal preds.
32922
32923 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32924
32925 PR sanitizer/89124
32926 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32927 always_inline callees into no_sanitize_address callers.
32928
32929 2019-01-31 Richard Biener <rguenther@suse.de>
32930
32931 PR rtl-optimization/89115
32932 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32933
32934 2019-01-30 Martin Sebor <msebor@redhat.com>
32935
32936 PR other/89106
32937 * doc/extend.texi (cast to a union): Correct and expand.
32938
32939 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32940
32941 PR rtl-optimization/87246
32942 * lra-constraints.c (simplify_operand_subreg): Reload memory
32943 in subreg if the address became invalid.
32944
32945 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32946
32947 PR target/87064
32948 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32949 Disable for little-endian.
32950
32951 2019-01-30 Richard Biener <rguenther@suse.de>
32952
32953 PR rtl-optimization/89115
32954 * opts.c (default_options_optimization): Reduce
32955 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32956 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32957 to the default.
32958
32959 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32960
32961 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32962 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32963 type of vector element when vec_extract is implemented by direct
32964 move.
32965
32966 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32967
32968 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32969
32970 2019-01-30 Richard Biener <rguenther@suse.de>
32971
32972 PR tree-optimization/89111
32973 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32974 canonicalization to appropriately sized access types.
32975
32976 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32977
32978 PR c++/89105
32979 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32980 for arguments to functions that are TU-local and shouldn't be
32981 referenced by assembly.
32982
32983 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32984
32985 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32986 after '='.
32987
32988 2019-01-29 Martin Sebor <msebor@redhat.com>
32989
32990 PR c/88956
32991 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32992
32993 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32994
32995 PR c++/66676
32996 PR ipa/89104
32997 * omp-simd-clone.c (simd_clone_clauses_extract)
32998 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32999 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33000
33001 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33002
33003 * config.gcc: Force .init_array for ARC.
33004
33005 2019-01-29 Richard Biener <rguenther@suse.de>
33006
33007 PR debug/87295
33008 * dwarf2out.c (collect_skeleton_dies): New helper.
33009 (copy_decls_for_unworthy_types): Call it.
33010 (build_abbrev_table): Assert we do not try to replace
33011 DW_AT_signature refs with local refs.
33012
33013 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33014
33015 PR middle-end/89002
33016 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33017 for lastprivate/linear IV, push gimplify context around gimplify_assign
33018 and, if it needed any temporaries, pop it into a gimple bind around the
33019 sequence.
33020
33021 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33022
33023 * common.opt (-Wattribute-alias): Remove "no-" from name.
33024 Make -Wattribute-alias command line option and
33025 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33026
33027 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33028
33029 PR target/89073
33030 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33031 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33032 x86 ISA options.
33033 (bmi2): Add missing @opindex.
33034 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33035 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33036 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33037 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33038 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33039 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33040 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33041 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33042 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33043 xsavec, xsaveopt and xsaves options.
33044
33045 2019-01-28 Richard Biener <rguenther@suse.de>
33046
33047 PR debug/89076
33048 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33049 support removal.
33050
33051 2019-01-28 Richard Biener <rguenther@suse.de>
33052
33053 PR tree-optimization/88739
33054 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33055 BIT_FIELD_REFs only are applied to mode-precision operands
33056 when they are integral.
33057 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33058 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33059 BIT_FIELD_REFs of non-mode-precision integral operands.
33060
33061 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33062
33063 PR target/87214
33064 * config/i386/sse.md
33065 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33066 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33067 first constants in pairs are multiples of 2. Formatting fixes.
33068 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33069 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33070 first constants in each quadruple are multiples of 4. Formatting fixes.
33071
33072 2019-01-26 Martin Jambor <mjambor@suse.cz>
33073
33074 PR ipa/88933
33075 * tree-inline.c: Include tree-cfgcleanup.h.
33076 (delete_unreachable_blocks_update_callgraph): Move...
33077 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33078 ...here, make externally visible, make second argument bool, adjust
33079 all callers.
33080 * tree-cfgcleanup.c: Include cgraph.h.
33081 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33082 Declare.
33083 * ipa-prop.c: Include tree-cfgcleanup.h.
33084 (ipcp_transform_function): Call
33085 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33086
33087 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33088
33089 PR rtl-optimization/88846
33090 * ira.c (process_set_for_memref_referenced_p): New.
33091 (memref_referenced_p): Add new param. Use
33092 process_set_for_memref_referenced_p. Add new switch cases.
33093 (memref_used_between_p): Pass new arg to memref_referenced_p.
33094
33095 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33096
33097 PR target/88469
33098 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33099 argument ABI_BREAK. Set to true if the calculated alignment has
33100 changed in gcc-9. Check bit-fields for their base type alignment.
33101 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33102 (aarch64_function_arg_boundary): Likewise.
33103 (aarch64_gimplify_va_arg_expr): Likewise.
33104
33105 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33106
33107 PR middle-end/89037
33108 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33109 instead of accessing TREE_INT_CST_ELT directly.
33110
33111 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33112
33113 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33114 fenv_exceptions description.
33115
33116 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33117
33118 PR rtl-optimization/87763
33119 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33120 Allow SUBREG when matching CC_NZmode compare.
33121
33122 2019-01-25 Richard Biener <rguenther@suse.de>
33123
33124 PR tree-optimization/89049
33125 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33126 Look at the pattern stmt to determine if the stmt is vectorized.
33127
33128 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33129
33130 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33131 (pred_mov<mode>): Handle all-register forms using both a new
33132 alternative and a split.
33133
33134 2019-01-25 Richard Biener <rguenther@suse.de>
33135
33136 PR tree-optimization/86865
33137 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33138 Reject non-do-while loops.
33139
33140 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33141
33142 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33143 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33144 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33145 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33146 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33147 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33148 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33149 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33150 vlogical_operand, gpc_reg_operand, int_reg_operand,
33151 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33152 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33153 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33154 (save_world_operation, restore_world_operation, lmw_operation,
33155 stmw_operation): Use MEM_P and REG_P.
33156 (tie_operand): Use MEM_P.
33157 (vrsave_operation, crsave_operation): Use REG_P.
33158 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33159 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33160 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33161 (call_operand): Use HARD_REGISTER_P.
33162 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33163 Use CONST_INT_P.
33164 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33165 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33166 quad_aligned_load_p, replace_swapped_aligned_store,
33167 recombine_lvx_pattern, replace_swapped_aligned_load,
33168 recombine_stvx_pattern): Use MEM_P.
33169 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33170 Use MEM_P and SYMBOL_REF_P.
33171 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33172 (insn_is_swappable_p): Use REG_P and MEM_P.
33173 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33174 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33175 Use CONST_INT_P.
33176 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33177 Use CONST_DOUBLE_P.
33178 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33179 CONST_WIDE_INT_P.
33180 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33181 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33182 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33183 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33184 reg_or_subregno:
33185 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33186 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33187 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33188 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33189 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33190 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33191 rs6000_split_logical_di): Use CONST_INT_P.
33192 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33193 REG_P and SYMBOL_REF_P.
33194 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33195 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33196 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33197 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33198 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33199 (small_data_operand, print_operand_address): Use CONST_INT_P and
33200 SYMBOL_REF_P.
33201 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33202 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33203 Use HARD_REGISTER_NUM_P.
33204 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33205 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33206 SUBREG_P and SYMBOL_REF_P.
33207 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33208 and HARD_REGISTER_NUM_P.
33209 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33210 reg_or_subregno.
33211 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33212 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33213 MEM_P and REG_P.
33214 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33215 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33216 find_addr_reg): Use REG_P.
33217 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33218 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33219 (offsettable_ok_by_alignment, constant_pool_expr_p,
33220 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33221 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33222 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33223 rs6000_assemble_integer, create_TOC_reference,
33224 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33225 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33226 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33227 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33228 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33229 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33230 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33231 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33232 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33233 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33234 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33235 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33236 and cbranch<mode>4): Use CONST_INT_P.
33237 (multiple define_splits): Use REG_P and SUBREG_P.
33238 (define_expands call, call_value): Use MEM_P.
33239 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33240 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33241 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33242 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33243 and HARD_REGISTER_NUM_P.
33244 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33245
33246 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33247
33248 PR rtl-optimization/88948
33249 * rtl.h (prepare_copy_insn): New prototype.
33250 * gcse.c (prepare_copy_insn): New function, split out from
33251 process_insert_insn.
33252 (process_insert_insn): Use prepare_copy_insn.
33253 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33254 instead of gen_move_insn.
33255
33256 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33257
33258 PR debug/89006
33259 * config/i386/i386.c (ix86_pic_register_p): Return true for
33260 UNSPEC_SET_GOT too.
33261
33262 PR tree-optimization/88964
33263 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33264 punt if HONOR_SNANS (chrec).
33265
33266 PR middle-end/89015
33267 * tree-nested.c (convert_nonlocal_reference_stmt,
33268 convert_local_reference_stmt, convert_tramp_reference_stmt,
33269 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33270 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33271 or GIMPLE_OMP_TASK.
33272
33273 PR tree-optimization/89027
33274 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33275 for "omp simd array" variables.
33276
33277 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33278
33279 PR target/88469
33280 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33281 force the alignment of m_val.
33282
33283 2019-01-24 Richard Biener <rguenther@suse.de>
33284
33285 PR lto/87187
33286 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33287 When in "legacy" debug mode make sure to reset self-origins.
33288
33289 2019-01-24 Martin Liska <mliska@suse.cz>
33290
33291 PR gcov-profile/88994
33292 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33293 result will be always smaller or equal to the original.
33294 * gcov.c (mangle_name): Fix else branch where we should
33295 also copy to PTR and shift the pointer.
33296
33297 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33298
33299 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33300 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33301
33302 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33303
33304 * common/config/i386/i386-common.c
33305 (OPTION_MASK_ISA_ENQCMD_SET,
33306 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33307 (ix86_handle_option): Handle -menqcmd.
33308 * config.gcc (enqcmdintrin.h): New header file.
33309 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33310 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33311 -menqcmd.
33312 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33313 function type.
33314 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33315 __builtin_ia32_enqcmds): New builtins.
33316 * config/i386/i386-c.c (__ENQCMD__): New macro.
33317 * config/i386/i386-option.c (ix86_target_string): Add
33318 -menqcmd.
33319 (ix86_valid_target_attribute_inner_p): Likewise.
33320 * config/i386/i386-expand.c
33321 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33322 IX86_BUILTIN_ENQCMDS.
33323 * config/i386/i386.h (TARGET_ENQCMD): New.
33324 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33325 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33326 (movdir64b_<mode>): Parameterize to enable share expansion code
33327 with ENQCMD in function ix86_expand_builtin.
33328 * config/i386/i386.opt: Add -menqcmd.
33329 * config/i386/immintrin.h: Include enqcmdintrin.h.
33330 * config/i386/enqcmdintrin.h: New intrinsic file.
33331 * doc/invoke.texi: Add -menqcmd.
33332
33333 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33334 Steve Ellcey <sellcey@marvell.com>
33335
33336 PR target/85711
33337 * recog.c (address_operand): Return false on wrong mode for address.
33338 (constrain_operands): Check for mode with 'p' constraint.
33339
33340 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33341
33342 PR target/88998
33343 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33344 Disparage MMX alternative.
33345 (sse2_cvtpd2pi): Ditto.
33346 (sse2_cvttpd2pi): Ditto.
33347
33348 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33349
33350 PR driver/89014
33351 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33352 use-after-free of the result of
33353 aarch64_get_extension_string_for_isa_flags.
33354
33355 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33356
33357 PR c/44715
33358 * doc/extend.texi: Document break and continue behavior in
33359 statement expressions.
33360
33361 2019-01-23 Richard Biener <rguenther@suse.de>
33362
33363 PR tree-optimization/89008
33364 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33365 not leave another stray operand.
33366
33367 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33368
33369 * BASE-VER: Bump to 9.0.1.
33370
33371 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33372
33373 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33374 thunk that returns by reference, use the type of the return object
33375 of the thunk instead of that of the alias to build the dereference.
33376
33377 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33378
33379 * config/arc/atomic.md: Add operand to DMB instruction.
33380
33381 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33382
33383 PR tree-optimization/88964
33384 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33385 build_zero_cst instead of build_int_cst. Return false for loop
33386 invariants which honor signed zeros.
33387
33388 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33389
33390 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33391
33392 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33393
33394 PR target/88965
33395 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33396 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33397 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33398
33399 PR middle-end/88968
33400 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33401 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33402
33403 PR target/87064
33404 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33405 Disable for little endian.
33406
33407 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33408
33409 PR target/88469
33410 * config/arm/arm.c (arm_needs_double_word_align): Check
33411 DECL_BIT_FIELD_TYPE.
33412
33413 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33414 H.J. Lu <hongjiu.lu@intel.com>
33415
33416 PR target/88909
33417 * config/i386/i386-builtin.def: Add mask2 to all builtin
33418 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33419 SPECIAL_ARGS.
33420 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33421 (BDESC_FIRST): Likewise.
33422 (define_builtin): Add an argument for mask2. Updated to handle
33423 both ix86_isa_flags and ix86_isa_flags2.
33424 (define_builtin_const): Likewise.
33425 (define_builtin_pure): Likewise.
33426 (define_builtin2): Deleted.
33427 (define_builtin_const2): Likewise.
33428 (builtin_description): Add a member, mask2.
33429 (bdesc_*): Add mask2 to builtin initializations.
33430 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33431 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33432 support.
33433 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33434
33435 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33436
33437 PR target/88954
33438 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33439 noplt attribute.
33440
33441 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33442
33443 PR target/88469
33444 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33445 alignment is dominated by a bitfield with 64-bit aligned base type.
33446 (arm_function_arg): Emit a warning if the alignment has changed since
33447 earlier GCC releases.
33448 (arm_function_arg_boundary): Likewise.
33449 (arm_setup_incoming_varargs): Likewise.
33450
33451 2019-01-22 Richard Biener <rguenther@suse.de>
33452
33453 PR tree-optimization/88862
33454 * graphite-scop-detection.c
33455 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33456
33457 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33458
33459 * doc/extend.tex (AMD GCN Function Attributes): New section.
33460 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33461 * doc/invoke.texi (AMD GCN Options): New section.
33462 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33463
33464 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33465
33466 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33467 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33468
33469 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33470
33471 PR tree-optimization/88044
33472 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33473 is false in the first iteration, but !every_iteration, return false
33474 instead of true with niter->niter zero.
33475
33476 PR rtl-optimization/88904
33477 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33478 any nonequal registers before processing BB_END (b).
33479
33480 PR target/88905
33481 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33482 GET_MODE (op0).
33483 (expand_binop_directly, expand_doubleword_clz,
33484 expand_doubleword_popcount, expand_ctz, expand_ffs,
33485 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33486
33487 PR rtl-optimization/49429
33488 PR target/49454
33489 PR rtl-optimization/86334
33490 PR target/88906
33491 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33492 addressable from here...
33493 (emit_block_op_via_libcall): ... to here.
33494
33495 2019-01-22 Richard Biener <rguenther@suse.de>
33496
33497 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33498 auto_vec for cost vector to fix memleak.
33499 (vectorize_fold_left_reduction): Properly gather SLP defs.
33500 (vectorizable_comparison): Do not swap operands to properly
33501 gather SLP defs.
33502
33503 2019-01-22 Alan Modra <amodra@gmail.com>
33504
33505 PR target/88614
33506 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33507 stays a reg. Allow a const_int.
33508 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33509 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33510 (IS_NOMARK_TLSGETADDR): Define.
33511 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33512 (rs6000_output_tlsargs): New function.
33513 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33514 __tls_get_addr call takes an arg.
33515 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33516 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33517 delete split..
33518 (call_value_nonlocal_sysv): ..or here, delete split.
33519 (tls_gdld_nomark): Delete.
33520 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33521 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33522 (call_value_nonlocal_sysv): Likewise.
33523 (call_value_nonlocal_sysv_secure): Likewise.
33524 (call_value_nonlocal_aix): Likewise.
33525 (call_value_indirect_aix): Likewise.
33526 (call_value_indirect_elfv2): Likewise.
33527 (call_value_local32, call_value_local64): Disable for no-mark tls.
33528 (call_value_local_aix): Likewise.
33529
33530 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33531
33532 PR target/88938
33533 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33534 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33535
33536 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33537
33538 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33539 string contents as hash_map keys.
33540
33541 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33542
33543 PR c/88928
33544 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33545 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33546 instead of TYPE_ALIGN.
33547 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33548 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33549 pointer from TYPE_STUB_DECL.
33550
33551 2019-01-21 Richard Biener <rguenther@suse.de>
33552
33553 PR tree-optimization/88934
33554 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33555 at the possibly non-constant operand.
33556 (vect_get_constant_vectors): Adjust.
33557
33558 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33559
33560 PR target/71659
33561 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33562 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33563 instead of _X86INTRIN_H_INCLUDED.
33564 * onfig/i386/clwbintrin.h: Likewise.
33565 * config/i386/pkuintrin.h: Likewise.
33566 * config/i386/prfchwintrin.h: Likewise.
33567 * config/i386/rdseedintrin.h: Likewise.
33568 * config/i386/wbnoinvdintrin.h: Likewise.
33569 * config/i386/xsavecintrin.h: Likewise.
33570 * config/i386/xsavesintrin.h: Likewise.
33571 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33572 * config/i386/xsaveintrin.h: Likewise.
33573 * config/i386/xsaveoptintrin.h: Likewise.
33574 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33575 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33576 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33577 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33578 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33579 * config/i386/immintrin.h: Here.
33580
33581 2019-01-20 Martin Jambor <mjambor@suse.cz>
33582
33583 PR ipa/87615
33584 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33585 with aa_walk_budget.
33586 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33587 aa_walk_budget_p parameter.
33588 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33589 walk. Updated all callers.
33590 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33591 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33592 unmodified_parm.
33593 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33594 parameter info. Extract info from fbi. Pass fbi to recursive calls
33595 and to unmodified_parm.
33596 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33597 info, updated call to will_be_nonconstant_expr_predicate.
33598 (param_change_prob): New parameter fbi, limit AA walking.
33599 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33600 calls to various above functions.
33601 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33602 parameter. Use it to limit AA walking.
33603 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33604 fbi, limit AA walk.
33605 (detect_type_change): New parameter fbi, pass it on to
33606 detect_type_change_from_memory_writes.
33607 (detect_type_change_ssa): Likewise.
33608 (aa_overwalked): Removed.
33609 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33610 accordingly, adjust to the neew AA limiting scheme.
33611 (parm_ref_data_preserved_p): Likewise.
33612 (ipa_compute_jump_functions_for_edge): Adjust call to
33613 get_dynamic_type.
33614 (ipa_analyze_call_uses): Likewise.
33615 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33616 (ipa_analyze_node): Initialize aa_walk_budget.
33617 (ipcp_transform_function): Likewise.
33618 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33619 to get_dynamic_type.
33620
33621 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33622
33623 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33624 outside of #if CHECKING_P code.
33625
33626 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33627
33628 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33629 New function, split out from...
33630 (loop_versioning::analyze_stride): ...here.
33631 (loop_versioning::find_per_loop_multiplication): Use gassign.
33632 (loop_versioning::analyze_term_using_scevs): Return a success code.
33633 (loop_versioning::analyze_arbitrary_term): New function.
33634 (loop_versioning::analyze_address_fragment): Use
33635 analyze_arbitrary_term if all else fails.
33636
33637 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33638
33639 PR target/88892
33640 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33641 operands.
33642
33643 2019-01-18 Richard Biener <rguenther@suse.de>
33644
33645 PR tree-optimization/88903
33646 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33647 scalar stmts a SLP shift amount is composed of when detecting
33648 shifts by scalars.
33649
33650 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33651
33652 PR target/88799
33653 * config/arm/arm-cpus.in (mp): New feature.
33654 (sec): New feature.
33655 (fgroup ARMv7ve): Add mp and sec features.
33656 (arch armv7-a): Add options to allow mp and sec extensions.
33657 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33658 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33659 extenstions to the base architecture.
33660 (cpu cortex-a8): Add sec extension to the base architecture.
33661 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33662 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33663 variants down to the base v7-a varaint.
33664 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33665 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33666 of permitted extensions for -march=armv7-a and for
33667 -mcpu=generic-armv7-a.
33668
33669 2019-01-18 Martin Liska <mliska@suse.cz>
33670
33671 * params.def: Fix comment.
33672 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33673 name.
33674 (gimple_gen_ic_func_profiler): Likewise.
33675
33676 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33677
33678 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33679 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33680 and put in error checks for stack protector guard options.
33681 (aarch64_stack_protect_guard): New.
33682 (TARGET_STACK_PROTECT_GUARD): Define.
33683 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33684 (reg_stack_protect_address<mode>): New.
33685 (stack_protect_set): Adjust for SSP_GLOBAL.
33686 (stack_protect_test): Likewise.
33687 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33688 (-mstack-protector-guard): Likewise.
33689 (-mstack-protector-guard-offset): Likewise.
33690
33691 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33692
33693 PR tree-optimization/86214
33694 * tree-inline.h (struct copy_body_data): Add
33695 add_clobbers_to_eh_landing_pads member.
33696 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33697 (copy_edges_for_bb): Call it if EH edge destination is <
33698 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33699 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33700 if flag_stack_reuse != SR_NONE and clear it afterwards.
33701
33702 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33703
33704 PR target/85596
33705 * doc/install.texi (with-multilib-list): Document for aarch64.
33706
33707 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33708
33709 PR target/88734
33710 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33711 (("..."))) with ("...").
33712
33713 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33714
33715 * doc/extend.texi (Built-in Functions for Memory Model Aware
33716 Atomic Operations): Document atomic fetch and nand.
33717
33718 2019-01-18 Martin Liska <mliska@suse.cz>
33719 Richard Biener <rguenther@suse.de>
33720
33721 PR middle-end/88587
33722 * cgraph.h (create_version_clone_with_body): Add new argument
33723 with attributes.
33724 * cgraphclones.c (cgraph_node::create_version_clone): Add
33725 DECL_ATTRIBUTES to a newly created decl. And call
33726 valid_attribute_p so that proper cl_target_optimization_node
33727 is set for the newly created declaration.
33728 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33729 for declaration.
33730 (expand_target_clones): Do not call valid_attribute_p, it must
33731 be already done.
33732 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33733 vector types.
33734
33735 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33736
33737 PR target/88734
33738 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33739 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33740 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33741
33742 2019-01-17 Martin Sebor <msebor@redhat.com>
33743
33744 PR middle-end/88273
33745 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33746 Handle anti-ranges the same as no range at all.
33747
33748 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33749
33750 * config/aarch64/aarch64.c (cgraph.h): New include.
33751 (intl.h): New include.
33752 (supported_simd_type): New function.
33753 (currently_supported_simd_type): Ditto.
33754 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33755 (aarch64_simd_clone_adjust): Ditto.
33756 (aarch64_simd_clone_usable): Ditto.
33757 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33758 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33759 (TARGET_SIMD_CLONE_USABLE): Ditto.
33760 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33761 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33762 call.
33763
33764 2019-01-17 Martin Sebor <msebor@redhat.com>
33765
33766 PR tree-optimization/88800
33767 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33768 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33769 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33770 redundant argument. Add new argument and issue diagnostics under
33771 its control. Detect out-of-bounds access even with warnings
33772 disabled.
33773 (check_bounds_or_overlap): Change return type. Add argument.
33774 (wrestrict_dom_walker::check_call): Adjust.
33775 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33776 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33777 check_bounds_or_overlap's return value.
33778 (handle_builtin_stxncpy): Same.
33779 (handle_builtin_strcat): Same.
33780
33781 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33782 Kwok Cheung Yeung <kcy@codesourcery.com>
33783 Julian Brown <julian@codesourcery.com>
33784 Tom de Vries <tom@codesourcery.com>
33785
33786 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33787
33788 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33789
33790 * doc/sourcebuild.texi: Document dg-require-effective-target
33791 llvm_binutils and offload_gcn.
33792
33793 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33794 Kwok Cheung Yeung <kcy@codesourcery.com>
33795 Julian Brown <julian@codesourcery.com>
33796 Tom de Vries <tom@codesourcery.com>
33797
33798 * doc/sourcebuild.texi: Document dg-required-effective-target
33799 exceptions.
33800
33801 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33802 Kwok Cheung Yeung <kcy@codesourcery.com>
33803 Julian Brown <julian@codesourcery.com>
33804 Tom de Vries <tom@codesourcery.com>
33805 Jan Hubicka <hubicka@ucw.cz>
33806 Martin Jambor <mjambor@suse.cz>
33807
33808 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33809 * configure.ac: Check for dlopen.
33810 * configure: Regenerate.
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 Jan Hubicka <hubicka@ucw.cz>
33817 Martin Jambor <mjambor@suse.cz>
33818
33819 * common/config/gcn/gcn-common.c: New file.
33820 * config/gcn/driver-gcn.c: New file.
33821 * config/gcn/gcn-builtins.def: New file.
33822 * config/gcn/gcn-hsa.h: New file.
33823 * config/gcn/gcn-modes.def: New file.
33824 * config/gcn/gcn-opts.h: New file.
33825 * config/gcn/gcn-passes.def: New file.
33826 * config/gcn/gcn-protos.h: New file.
33827 * config/gcn/gcn-run.c: New file.
33828 * config/gcn/gcn-tree.c: New file.
33829 * config/gcn/gcn.c: New file.
33830 * config/gcn/gcn.h: New file.
33831 * config/gcn/gcn.opt: New file.
33832 * config/gcn/t-gcn-hsa: New file.
33833
33834 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33835 Kwok Cheung Yeung <kcy@codesourcery.com>
33836 Julian Brown <julian@codesourcery.com>
33837 Tom de Vries <tom@codesourcery.com>
33838 Jan Hubicka <hubicka@ucw.cz>
33839 Martin Jambor <mjambor@suse.cz>
33840
33841 * config/gcn/constraints.md: New file.
33842 * config/gcn/gcn-valu.md: New file.
33843 * config/gcn/gcn.md: New file.
33844 * config/gcn/predicates.md: New file.
33845
33846 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33847
33848 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33849 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33850 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33851 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33852
33853 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33854
33855 PR target/88851
33856 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33857 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33858 it and document registers.
33859
33860 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33861
33862 * config/aarch64/aarch64.c (ares_tunings): Define.
33863 * config/aarch64/aarch64-cores.def (ares): Use the above.
33864
33865 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33866
33867 PR target/88794
33868 Revert:
33869 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33870
33871 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33872 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33873 (_mm512_maskz_fixupimm_round_pd): Ditto.
33874 (_mm512_fixupimm_round_ps): Ditto.
33875 (_mm512_maskz_fixupimm_round_ps): Ditto.
33876 (_mm_fixupimm_round_sd): Ditto.
33877 (_mm_maskz_fixupimm_round_sd): Ditto.
33878 (_mm_fixupimm_round_ss): Ditto.
33879 (_mm_maskz_fixupimm_round_ss): Ditto.
33880 (_mm512_fixupimm_pd): Ditto.
33881 (_mm512_maskz_fixupimm_pd): Ditto.
33882 (_mm512_fixupimm_ps): Ditto.
33883 (_mm512_maskz_fixupimm_ps): Ditto.
33884 (_mm_fixupimm_sd): Ditto.
33885 (_mm_maskz_fixupimm_sd): Ditto.
33886 (_mm_fixupimm_ss): Ditto.
33887 (_mm_maskz_fixupimm_ss): Ditto.
33888 (_mm512_mask_fixupimm_round_pd): Update builtin.
33889 (_mm512_mask_fixupimm_round_ps): Ditto.
33890 (_mm_mask_fixupimm_round_sd): Ditto.
33891 (_mm_mask_fixupimm_round_ss): Ditto.
33892 (_mm512_mask_fixupimm_pd): Ditto.
33893 (_mm512_mask_fixupimm_ps): Ditto.
33894 (_mm_mask_fixupimm_sd): Ditto.
33895 (_mm_mask_fixupimm_ss): Ditto.
33896 * config/i386/avx512vlintrin.h:
33897 (_mm256_fixupimm_pd): Update parameters and builtin.
33898 (_mm256_maskz_fixupimm_pd): Ditto.
33899 (_mm256_fixupimm_ps): Ditto.
33900 (_mm256_maskz_fixupimm_ps): Ditto.
33901 (_mm_fixupimm_pd): Ditto.
33902 (_mm_maskz_fixupimm_pd): Ditto.
33903 (_mm_fixupimm_ps): Ditto.
33904 (_mm_maskz_fixupimm_ps): Ditto.
33905 (_mm256_mask_fixupimm_pd): Update builtin.
33906 (_mm256_mask_fixupimm_ps): Ditto.
33907 (_mm_mask_fixupimm_pd): Ditto.
33908 (_mm_mask_fixupimm_ps): Ditto.
33909 * config/i386/i386-builtin-types.def: Add new types and remove
33910 useless ones.
33911 * config/i386/i386-builtin.def: Update builtin definitions.
33912 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33913 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33914 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33915 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33916 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33917 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33918 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33919 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33920 * config/i386/subst.md:
33921 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33922 (round_saeonly_sd_mask_op4): Ditto.
33923 (round_saeonly_expand_operand5): Ditto.
33924 (round_saeonly_expand): Update.
33925
33926 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33927
33928 PR target/88794
33929 Revert:
33930 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33931
33932 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33933 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33934 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33935 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33936 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33937 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33938 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33939
33940 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33941
33942 PR target/88794
33943 Revert:
33944 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33945
33946 PR target/88489
33947 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33948 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33949 instead of UNSPEC_FIXUPIMM.
33950
33951 2019-01-17 Richard Biener <rguenther@suse.de>
33952
33953 PR lto/86736
33954 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33955 and friends for the LTO part of debug info.
33956
33957 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33958
33959 PR tree-optimization/86214
33960 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33961 if x == y.
33962
33963 PR rtl-optimization/88870
33964 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33965 throw if we can't alter the cfg or delete dead exceptions.
33966 (mark_insn): Don't call find_call_stack_args for such calls.
33967
33968 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33969
33970 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33971 prototypes for vec_st.
33972 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33973 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33974 mainly on signed/unsigned long long and double.
33975
33976 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33977
33978 PR target/88861
33979 * combine.c (delete_noop_moves): Convert to "bool" return,
33980 returning true if any edges are eliminated.
33981 (combine_instructions): Also return true if delete_noop_moves
33982 returns true.
33983
33984 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33985
33986 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33987 correct max nunits for endian swap.
33988 (aarch64_expand_fcmla_builtin): Correct subreg code.
33989 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33990 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33991 lane endianness.
33992
33993 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33994
33995 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33996 Handle split indirect COMPLEX_TYPE arguments.
33997
33998 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33999
34000 PR target/86891
34001 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34002 bit is set by add and compare.
34003 (CC_ADC): New CC_MODE.
34004 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34005 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34006 comparison. Add detection for CC_ADCmode.
34007 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34008 CC_ADCmode.
34009 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34010 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34011 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34012 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34013 to eliminate the need for zero-extending the operands.
34014 (add<mode>3_compareC_imm): Delete. Merge into ...
34015 (add<mode>3_compareC): ... this. Restructure the comparison to
34016 eliminate the need for zero-extending the operands.
34017 (add<mode>3_carryin): Use LTU for the overflow detection.
34018 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34019 Reexpress comparison for overflow.
34020 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34021 (add<mode>3_carryinC): Likewise.
34022 (add<mode>3_carryinV): Use LTU for carry between partials.
34023 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34024 handling of CC_Cmode and add CC_ADCmode.
34025 (aarch64_borrow_operation): Likewise.
34026
34027 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34028
34029 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34030 Remove patternmode.
34031 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34032 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34033 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34034 Remove endianness conversion.
34035
34036 2019-01-16 Martin Liska <mliska@suse.cz>
34037
34038 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34039 for GCC driver.
34040 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34041 a new argument.
34042 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34043 (path_prefix_reset): Move up in the source file.
34044 (find_fortran_preinclude_file): Make complex search for the
34045 fortran header files.
34046
34047 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34048
34049 * godump.c (go_output_typedef): When outputting a typedef, refer
34050 to the underlying type by its name and not its structure.
34051
34052 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34053
34054 PR c++/88795
34055 * tree.c (build_function_type): Assert that arg_types is not
34056 error_mark_node.
34057
34058 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34059
34060 PR inline-asm/52813
34061 * doc/extend.texi: Document that listing the stack pointer in the
34062 clobber list of an asm is a deprecated feature.
34063 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34064 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34065 warning instead of an error for clobbers of the stack pointer.
34066 Add a note explaining why.
34067
34068 2019-01-15 Richard Biener <rguenther@suse.de>
34069
34070 PR debug/88046
34071 * dwarf2out.c (gen_member_die): Do not generate inheritance
34072 DIEs late.
34073
34074 2019-01-15 Richard Biener <rguenther@suse.de>
34075
34076 PR tree-optimization/88855
34077 * tree-if-conv.c (combine_blocks): Collect
34078 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34079
34080 2019-01-15 Tom de Vries <tdevries@suse.de>
34081
34082 PR target/80547
34083 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34084 lhs == NULL_TREE for gang-level reduction.
34085
34086 2019-01-15 Richard Biener <rguenther@suse.de>
34087 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34088
34089 PR ipa/88788
34090 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34091 return true if SSA_NAME is already marked in visited bitmap.
34092 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34093
34094 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34095
34096 PR tree-optimization/88775
34097 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34098 equal == 0 equality pointer comparisons some more if compared in
34099 integral types and either one points to an automatic var and the
34100 other to a global, or we can prove at least one points to the middle
34101 or both point to start or both point to end.
34102
34103 2019-01-14 Andi Kleen <ak@linux.intel.com>
34104
34105 * Makefile.in: Lower autofdo sampling rate by 10x.
34106 * Makefile.tpl: Dito.
34107
34108 2019-01-14 Tom Honermann <tom@honermann.net>
34109
34110 * defaults.h: Define CHAR8_TYPE.
34111
34112 2019-01-14 Martin Sebor <msebor@redhat.com>
34113
34114 PR target/88638
34115 * doc/extend.texi (Darwin Format Checks): Clarify.
34116
34117 2019-01-14 Richard Biener <rguenther@suse.de>
34118
34119 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34120 whether we are in (simplify ...) or (match ...) context.
34121
34122 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34123
34124 PR rtl-optimization/88796
34125 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34126 * cfgexpand.c (stack_protect_prologue): Initialize
34127 crtl->stack_protect_guard_decl.
34128 * function.c (stack_protect_epilogue): Use it instead of calling
34129 targetm.stack_protect_guard again.
34130 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34131 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34132 crtl->stack_protect_guard_decl.
34133 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34134 on the returned MEM_EXPR.
34135
34136 2019-01-12 Tom de Vries <tdevries@suse.de>
34137
34138 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34139 vector length using -fopenacc-dim.
34140
34141 2019-01-12 Tom de Vries <tdevries@suse.de>
34142
34143 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34144 lengths into account.
34145
34146 2019-01-12 Svante Signell <svante.signell@gmail.com>
34147
34148 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34149 (TARGET_CAN_SPLIT_STACK): Define.
34150 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34151
34152 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34153
34154 * params.def (inline-unit-growth): Set to 40.
34155
34156 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34157
34158 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34159
34160 2019-01-12 Tom de Vries <tdevries@suse.de>
34161
34162 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34163 region calling vector-partitionable routine, set default_vector_length
34164 to WARP_SIZE.
34165
34166 2019-01-12 Tom de Vries <tdevries@suse.de>
34167
34168 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34169 variable default_vector_length.
34170
34171 2019-01-12 Tom de Vries <tdevries@suse.de>
34172
34173 PR middle-end/88703
34174 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34175 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34176 dimensions limits.
34177
34178 2019-01-12 Tom de Vries <tdevries@suse.de>
34179
34180 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34181 (nvptx_goacc_validate_dims): Add used parameter.
34182 * doc/tm.texi: Regenerate.
34183 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34184 argument to call to targetm.goacc.validate_dims.
34185 (default_goacc_validate_dims): Add used
34186 parameter.
34187 * target.def (validate_dims): Add used parameter in DEFHOOK.
34188 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34189
34190 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34191
34192 PR middle-end/85956
34193 PR lto/88733
34194 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34195 field.
34196 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34197 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34198 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34199 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34200
34201 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34202
34203 PR rtl-optimization/87305
34204 * lra-assigns.c
34205 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34206 for little endian pseudos used as paradoxical subreg.
34207
34208 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34209
34210 PR tree-optimization/88693
34211 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34212 for STRING_CSTs that don't contain any NUL characters in the first
34213 TREE_STRING_LENGTH bytes.
34214
34215 2019-01-11 Alan Modra <amodra@gmail.com>
34216
34217 PR 88777
34218 PR 88614
34219 * genattrtab.c (min_fn): Don't translate values.
34220 (min_attr_value): Return INT_MAX when the value can't be calculated.
34221 Return minimum among any values that can be calculated.
34222 (max_attr_value): Adjust.
34223
34224 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34225
34226 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34227
34228 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34229
34230 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34231 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34232 (aarch64_return_call_with_max_clobbers): New function.
34233 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34234 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34235 argument.
34236 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34237 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34238 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34239 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34240 * cselib.c (cselib_process_insn): Add argument to
34241 targetm.hard_regno_call_part_clobbered call.
34242 * ira-conflicts.c (ira_build_conflicts): Ditto.
34243 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34244 * lra-constraints.c (inherit_reload_reg): Ditto.
34245 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34246 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34247 argument. Call targetm.return_call_with_max_clobbers.
34248 Add argument to targetm.hard_regno_call_part_clobbered call.
34249 (calls_have_same_clobbers_p): New function.
34250 (process_bb_lives): Add call_insn and last_call_insn variables.
34251 Pass call_insn to check_pseudos_live_through_calls.
34252 Modify if stmt to check targetm.return_call_with_max_clobbers.
34253 Update setting of flush variable.
34254 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34255 to false.
34256 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34257 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34258 targetm.hard_regno_call_part_clobbered call.
34259 * reginfo.c (choose_hard_reg_mode): Ditto.
34260 * regrename.c (check_new_reg_p): Ditto.
34261 * reload.c (find_equiv_reg): Ditto.
34262 * reload1.c (emit_reload_insns): Ditto.
34263 * sched-deps.c (deps_analyze_insn): Ditto.
34264 * sel-sched.c (init_regs_for_mode): Ditto.
34265 (mark_unavailable_hard_regs): Ditto.
34266 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34267 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34268 (return_call_with_max_clobbers): New target function.
34269 * doc/tm.texi: Regenerate.
34270 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34271 * hooks.c (hook_bool_uint_mode_false): Change to
34272 hook_bool_insn_uint_mode_false.
34273 * hooks.h (hook_bool_uint_mode_false): Ditto.
34274
34275 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34276
34277 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34278 (aarch64_remove_extra_call_preserved_regs): New function.
34279 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34280 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34281 * doc/tm.texi: Regenerate.
34282 * final.c (get_call_reg_set_usage): Call new hook.
34283 * target.def (remove_extra_call_preserved_regs): New hook.
34284 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34285 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34286
34287 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34288
34289 PR bootstrap/88714
34290 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34291 inside of pass_combine_1 dump rather than pass_profile_1.
34292
34293 2019-01-11 Tom de Vries <tdevries@suse.de>
34294
34295 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34296 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34297 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34298 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34299 num_workers 16.
34300
34301 2019-01-11 Tom de Vries <tdevries@suse.de>
34302
34303 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34304
34305 2019-01-11 Jan Beulich <jbeulich@suse.com>
34306
34307 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34308 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34309 sse2_cvtsi2sd): Add {l}.
34310 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34311 syntax.
34312
34313 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34314
34315 PR target/88785
34316 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34317 define_expand.
34318 (*float<floatunssuffix>v2div2sf2): New define_insn.
34319 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34320 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34321 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34322 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34323 match_operands with "const0_operand" "C".
34324
34325 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34326
34327 * config/aarch64/aarch64-builtins.c
34328 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34329 (aarch64_init_simd_builtins): ...Here
34330
34331 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34332
34333 PR rtl-optimization/87305
34334 * lra-assigns.c
34335 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34336 allocation for big endian pseudos used as paradoxical subregs and
34337 spill them if it is wrong.
34338 * lra-constraints.c (lra_constraints): Add a comment.
34339
34340 2019-01-10 Richard Biener <rguenther@suse.de>
34341
34342 PR tree-optimization/88792
34343 * tree-ssa-pre.c (get_representative_for): Do not return a
34344 value-number here.
34345
34346 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34347
34348 PR middle-end/84877
34349 PR bootstrap/88450
34350 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34351 (assign_parm_setup_block): Do the argument slot realignment here
34352 instead.
34353
34354 2019-01-10 Stefan Agner <stefan@agner.ch>
34355
34356 PR target/88648
34357 * config/arm/arm.c (arm_option_override_internal): Force
34358 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34359
34360 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34361
34362 PR c/88568
34363 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34364 DECL_EXTERNAL.
34365
34366 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34367
34368 * config/arm/arm-builtins.c
34369 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34370 (MAC_LANE_PAIR_QUALIFIERS): New.
34371 (arm_expand_builtin_args): Use it.
34372 (arm_expand_builtin_1): Likewise.
34373 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34374 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34375 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34376 * config/arm/arm_neon.h:
34377 (vcadd_rot90_f16): New.
34378 (vcaddq_rot90_f16): New.
34379 (vcadd_rot270_f16): New.
34380 (vcaddq_rot270_f16): New.
34381 (vcmla_f16): New.
34382 (vcmlaq_f16): New.
34383 (vcmla_lane_f16): New.
34384 (vcmla_laneq_f16): New.
34385 (vcmlaq_lane_f16): New.
34386 (vcmlaq_laneq_f16): New.
34387 (vcmla_rot90_f16): New.
34388 (vcmlaq_rot90_f16): New.
34389 (vcmla_rot90_lane_f16): New.
34390 (vcmla_rot90_laneq_f16): New.
34391 (vcmlaq_rot90_lane_f16): New.
34392 (vcmlaq_rot90_laneq_f16): New.
34393 (vcmla_rot180_f16): New.
34394 (vcmlaq_rot180_f16): New.
34395 (vcmla_rot180_lane_f16): New.
34396 (vcmla_rot180_laneq_f16): New.
34397 (vcmlaq_rot180_lane_f16): New.
34398 (vcmlaq_rot180_laneq_f16): New.
34399 (vcmla_rot270_f16): New.
34400 (vcmlaq_rot270_f16): New.
34401 (vcmla_rot270_lane_f16): New.
34402 (vcmla_rot270_laneq_f16): New.
34403 (vcmlaq_rot270_lane_f16): New.
34404 (vcmlaq_rot270_laneq_f16): New.
34405 (vcadd_rot90_f32): New.
34406 (vcaddq_rot90_f32): New.
34407 (vcadd_rot270_f32): New.
34408 (vcaddq_rot270_f32): New.
34409 (vcmla_f32): New.
34410 (vcmlaq_f32): New.
34411 (vcmla_lane_f32): New.
34412 (vcmla_laneq_f32): New.
34413 (vcmlaq_lane_f32): New.
34414 (vcmlaq_laneq_f32): New.
34415 (vcmla_rot90_f32): New.
34416 (vcmlaq_rot90_f32): New.
34417 (vcmla_rot90_lane_f32): New.
34418 (vcmla_rot90_laneq_f32): New.
34419 (vcmlaq_rot90_lane_f32): New.
34420 (vcmlaq_rot90_laneq_f32): New.
34421 (vcmla_rot180_f32): New.
34422 (vcmlaq_rot180_f32): New.
34423 (vcmla_rot180_lane_f32): New.
34424 (vcmla_rot180_laneq_f32): New.
34425 (vcmlaq_rot180_lane_f32): New.
34426 (vcmlaq_rot180_laneq_f32): New.
34427 (vcmla_rot270_f32): New.
34428 (vcmlaq_rot270_f32): New.
34429 (vcmla_rot270_lane_f32): New.
34430 (vcmla_rot270_laneq_f32): New.
34431 (vcmlaq_rot270_lane_f32): New.
34432 (vcmlaq_rot270_laneq_f32): New.
34433 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34434 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34435 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34436 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34437 vcmlaq_lane270): New.
34438 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34439 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34440 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34441 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34442 (arm_option_reconfigure_globals): Use them.
34443 * config/arm/iterators.md (VDF, VQ_HSF): New.
34444 (VCADD, VCMLA): New.
34445 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34446 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34447 New.
34448 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34449 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34450
34451 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34452
34453 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34454 Add qualifier_lane_pair_index.
34455 (emit-rtl.h): Include.
34456 (TYPES_QUADOP_LANE_PAIR): New.
34457 (aarch64_simd_expand_args): Use it.
34458 (aarch64_simd_expand_builtin): Likewise.
34459 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34460 New.
34461 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34462 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34463 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34464 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34465 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34466 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34467 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34468 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34469 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34470 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34471 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34472 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34473 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34474 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34475 Add __ARM_FEATURE_COMPLEX.
34476 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34477 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34478 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34479 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34480 fcmlaq_lane270): New.
34481 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34482 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34483 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34484 * config/aarch64/arm_neon.h:
34485 (vcadd_rot90_f16): New.
34486 (vcaddq_rot90_f16): New.
34487 (vcadd_rot270_f16): New.
34488 (vcaddq_rot270_f16): New.
34489 (vcmla_f16): New.
34490 (vcmlaq_f16): New.
34491 (vcmla_lane_f16): New.
34492 (vcmla_laneq_f16): New.
34493 (vcmlaq_lane_f16): New.
34494 (vcmlaq_rot90_lane_f16): New.
34495 (vcmla_rot90_laneq_f16): New.
34496 (vcmla_rot90_lane_f16): New.
34497 (vcmlaq_rot90_f16): New.
34498 (vcmla_rot90_f16): New.
34499 (vcmlaq_laneq_f16): New.
34500 (vcmla_rot180_laneq_f16): New.
34501 (vcmla_rot180_lane_f16): New.
34502 (vcmlaq_rot180_f16): New.
34503 (vcmla_rot180_f16): New.
34504 (vcmlaq_rot90_laneq_f16): New.
34505 (vcmlaq_rot270_laneq_f16): New.
34506 (vcmlaq_rot270_lane_f16): New.
34507 (vcmla_rot270_laneq_f16): New.
34508 (vcmlaq_rot270_f16): New.
34509 (vcmla_rot270_f16): New.
34510 (vcmlaq_rot180_laneq_f16): New.
34511 (vcmlaq_rot180_lane_f16): New.
34512 (vcmla_rot270_lane_f16): New.
34513 (vcadd_rot90_f32): New.
34514 (vcaddq_rot90_f32): New.
34515 (vcaddq_rot90_f64): New.
34516 (vcadd_rot270_f32): New.
34517 (vcaddq_rot270_f32): New.
34518 (vcaddq_rot270_f64): New.
34519 (vcmla_f32): New.
34520 (vcmlaq_f32): New.
34521 (vcmlaq_f64): New.
34522 (vcmla_lane_f32): New.
34523 (vcmla_laneq_f32): New.
34524 (vcmlaq_lane_f32): New.
34525 (vcmlaq_laneq_f32): New.
34526 (vcmla_rot90_f32): New.
34527 (vcmlaq_rot90_f32): New.
34528 (vcmlaq_rot90_f64): New.
34529 (vcmla_rot90_lane_f32): New.
34530 (vcmla_rot90_laneq_f32): New.
34531 (vcmlaq_rot90_lane_f32): New.
34532 (vcmlaq_rot90_laneq_f32): New.
34533 (vcmla_rot180_f32): New.
34534 (vcmlaq_rot180_f32): New.
34535 (vcmlaq_rot180_f64): New.
34536 (vcmla_rot180_lane_f32): New.
34537 (vcmla_rot180_laneq_f32): New.
34538 (vcmlaq_rot180_lane_f32): New.
34539 (vcmlaq_rot180_laneq_f32): New.
34540 (vcmla_rot270_f32): New.
34541 (vcmlaq_rot270_f32): New.
34542 (vcmlaq_rot270_f64): New.
34543 (vcmla_rot270_lane_f32): New.
34544 (vcmla_rot270_laneq_f32): New.
34545 (vcmlaq_rot270_lane_f32): New.
34546 (vcmlaq_rot270_laneq_f32): New.
34547 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34548 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34549 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34550 (FCADD, FCMLA): New.
34551 (rot): New.
34552 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34553
34554 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34555
34556 PR other/16615
34557
34558 * config/pa/pa.c: Change "can not" to "cannot".
34559 * gimple-ssa-evrp-analyze.c: Likewise.
34560 * ipa-icf.c: Likewise.
34561 * ipa-polymorphic-call.c: Likewise.
34562 * ipa-pure-const.c: Likewise.
34563 * lra-constraints.c: Likewise.
34564 * lra-remat.c: Likewise.
34565 * reload1.c: Likewise.
34566 * reorg.c: Likewise.
34567 * tree-ssa-uninit.c: Likewise.
34568
34569 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34570
34571 PR other/16615
34572
34573 * Makefile.in: Mechanically replace "can not" with "cannot".
34574 * alias.c: Likewise.
34575 * builtins.c: Likewise.
34576 * calls.c: Likewise.
34577 * cgraph.c: Likewise.
34578 * cgraph.h: Likewise.
34579 * cgraphclones.c: Likewise.
34580 * cgraphunit.c: Likewise.
34581 * combine-stack-adj.c: Likewise.
34582 * combine.c: Likewise.
34583 * common/config/i386/i386-common.c: Likewise.
34584 * config/aarch64/aarch64.c: Likewise.
34585 * config/alpha/sync.md: Likewise.
34586 * config/arc/arc.c: Likewise.
34587 * config/arc/predicates.md: Likewise.
34588 * config/arm/arm-c.c: Likewise.
34589 * config/arm/arm.c: Likewise.
34590 * config/arm/arm.h: Likewise.
34591 * config/arm/arm.md: Likewise.
34592 * config/arm/cortex-r4f.md: Likewise.
34593 * config/csky/csky.c: Likewise.
34594 * config/csky/csky.h: Likewise.
34595 * config/darwin-f.c: Likewise.
34596 * config/epiphany/epiphany.md: Likewise.
34597 * config/i386/i386.c: Likewise.
34598 * config/i386/sol2.h: Likewise.
34599 * config/m68k/m68k.c: Likewise.
34600 * config/mcore/mcore.h: Likewise.
34601 * config/microblaze/microblaze.md: Likewise.
34602 * config/mips/20kc.md: Likewise.
34603 * config/mips/sb1.md: Likewise.
34604 * config/nds32/nds32.c: Likewise.
34605 * config/nds32/predicates.md: Likewise.
34606 * config/pa/pa.c: Likewise.
34607 * config/rs6000/e300c2c3.md: Likewise.
34608 * config/rs6000/rs6000.c: Likewise.
34609 * config/s390/s390.h: Likewise.
34610 * config/sh/sh.c: Likewise.
34611 * config/sh/sh.md: Likewise.
34612 * config/spu/vmx2spu.h: Likewise.
34613 * cprop.c: Likewise.
34614 * dbxout.c: Likewise.
34615 * df-scan.c: Likewise.
34616 * doc/cfg.texi: Likewise.
34617 * doc/extend.texi: Likewise.
34618 * doc/fragments.texi: Likewise.
34619 * doc/gty.texi: Likewise.
34620 * doc/invoke.texi: Likewise.
34621 * doc/lto.texi: Likewise.
34622 * doc/md.texi: Likewise.
34623 * doc/objc.texi: Likewise.
34624 * doc/rtl.texi: Likewise.
34625 * doc/tm.texi: Likewise.
34626 * dse.c: Likewise.
34627 * emit-rtl.c: Likewise.
34628 * emit-rtl.h: Likewise.
34629 * except.c: Likewise.
34630 * expmed.c: Likewise.
34631 * expr.c: Likewise.
34632 * fold-const.c: Likewise.
34633 * genautomata.c: Likewise.
34634 * gimple-fold.c: Likewise.
34635 * hard-reg-set.h: Likewise.
34636 * ifcvt.c: Likewise.
34637 * ipa-comdats.c: Likewise.
34638 * ipa-cp.c: Likewise.
34639 * ipa-devirt.c: Likewise.
34640 * ipa-fnsummary.c: Likewise.
34641 * ipa-icf.c: Likewise.
34642 * ipa-inline-transform.c: Likewise.
34643 * ipa-inline.c: Likewise.
34644 * ipa-polymorphic-call.c: Likewise.
34645 * ipa-profile.c: Likewise.
34646 * ipa-prop.c: Likewise.
34647 * ipa-pure-const.c: Likewise.
34648 * ipa-reference.c: Likewise.
34649 * ipa-split.c: Likewise.
34650 * ipa-visibility.c: Likewise.
34651 * ipa.c: Likewise.
34652 * ira-build.c: Likewise.
34653 * ira-color.c: Likewise.
34654 * ira-conflicts.c: Likewise.
34655 * ira-costs.c: Likewise.
34656 * ira-int.h: Likewise.
34657 * ira-lives.c: Likewise.
34658 * ira.c: Likewise.
34659 * ira.h: Likewise.
34660 * loop-invariant.c: Likewise.
34661 * loop-unroll.c: Likewise.
34662 * lower-subreg.c: Likewise.
34663 * lra-assigns.c: Likewise.
34664 * lra-constraints.c: Likewise.
34665 * lra-eliminations.c: Likewise.
34666 * lra-lives.c: Likewise.
34667 * lra-remat.c: Likewise.
34668 * lra-spills.c: Likewise.
34669 * lra.c: Likewise.
34670 * lto-cgraph.c: Likewise.
34671 * lto-streamer-out.c: Likewise.
34672 * postreload-gcse.c: Likewise.
34673 * predict.c: Likewise.
34674 * profile-count.h: Likewise.
34675 * profile.c: Likewise.
34676 * recog.c: Likewise.
34677 * ree.c: Likewise.
34678 * reload.c: Likewise.
34679 * reload1.c: Likewise.
34680 * reorg.c: Likewise.
34681 * resource.c: Likewise.
34682 * rtl.def: Likewise.
34683 * rtl.h: Likewise.
34684 * rtlanal.c: Likewise.
34685 * sched-deps.c: Likewise.
34686 * sched-ebb.c: Likewise.
34687 * sched-rgn.c: Likewise.
34688 * sel-sched-ir.c: Likewise.
34689 * sel-sched.c: Likewise.
34690 * shrink-wrap.c: Likewise.
34691 * simplify-rtx.c: Likewise.
34692 * symtab.c: Likewise.
34693 * target.def: Likewise.
34694 * toplev.c: Likewise.
34695 * tree-call-cdce.c: Likewise.
34696 * tree-cfg.c: Likewise.
34697 * tree-complex.c: Likewise.
34698 * tree-core.h: Likewise.
34699 * tree-eh.c: Likewise.
34700 * tree-inline.c: Likewise.
34701 * tree-loop-distribution.c: Likewise.
34702 * tree-nrv.c: Likewise.
34703 * tree-profile.c: Likewise.
34704 * tree-sra.c: Likewise.
34705 * tree-ssa-alias.c: Likewise.
34706 * tree-ssa-dce.c: Likewise.
34707 * tree-ssa-dom.c: Likewise.
34708 * tree-ssa-forwprop.c: Likewise.
34709 * tree-ssa-loop-im.c: Likewise.
34710 * tree-ssa-loop-ivcanon.c: Likewise.
34711 * tree-ssa-loop-ivopts.c: Likewise.
34712 * tree-ssa-loop-niter.c: Likewise.
34713 * tree-ssa-phionlycprop.c: Likewise.
34714 * tree-ssa-phiopt.c: Likewise.
34715 * tree-ssa-propagate.c: Likewise.
34716 * tree-ssa-threadedge.c: Likewise.
34717 * tree-ssa-threadupdate.c: Likewise.
34718 * tree-ssa-uninit.c: Likewise.
34719 * tree-ssanames.c: Likewise.
34720 * tree-streamer-out.c: Likewise.
34721 * tree.c: Likewise.
34722 * tree.h: Likewise.
34723 * vr-values.c: Likewise.
34724
34725 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34726
34727 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34728 (ix86_split_xorsign): Ditto.
34729 * config/i386/i386.c (ix86_expand_xorsign): New function.
34730 (ix86_split_xorsign): Ditto.
34731 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34732 (xorsign<mode>3): New expander.
34733 (xorsign<mode>3_1): New insn_and_split pattern.
34734 * config/i386/sse.md (xorsign<mode>3): New expander.
34735
34736 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34737
34738 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34739 (*tablejump_sp64): Likewise.
34740 (*tablejump<P:mode>): ...this.
34741 (*call_address_sp32): Merge into...
34742 (*call_address_sp64): Likewise.
34743 (*call_address<P:mode>): ...this.
34744 (*call_symbolic_sp32): Merge into...
34745 (*call_symbolic_sp64): Likewise.
34746 (*call_symbolic<P:mode>): ...this.
34747 (call_value): Remove constraint and add predicate.
34748 (*call_value_address_sp32): Merge into...
34749 (*call_value_address_sp64): Likewise.
34750 (*call_value_address<P:mode>): ...this.
34751 (*call_value_symbolic_sp32): Merge into...
34752 (*call_value_symbolic_sp64): Likewise.
34753 (*call_value_symbolic<P:mode>): ...this.
34754 (*sibcall_symbolic_sp32): Merge into...
34755 (*sibcall_symbolic_sp64): Likewise.
34756 (*sibcall_symbolic<P:mode>): ...this.
34757 (sibcall_value): Remove constraint and add predicate.
34758 (*sibcall_value_symbolic_sp32): Merge into...
34759 (*sibcall_value_symbolic_sp64): Likewise.
34760 (*sibcall_value_symbolic<P:mode>): ...this.
34761 (window_save): Minor tweak.
34762 (*branch_sp32): Merge into...
34763 (*branch_sp64): Likewise.
34764 (*branch<P:mode>): ...this.
34765
34766 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34767 James Clarke <jrtc27@jrtc27.com>
34768
34769 PR target/84010
34770 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34771 consistently in TLS address generation and adjust code to the renaming
34772 of patterns. Mark calls to __tls_get_addr as const.
34773 * config/sparc/sparc.md (tgd_hi22): Turn into...
34774 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34775 (tgd_lo10): Turn into...
34776 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34777 (tgd_add32): Merge into...
34778 (tgd_add64): Likewise.
34779 (tgd_add<P:mode>): ...this and use Pmode throughout.
34780 (tldm_hi22): Turn into...
34781 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34782 (tldm_lo10): Turn into...
34783 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34784 (tldm_add32): Merge into...
34785 (tldm_add64): Likewise.
34786 (tldm_add<P:mode>): ...this and use Pmode throughout.
34787 (tldm_call32): Merge into...
34788 (tldm_call64): Likewise.
34789 (tldm_call<P:mode>): ...this and use Pmode throughout.
34790 (tldo_hix22): Turn into...
34791 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34792 (tldo_lox10): Turn into...
34793 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34794 (tldo_add32): Merge into...
34795 (tldo_add64): Likewise.
34796 (tldo_add<P:mode>): ...this and use Pmode throughout.
34797 (tie_hi22): Turn into...
34798 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34799 (tie_lo10): Turn into...
34800 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34801 (tie_ld64): Use DImode throughout.
34802 (tie_add32): Merge into...
34803 (tie_add64): Likewise.
34804 (tie_add<P:mode>): ...this and use Pmode throughout.
34805 (tle_hix22_sp32): Merge into...
34806 (tle_hix22_sp64): Likewise.
34807 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34808 (tle_lox22_sp32): Merge into...
34809 (tle_lox22_sp64): Likewise.
34810 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34811 (*tldo_ldub_sp32): Merge into...
34812 (*tldo_ldub_sp64): Likewise.
34813 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34814 (*tldo_ldub1_sp32): Merge into...
34815 (*tldo_ldub1_sp64): Likewise.
34816 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34817 (*tldo_ldub2_sp32): Merge into...
34818 (*tldo_ldub2_sp64): Likewise.
34819 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34820 (*tldo_ldsb1_sp32): Merge into...
34821 (*tldo_ldsb1_sp64): Likewise.
34822 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34823 (*tldo_ldsb2_sp32): Merge into...
34824 (*tldo_ldsb2_sp64): Likewise.
34825 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34826 (*tldo_ldub3_sp64): Use DImode throughout.
34827 (*tldo_ldsb3_sp64): Likewise.
34828 (*tldo_lduh_sp32): Merge into...
34829 (*tldo_lduh_sp64): Likewise.
34830 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34831 (*tldo_lduh1_sp32): Merge into...
34832 (*tldo_lduh1_sp64): Likewise.
34833 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34834 (*tldo_ldsh1_sp32): Merge into...
34835 (*tldo_ldsh1_sp64): Likewise.
34836 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34837 (*tldo_lduh2_sp64): Use DImode throughout.
34838 (*tldo_ldsh2_sp64): Likewise.
34839 (*tldo_lduw_sp32): Merge into...
34840 (*tldo_lduw_sp64): Likewise.
34841 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34842 (*tldo_lduw1_sp64): Use DImode throughout.
34843 (*tldo_ldsw1_sp64): Likewise.
34844 (*tldo_ldx_sp64): Likewise.
34845 (*tldo_stb_sp32): Merge into...
34846 (*tldo_stb_sp64): Likewise.
34847 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34848 (*tldo_sth_sp32): Merge into...
34849 (*tldo_sth_sp64): Likewise.
34850 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34851 (*tldo_stw_sp32): Merge into...
34852 (*tldo_stw_sp64): Likewise.
34853 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34854 (*tldo_stx_sp64): Use DImode throughout.
34855
34856 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34857
34858 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34859 check configure option to set BTI and Return Address Signing.
34860 * configure.ac: Add --enable-standard-branch-protection and
34861 --disable-standard-branch-protection.
34862 * configure: Regenerated.
34863 * doc/install.texi: Document the same.
34864
34865 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34866 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34867
34868 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34869 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34870 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34871 if bti is enabled.
34872 * config/aarch64/aarch64-bti-insert.c: New file.
34873 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34874 pass.
34875 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34876 new bti pass.
34877 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34878 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34879 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34880 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34881
34882 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34883
34884 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34885 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34886 Disable bti for -mbranch-protection=none.
34887 (aarch64_handle_standard_branch_protection): Enable bti for
34888 -mbranch-protection=standard.
34889 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34890 -mbranch-protection.
34891 (aarch64_bti_enabled): Check if bti is enabled.
34892 * config/aarch64/aarch64.opt: Declare target variable.
34893 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34894
34895 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34896
34897 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34898 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34899 (aarch64_expand_epilogue): Likewise.
34900 (aarch64_output_mi_thunk): Likewise.
34901 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34902 TAILCALL_ADDR_REGS to x16 and x17.
34903 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34904
34905 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34906
34907 * config/aarch64/aarch64-option-extensions.def: Define
34908 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34909 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34910 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34911 (AARCH64_FL_PREDRES): New.
34912 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34913 AARCH64_FL_PREDRES by default.
34914 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34915
34916 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34917
34918 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34919 ARMv8.5-A.
34920 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34921 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34922 * doc/invoke.texi: Document ARMv8.5-A.
34923
34924 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34925
34926 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34927 (xorsign<mode>3): Likewise.
34928
34929 2019-01-09 Jelinek <jakub@redhat.com>
34930
34931 PR middle-end/88758
34932 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34933 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34934
34935 PR rtl-optimization/88331
34936 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34937 not currently_expanding_to_rtl.
34938
34939 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34940
34941 * doc/invoke.texi (-Os): Remove trailing spaces.
34942 (-finline-functions): Remove reference to -O2.
34943
34944 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34945
34946 PR rtl-optimization/79593
34947 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34948
34949 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34950 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34951
34952 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34953
34954 PR bootstrap/88721
34955 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34956 to -1 on entry.
34957
34958 PR debug/88723
34959 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34960 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34961
34962 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34963
34964 PR target/88717
34965 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34966 ix86_avx_u128_mode_entry.
34967
34968 2019-01-08 Martin Liska <mliska@suse.cz>
34969
34970 PR tree-optimization/88753
34971 * tree-switch-conversion.c (switch_conversion::build_one_array):
34972 Come up with local variable constructor. Convert first to
34973 type of constructor values.
34974
34975 2019-01-08 Richard Biener <rguenther@suse.de>
34976
34977 PR tree-optimization/86554
34978 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34979 rpo_avail): Move earlier.
34980 (visit_nary_op): When value-numbering to expressions
34981 with different overflow behavior make sure there's an
34982 available expression on the path.
34983
34984 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34985
34986 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34987 aarch64_parse_branch_protection,
34988 struct aarch64_branch_protect_type,
34989 aarch64_handle_no_branch_protection,
34990 aarch64_handle_standard_branch_protection,
34991 aarch64_validate_mbranch_protection,
34992 aarch64_handle_pac_ret_protection,
34993 aarch64_handle_attr_branch_protection,
34994 accepted_branch_protection_string,
34995 aarch64_pac_ret_subtypes,
34996 aarch64_branch_protect_types,
34997 aarch64_handle_pac_ret_leaf): Define.
34998 (aarch64_override_options_after_change_1, aarch64_override_options):
34999 Add check for accepted_branch_protection_string.
35000 (aarch64_option_save): Save accepted_branch_protection_string.
35001 (aarch64_option_restore): Save accepted_branch_protection_string.
35002 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35003 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35004 msign-return-address.
35005 * doc/invoke.texi: Add mbranch-protection.
35006
35007 2019-01-08 Alan Modra <amodra@gmail.com>
35008
35009 PR target/88614
35010 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35011 Delete "unknownp" parameter. Adjust callers. Handle
35012 CONST_INT, PLUS, MINUS, and MULT.
35013 (attr_value_aligned): Renamed from or_attr_value.
35014 (min_attr_value): Return INT_MIN for unhandled rtl case..
35015 (min_fn): ..and translate to INT_MAX here.
35016 (write_length_unit_log): Modify to cope without "unknown".
35017 (write_attr_value): Handle IF_THEN_ELSE.
35018
35019 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35020
35021 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35022 optimization for masked stores.
35023
35024 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35025
35026 PR middle-end/88567
35027 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35028 output vector directly to duplicate_and_interleave instead of
35029 going through a temporary. Postpone insertion of ctor_seq to
35030 the end of the loop.
35031
35032 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35033
35034 PR target/86891
35035 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35036 unsigned_p. Handle signed and unsigned overflow correction as
35037 required.
35038 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35039 prototype.
35040 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35041 for operand 2.
35042 (add<mode>3_compareV_imm): Make this callable for expanding.
35043 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35044 aarch64_plus_operand for operand 2.
35045 (subv<GPI:mode>_insn): New insn pattern.
35046 (subv<GPI:mode>_imm): Likewise.
35047 (negv<GPI:mode>3): New expand pattern.
35048 (negv<GPI:mode>_insn): New insn pattern.
35049 (negv<GPI:mode>_cmp_only): Likewise.
35050 (cmpv<GPI:mode>_insn): Likewise.
35051 (subvti4): Use register_operand for operand 1. Update call to
35052 aarch64_expand_subvti.
35053 (usubvti4): Likewise.
35054 (negvti3): New expand pattern.
35055 (negdi_carryout): New insn pattern.
35056 (negvdi_carryinV): New insn pattern.
35057 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35058 version the named version.
35059 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35060 operands.
35061 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35062 patterns.
35063 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35064 patterns.
35065 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35066 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35067 (sub<mode>3_carryinCV): Delete.
35068 (sub<GPI:mode>3_carryinV): New expand pattern.
35069 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35070
35071 2019-01-07 Richard Biener <rguenther@suse.de>
35072
35073 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35074 of tree_operand_hash.
35075
35076 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35077
35078 PR tree-optimization/88598
35079 * tree.h (single_nonzero_element): Declare.
35080 * tree.c (single_nonzero_element): New function.
35081 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35082 if I is the only nonzero element of CST.
35083
35084 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35085
35086 PR tree-optimization/88598
35087 * tree.h (initializer_each_zero_or_onep): Declare.
35088 * tree.c (initializer_each_zero_or_onep): New function.
35089 (signed_or_unsigned_type_for): Handle float types too.
35090 (unsigned_type_for, signed_type_for): Update comments accordingly.
35091 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35092 x & { 0 or -1, 0 or -1, ... }.
35093
35094 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35095
35096 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35097 with x86_64-pc-linux-gnu.
35098
35099 2019-01-07 Tom de Vries <tdevries@suse.de>
35100
35101 PR target/85486
35102 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35103 function.
35104 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35105 routines.
35106
35107 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35108
35109 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35110 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35111 TARGET_AVX512F as condition.
35112
35113 PR debug/88723
35114 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35115 const_not_ok_for_debug_p target hook.
35116 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35117 on UNSPEC and subexpressions thereof if all subexpressions of the
35118 UNSPEC are CONSTANT_P.
35119
35120 PR tree-optimization/88676
35121 * tree-ssa-phiopt.c (two_value_replacement): New function.
35122 (tree_ssa_phiopt_worker): Call it.
35123
35124 PR sanitizer/88619
35125 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35126 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35127
35128 PR c++/85052
35129 * tree-vect-generic.c: Include insn-config.h and recog.h.
35130 (expand_vector_piecewise): Add defaulted ret_type argument,
35131 if non-NULL, use that in preference to type for the result type.
35132 (expand_vector_parallel): Formatting fix.
35133 (do_vec_conversion, do_vec_narrowing_conversion,
35134 expand_vector_conversion): New functions.
35135 (expand_vector_operations_1): Call expand_vector_conversion
35136 for VEC_CONVERT ifn calls.
35137 * internal-fn.def (VEC_CONVERT): New internal function.
35138 * internal-fn.c (expand_VEC_CONVERT): New function.
35139 * fold-const-call.c (fold_const_vec_convert): New function.
35140 (fold_const_call): Use it for CFN_VEC_CONVERT.
35141 * doc/extend.texi (__builtin_convertvector): Document.
35142
35143 2019-01-07 Tom de Vries <tdevries@suse.de>
35144
35145 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35146 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35147 vector_red_partition, vector_red_sym): New global variables.
35148 (nvptx_option_override): Initialize vector_red_sym.
35149 (nvptx_declare_function_name): Restore red_partition register.
35150 (nvptx_file_end): Emit code to declare the vector reduction variables.
35151 (nvptx_output_red_partition): New function.
35152 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35153 large vector reductions.
35154 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35155 (nvptx_init_builtins): Add VECTOR_ADDR.
35156 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35157 Handle nvptx_expand_shared_addr.
35158 (nvptx_get_shared_red_addr): Add vector argument and handle large
35159 vectors.
35160 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35161 large vectors.
35162 (nvptx_goacc_reduction_init): Likewise.
35163 (nvptx_goacc_reduction_fini): Likewise.
35164 (nvptx_goacc_reduction_teardown): Likewise.
35165 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35166 init,fini,teardown}.
35167 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35168 (nvptx_set_current_function): Init vector_red_partition.
35169 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35170 (nvptx_red_partition): New insn.
35171 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35172
35173 2019-01-07 Tom de Vries <tdevries@suse.de>
35174
35175 PR target/85381
35176 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35177 empty loops.
35178
35179 2019-01-07 Tom de Vries <tdevries@suse.de>
35180
35181 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35182 (nvptx_option_override): Init oacc_bcast_partition.
35183 (nvptx_init_oacc_workers): New function.
35184 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35185 (nvptx_needs_shared_bcast): New function.
35186 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35187 to propagate state.
35188 (nvptx_shared_propagate): Initialize vector bcast partition and
35189 synchronization state.
35190 (nvptx_single): Generalize to enable vectors to use shared-memory
35191 to propagate state.
35192 (nvptx_process_pars): Likewise.
35193 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35194 * config/nvptx/nvptx.h (struct machine_function): Add
35195 bcast_partition and sync_bar members.
35196
35197 2019-01-07 Tom de Vries <tdevries@suse.de>
35198
35199 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35200 (nvptx_apply_dim_limits): New function.
35201 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35202 PTX_WARP_SIZE.
35203
35204 2019-01-07 Tom de Vries <tdevries@suse.de>
35205
35206 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35207 as late as possible.
35208
35209 2019-01-07 Tom de Vries <tdevries@suse.de>
35210
35211 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35212 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35213 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35214 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35215 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35216
35217 2019-01-07 Tom de Vries <tdevries@suse.de>
35218
35219 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35220
35221 2019-01-07 Tom de Vries <tdevries@suse.de>
35222
35223 * omp-offload.c (oacc_get_min_dim): New function.
35224 * omp-offload.h (oacc_get_min_dim): Declare.
35225
35226 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35227
35228 PR target/88521
35229 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35230 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35231
35232 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35233
35234 PR tree-opt/86020
35235 Revert:
35236 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35237
35238 * ipa-inline.c (edge_badness): Use inlined_time instead of
35239 inline_summaries->get.
35240
35241 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35242
35243 * opts.c (enable_fdo_optimizations): Enable
35244 version-loops-for-strides, loop-interchange, unrol-and-jam
35245 and tree-loop-distribution.
35246 * invoke.texi: Document newly enabled options.
35247
35248 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35249
35250 * doc/invoke.texi (max-inline-insns-small): New parameters.
35251 * ipa-inline.c (want_early_inline_function_p): simplify.
35252 (want_inline_small_function_p): Fix pasto from previous patch;
35253 use max-inline-insns-small bound.
35254 * params.def (max-inline-insns-small): New param.
35255 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35256 variables correctly.
35257
35258 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35259
35260 * doc/invoke.texi: Document max-inline-insns-size,
35261 uninlined-function-insns, uninlined-function-time,
35262 uninlined-thunk-insns and uninlined-thunk-time.
35263 * params.def: Add max-inline-insns-size,
35264 uninlined-function-insns, uninlined-function-time,
35265 uninlined-thunk-insns and uninlined-thunk-time.
35266 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35267 new parameters.
35268 * ipa-inline.c (can_inline_edge_by_limits_p,
35269 want_inline_small_function_p): Use new parameters.
35270
35271 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35272
35273 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35274
35275 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35276
35277 PR middle-end/82564
35278 PR target/88620
35279 * expr.c (expand_assignment): For calls returning VLA structures
35280 if to_rtx is not a MEM, force it into a stack temporary.
35281
35282 PR debug/88635
35283 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35284 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35285 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35286 subexpressions of both operands.
35287 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35288 subrtxes are CONSTANT_P.
35289 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35290 2018-11-09 changes.
35291
35292 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35293
35294 * params.def (hot-bb-count-ws-permille): Set to 990.
35295
35296 2019-01-04 Martin Sebor <msebor@redhat.com>
35297
35298 PR c/88546
35299 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35300 leaf.
35301
35302 2019-01-04 Martin Sebor <msebor@redhat.com>
35303
35304 PR c/88363
35305 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35306
35307 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35308
35309 * gdbinit.in: Turn off pagination for the skip commands, restore
35310 it to previous state afterwards.
35311
35312 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35313
35314 PR target/88594
35315 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35316 of GET_MODE (opN) as modes of the libcall arguments.
35317
35318 2019-01-04 Jan Beulich <jbeulich@suse.com>
35319
35320 * config/i386/sse.md
35321 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35322 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35323 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35324 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35325 avx512f_vmcmp<mode>3<round_saeonly_name>,
35326 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35327 avx512f_maskcmp<mode>3,
35328 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35329 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35330 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35331 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35332 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35333 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35334 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35335 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35336 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35337 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35338 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35339 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35340 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35341 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35342 avx512cd_maskb_vec_dup<mode>,
35343 avx512cd_maskw_vec_dup<mode>,
35344 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35345 avx512dq_vmfpclass<mode>,
35346 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35347 instead of =Yk.
35348
35349 2019-01-03 Martin Sebor <msebor@redhat.com>
35350
35351 PR tree-optimization/88659
35352 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35353
35354 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35355
35356 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35357 unaligned vsx and avoid lxvd2x/stxvd2x.
35358 (gen_lvx_v4si_move): New function.
35359
35360 2019-01-03 Tom de Vries <tdevries@suse.de>
35361
35362 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35363 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35364 function.
35365 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35366
35367 2019-01-03 Tom de Vries <tdevries@suse.de>
35368
35369 * config/nvptx/nvptx.c (struct offload_attrs): New.
35370 (populate_offload_attrs): New function. Factor mask extraction out of
35371 nvptx_reorg. Add extraction of dimensions.
35372 (nvptx_reorg): Use populate_offload_attrs.
35373
35374 2019-01-03 Tom de Vries <tdevries@suse.de>
35375
35376 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35377 cases for oacc_min_dims_p and routine_p. Add asserts for
35378 oacc_default_dims_p and offload_region_p.
35379
35380 2019-01-03 Tom de Vries <tdevries@suse.de>
35381
35382 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35383 factored out of ...
35384 (nvptx_goacc_validate_dims): ... here.
35385
35386 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35387
35388 PR tree-optimization/85574
35389 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35390 structure.
35391 (struct ssa_equip_hash_traits): Declare.
35392 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35393
35394 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35395
35396 PR debug/88644
35397 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35398 change it to qualified_type.
35399
35400 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35401
35402 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35403 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35404
35405 2019-01-02 Martin Sebor <msebor@redhat.com>
35406 Jeff Law <law@redhat.com>
35407
35408 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35409 (get_range_strlen_tree): Update appropriately.
35410 (get_range_strlen)
35411 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35412
35413 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35414 rather than set_range_info.
35415 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35416 maybe_set_strlen_range. Handle potentially boundary crossing
35417 cases more conservatively.
35418 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35419 Call set_strlen_range.
35420 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35421
35422 PR middle-end/88663
35423 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35424 need the flexp argument.
35425 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35426 from calls to get_range_strlen. Update comments. Just update
35427 VAL for an unterminated const char array and let the reset of the
35428 code handle it normally. No longer try to set *flexp. Adjust
35429 return value.
35430 (get_range_strlen): Update for the new get_range_strlen API.
35431 (get_maxval_strlen): Similarly.
35432 (gimple_fold_builtin_strlen): Handle update meaning of return value
35433 from get_range_strlen.
35434 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35435 get_range_strlen API.
35436
35437 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35438
35439 PR lto/88130
35440 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35441 false at WPA time when body was removed.
35442
35443 2019-01-02 Martin Liska <mliska@suse.cz>
35444
35445 PR tree-optimization/88650
35446 * predict.c (set_even_probabilities): Calculate probability
35447 remainer only when really used.
35448
35449 2019-01-02 Richard Biener <rguenther@suse.de>
35450
35451 PR middle-end/88651
35452 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35453 widest_ints when mangling max_stmt_execution results.
35454
35455 2019-01-02 Richard Biener <rguenther@suse.de>
35456
35457 PR tree-optimization/88621
35458 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35459 bitfields when canoncalizing.
35460
35461 2019-01-02 Richard Biener <rguenther@suse.de>
35462
35463 PR target/87545
35464 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35465 cost of cheap SSE instruction.
35466
35467 2019-01-02 Richard Biener <rguenther@suse.de>
35468
35469 PR ipa/85574
35470 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35471 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35472 function.
35473 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35474 set after UIDs before splitting them.
35475
35476 2019-01-01 Martin Sebor <msebor@redhat.com>
35477 Jeff Law <law@redhat.com>
35478
35479 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35480 length is optimistic. If it is, then arrange to compute the
35481 conservative length as well.
35482
35483 * gimple-fold.h (get_range_strlen): Update prototype.
35484 * builtins.c (check_access): Update call to get_range_strlen to use
35485 c_strlen_data pointer. Change various variable accesses to instead
35486 pull data from the c_strlen_data structure.
35487 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35488 * calls.c (maybe_warn_nonstring_arg): Likewise.
35489 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35490 minimum length if maximum lengh is unknown.
35491 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35492 that used c_strlen, it's no longer needed. Restructure slightly.
35493 (format_string): Set unlikely range appropriately.
35494 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35495 formatting issues.
35496 (get_range_strlen): Accept c_strlen_data pointer for external
35497 call sites as well. Pass through to call to internal get_range_strlen.
35498 Adjust minlen, maxlen and maxbound as needed.
35499 (get_maxval_strlen): Update comments.
35500 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35501 to use c_strlen_data pointer. Change variable accesses to instead
35502 use c_strlen_data data members.
35503
35504 * gimple-fold.c (get_range_strlen): Update prototype.
35505 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35506 local variables. Use pdata to return information to caller.
35507 Update calls to get_range_strlen. Update pdata->maxbound.
35508 (get_range_strlen -- static version): Similarly.
35509 (get_range_strlen -- extern version): Update for internal
35510 get_range_strlen API change. Convert to external data format.
35511 (get_maxval_strlen): Similarly.
35512
35513 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35514
35515 * coverage.c (get_coverage_counts): Use current_function_decl.
35516 * profile.c (read_thunk_profile): New function.
35517 (branch_prob): Add THUNK parameter.
35518 * tree-profile.c (tree_profiling): Handle thunks.
35519 * value-prof.c (init_node_map): Handle thunks.
35520 * value-prof.h (branch_prob): Upate prototype.
35521 (read_thunk_profile): Declare.
35522
35523 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35524
35525 Update copyright years.
35526
35527 * gcc.c (process_command): Update copyright notice dates.
35528 * gcov-dump.c (print_version): Ditto.
35529 * gcov.c (print_version): Ditto.
35530 * gcov-tool.c (print_version): Ditto.
35531 * gengtype.c (create_file): Ditto.
35532 * doc/cpp.texi: Bump @copying's copyright year.
35533 * doc/cppinternals.texi: Ditto.
35534 * doc/gcc.texi: Ditto.
35535 * doc/gccint.texi: Ditto.
35536 * doc/gcov.texi: Ditto.
35537 * doc/install.texi: Ditto.
35538 * doc/invoke.texi: Ditto.
35539 \f
35540 Copyright (C) 2019 Free Software Foundation, Inc.
35541
35542 Copying and distribution of this file, with or without modification,
35543 are permitted in any medium without royalty provided the copyright
35544 notice and this notice are preserved.